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
|
@@ -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([
|
|
@@ -27,6 +27,8 @@ import IconFileThreeD from '../../icon/content/FileThreeD32';
|
|
|
27
27
|
import IconFileVector from '../../icon/content/FileVector32';
|
|
28
28
|
import IconFileVideo from '../../icon/content/FileVideo32';
|
|
29
29
|
import IconFileWordDocument from '../../icon/content/FileWord32';
|
|
30
|
+
import IconFileXbd from '../../icon/content/FileXbd32';
|
|
31
|
+
import IconFileXdw from '../../icon/content/FileXdw32';
|
|
30
32
|
import IconFileZip from '../../icon/content/FileZip32';
|
|
31
33
|
|
|
32
34
|
const Components: { [key: string]: (props: SVGProps) => JSX.Element } = {
|
|
@@ -56,6 +58,8 @@ const Components: { [key: string]: (props: SVGProps) => JSX.Element } = {
|
|
|
56
58
|
IconFileVector,
|
|
57
59
|
IconFileVideo,
|
|
58
60
|
IconFileWordDocument,
|
|
61
|
+
IconFileXbd,
|
|
62
|
+
IconFileXdw,
|
|
59
63
|
IconFileZip,
|
|
60
64
|
};
|
|
61
65
|
|
|
@@ -131,7 +135,7 @@ const EXTENSIONS: { [key: string]: { [key: string]: string } } = {
|
|
|
131
135
|
'wabba',
|
|
132
136
|
'yaml',
|
|
133
137
|
]),
|
|
134
|
-
IconFileDocument: mirror(['
|
|
138
|
+
IconFileDocument: mirror(['dot', 'dotx', 'msg', 'odt', 'rtf', 'wpd', 'xhtml', 'xml', 'xsd', 'xsl']),
|
|
135
139
|
IconFileDwg: mirror(['dwg', 'dwgzip']),
|
|
136
140
|
IconFileExcelSpreadsheet: mirror(['xls', 'xlsx', 'xlsm', 'xlsb']),
|
|
137
141
|
IconFileGoogleDocs: mirror(['gdoc']),
|
|
@@ -162,7 +166,7 @@ const EXTENSIONS: { [key: string]: { [key: string]: string } } = {
|
|
|
162
166
|
IconFilePresentation: mirror(['odp', 'otp', 'pot', 'potx']),
|
|
163
167
|
IconFilePowerpointPresentation: mirror(['ppt', 'pptx', 'pptm']),
|
|
164
168
|
IconFilePhotoshop: mirror(['psd']),
|
|
165
|
-
IconFileSpreadsheet: mirror(['ods', 'xlt', 'xltx']),
|
|
169
|
+
IconFileSpreadsheet: mirror(['csv', 'ods', 'tsv', 'xlt', 'xltx']),
|
|
166
170
|
IconFileText: mirror(['txt', 'vi', 'vim', 'webdoc']),
|
|
167
171
|
IconFileThreeD: mirror(['3ds', 'dae', 'fbx', 'obj', 'ply', 'stl']),
|
|
168
172
|
IconFileVideo: mirror([
|
|
@@ -184,6 +188,8 @@ const EXTENSIONS: { [key: string]: { [key: string]: string } } = {
|
|
|
184
188
|
'wmv',
|
|
185
189
|
]),
|
|
186
190
|
IconFileWordDocument: mirror(['docx', 'doc', 'docm']),
|
|
191
|
+
IconFileXbd: mirror(['xbd']),
|
|
192
|
+
IconFileXdw: mirror(['xdw']),
|
|
187
193
|
IconFileZip: mirror(['rar', 'tgz', 'zip']),
|
|
188
194
|
};
|
|
189
195
|
|
|
@@ -10,76 +10,35 @@ describe('icons/file-icon/FileIcon', () => {
|
|
|
10
10
|
|
|
11
11
|
expect(wrapper).toMatchSnapshot();
|
|
12
12
|
});
|
|
13
|
-
[
|
|
14
|
-
{
|
|
15
|
-
extension: 'doc',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
extension: 'docx',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
extension: 'docm',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
extension: 'gdoc',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
extension: 'gsheet',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
extension: 'gslides',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
extension: 'gslide',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
extension: 'key',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
extension: 'numbers',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
extension: 'pages',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
extension: 'ppt',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
extension: 'pptx',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
extension: 'pptm',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
extension: 'xls',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
extension: 'xlsm',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
extension: 'xlsb',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
extension: 'zip',
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
extension: 'heic',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
extension: 'heif',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
extension: 'HEIC',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
extension: 'HEIF',
|
|
76
|
-
},
|
|
77
|
-
].forEach(({ extension }) => {
|
|
78
|
-
test('should render the expected icon when extension is defined', () => {
|
|
79
|
-
const wrapper = getWrapper({ extension });
|
|
80
13
|
|
|
81
|
-
|
|
82
|
-
|
|
14
|
+
test.each([
|
|
15
|
+
'doc',
|
|
16
|
+
'docx',
|
|
17
|
+
'docm',
|
|
18
|
+
'gdoc',
|
|
19
|
+
'gsheet',
|
|
20
|
+
'gslides',
|
|
21
|
+
'gslide',
|
|
22
|
+
'key',
|
|
23
|
+
'numbers',
|
|
24
|
+
'pages',
|
|
25
|
+
'ppt',
|
|
26
|
+
'pptx',
|
|
27
|
+
'pptm',
|
|
28
|
+
'xls',
|
|
29
|
+
'xlsm',
|
|
30
|
+
'xlsb',
|
|
31
|
+
'zip',
|
|
32
|
+
'heic',
|
|
33
|
+
'heif',
|
|
34
|
+
'HEIC',
|
|
35
|
+
'HEIF',
|
|
36
|
+
'xbd',
|
|
37
|
+
'xdw',
|
|
38
|
+
])(`should render the expected icon when %s is defined`, extension => {
|
|
39
|
+
const wrapper = getWrapper({ extension });
|
|
40
|
+
|
|
41
|
+
expect(wrapper).toMatchSnapshot();
|
|
83
42
|
});
|
|
84
43
|
|
|
85
44
|
test('should render 64 icon when dimension is defined', () => {
|
|
@@ -14,148 +14,162 @@ exports[`icons/file-icon/FileIcon should render default 32 icon when no extensio
|
|
|
14
14
|
/>
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
17
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when HEIC is defined 1`] = `
|
|
18
|
+
<FileImage32
|
|
19
|
+
height={32}
|
|
20
|
+
width={32}
|
|
21
|
+
/>
|
|
22
|
+
`;
|
|
23
|
+
|
|
24
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when HEIF is defined 1`] = `
|
|
25
|
+
<FileImage32
|
|
26
|
+
height={32}
|
|
27
|
+
width={32}
|
|
28
|
+
/>
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when doc is defined 1`] = `
|
|
18
32
|
<FileWord32
|
|
19
33
|
height={32}
|
|
20
34
|
width={32}
|
|
21
35
|
/>
|
|
22
36
|
`;
|
|
23
37
|
|
|
24
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
38
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when docm is defined 1`] = `
|
|
25
39
|
<FileWord32
|
|
26
40
|
height={32}
|
|
27
41
|
width={32}
|
|
28
42
|
/>
|
|
29
43
|
`;
|
|
30
44
|
|
|
31
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
45
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when docx is defined 1`] = `
|
|
32
46
|
<FileWord32
|
|
33
47
|
height={32}
|
|
34
48
|
width={32}
|
|
35
49
|
/>
|
|
36
50
|
`;
|
|
37
51
|
|
|
38
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
52
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when gdoc is defined 1`] = `
|
|
39
53
|
<FileDocs32
|
|
40
54
|
height={32}
|
|
41
55
|
width={32}
|
|
42
56
|
/>
|
|
43
57
|
`;
|
|
44
58
|
|
|
45
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
59
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when gsheet is defined 1`] = `
|
|
46
60
|
<FileSheets32
|
|
47
61
|
height={32}
|
|
48
62
|
width={32}
|
|
49
63
|
/>
|
|
50
64
|
`;
|
|
51
65
|
|
|
52
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
66
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when gslide is defined 1`] = `
|
|
53
67
|
<FileSlides32
|
|
54
68
|
height={32}
|
|
55
69
|
width={32}
|
|
56
70
|
/>
|
|
57
71
|
`;
|
|
58
72
|
|
|
59
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
73
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when gslides is defined 1`] = `
|
|
60
74
|
<FileSlides32
|
|
61
75
|
height={32}
|
|
62
76
|
width={32}
|
|
63
77
|
/>
|
|
64
78
|
`;
|
|
65
79
|
|
|
66
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
67
|
-
<
|
|
80
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when heic is defined 1`] = `
|
|
81
|
+
<FileImage32
|
|
68
82
|
height={32}
|
|
69
83
|
width={32}
|
|
70
84
|
/>
|
|
71
85
|
`;
|
|
72
86
|
|
|
73
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
74
|
-
<
|
|
87
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when heif is defined 1`] = `
|
|
88
|
+
<FileImage32
|
|
75
89
|
height={32}
|
|
76
90
|
width={32}
|
|
77
91
|
/>
|
|
78
92
|
`;
|
|
79
93
|
|
|
80
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
81
|
-
<
|
|
94
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when key is defined 1`] = `
|
|
95
|
+
<FileKeynote32
|
|
82
96
|
height={32}
|
|
83
97
|
width={32}
|
|
84
98
|
/>
|
|
85
99
|
`;
|
|
86
100
|
|
|
87
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
88
|
-
<
|
|
101
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when numbers is defined 1`] = `
|
|
102
|
+
<FileNumbers32
|
|
89
103
|
height={32}
|
|
90
104
|
width={32}
|
|
91
105
|
/>
|
|
92
106
|
`;
|
|
93
107
|
|
|
94
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
95
|
-
<
|
|
108
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when pages is defined 1`] = `
|
|
109
|
+
<FilePages32
|
|
96
110
|
height={32}
|
|
97
111
|
width={32}
|
|
98
112
|
/>
|
|
99
113
|
`;
|
|
100
114
|
|
|
101
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
115
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when ppt is defined 1`] = `
|
|
102
116
|
<FilePowerpoint32
|
|
103
117
|
height={32}
|
|
104
118
|
width={32}
|
|
105
119
|
/>
|
|
106
120
|
`;
|
|
107
121
|
|
|
108
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
109
|
-
<
|
|
122
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when pptm is defined 1`] = `
|
|
123
|
+
<FilePowerpoint32
|
|
110
124
|
height={32}
|
|
111
125
|
width={32}
|
|
112
126
|
/>
|
|
113
127
|
`;
|
|
114
128
|
|
|
115
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
116
|
-
<
|
|
129
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when pptx is defined 1`] = `
|
|
130
|
+
<FilePowerpoint32
|
|
117
131
|
height={32}
|
|
118
132
|
width={32}
|
|
119
133
|
/>
|
|
120
134
|
`;
|
|
121
135
|
|
|
122
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
123
|
-
<
|
|
136
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when xbd is defined 1`] = `
|
|
137
|
+
<FileXbd32
|
|
124
138
|
height={32}
|
|
125
139
|
width={32}
|
|
126
140
|
/>
|
|
127
141
|
`;
|
|
128
142
|
|
|
129
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
130
|
-
<
|
|
143
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when xdw is defined 1`] = `
|
|
144
|
+
<FileXdw32
|
|
131
145
|
height={32}
|
|
132
146
|
width={32}
|
|
133
147
|
/>
|
|
134
148
|
`;
|
|
135
149
|
|
|
136
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
137
|
-
<
|
|
150
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when xls is defined 1`] = `
|
|
151
|
+
<FileExcel32
|
|
138
152
|
height={32}
|
|
139
153
|
width={32}
|
|
140
154
|
/>
|
|
141
155
|
`;
|
|
142
156
|
|
|
143
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
144
|
-
<
|
|
157
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when xlsb is defined 1`] = `
|
|
158
|
+
<FileExcel32
|
|
145
159
|
height={32}
|
|
146
160
|
width={32}
|
|
147
161
|
/>
|
|
148
162
|
`;
|
|
149
163
|
|
|
150
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
151
|
-
<
|
|
164
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when xlsm is defined 1`] = `
|
|
165
|
+
<FileExcel32
|
|
152
166
|
height={32}
|
|
153
167
|
width={32}
|
|
154
168
|
/>
|
|
155
169
|
`;
|
|
156
170
|
|
|
157
|
-
exports[`icons/file-icon/FileIcon should render the expected icon when
|
|
158
|
-
<
|
|
171
|
+
exports[`icons/file-icon/FileIcon should render the expected icon when zip is defined 1`] = `
|
|
172
|
+
<FileZip32
|
|
159
173
|
height={32}
|
|
160
174
|
width={32}
|
|
161
175
|
/>
|
|
@@ -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}
|
|
@@ -5,7 +5,7 @@ import { bdlGray40 } from '../../styles/variables';
|
|
|
5
5
|
|
|
6
6
|
import { Icon } from '../iconTypes';
|
|
7
7
|
|
|
8
|
-
const IconSearch = ({ className = '
|
|
8
|
+
const IconSearch = ({ className = '', color = bdlGray40, height = 14, title, width = 14 }: Icon) => (
|
|
9
9
|
<AccessibleSVG
|
|
10
10
|
className={`icon-search ${className}`}
|
|
11
11
|
height={height}
|
|
@@ -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,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import AccessibleSVG from '../accessible-svg';
|
|
4
|
+
import { bdlGray40 } from '../../styles/variables';
|
|
5
|
+
|
|
6
|
+
import { Icon } from '../iconTypes';
|
|
7
|
+
|
|
8
|
+
const IconSearchJuicy = ({ className = '', color = bdlGray40, height = 14, title, width = 14 }: Icon) => (
|
|
9
|
+
<AccessibleSVG
|
|
10
|
+
className={`icon-search-juicy ${className}`}
|
|
11
|
+
height={height}
|
|
12
|
+
title={title}
|
|
13
|
+
viewBox="0 0 24 24"
|
|
14
|
+
width={width}
|
|
15
|
+
>
|
|
16
|
+
<path
|
|
17
|
+
className="fill-color"
|
|
18
|
+
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"
|
|
19
|
+
fill={color}
|
|
20
|
+
fillRule="evenodd"
|
|
21
|
+
/>
|
|
22
|
+
</AccessibleSVG>
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
export default IconSearchJuicy;
|
|
@@ -901,6 +901,11 @@ width?: number,
|
|
|
901
901
|
component: require('./IconSearch').default,
|
|
902
902
|
propsDocumentation: iconPropsDocumentation,
|
|
903
903
|
},
|
|
904
|
+
{
|
|
905
|
+
name: 'IconSearchJuicy',
|
|
906
|
+
component: require('./IconSearchJuicy').default,
|
|
907
|
+
propsDocumentation: iconPropsDocumentation,
|
|
908
|
+
},
|
|
904
909
|
{
|
|
905
910
|
name: 'IconSecurityClassification',
|
|
906
911
|
component: require('./IconSecurityClassification').default,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { shallow } from 'enzyme';
|
|
3
|
+
import IconSearchJuicy from '../IconSearchJuicy';
|
|
4
|
+
import { bdlGray40 } from '../../../styles/variables';
|
|
5
|
+
|
|
6
|
+
describe('icons/general/IconSearchJuicy', () => {
|
|
7
|
+
test('should correctly render default icon with default color', () => {
|
|
8
|
+
const dimension = 14;
|
|
9
|
+
const wrapper = shallow(<IconSearchJuicy />);
|
|
10
|
+
|
|
11
|
+
expect(wrapper.hasClass('icon-search-juicy')).toEqual(true);
|
|
12
|
+
expect(wrapper.find('path').prop('fill')).toEqual(bdlGray40);
|
|
13
|
+
expect(wrapper.find('AccessibleSVG').prop('width')).toEqual(dimension);
|
|
14
|
+
expect(wrapper.find('AccessibleSVG').prop('height')).toEqual(dimension);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
test('should correctly render icon with specified color', () => {
|
|
18
|
+
const color = '#fcfcfc';
|
|
19
|
+
const wrapper = shallow(<IconSearchJuicy color={color} />);
|
|
20
|
+
|
|
21
|
+
expect(wrapper.find('path').prop('fill')).toEqual(color);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test('should correctly render icon with specified width and height', () => {
|
|
25
|
+
const dimension = 16;
|
|
26
|
+
const wrapper = shallow(<IconSearchJuicy height={dimension} width={dimension} />);
|
|
27
|
+
|
|
28
|
+
expect(wrapper.find('AccessibleSVG').prop('width')).toEqual(dimension);
|
|
29
|
+
expect(wrapper.find('AccessibleSVG').prop('height')).toEqual(dimension);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
test('should correctly render icon with title', () => {
|
|
33
|
+
const title = 'abcde';
|
|
34
|
+
const wrapper = shallow(<IconSearchJuicy title={title} />);
|
|
35
|
+
|
|
36
|
+
expect(wrapper.find('AccessibleSVG').prop('title')).toEqual(title);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
@@ -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,50 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import uniqueId from 'lodash/uniqueId';
|
|
3
|
+
|
|
4
|
+
import AccessibleSVG from '../accessible-svg';
|
|
5
|
+
|
|
6
|
+
import { TwoTonedIcon } from '../iconTypes';
|
|
7
|
+
|
|
8
|
+
const ICON_CLASS = 'icon-google';
|
|
9
|
+
|
|
10
|
+
class IconGoogle extends React.Component<TwoTonedIcon> {
|
|
11
|
+
static defaultProps = {
|
|
12
|
+
className: '',
|
|
13
|
+
height: 30,
|
|
14
|
+
width: 30,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
idPrefix = `${uniqueId(ICON_CLASS)}-`;
|
|
18
|
+
|
|
19
|
+
render() {
|
|
20
|
+
const { className, height, title, width } = this.props;
|
|
21
|
+
return (
|
|
22
|
+
<AccessibleSVG
|
|
23
|
+
className={`${ICON_CLASS} ${className}`}
|
|
24
|
+
height={height}
|
|
25
|
+
title={title}
|
|
26
|
+
viewBox="0 0 14 14"
|
|
27
|
+
width={width}
|
|
28
|
+
>
|
|
29
|
+
<path
|
|
30
|
+
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"
|
|
31
|
+
fill="#4285F4"
|
|
32
|
+
/>
|
|
33
|
+
<path
|
|
34
|
+
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"
|
|
35
|
+
fill="#34A853"
|
|
36
|
+
/>
|
|
37
|
+
<path
|
|
38
|
+
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"
|
|
39
|
+
fill="#FBBC05"
|
|
40
|
+
/>
|
|
41
|
+
<path
|
|
42
|
+
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"
|
|
43
|
+
fill="#EB4335"
|
|
44
|
+
/>
|
|
45
|
+
</AccessibleSVG>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default IconGoogle;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { shallow } from 'enzyme';
|
|
3
|
+
import IconGoogle from '../IconGoogle';
|
|
4
|
+
|
|
5
|
+
describe('icons/google-docs/IconGoogle', () => {
|
|
6
|
+
const getWrapper = (props = {}) => shallow(<IconGoogle {...props} />);
|
|
7
|
+
|
|
8
|
+
test('should correctly render default icon', () => {
|
|
9
|
+
const wrapper = getWrapper();
|
|
10
|
+
|
|
11
|
+
expect(wrapper.is('AccessibleSVG')).toBe(true);
|
|
12
|
+
expect(wrapper.hasClass('icon-google')).toBe(true);
|
|
13
|
+
expect(wrapper.prop('height')).toEqual(30);
|
|
14
|
+
expect(wrapper.prop('width')).toEqual(30);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
test('should correctly render icon with specified class', () => {
|
|
18
|
+
const className = 'test';
|
|
19
|
+
const wrapper = getWrapper({ className });
|
|
20
|
+
|
|
21
|
+
expect(wrapper.hasClass(className)).toBe(true);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test('should correctly render icon with specified height', () => {
|
|
25
|
+
const height = 17;
|
|
26
|
+
const wrapper = getWrapper({ height });
|
|
27
|
+
|
|
28
|
+
expect(wrapper.prop('height')).toEqual(height);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
test('should correctly render icon with specified title', () => {
|
|
32
|
+
const title = 'fool';
|
|
33
|
+
const wrapper = getWrapper({ title });
|
|
34
|
+
|
|
35
|
+
expect(wrapper.prop('title')).toEqual(title);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
test('should correctly render icon with specified width', () => {
|
|
39
|
+
const width = 17;
|
|
40
|
+
const wrapper = getWrapper({ width });
|
|
41
|
+
|
|
42
|
+
expect(wrapper.prop('width')).toEqual(width);
|
|
43
|
+
});
|
|
44
|
+
});
|
|
@@ -26,6 +26,8 @@ import IconFileThreeD from '../../icon/content/FileThreeD32';
|
|
|
26
26
|
import IconFileVector from '../../icon/content/FileVector32';
|
|
27
27
|
import IconFileVideo from '../../icon/content/FileVideo32';
|
|
28
28
|
import IconFileWordDocument from '../../icon/content/FileWord32';
|
|
29
|
+
import IconFileXbd from '../../icon/content/FileXbd32';
|
|
30
|
+
import IconFileXdw from '../../icon/content/FileXdw32';
|
|
29
31
|
import IconFileZip from '../../icon/content/FileZip32';
|
|
30
32
|
|
|
31
33
|
import BookmarkIcon from '../../icon/content/FileBookmark32';
|
|
@@ -41,6 +43,8 @@ const itemIconTable = {
|
|
|
41
43
|
code: IconFileCode,
|
|
42
44
|
default: IconFileDefault,
|
|
43
45
|
document: IconFileText,
|
|
46
|
+
'docuworks-binder': IconFileXbd,
|
|
47
|
+
'docuworks-file': IconFileXdw,
|
|
44
48
|
dwg: IconFileDwg,
|
|
45
49
|
'excel-spreadsheet': IconFileExcelSpreadsheet,
|
|
46
50
|
'folder-collab': IconFolderCollab,
|