box-ui-elements 15.0.0-beta.7 → 15.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/CONTRIBUTING.md +3 -1
- package/dist/explorer.css +1 -1
- package/dist/explorer.js +58 -26
- package/dist/openwith.css +1 -1
- package/dist/openwith.js +10 -17
- package/dist/picker.css +1 -1
- package/dist/picker.js +12 -19
- package/dist/preview.css +1 -1
- package/dist/preview.js +56 -24
- package/dist/sharing.css +1 -1
- package/dist/sharing.js +54 -22
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +56 -24
- package/dist/uploader.css +1 -1
- package/dist/uploader.js +12 -19
- package/es/api/uploads/UploadsReachability.js.flow +2 -2
- package/es/api/uploads/UploadsReachability.js.map +1 -1
- package/es/common/messages.js +4 -0
- package/es/common/messages.js.flow +5 -0
- package/es/common/messages.js.map +1 -1
- package/es/common/types/core.js.flow +2 -0
- package/es/common/types/core.js.map +1 -1
- package/es/components/avatar/UnknownUserAvatar.js +6 -9
- package/es/components/avatar/UnknownUserAvatar.js.map +1 -1
- package/es/components/close-button/CloseButton.js +24 -0
- package/es/components/close-button/CloseButton.js.flow +26 -0
- package/es/components/close-button/CloseButton.js.map +1 -0
- package/es/components/close-button/CloseButton.scss +10 -0
- package/es/components/close-button/CloseButton.stories.js +14 -0
- package/es/components/close-button/CloseButton.stories.js.map +1 -0
- package/es/components/close-button/index.js +2 -0
- package/es/components/close-button/index.js.flow +2 -0
- package/es/components/close-button/index.js.map +1 -0
- package/es/components/date-picker/AccessiblePikaday.js +113 -0
- package/es/components/date-picker/AccessiblePikaday.js.map +1 -0
- package/es/components/date-picker/DatePicker.js +426 -106
- package/es/components/date-picker/DatePicker.js.map +1 -1
- package/es/components/date-picker/DatePicker.scss +32 -22
- package/es/components/date-picker/DatePicker.stories.js +10 -0
- package/es/components/date-picker/DatePicker.stories.js.map +1 -1
- package/es/components/date-picker/_pikaday.scss +8 -2
- package/es/components/flyout/Flyout.js +13 -3
- package/es/components/flyout/Flyout.js.flow +14 -3
- package/es/components/flyout/Flyout.js.map +1 -1
- package/es/components/flyout/Flyout.scss +40 -0
- package/es/components/flyout/FlyoutContext.js +6 -0
- package/es/components/flyout/FlyoutContext.js.flow +9 -0
- package/es/components/flyout/FlyoutContext.js.map +1 -0
- package/es/components/flyout/OverlayHeader.js +33 -0
- package/es/components/flyout/OverlayHeader.js.map +1 -0
- package/es/components/flyout/OverlayHeader.scss +9 -0
- package/es/components/flyout/_variables.scss +1 -0
- package/es/components/flyout/index.js +2 -0
- package/es/components/flyout/index.js.flow +2 -0
- package/es/components/flyout/index.js.map +1 -1
- package/es/components/image-tooltip/ImageTooltip.js +1 -2
- package/es/components/image-tooltip/ImageTooltip.js.map +1 -1
- package/es/components/media-query/constants.js +26 -0
- package/es/components/media-query/constants.js.flow +32 -0
- package/es/components/media-query/constants.js.map +1 -0
- package/es/components/media-query/index.js +3 -0
- package/es/components/media-query/index.js.flow +4 -0
- package/es/components/media-query/index.js.map +1 -0
- package/es/components/media-query/stories/MediaQuery.stories.js +37 -0
- package/es/components/media-query/stories/MediaQuery.stories.js.flow +80 -0
- package/es/components/media-query/stories/MediaQuery.stories.js.map +1 -0
- package/es/components/media-query/types.js +2 -0
- package/es/components/media-query/types.js.flow +29 -0
- package/es/components/media-query/types.js.map +1 -0
- package/es/components/media-query/useMediaQuery.js +91 -0
- package/es/components/media-query/useMediaQuery.js.flow +97 -0
- package/es/components/media-query/useMediaQuery.js.map +1 -0
- package/es/components/media-query/withMediaQuery.js +21 -0
- package/es/components/media-query/withMediaQuery.js.flow +23 -0
- package/es/components/media-query/withMediaQuery.js.map +1 -0
- package/es/components/modal/Modal.scss +27 -0
- package/es/components/preview/previewIcons.js +4 -0
- package/es/components/preview/previewIcons.js.map +1 -1
- package/es/components/search-form/SearchForm.scss +0 -5
- package/es/components/selector-dropdown/SelectorDropdown.js +5 -3
- package/es/components/selector-dropdown/SelectorDropdown.js.flow +3 -3
- package/es/components/selector-dropdown/SelectorDropdown.js.map +1 -1
- package/es/components/tab-view/Tabs.scss +0 -4
- package/es/components/tooltip/Tooltip.js +21 -4
- package/es/components/tooltip/Tooltip.js.map +1 -1
- package/es/constants.js +1 -0
- package/es/constants.js.flow +1 -0
- package/es/constants.js.map +1 -1
- package/es/elements/content-open-with/IconFileMap.js +0 -2
- package/es/elements/content-open-with/IconFileMap.js.flow +0 -2
- package/es/elements/content-open-with/IconFileMap.js.map +1 -1
- package/es/elements/content-sidebar/Sidebar.js +2 -1
- package/es/elements/content-sidebar/Sidebar.js.flow +1 -1
- package/es/elements/content-sidebar/Sidebar.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.scss +3 -3
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js +14 -4
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js.flow +18 -5
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js.map +1 -1
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js +78 -0
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.flow +97 -0
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.map +1 -0
- package/es/elements/content-sidebar/versions/StaticVersionsSidebar.scss +67 -0
- package/es/elements/content-sidebar/versions/VersionsSidebar.js +12 -4
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.flow +16 -3
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.map +1 -1
- package/es/elements/content-sidebar/versions/VersionsSidebar.scss +5 -0
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js +42 -10
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.flow +42 -7
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.map +1 -1
- package/es/elements/content-sidebar/versions/flowTypes.js.flow +1 -0
- package/es/elements/content-sidebar/versions/messages.js +20 -0
- package/es/elements/content-sidebar/versions/messages.js.flow +28 -0
- package/es/elements/content-sidebar/versions/messages.js.map +1 -1
- package/es/features/classification/constants.js +2 -1
- package/es/features/classification/constants.js.flow +2 -0
- package/es/features/classification/constants.js.map +1 -1
- package/es/features/classification/flowTypes.js +1 -0
- package/es/features/classification/flowTypes.js.flow +7 -1
- package/es/features/classification/flowTypes.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControls.js +3 -4
- package/es/features/classification/security-controls/SecurityControls.js.flow +3 -4
- package/es/features/classification/security-controls/SecurityControls.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.js +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.js.flow +20 -17
- package/es/features/classification/security-controls/SecurityControlsItem.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.scss +4 -0
- package/es/features/classification/security-controls/SecurityControlsModal.js +2 -2
- package/es/features/classification/security-controls/SecurityControlsModal.js.flow +2 -2
- package/es/features/classification/security-controls/SecurityControlsModal.js.map +1 -1
- package/es/features/classification/security-controls/messages.js +4 -0
- package/es/features/classification/security-controls/messages.js.flow +5 -0
- package/es/features/classification/security-controls/messages.js.map +1 -1
- package/es/features/classification/security-controls/utils.js +56 -35
- package/es/features/classification/security-controls/utils.js.flow +51 -27
- package/es/features/classification/security-controls/utils.js.map +1 -1
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js +9 -3
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js.flow +13 -5
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js.map +1 -1
- package/es/features/collapsible-sidebar/CollapsibleSidebar.scss +35 -3
- package/es/features/content-explorer/content-explorer/ContentExplorer.scss +1 -1
- package/es/features/content-explorer/item-list/ItemList.js +1 -0
- package/es/features/content-explorer/item-list/ItemList.js.flow +1 -0
- package/es/features/content-explorer/item-list/ItemList.js.map +1 -1
- package/es/features/content-explorer/item-list/ItemListName.js +13 -2
- package/es/features/content-explorer/item-list/ItemListName.js.flow +3 -2
- package/es/features/content-explorer/item-list/ItemListName.js.map +1 -1
- package/es/features/header-flyout/HeaderFlyout.js +8 -10
- package/es/features/header-flyout/HeaderFlyout.js.flow +4 -8
- package/es/features/header-flyout/HeaderFlyout.js.map +1 -1
- package/es/features/header-flyout/styles/HeaderFlyout.scss +54 -15
- package/es/features/header-flyout/styles/_variables.scss +4 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js +1 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js.flow +1 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js.map +1 -1
- package/es/features/presence/PresenceCollaborator.js +90 -0
- package/es/features/presence/PresenceCollaborator.js.flow +81 -0
- package/es/features/presence/PresenceCollaborator.js.map +1 -0
- package/es/features/presence/PresenceCollaborator.scss +28 -0
- package/es/features/presence/PresenceCollaboratorsList.js +9 -57
- package/es/features/presence/PresenceCollaboratorsList.js.flow +7 -58
- package/es/features/presence/PresenceCollaboratorsList.js.map +1 -1
- package/es/features/presence/PresenceCollaboratorsList.scss +8 -35
- package/es/features/quick-search/QuickSearch.js +4 -2
- package/es/features/quick-search/QuickSearch.js.flow +13 -1
- package/es/features/quick-search/QuickSearch.js.map +1 -1
- package/es/features/unified-share-modal/SharedLinkSection.js +9 -20
- package/es/features/unified-share-modal/SharedLinkSection.js.flow +6 -27
- package/es/features/unified-share-modal/SharedLinkSection.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareForm.js +95 -53
- package/es/features/unified-share-modal/UnifiedShareForm.js.flow +70 -14
- package/es/features/unified-share-modal/UnifiedShareForm.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareModal.scss +3 -0
- package/es/features/unified-share-modal/flowTypes.js.flow +6 -0
- package/es/features/unified-share-modal/flowTypes.js.map +1 -1
- package/es/features/unified-share-modal/messages.js +8 -0
- package/es/features/unified-share-modal/messages.js.flow +10 -0
- package/es/features/unified-share-modal/messages.js.map +1 -1
- package/es/features/unified-share-modal/utils/mergeContacts.js +13 -10
- package/es/features/unified-share-modal/utils/mergeContacts.js.flow +4 -2
- package/es/features/unified-share-modal/utils/mergeContacts.js.map +1 -1
- package/es/icon/content/FileXbd32.js +39 -0
- package/es/icon/content/FileXbd32.js.flow +38 -0
- package/es/icon/content/FileXbd32.js.map +1 -0
- package/es/icon/content/FileXbd32.stories.js +13 -0
- package/es/icon/content/FileXbd32.stories.js.map +1 -0
- package/es/icon/content/FileXdw32.js +39 -0
- package/es/icon/content/FileXdw32.js.flow +38 -0
- package/es/icon/content/FileXdw32.js.map +1 -0
- package/es/icon/content/FileXdw32.stories.js +13 -0
- package/es/icon/content/FileXdw32.stories.js.map +1 -0
- package/es/icon/content/RetentionPolicyModifiable32.js +36 -0
- package/es/icon/content/RetentionPolicyModifiable32.js.flow +31 -0
- package/es/icon/content/RetentionPolicyModifiable32.js.map +1 -0
- package/es/icon/content/RetentionPolicyModifiable32.stories.js +13 -0
- package/es/icon/content/RetentionPolicyModifiable32.stories.js.map +1 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js +36 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js.flow +31 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js.map +1 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.stories.js +13 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.stories.js.map +1 -0
- package/es/icons/avatars/UnknownUserAvatar.js +10 -34
- package/es/icons/avatars/UnknownUserAvatar.js.map +1 -1
- package/es/icons/file-icon/FileIcon.js +8 -2
- package/es/icons/file-icon/FileIcon.js.flow +2 -2
- package/es/icons/file-icon/FileIcon.js.map +1 -1
- package/es/icons/general/IconSearch.js +1 -1
- package/es/icons/general/IconSearch.js.flow +1 -1
- package/es/icons/general/IconSearch.js.map +1 -1
- package/es/icons/general/IconSearchJuicy.js +30 -0
- package/es/icons/general/IconSearchJuicy.js.flow +26 -0
- package/es/icons/general/IconSearchJuicy.js.map +1 -0
- package/es/icons/google-docs/IconGoogle.js +89 -0
- package/es/icons/google-docs/IconGoogle.js.flow +57 -0
- package/es/icons/google-docs/IconGoogle.js.map +1 -0
- package/es/icons/item-icon/ItemIcon.js +4 -0
- package/es/icons/item-icon/ItemIcon.js.map +1 -1
- package/es/icons/microsoft-office/IconOffice.js +80 -0
- package/es/icons/microsoft-office/IconOffice.js.flow +45 -0
- package/es/icons/microsoft-office/IconOffice.js.map +1 -0
- package/es/illustration/EmailVerification140.js +111 -0
- package/es/illustration/EmailVerification140.js.flow +102 -0
- package/es/illustration/EmailVerification140.js.map +1 -0
- package/es/illustration/EmailVerification140.stories.js +13 -0
- package/es/illustration/EmailVerification140.stories.js.map +1 -0
- package/es/src/components/close-button/CloseButton.d.ts +9 -0
- package/es/src/components/close-button/CloseButton.stories.d.ts +9 -0
- package/es/src/components/close-button/__tests__/CloseButton.stories.test.d.ts +0 -0
- package/es/src/components/close-button/__tests__/CloseButton.test.d.ts +1 -0
- package/es/src/components/close-button/index.d.ts +1 -0
- package/es/src/components/date-picker/AccessiblePikaday.d.ts +16 -0
- package/es/src/components/date-picker/DatePicker.d.ts +33 -6
- package/es/src/components/date-picker/DatePicker.stories.d.ts +2 -1
- package/es/src/components/flyout/OverlayHeader.d.ts +10 -0
- package/es/src/components/tooltip/Tooltip.d.ts +4 -3
- package/es/src/icon/content/FileXbd32.d.ts +13 -0
- package/es/src/icon/content/FileXbd32.stories.d.ts +9 -0
- package/es/src/icon/content/FileXdw32.d.ts +13 -0
- package/es/src/icon/content/FileXdw32.stories.d.ts +9 -0
- package/es/src/icon/content/RetentionPolicyModifiable32.d.ts +13 -0
- package/es/src/icon/content/RetentionPolicyModifiable32.stories.d.ts +9 -0
- package/es/src/icon/content/RetentionPolicyNonModifiable32.d.ts +13 -0
- package/es/src/icon/content/RetentionPolicyNonModifiable32.stories.d.ts +9 -0
- package/es/src/icons/avatars/UnknownUserAvatar.d.ts +0 -1
- package/es/src/icons/general/IconSearchJuicy.d.ts +3 -0
- package/es/src/icons/general/__tests__/IconSearchJuicy.test.d.ts +1 -0
- package/es/src/icons/google-docs/IconGoogle.d.ts +12 -0
- package/es/src/icons/google-docs/__tests__/IconGoogle.test.d.ts +1 -0
- package/es/src/icons/item-icon/ItemIcon.d.ts +2 -0
- package/es/src/icons/microsoft-office/IconOffice.d.ts +12 -0
- package/es/src/icons/microsoft-office/__tests__/IconOffice.test.d.ts +1 -0
- package/es/src/illustration/EmailVerification140.d.ts +13 -0
- package/es/src/illustration/EmailVerification140.stories.d.ts +9 -0
- package/es/src/styles/variables.d.ts +9 -0
- package/es/styles/_variables.scss +1 -0
- package/es/styles/common/_forms.scss +6 -0
- package/es/styles/constants/_layout.scss +3 -0
- package/es/styles/constants/_media-queries.scss +15 -0
- package/es/styles/variables.js +18 -0
- package/es/styles/variables.js.flow +10 -1
- package/es/styles/variables.js.map +1 -1
- package/es/utils/Browser.js +12 -0
- package/es/utils/Browser.js.flow +10 -0
- package/es/utils/Browser.js.map +1 -1
- package/es/utils/validators.js +26 -4
- package/es/utils/validators.js.flow +25 -3
- package/es/utils/validators.js.map +1 -1
- package/i18n/bn-IN.js +12 -0
- package/i18n/bn-IN.properties +24 -0
- package/i18n/da-DK.js +12 -0
- package/i18n/da-DK.properties +24 -0
- package/i18n/de-DE.js +12 -0
- package/i18n/de-DE.properties +24 -0
- package/i18n/en-AU.js +12 -0
- package/i18n/en-AU.properties +24 -0
- package/i18n/en-CA.js +12 -0
- package/i18n/en-CA.properties +24 -0
- package/i18n/en-GB.js +12 -0
- package/i18n/en-GB.properties +24 -0
- package/i18n/en-US.js +12 -0
- package/i18n/en-US.properties +24 -0
- package/i18n/en-x-pseudo.js +12 -0
- package/i18n/es-419.js +12 -0
- package/i18n/es-419.properties +24 -0
- package/i18n/es-ES.js +12 -0
- package/i18n/es-ES.properties +24 -0
- package/i18n/fi-FI.js +12 -0
- package/i18n/fi-FI.properties +24 -0
- package/i18n/fr-CA.js +12 -0
- package/i18n/fr-CA.properties +24 -0
- package/i18n/fr-FR.js +12 -0
- package/i18n/fr-FR.properties +24 -0
- package/i18n/hi-IN.js +12 -0
- package/i18n/hi-IN.properties +24 -0
- package/i18n/it-IT.js +12 -0
- package/i18n/it-IT.properties +24 -0
- package/i18n/ja-JP.js +25 -13
- package/i18n/ja-JP.properties +37 -13
- package/i18n/ko-KR.js +12 -0
- package/i18n/ko-KR.properties +24 -0
- package/i18n/nb-NO.js +12 -0
- package/i18n/nb-NO.properties +24 -0
- package/i18n/nl-NL.js +12 -0
- package/i18n/nl-NL.properties +24 -0
- package/i18n/pl-PL.js +12 -0
- package/i18n/pl-PL.properties +24 -0
- package/i18n/pt-BR.js +12 -0
- package/i18n/pt-BR.properties +24 -0
- package/i18n/ru-RU.js +12 -0
- package/i18n/ru-RU.properties +24 -0
- package/i18n/sv-SE.js +12 -0
- package/i18n/sv-SE.properties +24 -0
- package/i18n/tr-TR.js +12 -0
- package/i18n/tr-TR.properties +24 -0
- package/i18n/zh-CN.js +12 -0
- package/i18n/zh-CN.properties +24 -0
- package/i18n/zh-TW.js +12 -0
- package/i18n/zh-TW.properties +24 -0
- package/package.json +8 -5
- package/src/__mocks__/pikaday.js +1 -0
- package/src/api/__tests__/MockOpenWithData.json +2 -25
- package/src/api/uploads/UploadsReachability.js +2 -2
- package/src/common/messages.js +5 -0
- package/src/common/types/core.js +2 -0
- package/src/components/avatar/UnknownUserAvatar.tsx +5 -4
- package/src/components/close-button/CloseButton.js.flow +26 -0
- package/src/components/close-button/CloseButton.scss +10 -0
- package/src/components/close-button/CloseButton.stories.md +1 -0
- package/src/components/close-button/CloseButton.stories.tsx +14 -0
- package/src/components/close-button/CloseButton.tsx +30 -0
- package/src/components/close-button/__tests__/CloseButton.stories.test.tsx +6 -0
- package/src/components/close-button/__tests__/CloseButton.test.tsx +40 -0
- package/src/components/close-button/__tests__/__image_snapshots__/close-button-stories-test-tsx-components-close-button-close-button-looks-visually-correct-when-using-story-components-buttons-closebutton-regular-1-snap.png +0 -0
- package/src/components/close-button/index.js.flow +2 -0
- package/src/components/close-button/index.ts +1 -0
- package/src/components/date-picker/AccessiblePikaday.ts +79 -0
- package/src/components/date-picker/DatePicker.scss +32 -22
- package/src/components/date-picker/DatePicker.stories.tsx +6 -0
- package/src/components/date-picker/DatePicker.tsx +350 -64
- package/src/components/date-picker/__tests__/DatePicker.test.tsx +44 -2
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-allows-editing-in-story-components-datepicker-manually-editable-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-allows-keyboard-selection-in-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-closes-calendar-and-clears-date-for-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-custom-error-tooltip-position-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-disabled-with-error-message-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-manually-editable-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-description-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-limited-date-range-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-range-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-reflects-changes-in-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-shows-calendar-and-date-for-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-shows-limited-range-in-components-datepicker-with-limited-date-range-1-snap.png +0 -0
- package/src/components/date-picker/_pikaday.scss +8 -2
- package/src/components/flyout/Flyout.js +14 -3
- package/src/components/flyout/Flyout.scss +40 -0
- package/src/components/flyout/FlyoutContext.js +9 -0
- package/src/components/flyout/OverlayHeader.scss +9 -0
- package/src/components/flyout/OverlayHeader.tsx +38 -0
- package/src/components/flyout/__tests__/Flyout.test.js +15 -0
- package/src/components/flyout/__tests__/OverlayHeader.test.js +56 -0
- package/src/components/flyout/_variables.scss +1 -0
- package/src/components/flyout/index.js +2 -0
- package/src/components/image-tooltip/ImageTooltip.tsx +1 -2
- package/src/components/media-query/__tests__/useMediaQuery.test.js +48 -0
- package/src/components/media-query/__tests__/withMediaQuery.test.js +29 -0
- package/src/components/media-query/constants.js +32 -0
- package/src/components/media-query/index.js +4 -0
- package/src/components/media-query/stories/MediaQuery.stories.js +80 -0
- package/src/components/media-query/stories/MediaQuery.stories.md +29 -0
- package/src/components/media-query/types.js +29 -0
- package/src/components/media-query/useMediaQuery.js +97 -0
- package/src/components/media-query/withMediaQuery.js +23 -0
- package/src/components/modal/Modal.scss +27 -0
- package/src/components/modal/__tests__/Modal.stories.test.js +10 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-stories-test-js-components-modal-modal-looks-visually-correct-for-small-screens-when-button-is-clicked-in-story-components-modal-basic-1-snap.png +0 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-stories-test-js-components-modal-modal-looks-visually-correct-for-small-screens-when-button-is-clicked-in-story-components-modal-with-custom-backdrop-click-handler-1-snap.png +0 -0
- package/src/components/preview/previewIcons.ts +4 -0
- package/src/components/search-form/SearchForm.scss +0 -5
- package/src/components/selector-dropdown/SelectorDropdown.js +3 -3
- package/src/components/selector-dropdown/__tests__/SelectorDropdown.test.js +5 -1
- package/src/components/sidebar-toggle-button/__tests__/__snapshots__/SidebarToggleButton.test.js.snap +0 -8
- package/src/components/tab-view/Tabs.scss +0 -4
- package/src/components/tooltip/Tooltip.tsx +20 -5
- package/src/components/tooltip/__tests__/Tooltip.test.tsx +17 -4
- package/src/components/tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +0 -2
- package/src/constants.js +1 -0
- package/src/elements/content-open-with/IconFileMap.js +0 -2
- package/src/elements/content-open-with/__tests__/ContentOpenWith.test.js +13 -13
- package/src/elements/content-open-with/__tests__/OpenWithButton.test.js +1 -1
- package/src/elements/content-open-with/__tests__/OpenWithDropdownMenu.test.js +1 -5
- package/src/elements/content-open-with/__tests__/OpenWithDropdownMenuItem.test.js +2 -2
- package/src/elements/content-open-with/__tests__/__snapshots__/ContentOpenWith.test.js.snap +5 -5
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithButton.test.js.snap +1 -1
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithDropdownMenu.test.js.snap +1 -11
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithDropdownMenuItem.test.js.snap +4 -3
- package/src/elements/content-sidebar/Sidebar.js +1 -1
- package/src/elements/content-sidebar/__tests__/AddTaskButton.test.js +15 -0
- package/src/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.scss +3 -3
- package/src/elements/content-sidebar/activity-feed/task-form/TaskForm.js +18 -5
- package/src/elements/content-sidebar/versions/StaticVersionSidebar.js +97 -0
- package/src/elements/content-sidebar/versions/StaticVersionsSidebar.scss +67 -0
- package/src/elements/content-sidebar/versions/VersionsSidebar.js +16 -3
- package/src/elements/content-sidebar/versions/VersionsSidebar.scss +5 -0
- package/src/elements/content-sidebar/versions/VersionsSidebarContainer.js +42 -7
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebar.test.js +18 -1
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebarContainer.test.js +51 -2
- package/src/elements/content-sidebar/versions/__tests__/__snapshots__/VersionsSidebarContainer.test.js.snap +75 -0
- package/src/elements/content-sidebar/versions/flowTypes.js +1 -0
- package/src/elements/content-sidebar/versions/messages.js +28 -0
- package/src/features/classification/constants.js +2 -0
- package/src/features/classification/flowTypes.js +7 -1
- package/src/features/classification/security-controls/SecurityControls.js +3 -4
- package/src/features/classification/security-controls/SecurityControlsItem.js +20 -17
- package/src/features/classification/security-controls/SecurityControlsItem.scss +4 -0
- package/src/features/classification/security-controls/SecurityControlsModal.js +2 -2
- package/src/features/classification/security-controls/__tests__/SecurityControlsItem.test.js +10 -0
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControls.test.js.snap +6 -6
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControlsItem.test.js.snap +35 -0
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControlsModal.test.js.snap +2 -2
- package/src/features/classification/security-controls/__tests__/__snapshots__/utils.test.js.snap +20 -0
- package/src/features/classification/security-controls/__tests__/utils.test.js +38 -18
- package/src/features/classification/security-controls/messages.js +5 -0
- package/src/features/classification/security-controls/utils.js +51 -27
- package/src/features/collapsible-sidebar/CollapsibleSidebar.js +13 -5
- package/src/features/collapsible-sidebar/CollapsibleSidebar.scss +35 -3
- package/src/features/collapsible-sidebar/__tests__/CollapsibleSidebar.test.js +35 -0
- package/src/features/collapsible-sidebar/__tests__/__snapshots__/CollapsibleSidebar.test.js.snap +1 -0
- package/src/features/content-explorer/content-explorer/ContentExplorer.scss +1 -1
- package/src/features/content-explorer/item-list/ItemList.js +1 -0
- package/src/features/content-explorer/item-list/ItemListName.js +3 -2
- package/src/features/content-explorer/item-list/__tests__/ItemListName.test.js +16 -2
- package/src/features/header-flyout/HeaderFlyout.js +4 -8
- package/src/features/header-flyout/__tests__/__snapshots__/HeaderFlyout.test.js.snap +14 -11
- package/src/features/header-flyout/styles/HeaderFlyout.scss +54 -15
- package/src/features/header-flyout/styles/_variables.scss +4 -0
- package/src/features/message-center/components/message-center-modal/MessageCenterModal.js +1 -0
- package/src/features/metadata-instance-editor/__tests__/__snapshots__/TemplateDropdown.test.js.snap +7 -0
- package/src/features/pagination/__tests__/__snapshots__/MarkerBasedPagination.test.js.snap +0 -8
- package/src/features/pagination/__tests__/__snapshots__/OffsetBasedPagination.test.js.snap +0 -16
- package/src/features/presence/PresenceCollaborator.js +81 -0
- package/src/features/presence/PresenceCollaborator.scss +28 -0
- package/src/features/presence/PresenceCollaboratorsList.js +7 -58
- package/src/features/presence/PresenceCollaboratorsList.scss +8 -35
- package/src/features/presence/__tests__/PresenceCollaborator.test.js +36 -0
- package/src/features/presence/__tests__/PresenceCollaboratorsList.test.js +13 -57
- package/src/features/presence/__tests__/__snapshots__/Presence.test.js.snap +5 -0
- package/src/features/presence/__tests__/__snapshots__/PresenceLink.test.js.snap +3 -0
- package/src/features/query-bar/__tests__/__snapshots__/ColumnButton.test.js.snap +3 -0
- package/src/features/quick-search/QuickSearch.js +13 -1
- package/src/features/quick-search/__tests__/QuickSearch.test.js +17 -0
- package/src/features/unified-share-modal/SharedLinkSection.js +6 -27
- package/src/features/unified-share-modal/UnifiedShareForm.js +70 -14
- package/src/features/unified-share-modal/UnifiedShareModal.scss +3 -0
- package/src/features/unified-share-modal/__tests__/EmailForm.test.js +9 -0
- package/src/features/unified-share-modal/__tests__/SharedLinkSection.test.js +14 -4
- package/src/features/unified-share-modal/__tests__/UnifiedShareForm.test.js +53 -4
- package/src/features/unified-share-modal/__tests__/__snapshots__/SharedLinkSection.test.js.snap +9 -0
- package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareForm.test.js.snap +0 -159
- package/src/features/unified-share-modal/flowTypes.js +6 -0
- package/src/features/unified-share-modal/messages.js +10 -0
- package/src/features/unified-share-modal/utils/__tests__/mergeContacts.test.js +23 -0
- package/src/features/unified-share-modal/utils/mergeContacts.js +4 -2
- package/src/icon/content/FileXbd32.js.flow +38 -0
- package/src/icon/content/FileXbd32.stories.tsx +13 -0
- package/src/icon/content/FileXbd32.tsx +37 -0
- package/src/icon/content/FileXdw32.js.flow +38 -0
- package/src/icon/content/FileXdw32.stories.tsx +13 -0
- package/src/icon/content/FileXdw32.tsx +37 -0
- package/src/icon/content/RetentionPolicyModifiable32.js.flow +31 -0
- package/src/icon/content/RetentionPolicyModifiable32.stories.tsx +14 -0
- package/src/icon/content/RetentionPolicyModifiable32.tsx +29 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.js.flow +31 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.stories.tsx +14 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.tsx +29 -0
- package/src/icons/adobe-sign/README.md +1 -1
- package/src/icons/avatars/UnknownUserAvatar.tsx +7 -15
- package/src/icons/file-icon/FileIcon.js.flow +2 -2
- package/src/icons/file-icon/FileIcon.tsx +8 -2
- package/src/icons/file-icon/__tests__/FileIcon.test.tsx +28 -69
- package/src/icons/file-icon/__tests__/__snapshots__/FileIcon.test.tsx.snap +48 -34
- package/src/icons/general/IconSearch.js.flow +1 -1
- package/src/icons/general/IconSearch.tsx +1 -1
- package/src/icons/general/IconSearchJuicy.js.flow +26 -0
- package/src/icons/general/IconSearchJuicy.tsx +25 -0
- package/src/icons/general/README.md +5 -0
- package/src/icons/general/__tests__/IconSearchJuicy.test.tsx +38 -0
- package/src/icons/google-docs/IconGoogle.js.flow +57 -0
- package/src/icons/google-docs/IconGoogle.tsx +50 -0
- package/src/icons/google-docs/__tests__/IconGoogle.test.tsx +44 -0
- package/src/icons/item-icon/ItemIcon.tsx +4 -0
- package/src/icons/item-icon/__tests__/ItemIcon.test.tsx +47 -115
- package/src/icons/item-icon/__tests__/__snapshots__/ItemIcon.test.tsx.snap +229 -229
- package/src/icons/microsoft-office/IconOffice.js.flow +45 -0
- package/src/icons/microsoft-office/IconOffice.tsx +38 -0
- package/src/icons/microsoft-office/__tests__/IconOffice.test.tsx +44 -0
- package/src/illustration/EmailVerification140.js.flow +102 -0
- package/src/illustration/EmailVerification140.stories.tsx +13 -0
- package/src/illustration/EmailVerification140.tsx +100 -0
- package/src/styles/_variables.scss +1 -0
- package/src/styles/common/_forms.scss +6 -0
- package/src/styles/constants/_layout.scss +3 -0
- package/src/styles/constants/_media-queries.scss +15 -0
- package/src/styles/variables.js +10 -1
- package/src/styles/variables.json +10 -1
- package/src/styles/variables.ts +9 -0
- package/src/utils/Browser.js +10 -0
- package/src/utils/validators.js +25 -3
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
/* eslint-disable react/jsx-sort-props */
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as vars from '../../styles/variables';
|
|
5
|
+
import AccessibleSVG from '../../icons/accessible-svg';
|
|
6
|
+
import type { Icon } from '../../icons/flowTypes';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* This is an auto-generated component and should not be edited
|
|
10
|
+
* manually in contributor pull requests.
|
|
11
|
+
*
|
|
12
|
+
* If you have problems with this component:
|
|
13
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
14
|
+
*
|
|
15
|
+
* If there are missing features in this component:
|
|
16
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
const RetentionPolicyNonModifiable32 = (props: Icon) => (
|
|
20
|
+
<AccessibleSVG width={32} height={32} viewBox="0 0 32 32" {...props}>
|
|
21
|
+
<g fill="none" fillRule="evenodd">
|
|
22
|
+
<path d="M6 0h20a6 6 0 016 6v20a6 6 0 01-6 6H6a6 6 0 01-6-6V6a6 6 0 016-6z" fill={vars.bdlLightBlue} />
|
|
23
|
+
<path
|
|
24
|
+
d="M21.5 15c1.607 0 2.918 1.203 2.996 2.715l.004.142v1.377c.886.406 1.5 1.3 1.5 2.337v1.858A2.571 2.571 0 0123.429 26H19.57A2.571 2.571 0 0117 23.429V21.57c0-1.037.615-1.932 1.5-2.338v-1.376c0-1.578 1.343-2.857 3-2.857zm-.653-7C21.484 8 22 8.551 22 9.23v4.802l-.248-.024L21.5 14l-.23.007-.228.02c-1.965.23-3.513 1.928-3.611 4.033l-.005.211v.258l-.079.064-.187.174a4.003 4.003 0 00-1.153 2.612l-.007.235V23.1l.006.23c.033.604.196 1.172.459 1.672L9.165 25c-.175-.007-.271-.423.026-.514.342-.13.814-.828.814-1.462V9.231c0-.68.593-1.231 1.23-1.231h9.612zM9 20v3.003A.985.985 0 018 24c-.568 0-1-.486-1-.997V20h2zm13.5 2h-2a.5.5 0 00-.09.992l.09.008h2a.5.5 0 100-1zm-1-5.571c-.79 0-1.439.582-1.496 1.322l-.004.106V19h3v-1.143c0-.789-.672-1.428-1.5-1.428z"
|
|
25
|
+
fill={vars.white}
|
|
26
|
+
/>
|
|
27
|
+
</g>
|
|
28
|
+
</AccessibleSVG>
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
export default RetentionPolicyNonModifiable32;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/icon/content/RetentionPolicyNonModifiable32.tsx"],"names":["React","vars","AccessibleSVG","RetentionPolicyNonModifiable32","props","bdlLightBlue","white"],"mappings":";;AAAA;AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAO,KAAKC,IAAZ,MAAsB,wBAAtB;AACA,OAAOC,aAAP,MAAwC,+CAAxC;AAEA;;;;;;;;;;;AAWA,IAAMC,8BAA8B,GAAG,SAAjCA,8BAAiC,CAACC,KAAD;AAAA,SACnC,oBAAC,aAAD;AAAe,IAAA,KAAK,EAAE,EAAtB;AAA0B,IAAA,MAAM,EAAE,EAAlC;AAAsC,IAAA,OAAO,EAAC;AAA9C,KAA8DA,KAA9D,GACI;AAAG,IAAA,IAAI,EAAC,MAAR;AAAe,IAAA,QAAQ,EAAC;AAAxB,KACI;AAAM,IAAA,CAAC,EAAC,mEAAR;AAA4E,IAAA,IAAI,EAAEH,IAAI,CAACI;AAAvF,IADJ,EAEI;AACI,IAAA,CAAC,EAAC,2uBADN;AAEI,IAAA,IAAI,EAAEJ,IAAI,CAACK;AAFf,IAFJ,CADJ,CADmC;AAAA,CAAvC;;AAYA,eAAeH,8BAAf","sourcesContent":["/* eslint-disable react/jsx-sort-props */\nimport * as React from 'react';\nimport * as vars from '../../styles/variables';\nimport AccessibleSVG, { SVGProps } from '../../components/accessible-svg/AccessibleSVG';\n\n/**\n * This is an auto-generated component and should not be edited\n * manually in contributor pull requests.\n *\n * If you have problems with this component:\n * - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md\n *\n * If there are missing features in this component:\n * - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md\n */\n\nconst RetentionPolicyNonModifiable32 = (props: SVGProps) => (\n <AccessibleSVG width={32} height={32} viewBox=\"0 0 32 32\" {...props}>\n <g fill=\"none\" fillRule=\"evenodd\">\n <path d=\"M6 0h20a6 6 0 016 6v20a6 6 0 01-6 6H6a6 6 0 01-6-6V6a6 6 0 016-6z\" fill={vars.bdlLightBlue} />\n <path\n d=\"M21.5 15c1.607 0 2.918 1.203 2.996 2.715l.004.142v1.377c.886.406 1.5 1.3 1.5 2.337v1.858A2.571 2.571 0 0123.429 26H19.57A2.571 2.571 0 0117 23.429V21.57c0-1.037.615-1.932 1.5-2.338v-1.376c0-1.578 1.343-2.857 3-2.857zm-.653-7C21.484 8 22 8.551 22 9.23v4.802l-.248-.024L21.5 14l-.23.007-.228.02c-1.965.23-3.513 1.928-3.611 4.033l-.005.211v.258l-.079.064-.187.174a4.003 4.003 0 00-1.153 2.612l-.007.235V23.1l.006.23c.033.604.196 1.172.459 1.672L9.165 25c-.175-.007-.271-.423.026-.514.342-.13.814-.828.814-1.462V9.231c0-.68.593-1.231 1.23-1.231h9.612zM9 20v3.003A.985.985 0 018 24c-.568 0-1-.486-1-.997V20h2zm13.5 2h-2a.5.5 0 00-.09.992l.09.008h2a.5.5 0 100-1zm-1-5.571c-.79 0-1.439.582-1.496 1.322l-.004.106V19h3v-1.143c0-.789-.672-1.428-1.5-1.428z\"\n fill={vars.white}\n />\n </g>\n </AccessibleSVG>\n);\n\nexport default RetentionPolicyNonModifiable32;\n"],"file":"RetentionPolicyNonModifiable32.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import RetentionPolicyNonModifiable32 from './RetentionPolicyNonModifiable32';
|
|
3
|
+
export var retentionPolicyNonModifiable32 = function retentionPolicyNonModifiable32() {
|
|
4
|
+
return React.createElement(RetentionPolicyNonModifiable32, null);
|
|
5
|
+
};
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Icon|Content|RetentionPolicyNonModifiable32',
|
|
8
|
+
component: RetentionPolicyNonModifiable32,
|
|
9
|
+
parameters: {
|
|
10
|
+
notes: "`import RetentionPolicyNonModifiable32 from 'box-ui-elements/es/icon/content/RetentionPolicyNonModifiable32';`"
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=RetentionPolicyNonModifiable32.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/icon/content/RetentionPolicyNonModifiable32.stories.tsx"],"names":["React","RetentionPolicyNonModifiable32","retentionPolicyNonModifiable32","title","component","parameters","notes"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,8BAAP,MAA2C,kCAA3C;AAEA,OAAO,IAAMC,8BAA8B,GAAG,SAAjCA,8BAAiC;AAAA,SAAM,oBAAC,8BAAD,OAAN;AAAA,CAAvC;AAEP,eAAe;AACXC,EAAAA,KAAK,EAAE,6CADI;AAEXC,EAAAA,SAAS,EAAEH,8BAFA;AAGXI,EAAAA,UAAU,EAAE;AACRC,IAAAA,KAAK,EACD;AAFI;AAHD,CAAf","sourcesContent":["import * as React from 'react';\n\nimport RetentionPolicyNonModifiable32 from './RetentionPolicyNonModifiable32';\n\nexport const retentionPolicyNonModifiable32 = () => <RetentionPolicyNonModifiable32 />;\n\nexport default {\n title: 'Icon|Content|RetentionPolicyNonModifiable32',\n component: RetentionPolicyNonModifiable32,\n parameters: {\n notes:\n \"`import RetentionPolicyNonModifiable32 from 'box-ui-elements/es/icon/content/RetentionPolicyNonModifiable32';`\",\n },\n};\n"],"file":"RetentionPolicyNonModifiable32.stories.js"}
|
|
@@ -8,10 +8,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8
8
|
|
|
9
9
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10
10
|
|
|
11
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
|
-
|
|
13
11
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
14
12
|
|
|
13
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
14
|
+
|
|
15
15
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
16
16
|
|
|
17
17
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -19,8 +19,8 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
|
|
|
19
19
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
20
|
|
|
21
21
|
import * as React from 'react';
|
|
22
|
-
import uniqueId from 'lodash/uniqueId';
|
|
23
22
|
import AccessibleSVG from '../accessible-svg';
|
|
23
|
+
import * as vars from '../../styles/variables';
|
|
24
24
|
var ICON_CLASS = 'unknown-user-avatar';
|
|
25
25
|
|
|
26
26
|
var UnknownUserAvatar =
|
|
@@ -29,21 +29,9 @@ function (_React$PureComponent) {
|
|
|
29
29
|
_inherits(UnknownUserAvatar, _React$PureComponent);
|
|
30
30
|
|
|
31
31
|
function UnknownUserAvatar() {
|
|
32
|
-
var _getPrototypeOf2;
|
|
33
|
-
|
|
34
|
-
var _this;
|
|
35
|
-
|
|
36
32
|
_classCallCheck(this, UnknownUserAvatar);
|
|
37
33
|
|
|
38
|
-
|
|
39
|
-
args[_key] = arguments[_key];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(UnknownUserAvatar)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
43
|
-
|
|
44
|
-
_defineProperty(_assertThisInitialized(_this), "idPrefix", "".concat(uniqueId(ICON_CLASS), "-"));
|
|
45
|
-
|
|
46
|
-
return _this;
|
|
34
|
+
return _possibleConstructorReturn(this, _getPrototypeOf(UnknownUserAvatar).apply(this, arguments));
|
|
47
35
|
}
|
|
48
36
|
|
|
49
37
|
_createClass(UnknownUserAvatar, [{
|
|
@@ -58,25 +46,13 @@ function (_React$PureComponent) {
|
|
|
58
46
|
className: "".concat(ICON_CLASS, " ").concat(className),
|
|
59
47
|
height: height,
|
|
60
48
|
title: title,
|
|
61
|
-
viewBox: "0 0
|
|
49
|
+
viewBox: "0 0 16 16",
|
|
62
50
|
width: width
|
|
63
|
-
}, React.createElement("
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
})), React.createElement("g", {
|
|
69
|
-
fill: "none",
|
|
70
|
-
fillRule: "evenodd"
|
|
71
|
-
}, React.createElement("use", {
|
|
72
|
-
className: "background-fill-color",
|
|
73
|
-
fill: "#EDEDED",
|
|
74
|
-
xlinkHref: "#".concat(this.idPrefix, "a")
|
|
75
|
-
}), React.createElement("path", {
|
|
76
|
-
className: "fill-color",
|
|
77
|
-
d: "M5.5 25.1C6.7 21 10 18 14 18s7.3 3 8.5 7.1a14 14 0 0 1-17 0zM14 16a5 5 0 1 1 0-10 5 5 0 0 1 0 10z",
|
|
78
|
-
fill: "#C3C3C3"
|
|
79
|
-
})));
|
|
51
|
+
}, React.createElement("path", {
|
|
52
|
+
fill: vars.bdlGray50,
|
|
53
|
+
fillRule: "evenodd",
|
|
54
|
+
d: "M8 0a8 8 0 110 16A8 8 0 018 0zm0 9.5c-1.21 0-2.293.413-3.232 1.096-.56.407-.953.817-1.168 1.104a.5.5 0 00.8.6c.035-.047.114-.141.234-.267.205-.214.447-.428.722-.629.78-.567 1.665-.904 2.644-.904.979 0 1.865.337 2.644.904.275.2.517.415.722.63.12.125.199.219.234.266a.5.5 0 00.8-.6c-.215-.287-.607-.697-1.168-1.104C10.293 9.913 9.21 9.5 8 9.5zm0-6a2.5 2.5 0 000 5 2.5 2.5 0 000-5zm0 1a1.5 1.5 0 11-.001 3.001A1.5 1.5 0 018 4.5z"
|
|
55
|
+
}));
|
|
80
56
|
}
|
|
81
57
|
}]);
|
|
82
58
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/icons/avatars/UnknownUserAvatar.tsx"],"names":["React","
|
|
1
|
+
{"version":3,"sources":["../../../src/icons/avatars/UnknownUserAvatar.tsx"],"names":["React","AccessibleSVG","vars","ICON_CLASS","UnknownUserAvatar","props","className","height","title","width","bdlGray50","PureComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,aAAP,MAA0B,mBAA1B;AAGA,OAAO,KAAKC,IAAZ,MAAsB,wBAAtB;AAEA,IAAMC,UAAU,GAAG,qBAAnB;;IAEMC,iB;;;;;;;;;;;;;6BAOO;AAAA,wBACuC,KAAKC,KAD5C;AAAA,UACGC,SADH,eACGA,SADH;AAAA,UACcC,MADd,eACcA,MADd;AAAA,UACsBC,KADtB,eACsBA,KADtB;AAAA,UAC6BC,KAD7B,eAC6BA,KAD7B;AAEL,aACI,oBAAC,aAAD;AACI,QAAA,SAAS,YAAKN,UAAL,cAAmBG,SAAnB,CADb;AAEI,QAAA,MAAM,EAAEC,MAFZ;AAGI,QAAA,KAAK,EAAEC,KAHX;AAII,QAAA,OAAO,EAAC,WAJZ;AAKI,QAAA,KAAK,EAAEC;AALX,SAOI;AACI,QAAA,IAAI,EAAEP,IAAI,CAACQ,SADf;AAEI,QAAA,QAAQ,EAAC,SAFb;AAGI,QAAA,CAAC,EAAC;AAHN,QAPJ,CADJ;AAeH;;;;EAxB2BV,KAAK,CAACW,a;;gBAAhCP,iB,kBACoB;AAClBE,EAAAA,SAAS,EAAE,EADO;AAElBC,EAAAA,MAAM,EAAE,EAFU;AAGlBE,EAAAA,KAAK,EAAE;AAHW,C;;AA0B1B,eAAeL,iBAAf","sourcesContent":["import * as React from 'react';\n\nimport AccessibleSVG from '../accessible-svg';\n\nimport { TwoTonedIcon } from '../iconTypes';\nimport * as vars from '../../styles/variables';\n\nconst ICON_CLASS = 'unknown-user-avatar';\n\nclass UnknownUserAvatar extends React.PureComponent<TwoTonedIcon> {\n static defaultProps = {\n className: '',\n height: 28,\n width: 28,\n };\n\n render() {\n const { className, height, title, width } = this.props;\n return (\n <AccessibleSVG\n className={`${ICON_CLASS} ${className}`}\n height={height}\n title={title}\n viewBox=\"0 0 16 16\"\n width={width}\n >\n <path\n fill={vars.bdlGray50}\n fillRule=\"evenodd\"\n d=\"M8 0a8 8 0 110 16A8 8 0 018 0zm0 9.5c-1.21 0-2.293.413-3.232 1.096-.56.407-.953.817-1.168 1.104a.5.5 0 00.8.6c.035-.047.114-.141.234-.267.205-.214.447-.428.722-.629.78-.567 1.665-.904 2.644-.904.979 0 1.865.337 2.644.904.275.2.517.415.722.63.12.125.199.219.234.266a.5.5 0 00.8-.6c-.215-.287-.607-.697-1.168-1.104C10.293 9.913 9.21 9.5 8 9.5zm0-6a2.5 2.5 0 000 5 2.5 2.5 0 000-5zm0 1a1.5 1.5 0 11-.001 3.001A1.5 1.5 0 018 4.5z\"\n />\n </AccessibleSVG>\n );\n }\n}\n\nexport default UnknownUserAvatar;\n"],"file":"UnknownUserAvatar.js"}
|
|
@@ -24,6 +24,8 @@ import IconFileThreeD from '../../icon/content/FileThreeD32';
|
|
|
24
24
|
import IconFileVector from '../../icon/content/FileVector32';
|
|
25
25
|
import IconFileVideo from '../../icon/content/FileVideo32';
|
|
26
26
|
import IconFileWordDocument from '../../icon/content/FileWord32';
|
|
27
|
+
import IconFileXbd from '../../icon/content/FileXbd32';
|
|
28
|
+
import IconFileXdw from '../../icon/content/FileXdw32';
|
|
27
29
|
import IconFileZip from '../../icon/content/FileZip32';
|
|
28
30
|
var Components = {
|
|
29
31
|
IconFileAudio: IconFileAudio,
|
|
@@ -52,6 +54,8 @@ var Components = {
|
|
|
52
54
|
IconFileVector: IconFileVector,
|
|
53
55
|
IconFileVideo: IconFileVideo,
|
|
54
56
|
IconFileWordDocument: IconFileWordDocument,
|
|
57
|
+
IconFileXbd: IconFileXbd,
|
|
58
|
+
IconFileXdw: IconFileXdw,
|
|
55
59
|
IconFileZip: IconFileZip
|
|
56
60
|
};
|
|
57
61
|
|
|
@@ -66,7 +70,7 @@ var EXTENSIONS = {
|
|
|
66
70
|
IconFileAudio: mirror(['aac', 'aif', 'aifc', 'aiff', 'amr', 'au', 'flac', 'm3u', 'm4a', 'mid', 'mp3', 'ra', 'wav', 'wma', 'wpl']),
|
|
67
71
|
IconFileBoxNote: mirror(['boxnote']),
|
|
68
72
|
IconFileCode: mirror(['as', 'as3', 'asm', 'aspx', 'c', 'cpp', 'bat', 'c', 'cc', 'cmake', 'cs', 'css', 'cxx', 'db', 'diff', 'erb', 'groovy', 'h', 'haml', 'hh', 'htm', 'html', 'java', 'js', 'less', 'm', 'make', 'md', 'ml', 'mm', 'php', 'pl', 'plist', 'properties', 'py', 'rb', 'sass', 'scala', 'script', 'scm', 'sml', 'sql', 'sh', 'wabba', 'yaml']),
|
|
69
|
-
IconFileDocument: mirror(['
|
|
73
|
+
IconFileDocument: mirror(['dot', 'dotx', 'msg', 'odt', 'rtf', 'wpd', 'xhtml', 'xml', 'xsd', 'xsl']),
|
|
70
74
|
IconFileDwg: mirror(['dwg', 'dwgzip']),
|
|
71
75
|
IconFileExcelSpreadsheet: mirror(['xls', 'xlsx', 'xlsm', 'xlsb']),
|
|
72
76
|
IconFileGoogleDocs: mirror(['gdoc']),
|
|
@@ -83,11 +87,13 @@ var EXTENSIONS = {
|
|
|
83
87
|
IconFilePresentation: mirror(['odp', 'otp', 'pot', 'potx']),
|
|
84
88
|
IconFilePowerpointPresentation: mirror(['ppt', 'pptx', 'pptm']),
|
|
85
89
|
IconFilePhotoshop: mirror(['psd']),
|
|
86
|
-
IconFileSpreadsheet: mirror(['ods', 'xlt', 'xltx']),
|
|
90
|
+
IconFileSpreadsheet: mirror(['csv', 'ods', 'tsv', 'xlt', 'xltx']),
|
|
87
91
|
IconFileText: mirror(['txt', 'vi', 'vim', 'webdoc']),
|
|
88
92
|
IconFileThreeD: mirror(['3ds', 'dae', 'fbx', 'obj', 'ply', 'stl']),
|
|
89
93
|
IconFileVideo: mirror(['3g2', '3gp', 'avi', 'flv', 'm2v', 'm2ts', 'm4v', 'mkv', 'mov', 'mp4', 'mpeg', 'mpg', 'ogg', 'mts', 'qt', 'wmv']),
|
|
90
94
|
IconFileWordDocument: mirror(['docx', 'doc', 'docm']),
|
|
95
|
+
IconFileXbd: mirror(['xbd']),
|
|
96
|
+
IconFileXdw: mirror(['xdw']),
|
|
91
97
|
IconFileZip: mirror(['rar', 'tgz', 'zip'])
|
|
92
98
|
};
|
|
93
99
|
|
|
@@ -130,7 +130,7 @@ const EXTENSIONS = {
|
|
|
130
130
|
'wabba',
|
|
131
131
|
'yaml',
|
|
132
132
|
]),
|
|
133
|
-
IconFileDocument: mirror(['
|
|
133
|
+
IconFileDocument: mirror(['dot', 'dotx', 'msg', 'odt', 'rtf', 'wpd', 'xhtml', 'xml', 'xsd', 'xsl']),
|
|
134
134
|
IconFileDwg: mirror(['dwg', 'dwgzip']),
|
|
135
135
|
IconFileExcelSpreadsheet: mirror(['xls', 'xlsx', 'xlsm', 'xlsb']),
|
|
136
136
|
IconFileGoogleDocs: mirror(['gdoc']),
|
|
@@ -161,7 +161,7 @@ const EXTENSIONS = {
|
|
|
161
161
|
IconFilePresentation: mirror(['odp', 'otp', 'pot', 'potx']),
|
|
162
162
|
IconFilePowerpointPresentation: mirror(['ppt', 'pptx', 'pptm']),
|
|
163
163
|
IconFilePhotoshop: mirror(['psd']),
|
|
164
|
-
IconFileSpreadsheet: mirror(['ods', 'xlt', 'xltx']),
|
|
164
|
+
IconFileSpreadsheet: mirror(['csv', 'ods', 'tsv', 'xlt', 'xltx']),
|
|
165
165
|
IconFileText: mirror(['txt', 'vi', 'vim', 'webdoc']),
|
|
166
166
|
IconFileThreeD: mirror(['3ds', 'dae', 'fbx', 'obj', 'ply', 'stl']),
|
|
167
167
|
IconFileVideo: mirror([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/icons/file-icon/FileIcon.tsx"],"names":["React","IconFileAudio","IconFileBoxNote","IconFileCode","IconFileDefault","IconFileDwg","IconFileExcelSpreadsheet","IconFileGoogleDocs","IconFileGoogleSheets","IconFileGoogleSlides","IconFileIllustrator","IconFileImage","IconFileIndesign","IconFileKeynote","IconFileNumbers","IconFilePages","IconFilePDF","IconFilePhotoshop","IconFilePowerpointPresentation","IconFilePresentation","IconFileSpreadsheet","IconFileText","IconFileThreeD","IconFileVector","IconFileVideo","IconFileWordDocument","IconFileZip","Components","IconFileDocument","mirror","values","reduce","prev","cur","EXTENSIONS","getFileIconComponent","extension","extensionComponentName","Object","keys","filter","extensionComponent","toLowerCase","FileIcon","dimension","title","IconComponent"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAIA,OAAOC,aAAP,MAA0B,gCAA1B;AACA,OAAOC,eAAP,MAA4B,kCAA5B;AACA,OAAOC,YAAP,MAAyB,+BAAzB;AACA,OAAOC,eAAP,MAA4B,kCAA5B;AACA,OAAOC,WAAP,MAAwB,8BAAxB;AACA,OAAOC,wBAAP,MAAqC,gCAArC;AACA,OAAOC,kBAAP,MAA+B,+BAA/B;AACA,OAAOC,oBAAP,MAAiC,iCAAjC;AACA,OAAOC,oBAAP,MAAiC,iCAAjC;AACA,OAAOC,mBAAP,MAAgC,sCAAhC;AACA,OAAOC,aAAP,MAA0B,gCAA1B;AACA,OAAOC,gBAAP,MAA6B,mCAA7B;AACA,OAAOC,eAAP,MAA4B,kCAA5B;AACA,OAAOC,eAAP,MAA4B,kCAA5B;AACA,OAAOC,aAAP,MAA0B,gCAA1B;AACA,OAAOC,WAAP,MAAwB,8BAAxB;AACA,OAAOC,iBAAP,MAA8B,oCAA9B;AACA,OAAOC,8BAAP,MAA2C,qCAA3C;AACA,OAAOC,oBAAP,MAAiC,uCAAjC;AACA,OAAOC,mBAAP,MAAgC,sCAAhC;AACA,OAAOC,YAAP,MAAyB,+BAAzB;AACA,OAAOC,cAAP,MAA2B,iCAA3B;AACA,OAAOC,cAAP,MAA2B,iCAA3B;AACA,OAAOC,aAAP,MAA0B,gCAA1B;AACA,OAAOC,oBAAP,MAA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AAM,CAAC,CAAC,KAAD,EAAQ,KAAR,EAAe,KAAf,CAAD;AAvH0C,CAAjE;;AA0HA,IAAMM,oBAAoB,GAAG,SAAvBA,oBAAuB,GAAoB;AAAA,MAAnBC,SAAmB,uEAAP,EAAO;AAC7C,MAAMC,sBAAsB,GAAGC,MAAM,CAACC,IAAP,CAAYL,UAAZ,EAAwBM,MAAxB,CAC3B,UAAAC,kBAAkB;AAAA,WAAI,CAAC,CAACP,UAAU,CAACO,kBAAD,CAAV,CAA+BL,SAAS,CAACM,WAAV,EAA/B,CAAN;AAAA,GADS,EAE7B,CAF6B,CAA/B;AAGA,SAAOL,sBAAsB,IAAI,iBAAjC;AACH,CALD;;AAgBA,IAAMM,QAAQ,GAAG,SAAXA,QAAW,OAA8D;AAAA,4BAA3DC,SAA2D;AAAA,MAA3DA,SAA2D,+BAA/C,EAA+C;AAAA,4BAA3CR,SAA2C;AAAA,MAA3CA,SAA2C,+BAA/B,EAA+B;AAAA,MAA3BS,KAA2B,QAA3BA,KAA2B;AAC3E,MAAMC,aAAa,GAAGnB,UAAU,CAACQ,oBAAoB,CAACC,SAAD,CAArB,CAAhC;AACA,SAAO,oBAAC,aAAD;AAAe,IAAA,MAAM,EAAEQ,SAAvB;AAAkC,IAAA,KAAK,EAAEC,KAAzC;AAAgD,IAAA,KAAK,EAAED;AAAvD,IAAP;AACH,CAHD;;AAKA,eAAeD,QAAf","sourcesContent":["import * as React from 'react';\n\nimport { SVGProps } from '../../components/accessible-svg/AccessibleSVG';\n\nimport IconFileAudio from '../../icon/content/FileAudio32';\nimport IconFileBoxNote from '../../icon/content/FileBoxNote32';\nimport IconFileCode from '../../icon/content/FileCode32';\nimport IconFileDefault from '../../icon/content/FileDefault32';\nimport IconFileDwg from '../../icon/content/FileDwg32';\nimport IconFileExcelSpreadsheet from '../../icon/content/FileExcel32';\nimport IconFileGoogleDocs from '../../icon/content/FileDocs32';\nimport IconFileGoogleSheets from '../../icon/content/FileSheets32';\nimport IconFileGoogleSlides from '../../icon/content/FileSlides32';\nimport IconFileIllustrator from '../../icon/content/FileIllustrator32';\nimport IconFileImage from '../../icon/content/FileImage32';\nimport IconFileIndesign from '../../icon/content/FileIndesign32';\nimport IconFileKeynote from '../../icon/content/FileKeynote32';\nimport IconFileNumbers from '../../icon/content/FileNumbers32';\nimport IconFilePages from '../../icon/content/FilePages32';\nimport IconFilePDF from '../../icon/content/FilePdf32';\nimport IconFilePhotoshop from '../../icon/content/FilePhotoshop32';\nimport IconFilePowerpointPresentation from '../../icon/content/FilePowerpoint32';\nimport IconFilePresentation from '../../icon/content/FilePresentation32';\nimport IconFileSpreadsheet from '../../icon/content/FileSpreadsheet32';\nimport IconFileText from '../../icon/content/FileText32';\nimport IconFileThreeD from '../../icon/content/FileThreeD32';\nimport IconFileVector from '../../icon/content/FileVector32';\nimport IconFileVideo from '../../icon/content/FileVideo32';\nimport IconFileWordDocument from '../../icon/content/FileWord32';\nimport IconFileZip from '../../icon/content/FileZip32';\n\nconst Components: { [key: string]: (props: SVGProps) => JSX.Element } = {\n IconFileAudio,\n IconFileBoxNote,\n IconFileCode,\n IconFileDefault,\n IconFileDocument: IconFileText,\n IconFileDwg,\n IconFileExcelSpreadsheet,\n IconFileGoogleDocs,\n IconFileGoogleSheets,\n IconFileGoogleSlides,\n IconFileIllustrator,\n IconFileImage,\n IconFileIndesign,\n IconFileKeynote,\n IconFileNumbers,\n IconFilePages,\n IconFilePDF,\n IconFilePhotoshop,\n IconFilePowerpointPresentation,\n IconFilePresentation,\n IconFileSpreadsheet,\n IconFileText,\n IconFileThreeD,\n IconFileVector,\n IconFileVideo,\n IconFileWordDocument,\n IconFileZip,\n};\n\nconst mirror = (values: Array<string>) =>\n values.reduce((prev: { [key: string]: string }, cur: string) => {\n prev[cur] = cur;\n return prev;\n }, {});\n\nconst EXTENSIONS: { [key: string]: { [key: string]: string } } = {\n IconFileAudio: mirror([\n 'aac',\n 'aif',\n 'aifc',\n 'aiff',\n 'amr',\n 'au',\n 'flac',\n 'm3u',\n 'm4a',\n 'mid',\n 'mp3',\n 'ra',\n 'wav',\n 'wma',\n 'wpl',\n ]),\n IconFileBoxNote: mirror(['boxnote']),\n IconFileCode: mirror([\n 'as',\n 'as3',\n 'asm',\n 'aspx',\n 'c',\n 'cpp',\n 'bat',\n 'c',\n 'cc',\n 'cmake',\n 'cs',\n 'css',\n 'cxx',\n 'db',\n 'diff',\n 'erb',\n 'groovy',\n 'h',\n 'haml',\n 'hh',\n 'htm',\n 'html',\n 'java',\n 'js',\n 'less',\n 'm',\n 'make',\n 'md',\n 'ml',\n 'mm',\n 'php',\n 'pl',\n 'plist',\n 'properties',\n 'py',\n 'rb',\n 'sass',\n 'scala',\n 'script',\n 'scm',\n 'sml',\n 'sql',\n 'sh',\n 'wabba',\n 'yaml',\n ]),\n IconFileDocument: mirror(['csv', 'dot', 'dotx', 'msg', 'odt', 'rtf', 'tsv', 'wpd', 'xhtml', 'xml', 'xsd', 'xsl']),\n IconFileDwg: mirror(['dwg', 'dwgzip']),\n IconFileExcelSpreadsheet: mirror(['xls', 'xlsx', 'xlsm', 'xlsb']),\n IconFileGoogleDocs: mirror(['gdoc']),\n IconFileGoogleSheets: mirror(['gsheet']),\n IconFileGoogleSlides: mirror(['gslide', 'gslides']),\n IconFileVector: mirror(['eps']),\n IconFileIllustrator: mirror(['ai']),\n IconFileIndesign: mirror(['idml', 'indd', 'indt', 'inx']),\n IconFileKeynote: mirror(['key']),\n IconFileNumbers: mirror(['numbers']),\n IconFilePages: mirror(['pages']),\n IconFileImage: mirror([\n 'bmp',\n 'gif',\n 'gdraw',\n 'jpeg',\n 'jpg',\n 'png',\n 'ps',\n 'svs',\n 'svg',\n 'tif',\n 'tiff',\n 'heic',\n 'heif',\n ]),\n IconFilePDF: mirror(['pdf']),\n IconFilePresentation: mirror(['odp', 'otp', 'pot', 'potx']),\n IconFilePowerpointPresentation: mirror(['ppt', 'pptx', 'pptm']),\n IconFilePhotoshop: mirror(['psd']),\n IconFileSpreadsheet: mirror(['ods', 'xlt', 'xltx']),\n IconFileText: mirror(['txt', 'vi', 'vim', 'webdoc']),\n IconFileThreeD: mirror(['3ds', 'dae', 'fbx', 'obj', 'ply', 'stl']),\n IconFileVideo: mirror([\n '3g2',\n '3gp',\n 'avi',\n 'flv',\n 'm2v',\n 'm2ts',\n 'm4v',\n 'mkv',\n 'mov',\n 'mp4',\n 'mpeg',\n 'mpg',\n 'ogg',\n 'mts',\n 'qt',\n 'wmv',\n ]),\n IconFileWordDocument: mirror(['docx', 'doc', 'docm']),\n IconFileZip: mirror(['rar', 'tgz', 'zip']),\n};\n\nconst getFileIconComponent = (extension = '') => {\n const extensionComponentName = Object.keys(EXTENSIONS).filter(\n extensionComponent => !!EXTENSIONS[extensionComponent][extension.toLowerCase()],\n )[0];\n return extensionComponentName || 'IconFileDefault';\n};\n\ninterface FileIconProps {\n /** Dimension of the icon. */\n dimension?: number;\n /** Extension of file to display icon for. Defaults to generic icon */\n extension?: string;\n /** A text-only string describing the icon if it's not purely decorative for accessibility */\n title?: string | React.ReactElement<string>;\n}\n\nconst FileIcon = ({ dimension = 32, extension = '', title }: FileIconProps) => {\n const IconComponent = Components[getFileIconComponent(extension)];\n return <IconComponent height={dimension} title={title} width={dimension} />;\n};\n\nexport default FileIcon;\n"],"file":"FileIcon.js"}
|
|
1
|
+
{"version":3,"sources":["../../../src/icons/file-icon/FileIcon.tsx"],"names":["React","IconFileAudio","IconFileBoxNote","IconFileCode","IconFileDefault","IconFileDwg","IconFileExcelSpreadsheet","IconFileGoogleDocs","IconFileGoogleSheets","IconFileGoogleSlides","IconFileIllustrator","IconFileImage","IconFileIndesign","IconFileKeynote","IconFileNumbers","IconFilePages","IconFilePDF","IconFilePhotoshop","IconFilePowerpointPresentation","IconFilePresentation","IconFileSpreadsheet","IconFileText","IconFileThreeD","IconFileVector","IconFileVideo","IconFileWordDocument","IconFileXbd","IconFileXdw","IconFileZip","Components","IconFileDocument","mirror","values","reduce","prev","cur","EXTENSIONS","getFileIconComponent","extension","extensionComponentName","Object","keys","filter","extensionComponent","toLowerCase","FileIcon","dimension","title","IconComponent"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAIA,OAAOC,aAAP,MAA0B,gCAA1B;AACA,OAAOC,eAAP,MAA4B,kCAA5B;AACA,OAAOC,YAAP,MAAyB,+BAAzB;AACA,OAAOC,eAAP,MAA4B,kCAA5B;AACA,OAAOC,WAAP,MAAwB,8BAAxB;AACA,OAAOC,wBAAP,MAAqC,gCAArC;AACA,OAAOC,kBAAP,MAA+B,+BAA/B;AACA,OAAOC,oBAAP,MAAiC,iCAAjC;AACA,OAAOC,oBAAP,MAAiC,iCAAjC;AACA,OAAOC,mBAAP,MAAgC,sCAAhC;AACA,OAAOC,aAAP,MAA0B,gCAA1B;AACA,OAAOC,gBAAP,MAA6B,mCAA7B;AACA,OAAOC,eAAP,MAA4B,kCAA5B;AACA,OAAOC,eAAP,MAA4B,kCAA5B;AACA,OAAOC,aAAP,MAA0B,gCAA1B;AACA,OAAOC,WAAP,MAAwB,8BAAxB;AACA,OAAOC,iBAAP,MAA8B,oCAA9B;AACA,OAAOC,8BAAP,MAA2C,qCAA3C;AACA,OAAOC,oBAAP,MAAiC,uCAAjC;AACA,OAAOC,mBAAP,MAAgC,sCAAhC;AACA,OAAOC,YAAP,MAAyB,+BAAzB;AACA,OAAOC,cAAP,MAA2B,iCAA3B;AACA,OAAOC,cAAP,MAA2B,iCAA3B;AACA,OAAOC,aAAP,MAA0B,gCAA1B;AACA,OAAOC,oBAAP,MAAiC,+BAAjC;AACA,OAAOC,WAAP,MAAwB,8BAAxB;AACA,OAAOC,WAAP,MAAwB,8BAAxB;AACA,OAAOC,WAAP,MAAwB,8BAAxB;AAEA,IAAMC,UAA+D,GAAG;AACpE5B,EAAAA,aAAa,EAAbA,aADoE;AAEpEC,EAAAA,eAAe,EAAfA,eAFoE;AAGpEC,EAAAA,YAAY,EAAZA,YAHoE;AAIpEC,EAAAA,eAAe,EA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,WAAW,EAAEG,MAAM,CAAC,CAAC,KAAD,EAAQ,KAAR,EAAe,KAAf,CAAD;AAzH0C,CAAjE;;AA4HA,IAAMM,oBAAoB,GAAG,SAAvBA,oBAAuB,GAAoB;AAAA,MAAnBC,SAAmB,uEAAP,EAAO;AAC7C,MAAMC,sBAAsB,GAAGC,MAAM,CAACC,IAAP,CAAYL,UAAZ,EAAwBM,MAAxB,CAC3B,UAAAC,kBAAkB;AAAA,WAAI,CAAC,CAACP,UAAU,CAACO,kBAAD,CAAV,CAA+BL,SAAS,CAACM,WAAV,EAA/B,CAAN;AAAA,GADS,EAE7B,CAF6B,CAA/B;AAGA,SAAOL,sBAAsB,IAAI,iBAAjC;AACH,CALD;;AAgBA,IAAMM,QAAQ,GAAG,SAAXA,QAAW,OAA8D;AAAA,4BAA3DC,SAA2D;AAAA,MAA3DA,SAA2D,+BAA/C,EAA+C;AAAA,4BAA3CR,SAA2C;AAAA,MAA3CA,SAA2C,+BAA/B,EAA+B;AAAA,MAA3BS,KAA2B,QAA3BA,KAA2B;AAC3E,MAAMC,aAAa,GAAGnB,UAAU,CAACQ,oBAAoB,CAACC,SAAD,CAArB,CAAhC;AACA,SAAO,oBAAC,aAAD;AAAe,IAAA,MAAM,EAAEQ,SAAvB;AAAkC,IAAA,KAAK,EAAEC,KAAzC;AAAgD,IAAA,KAAK,EAAED;AAAvD,IAAP;AACH,CAHD;;AAKA,eAAeD,QAAf","sourcesContent":["import * as React from 'react';\n\nimport { SVGProps } from '../../components/accessible-svg/AccessibleSVG';\n\nimport IconFileAudio from '../../icon/content/FileAudio32';\nimport IconFileBoxNote from '../../icon/content/FileBoxNote32';\nimport IconFileCode from '../../icon/content/FileCode32';\nimport IconFileDefault from '../../icon/content/FileDefault32';\nimport IconFileDwg from '../../icon/content/FileDwg32';\nimport IconFileExcelSpreadsheet from '../../icon/content/FileExcel32';\nimport IconFileGoogleDocs from '../../icon/content/FileDocs32';\nimport IconFileGoogleSheets from '../../icon/content/FileSheets32';\nimport IconFileGoogleSlides from '../../icon/content/FileSlides32';\nimport IconFileIllustrator from '../../icon/content/FileIllustrator32';\nimport IconFileImage from '../../icon/content/FileImage32';\nimport IconFileIndesign from '../../icon/content/FileIndesign32';\nimport IconFileKeynote from '../../icon/content/FileKeynote32';\nimport IconFileNumbers from '../../icon/content/FileNumbers32';\nimport IconFilePages from '../../icon/content/FilePages32';\nimport IconFilePDF from '../../icon/content/FilePdf32';\nimport IconFilePhotoshop from '../../icon/content/FilePhotoshop32';\nimport IconFilePowerpointPresentation from '../../icon/content/FilePowerpoint32';\nimport IconFilePresentation from '../../icon/content/FilePresentation32';\nimport IconFileSpreadsheet from '../../icon/content/FileSpreadsheet32';\nimport IconFileText from '../../icon/content/FileText32';\nimport IconFileThreeD from '../../icon/content/FileThreeD32';\nimport IconFileVector from '../../icon/content/FileVector32';\nimport IconFileVideo from '../../icon/content/FileVideo32';\nimport IconFileWordDocument from '../../icon/content/FileWord32';\nimport IconFileXbd from '../../icon/content/FileXbd32';\nimport IconFileXdw from '../../icon/content/FileXdw32';\nimport IconFileZip from '../../icon/content/FileZip32';\n\nconst Components: { [key: string]: (props: SVGProps) => JSX.Element } = {\n IconFileAudio,\n IconFileBoxNote,\n IconFileCode,\n IconFileDefault,\n IconFileDocument: IconFileText,\n IconFileDwg,\n IconFileExcelSpreadsheet,\n IconFileGoogleDocs,\n IconFileGoogleSheets,\n IconFileGoogleSlides,\n IconFileIllustrator,\n IconFileImage,\n IconFileIndesign,\n IconFileKeynote,\n IconFileNumbers,\n IconFilePages,\n IconFilePDF,\n IconFilePhotoshop,\n IconFilePowerpointPresentation,\n IconFilePresentation,\n IconFileSpreadsheet,\n IconFileText,\n IconFileThreeD,\n IconFileVector,\n IconFileVideo,\n IconFileWordDocument,\n IconFileXbd,\n IconFileXdw,\n IconFileZip,\n};\n\nconst mirror = (values: Array<string>) =>\n values.reduce((prev: { [key: string]: string }, cur: string) => {\n prev[cur] = cur;\n return prev;\n }, {});\n\nconst EXTENSIONS: { [key: string]: { [key: string]: string } } = {\n IconFileAudio: mirror([\n 'aac',\n 'aif',\n 'aifc',\n 'aiff',\n 'amr',\n 'au',\n 'flac',\n 'm3u',\n 'm4a',\n 'mid',\n 'mp3',\n 'ra',\n 'wav',\n 'wma',\n 'wpl',\n ]),\n IconFileBoxNote: mirror(['boxnote']),\n IconFileCode: mirror([\n 'as',\n 'as3',\n 'asm',\n 'aspx',\n 'c',\n 'cpp',\n 'bat',\n 'c',\n 'cc',\n 'cmake',\n 'cs',\n 'css',\n 'cxx',\n 'db',\n 'diff',\n 'erb',\n 'groovy',\n 'h',\n 'haml',\n 'hh',\n 'htm',\n 'html',\n 'java',\n 'js',\n 'less',\n 'm',\n 'make',\n 'md',\n 'ml',\n 'mm',\n 'php',\n 'pl',\n 'plist',\n 'properties',\n 'py',\n 'rb',\n 'sass',\n 'scala',\n 'script',\n 'scm',\n 'sml',\n 'sql',\n 'sh',\n 'wabba',\n 'yaml',\n ]),\n IconFileDocument: mirror(['dot', 'dotx', 'msg', 'odt', 'rtf', 'wpd', 'xhtml', 'xml', 'xsd', 'xsl']),\n IconFileDwg: mirror(['dwg', 'dwgzip']),\n IconFileExcelSpreadsheet: mirror(['xls', 'xlsx', 'xlsm', 'xlsb']),\n IconFileGoogleDocs: mirror(['gdoc']),\n IconFileGoogleSheets: mirror(['gsheet']),\n IconFileGoogleSlides: mirror(['gslide', 'gslides']),\n IconFileVector: mirror(['eps']),\n IconFileIllustrator: mirror(['ai']),\n IconFileIndesign: mirror(['idml', 'indd', 'indt', 'inx']),\n IconFileKeynote: mirror(['key']),\n IconFileNumbers: mirror(['numbers']),\n IconFilePages: mirror(['pages']),\n IconFileImage: mirror([\n 'bmp',\n 'gif',\n 'gdraw',\n 'jpeg',\n 'jpg',\n 'png',\n 'ps',\n 'svs',\n 'svg',\n 'tif',\n 'tiff',\n 'heic',\n 'heif',\n ]),\n IconFilePDF: mirror(['pdf']),\n IconFilePresentation: mirror(['odp', 'otp', 'pot', 'potx']),\n IconFilePowerpointPresentation: mirror(['ppt', 'pptx', 'pptm']),\n IconFilePhotoshop: mirror(['psd']),\n IconFileSpreadsheet: mirror(['csv', 'ods', 'tsv', 'xlt', 'xltx']),\n IconFileText: mirror(['txt', 'vi', 'vim', 'webdoc']),\n IconFileThreeD: mirror(['3ds', 'dae', 'fbx', 'obj', 'ply', 'stl']),\n IconFileVideo: mirror([\n '3g2',\n '3gp',\n 'avi',\n 'flv',\n 'm2v',\n 'm2ts',\n 'm4v',\n 'mkv',\n 'mov',\n 'mp4',\n 'mpeg',\n 'mpg',\n 'ogg',\n 'mts',\n 'qt',\n 'wmv',\n ]),\n IconFileWordDocument: mirror(['docx', 'doc', 'docm']),\n IconFileXbd: mirror(['xbd']),\n IconFileXdw: mirror(['xdw']),\n IconFileZip: mirror(['rar', 'tgz', 'zip']),\n};\n\nconst getFileIconComponent = (extension = '') => {\n const extensionComponentName = Object.keys(EXTENSIONS).filter(\n extensionComponent => !!EXTENSIONS[extensionComponent][extension.toLowerCase()],\n )[0];\n return extensionComponentName || 'IconFileDefault';\n};\n\ninterface FileIconProps {\n /** Dimension of the icon. */\n dimension?: number;\n /** Extension of file to display icon for. Defaults to generic icon */\n extension?: string;\n /** A text-only string describing the icon if it's not purely decorative for accessibility */\n title?: string | React.ReactElement<string>;\n}\n\nconst FileIcon = ({ dimension = 32, extension = '', title }: FileIconProps) => {\n const IconComponent = Components[getFileIconComponent(extension)];\n return <IconComponent height={dimension} title={title} width={dimension} />;\n};\n\nexport default FileIcon;\n"],"file":"FileIcon.js"}
|
|
@@ -4,7 +4,7 @@ import { bdlGray40 } from '../../styles/variables';
|
|
|
4
4
|
|
|
5
5
|
var IconSearch = function IconSearch(_ref) {
|
|
6
6
|
var _ref$className = _ref.className,
|
|
7
|
-
className = _ref$className === void 0 ? '
|
|
7
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
8
8
|
_ref$color = _ref.color,
|
|
9
9
|
color = _ref$color === void 0 ? bdlGray40 : _ref$color,
|
|
10
10
|
_ref$height = _ref.height,
|
|
@@ -6,7 +6,7 @@ import { bdlGray40 } from '../../styles/variables';
|
|
|
6
6
|
|
|
7
7
|
import type { Icon } from '../flowTypes';
|
|
8
8
|
|
|
9
|
-
const IconSearch = ({ className = '
|
|
9
|
+
const IconSearch = ({ className = '', color = bdlGray40, height = 14, title, width = 14 }: Icon) => (
|
|
10
10
|
<AccessibleSVG
|
|
11
11
|
className={`icon-search ${className}`}
|
|
12
12
|
height={height}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/icons/general/IconSearch.tsx"],"names":["React","AccessibleSVG","bdlGray40","IconSearch","className","color","height","title","width"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,SAASC,SAAT,QAA0B,wBAA1B;;AAIA,IAAMC,UAAU,GAAG,SAAbA,UAAa;AAAA,4BAAGC,SAAH;AAAA,MAAGA,SAAH,+BAAe,
|
|
1
|
+
{"version":3,"sources":["../../../src/icons/general/IconSearch.tsx"],"names":["React","AccessibleSVG","bdlGray40","IconSearch","className","color","height","title","width"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,SAASC,SAAT,QAA0B,wBAA1B;;AAIA,IAAMC,UAAU,GAAG,SAAbA,UAAa;AAAA,4BAAGC,SAAH;AAAA,MAAGA,SAAH,+BAAe,EAAf;AAAA,wBAAmBC,KAAnB;AAAA,MAAmBA,KAAnB,2BAA2BH,SAA3B;AAAA,yBAAsCI,MAAtC;AAAA,MAAsCA,MAAtC,4BAA+C,EAA/C;AAAA,MAAmDC,KAAnD,QAAmDA,KAAnD;AAAA,wBAA0DC,KAA1D;AAAA,MAA0DA,KAA1D,2BAAkE,EAAlE;AAAA,SACf,oBAAC,aAAD;AACI,IAAA,SAAS,wBAAiBJ,SAAjB,CADb;AAEI,IAAA,MAAM,EAAEE,MAFZ;AAGI,IAAA,KAAK,EAAEC,KAHX;AAII,IAAA,OAAO,EAAC,WAJZ;AAKI,IAAA,KAAK,EAAEC;AALX,KAOI;AACI,IAAA,SAAS,EAAC,YADd;AAEI,IAAA,CAAC,EAAC,kQAFN;AAGI,IAAA,IAAI,EAAEH,KAHV;AAII,IAAA,QAAQ,EAAC;AAJb,IAPJ,CADe;AAAA,CAAnB;;AAiBA,eAAeF,UAAf","sourcesContent":["import * as React from 'react';\n\nimport AccessibleSVG from '../accessible-svg';\nimport { bdlGray40 } from '../../styles/variables';\n\nimport { Icon } from '../iconTypes';\n\nconst IconSearch = ({ className = '', color = bdlGray40, height = 14, title, width = 14 }: Icon) => (\n <AccessibleSVG\n className={`icon-search ${className}`}\n height={height}\n title={title}\n viewBox=\"0 0 14 14\"\n width={width}\n >\n <path\n className=\"fill-color\"\n d=\"M13.7,12.1L11.6,10l-1.1-0.2c0.9-1,1.4-2.4,1.4-3.9c0-3.3-2.7-6-6-6C2.7,0,0,2.7,0,6s2.7,6,6,6 c1.5,0,2.9-0.6,4-1.5l0.2,1l2.1,2.1c0.4,0.4,1,0.4,1.4,0l0,0C14.1,13.1,14.1,12.5,13.7,12.1z M6,10.4c-2.5,0-4.5-2-4.5-4.5 s2-4.5,4.5-4.5s4.5,2,4.5,4.5S8.4,10.4,6,10.4z\"\n fill={color}\n fillRule=\"evenodd\"\n />\n </AccessibleSVG>\n);\n\nexport default IconSearch;\n"],"file":"IconSearch.js"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import AccessibleSVG from '../accessible-svg';
|
|
3
|
+
import { bdlGray40 } from '../../styles/variables';
|
|
4
|
+
|
|
5
|
+
var IconSearchJuicy = function IconSearchJuicy(_ref) {
|
|
6
|
+
var _ref$className = _ref.className,
|
|
7
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
8
|
+
_ref$color = _ref.color,
|
|
9
|
+
color = _ref$color === void 0 ? bdlGray40 : _ref$color,
|
|
10
|
+
_ref$height = _ref.height,
|
|
11
|
+
height = _ref$height === void 0 ? 14 : _ref$height,
|
|
12
|
+
title = _ref.title,
|
|
13
|
+
_ref$width = _ref.width,
|
|
14
|
+
width = _ref$width === void 0 ? 14 : _ref$width;
|
|
15
|
+
return React.createElement(AccessibleSVG, {
|
|
16
|
+
className: "icon-search-juicy ".concat(className),
|
|
17
|
+
height: height,
|
|
18
|
+
title: title,
|
|
19
|
+
viewBox: "0 0 24 24",
|
|
20
|
+
width: width
|
|
21
|
+
}, React.createElement("path", {
|
|
22
|
+
className: "fill-color",
|
|
23
|
+
d: "M10.491 1.5a8.99 8.99 0 0 1 7.359 14.157l4.21 4.21a1.5 1.5 0 0 1 0 2.123l-.07.07a1.5 1.5 0 0 1-2.122 0l-4.211-4.21A8.99 8.99 0 1 1 10.491 1.5zm0 2.997a5.994 5.994 0 1 0 0 11.988 5.994 5.994 0 0 0 0-11.988z",
|
|
24
|
+
fill: color,
|
|
25
|
+
fillRule: "evenodd"
|
|
26
|
+
}));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default IconSearchJuicy;
|
|
30
|
+
//# sourceMappingURL=IconSearchJuicy.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
import AccessibleSVG from '../accessible-svg';
|
|
5
|
+
import { bdlGray40 } from '../../styles/variables';
|
|
6
|
+
|
|
7
|
+
import type { Icon } from '../flowTypes';
|
|
8
|
+
|
|
9
|
+
const IconSearchJuicy = ({ className = '', color = bdlGray40, height = 14, title, width = 14 }: Icon) => (
|
|
10
|
+
<AccessibleSVG
|
|
11
|
+
className={`icon-search-juicy ${className}`}
|
|
12
|
+
height={height}
|
|
13
|
+
title={title}
|
|
14
|
+
viewBox="0 0 24 24"
|
|
15
|
+
width={width}
|
|
16
|
+
>
|
|
17
|
+
<path
|
|
18
|
+
className="fill-color"
|
|
19
|
+
d="M10.491 1.5a8.99 8.99 0 0 1 7.359 14.157l4.21 4.21a1.5 1.5 0 0 1 0 2.123l-.07.07a1.5 1.5 0 0 1-2.122 0l-4.211-4.21A8.99 8.99 0 1 1 10.491 1.5zm0 2.997a5.994 5.994 0 1 0 0 11.988 5.994 5.994 0 0 0 0-11.988z"
|
|
20
|
+
fill={color}
|
|
21
|
+
fillRule="evenodd"
|
|
22
|
+
/>
|
|
23
|
+
</AccessibleSVG>
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
export default IconSearchJuicy;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/icons/general/IconSearchJuicy.tsx"],"names":["React","AccessibleSVG","bdlGray40","IconSearchJuicy","className","color","height","title","width"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AAEA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,SAASC,SAAT,QAA0B,wBAA1B;;AAIA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB;AAAA,4BAAGC,SAAH;AAAA,MAAGA,SAAH,+BAAe,EAAf;AAAA,wBAAmBC,KAAnB;AAAA,MAAmBA,KAAnB,2BAA2BH,SAA3B;AAAA,yBAAsCI,MAAtC;AAAA,MAAsCA,MAAtC,4BAA+C,EAA/C;AAAA,MAAmDC,KAAnD,QAAmDA,KAAnD;AAAA,wBAA0DC,KAA1D;AAAA,MAA0DA,KAA1D,2BAAkE,EAAlE;AAAA,SACpB,oBAAC,aAAD;AACI,IAAA,SAAS,8BAAuBJ,SAAvB,CADb;AAEI,IAAA,MAAM,EAAEE,MAFZ;AAGI,IAAA,KAAK,EAAEC,KAHX;AAII,IAAA,OAAO,EAAC,WAJZ;AAKI,IAAA,KAAK,EAAEC;AALX,KAOI;AACI,IAAA,SAAS,EAAC,YADd;AAEI,IAAA,CAAC,EAAC,+MAFN;AAGI,IAAA,IAAI,EAAEH,KAHV;AAII,IAAA,QAAQ,EAAC;AAJb,IAPJ,CADoB;AAAA,CAAxB;;AAiBA,eAAeF,eAAf","sourcesContent":["import * as React from 'react';\n\nimport AccessibleSVG from '../accessible-svg';\nimport { bdlGray40 } from '../../styles/variables';\n\nimport { Icon } from '../iconTypes';\n\nconst IconSearchJuicy = ({ className = '', color = bdlGray40, height = 14, title, width = 14 }: Icon) => (\n <AccessibleSVG\n className={`icon-search-juicy ${className}`}\n height={height}\n title={title}\n viewBox=\"0 0 24 24\"\n width={width}\n >\n <path\n className=\"fill-color\"\n d=\"M10.491 1.5a8.99 8.99 0 0 1 7.359 14.157l4.21 4.21a1.5 1.5 0 0 1 0 2.123l-.07.07a1.5 1.5 0 0 1-2.122 0l-4.211-4.21A8.99 8.99 0 1 1 10.491 1.5zm0 2.997a5.994 5.994 0 1 0 0 11.988 5.994 5.994 0 0 0 0-11.988z\"\n fill={color}\n fillRule=\"evenodd\"\n />\n </AccessibleSVG>\n);\n\nexport default IconSearchJuicy;\n"],"file":"IconSearchJuicy.js"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2
|
+
|
|
3
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4
|
+
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6
|
+
|
|
7
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8
|
+
|
|
9
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
10
|
+
|
|
11
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12
|
+
|
|
13
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
14
|
+
|
|
15
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
16
|
+
|
|
17
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
18
|
+
|
|
19
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
+
|
|
21
|
+
import * as React from 'react';
|
|
22
|
+
import uniqueId from 'lodash/uniqueId';
|
|
23
|
+
import AccessibleSVG from '../accessible-svg';
|
|
24
|
+
var ICON_CLASS = 'icon-google';
|
|
25
|
+
|
|
26
|
+
var IconGoogle =
|
|
27
|
+
/*#__PURE__*/
|
|
28
|
+
function (_React$Component) {
|
|
29
|
+
_inherits(IconGoogle, _React$Component);
|
|
30
|
+
|
|
31
|
+
function IconGoogle() {
|
|
32
|
+
var _getPrototypeOf2;
|
|
33
|
+
|
|
34
|
+
var _this;
|
|
35
|
+
|
|
36
|
+
_classCallCheck(this, IconGoogle);
|
|
37
|
+
|
|
38
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
39
|
+
args[_key] = arguments[_key];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(IconGoogle)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
43
|
+
|
|
44
|
+
_defineProperty(_assertThisInitialized(_this), "idPrefix", "".concat(uniqueId(ICON_CLASS), "-"));
|
|
45
|
+
|
|
46
|
+
return _this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
_createClass(IconGoogle, [{
|
|
50
|
+
key: "render",
|
|
51
|
+
value: function render() {
|
|
52
|
+
var _this$props = this.props,
|
|
53
|
+
className = _this$props.className,
|
|
54
|
+
height = _this$props.height,
|
|
55
|
+
title = _this$props.title,
|
|
56
|
+
width = _this$props.width;
|
|
57
|
+
return React.createElement(AccessibleSVG, {
|
|
58
|
+
className: "".concat(ICON_CLASS, " ").concat(className),
|
|
59
|
+
height: height,
|
|
60
|
+
title: title,
|
|
61
|
+
viewBox: "0 0 14 14",
|
|
62
|
+
width: width
|
|
63
|
+
}, React.createElement("path", {
|
|
64
|
+
d: "M13.3684 7.12062C13.3684 6.59531 13.3258 6.21198 13.2336 5.81445H7.23511V8.18542H10.7561C10.6851 8.77463 10.3018 9.66198 9.44991 10.2582L9.43797 10.3376L11.3346 11.8069L11.466 11.82C12.6727 10.7055 13.3684 9.06567 13.3684 7.12062Z",
|
|
65
|
+
fill: "#4285F4"
|
|
66
|
+
}), React.createElement("path", {
|
|
67
|
+
d: "M7.23502 13.3675C8.95999 13.3675 10.4081 12.7996 11.4659 11.82L9.44982 10.2582C8.91032 10.6344 8.18623 10.8971 7.23502 10.8971C5.54552 10.8971 4.11158 9.78262 3.60042 8.24219L3.52549 8.24855L1.55338 9.77479L1.52759 9.84648C2.5782 11.9335 4.73623 13.3675 7.23502 13.3675Z",
|
|
68
|
+
fill: "#34A853"
|
|
69
|
+
}), React.createElement("path", {
|
|
70
|
+
d: "M3.60049 8.24224C3.46561 7.84472 3.38756 7.41876 3.38756 6.97866C3.38756 6.53851 3.46561 6.1126 3.59339 5.71507L3.58982 5.63041L1.59299 4.07965L1.52766 4.11073C1.09465 4.97679 0.846191 5.94934 0.846191 6.97866C0.846191 8.00798 1.09465 8.98048 1.52766 9.84654L3.60049 8.24224Z",
|
|
71
|
+
fill: "#FBBC05"
|
|
72
|
+
}), React.createElement("path", {
|
|
73
|
+
d: "M7.23502 3.06008C8.43469 3.06008 9.24394 3.57829 9.70537 4.01134L11.5085 2.25083C10.4011 1.22152 8.96 0.589722 7.23502 0.589722C4.73623 0.589722 2.5782 2.02366 1.52759 4.11069L3.59332 5.71503C4.11158 4.1746 5.54552 3.06008 7.23502 3.06008Z",
|
|
74
|
+
fill: "#EB4335"
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
}]);
|
|
78
|
+
|
|
79
|
+
return IconGoogle;
|
|
80
|
+
}(React.Component);
|
|
81
|
+
|
|
82
|
+
_defineProperty(IconGoogle, "defaultProps", {
|
|
83
|
+
className: '',
|
|
84
|
+
height: 30,
|
|
85
|
+
width: 30
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export default IconGoogle;
|
|
89
|
+
//# sourceMappingURL=IconGoogle.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import uniqueId from 'lodash/uniqueId';
|
|
4
|
+
|
|
5
|
+
import AccessibleSVG from '../accessible-svg';
|
|
6
|
+
|
|
7
|
+
const ICON_CLASS = 'icon-google';
|
|
8
|
+
|
|
9
|
+
type Props = {
|
|
10
|
+
className: string,
|
|
11
|
+
height?: number,
|
|
12
|
+
/** A text-only string describing the icon if it's not purely decorative for accessibility */
|
|
13
|
+
title?: string | React.Element<any>,
|
|
14
|
+
width?: number,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
class IconGoogleDefault extends React.Component<Props> {
|
|
18
|
+
static defaultProps = {
|
|
19
|
+
className: '',
|
|
20
|
+
height: 30,
|
|
21
|
+
width: 30,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
idPrefix = `${uniqueId(ICON_CLASS)}-`;
|
|
25
|
+
|
|
26
|
+
render() {
|
|
27
|
+
const { className, height, title, width } = this.props;
|
|
28
|
+
return (
|
|
29
|
+
<AccessibleSVG
|
|
30
|
+
className={`${ICON_CLASS} ${className}`}
|
|
31
|
+
height={height}
|
|
32
|
+
title={title}
|
|
33
|
+
viewBox="0 0 14 14"
|
|
34
|
+
width={width}
|
|
35
|
+
>
|
|
36
|
+
<path
|
|
37
|
+
d="M13.3684 7.12062C13.3684 6.59531 13.3258 6.21198 13.2336 5.81445H7.23511V8.18542H10.7561C10.6851 8.77463 10.3018 9.66198 9.44991 10.2582L9.43797 10.3376L11.3346 11.8069L11.466 11.82C12.6727 10.7055 13.3684 9.06567 13.3684 7.12062Z"
|
|
38
|
+
fill="#4285F4"
|
|
39
|
+
/>
|
|
40
|
+
<path
|
|
41
|
+
d="M7.23502 13.3675C8.95999 13.3675 10.4081 12.7996 11.4659 11.82L9.44982 10.2582C8.91032 10.6344 8.18623 10.8971 7.23502 10.8971C5.54552 10.8971 4.11158 9.78262 3.60042 8.24219L3.52549 8.24855L1.55338 9.77479L1.52759 9.84648C2.5782 11.9335 4.73623 13.3675 7.23502 13.3675Z"
|
|
42
|
+
fill="#34A853"
|
|
43
|
+
/>
|
|
44
|
+
<path
|
|
45
|
+
d="M3.60049 8.24224C3.46561 7.84472 3.38756 7.41876 3.38756 6.97866C3.38756 6.53851 3.46561 6.1126 3.59339 5.71507L3.58982 5.63041L1.59299 4.07965L1.52766 4.11073C1.09465 4.97679 0.846191 5.94934 0.846191 6.97866C0.846191 8.00798 1.09465 8.98048 1.52766 9.84654L3.60049 8.24224Z"
|
|
46
|
+
fill="#FBBC05"
|
|
47
|
+
/>
|
|
48
|
+
<path
|
|
49
|
+
d="M7.23502 3.06008C8.43469 3.06008 9.24394 3.57829 9.70537 4.01134L11.5085 2.25083C10.4011 1.22152 8.96 0.589722 7.23502 0.589722C4.73623 0.589722 2.5782 2.02366 1.52759 4.11069L3.59332 5.71503C4.11158 4.1746 5.54552 3.06008 7.23502 3.06008Z"
|
|
50
|
+
fill="#EB4335"
|
|
51
|
+
/>
|
|
52
|
+
</AccessibleSVG>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export default IconGoogleDefault;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/icons/google-docs/IconGoogle.tsx"],"names":["React","uniqueId","AccessibleSVG","ICON_CLASS","IconGoogle","props","className","height","title","width","Component"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,QAAP,MAAqB,iBAArB;AAEA,OAAOC,aAAP,MAA0B,mBAA1B;AAIA,IAAMC,UAAU,GAAG,aAAnB;;IAEMC,U;;;;;;;;;;;;;;;;;;yEAOYH,QAAQ,CAACE,UAAD,C;;;;;;;6BAEb;AAAA,wBACuC,KAAKE,KAD5C;AAAA,UACGC,SADH,eACGA,SADH;AAAA,UACcC,MADd,eACcA,MADd;AAAA,UACsBC,KADtB,eACsBA,KADtB;AAAA,UAC6BC,KAD7B,eAC6BA,KAD7B;AAEL,aACI,oBAAC,aAAD;AACI,QAAA,SAAS,YAAKN,UAAL,cAAmBG,SAAnB,CADb;AAEI,QAAA,MAAM,EAAEC,MAFZ;AAGI,QAAA,KAAK,EAAEC,KAHX;AAII,QAAA,OAAO,EAAC,WAJZ;AAKI,QAAA,KAAK,EAAEC;AALX,SAOI;AACI,QAAA,CAAC,EAAC,wOADN;AAEI,QAAA,IAAI,EAAC;AAFT,QAPJ,EAWI;AACI,QAAA,CAAC,EAAC,gRADN;AAEI,QAAA,IAAI,EAAC;AAFT,QAXJ,EAeI;AACI,QAAA,CAAC,EAAC,qRADN;AAEI,QAAA,IAAI,EAAC;AAFT,QAfJ,EAmBI;AACI,QAAA,CAAC,EAAC,iPADN;AAEI,QAAA,IAAI,EAAC;AAFT,QAnBJ,CADJ;AA0BH;;;;EArCoBT,KAAK,CAACU,S;;gBAAzBN,U,kBACoB;AAClBE,EAAAA,SAAS,EAAE,EADO;AAElBC,EAAAA,MAAM,EAAE,EAFU;AAGlBE,EAAAA,KAAK,EAAE;AAHW,C;;AAuC1B,eAAeL,UAAf","sourcesContent":["import * as React from 'react';\nimport uniqueId from 'lodash/uniqueId';\n\nimport AccessibleSVG from '../accessible-svg';\n\nimport { TwoTonedIcon } from '../iconTypes';\n\nconst ICON_CLASS = 'icon-google';\n\nclass IconGoogle extends React.Component<TwoTonedIcon> {\n static defaultProps = {\n className: '',\n height: 30,\n width: 30,\n };\n\n idPrefix = `${uniqueId(ICON_CLASS)}-`;\n\n render() {\n const { className, height, title, width } = this.props;\n return (\n <AccessibleSVG\n className={`${ICON_CLASS} ${className}`}\n height={height}\n title={title}\n viewBox=\"0 0 14 14\"\n width={width}\n >\n <path\n d=\"M13.3684 7.12062C13.3684 6.59531 13.3258 6.21198 13.2336 5.81445H7.23511V8.18542H10.7561C10.6851 8.77463 10.3018 9.66198 9.44991 10.2582L9.43797 10.3376L11.3346 11.8069L11.466 11.82C12.6727 10.7055 13.3684 9.06567 13.3684 7.12062Z\"\n fill=\"#4285F4\"\n />\n <path\n d=\"M7.23502 13.3675C8.95999 13.3675 10.4081 12.7996 11.4659 11.82L9.44982 10.2582C8.91032 10.6344 8.18623 10.8971 7.23502 10.8971C5.54552 10.8971 4.11158 9.78262 3.60042 8.24219L3.52549 8.24855L1.55338 9.77479L1.52759 9.84648C2.5782 11.9335 4.73623 13.3675 7.23502 13.3675Z\"\n fill=\"#34A853\"\n />\n <path\n d=\"M3.60049 8.24224C3.46561 7.84472 3.38756 7.41876 3.38756 6.97866C3.38756 6.53851 3.46561 6.1126 3.59339 5.71507L3.58982 5.63041L1.59299 4.07965L1.52766 4.11073C1.09465 4.97679 0.846191 5.94934 0.846191 6.97866C0.846191 8.00798 1.09465 8.98048 1.52766 9.84654L3.60049 8.24224Z\"\n fill=\"#FBBC05\"\n />\n <path\n d=\"M7.23502 3.06008C8.43469 3.06008 9.24394 3.57829 9.70537 4.01134L11.5085 2.25083C10.4011 1.22152 8.96 0.589722 7.23502 0.589722C4.73623 0.589722 2.5782 2.02366 1.52759 4.11069L3.59332 5.71503C4.11158 4.1746 5.54552 3.06008 7.23502 3.06008Z\"\n fill=\"#EB4335\"\n />\n </AccessibleSVG>\n );\n }\n}\n\nexport default IconGoogle;\n"],"file":"IconGoogle.js"}
|
|
@@ -24,6 +24,8 @@ import IconFileThreeD from '../../icon/content/FileThreeD32';
|
|
|
24
24
|
import IconFileVector from '../../icon/content/FileVector32';
|
|
25
25
|
import IconFileVideo from '../../icon/content/FileVideo32';
|
|
26
26
|
import IconFileWordDocument from '../../icon/content/FileWord32';
|
|
27
|
+
import IconFileXbd from '../../icon/content/FileXbd32';
|
|
28
|
+
import IconFileXdw from '../../icon/content/FileXdw32';
|
|
27
29
|
import IconFileZip from '../../icon/content/FileZip32';
|
|
28
30
|
import BookmarkIcon from '../../icon/content/FileBookmark32';
|
|
29
31
|
import IconFolderCollab from '../../icon/content/FolderShared32';
|
|
@@ -36,6 +38,8 @@ var itemIconTable = {
|
|
|
36
38
|
code: IconFileCode,
|
|
37
39
|
default: IconFileDefault,
|
|
38
40
|
document: IconFileText,
|
|
41
|
+
'docuworks-binder': IconFileXbd,
|
|
42
|
+
'docuworks-file': IconFileXdw,
|
|
39
43
|
dwg: IconFileDwg,
|
|
40
44
|
'excel-spreadsheet': IconFileExcelSpreadsheet,
|
|
41
45
|
'folder-collab': IconFolderCollab,
|