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
package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareForm.test.js.snap
CHANGED
|
@@ -2625,165 +2625,6 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
|
|
|
2625
2625
|
</div>
|
|
2626
2626
|
`;
|
|
2627
2627
|
|
|
2628
|
-
exports[`features/unified-share-modal/UnifiedShareForm render() should render a default component with upgrade CTA when showUpgradeOptions is enabled 1`] = `
|
|
2629
|
-
<div
|
|
2630
|
-
className=""
|
|
2631
|
-
>
|
|
2632
|
-
<LoadingIndicatorWrapper
|
|
2633
|
-
hideContent={true}
|
|
2634
|
-
isLoading={false}
|
|
2635
|
-
>
|
|
2636
|
-
<Tooltip
|
|
2637
|
-
className="usm-ftux-tooltip"
|
|
2638
|
-
constrainToScrollParent={false}
|
|
2639
|
-
constrainToWindow={true}
|
|
2640
|
-
isDisabled={false}
|
|
2641
|
-
position="middle-left"
|
|
2642
|
-
showCloseButton={true}
|
|
2643
|
-
text={
|
|
2644
|
-
<div>
|
|
2645
|
-
<h4
|
|
2646
|
-
className="ftux-tooltip-title"
|
|
2647
|
-
>
|
|
2648
|
-
<FormattedMessage
|
|
2649
|
-
defaultMessage="Simplified sharing for files and folders"
|
|
2650
|
-
id="boxui.unifiedShare.ftuxNewUsmUserTitle"
|
|
2651
|
-
/>
|
|
2652
|
-
</h4>
|
|
2653
|
-
<p
|
|
2654
|
-
className="ftux-tooltip-body"
|
|
2655
|
-
>
|
|
2656
|
-
<FormattedMessage
|
|
2657
|
-
defaultMessage="We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing."
|
|
2658
|
-
id="boxui.unifiedShare.ftuxNewUSMUserBody"
|
|
2659
|
-
/>
|
|
2660
|
-
|
|
2661
|
-
<Link
|
|
2662
|
-
className="ftux-tooltip-link"
|
|
2663
|
-
href="https://community.box.com/t5/Using-Shared-Links/Creating-Shared-Links/ta-p/19523"
|
|
2664
|
-
target="_blank"
|
|
2665
|
-
>
|
|
2666
|
-
<FormattedMessage
|
|
2667
|
-
defaultMessage="Read more about shared link security here."
|
|
2668
|
-
id="boxui.unifiedShare.ftuxLinkText"
|
|
2669
|
-
/>
|
|
2670
|
-
</Link>
|
|
2671
|
-
</p>
|
|
2672
|
-
<div
|
|
2673
|
-
className="ftux-tooltip-controls"
|
|
2674
|
-
>
|
|
2675
|
-
<Button
|
|
2676
|
-
className="ftux-tooltip-button"
|
|
2677
|
-
isLoading={false}
|
|
2678
|
-
onClick={[Function]}
|
|
2679
|
-
showRadar={false}
|
|
2680
|
-
type="submit"
|
|
2681
|
-
>
|
|
2682
|
-
<FormattedMessage
|
|
2683
|
-
defaultMessage="Got it"
|
|
2684
|
-
id="boxui.unifiedShare.ftuxConfirmLabel"
|
|
2685
|
-
/>
|
|
2686
|
-
</Button>
|
|
2687
|
-
</div>
|
|
2688
|
-
</div>
|
|
2689
|
-
}
|
|
2690
|
-
theme="callout"
|
|
2691
|
-
>
|
|
2692
|
-
<div
|
|
2693
|
-
className="invite-collaborator-container"
|
|
2694
|
-
data-testid="invite-collaborator-container"
|
|
2695
|
-
>
|
|
2696
|
-
<EmailForm
|
|
2697
|
-
contactsFieldAvatars={
|
|
2698
|
-
<CollaboratorAvatars
|
|
2699
|
-
collaborators={Array []}
|
|
2700
|
-
containerAttributes={Object {}}
|
|
2701
|
-
maxAdditionalCollaboratorsNum={99}
|
|
2702
|
-
maxDisplayedUserAvatars={3}
|
|
2703
|
-
onClick={[Function]}
|
|
2704
|
-
/>
|
|
2705
|
-
}
|
|
2706
|
-
contactsFieldDisabledTooltip={
|
|
2707
|
-
<FormattedMessage
|
|
2708
|
-
defaultMessage="You do not have permission to invite collaborators."
|
|
2709
|
-
id="boxui.unifiedShare.inviteDisabledTooltip"
|
|
2710
|
-
/>
|
|
2711
|
-
}
|
|
2712
|
-
contactsFieldLabel={
|
|
2713
|
-
<FormattedMessage
|
|
2714
|
-
defaultMessage="Invite People"
|
|
2715
|
-
id="boxui.unifiedShare.inviteFieldLabel"
|
|
2716
|
-
/>
|
|
2717
|
-
}
|
|
2718
|
-
inlineNotice={
|
|
2719
|
-
Object {
|
|
2720
|
-
"content": "",
|
|
2721
|
-
"type": "warning",
|
|
2722
|
-
}
|
|
2723
|
-
}
|
|
2724
|
-
isContactsFieldEnabled={true}
|
|
2725
|
-
isExpanded={true}
|
|
2726
|
-
isExternalUserSelected={false}
|
|
2727
|
-
isFetchingJustificationReasons={false}
|
|
2728
|
-
isRestrictionJustificationEnabled={false}
|
|
2729
|
-
justificationReasons={Array []}
|
|
2730
|
-
onContactInput={[Function]}
|
|
2731
|
-
onPillCreate={[Function]}
|
|
2732
|
-
onRequestClose={[Function]}
|
|
2733
|
-
onSubmit={[Function]}
|
|
2734
|
-
openInviteCollaboratorsSection={[Function]}
|
|
2735
|
-
recommendedSharingTooltipCalloutName={null}
|
|
2736
|
-
restrictedExternalEmails={Array []}
|
|
2737
|
-
selectedContacts={Array []}
|
|
2738
|
-
showEnterEmailsCallout={false}
|
|
2739
|
-
updateSelectedContacts={[Function]}
|
|
2740
|
-
>
|
|
2741
|
-
<InviteePermissionsMenu
|
|
2742
|
-
changeInviteePermissionLevel={[Function]}
|
|
2743
|
-
disabled={false}
|
|
2744
|
-
inviteePermissionLevel=""
|
|
2745
|
-
inviteePermissions={
|
|
2746
|
-
Array [
|
|
2747
|
-
Object {
|
|
2748
|
-
"text": "Editor",
|
|
2749
|
-
"value": "Editor",
|
|
2750
|
-
},
|
|
2751
|
-
]
|
|
2752
|
-
}
|
|
2753
|
-
inviteePermissionsButtonProps={Object {}}
|
|
2754
|
-
itemType="file"
|
|
2755
|
-
/>
|
|
2756
|
-
<div
|
|
2757
|
-
className="upgrade-description"
|
|
2758
|
-
>
|
|
2759
|
-
<UpgradeBadge
|
|
2760
|
-
type="warning"
|
|
2761
|
-
/>
|
|
2762
|
-
<FormattedMessage
|
|
2763
|
-
defaultMessage="62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings"
|
|
2764
|
-
id="boxui.unifiedShare.upgradeGetMoreAccessControlsDescription"
|
|
2765
|
-
values={
|
|
2766
|
-
Object {
|
|
2767
|
-
"upgradeGetMoreAccessControlsLink": <Link
|
|
2768
|
-
className="upgrade-link"
|
|
2769
|
-
href="/upgrade"
|
|
2770
|
-
>
|
|
2771
|
-
<FormattedMessage
|
|
2772
|
-
defaultMessage="upgrade"
|
|
2773
|
-
id="boxui.unifiedShare.upgradeGetMoreAccessControlsLink"
|
|
2774
|
-
/>
|
|
2775
|
-
</Link>,
|
|
2776
|
-
}
|
|
2777
|
-
}
|
|
2778
|
-
/>
|
|
2779
|
-
</div>
|
|
2780
|
-
</EmailForm>
|
|
2781
|
-
</div>
|
|
2782
|
-
</Tooltip>
|
|
2783
|
-
</LoadingIndicatorWrapper>
|
|
2784
|
-
</div>
|
|
2785
|
-
`;
|
|
2786
|
-
|
|
2787
2628
|
exports[`features/unified-share-modal/UnifiedShareForm render() should render an allShareRestrictionWarning message when it is available 1`] = `
|
|
2788
2629
|
<div
|
|
2789
2630
|
className="test-class"
|
|
@@ -383,6 +383,8 @@ export type USFProps = BaseUnifiedShareProps & {
|
|
|
383
383
|
isFetching: boolean,
|
|
384
384
|
/** Function for opening the Remove Link Confirm Modal */
|
|
385
385
|
openConfirmModal: () => void,
|
|
386
|
+
/** Function for opening the Upgrade Plan Modal */
|
|
387
|
+
openUpgradePlanModal: () => void,
|
|
386
388
|
/** Whether the FTUX tag should be rendered for the Can Edit option */
|
|
387
389
|
sharedLinkEditTagTargetingApi?: TargetingApi,
|
|
388
390
|
/** Whether the FTUX tooltip should be rendered for Editable Shared Links */
|
|
@@ -391,6 +393,10 @@ export type USFProps = BaseUnifiedShareProps & {
|
|
|
391
393
|
sharedLinkLoaded: boolean,
|
|
392
394
|
/** Whether the FTUX tooltip should be rendered */
|
|
393
395
|
shouldRenderFTUXTooltip: boolean,
|
|
396
|
+
/** Whether the new upgrade text should be rendered */
|
|
397
|
+
showNewUpgradeText?: boolean,
|
|
398
|
+
/** Whether the upgrade inline notice should be rendered */
|
|
399
|
+
showUpgradeInlineNotice?: boolean,
|
|
394
400
|
};
|
|
395
401
|
|
|
396
402
|
export type InviteCollaboratorsRequest = {
|
|
@@ -274,6 +274,16 @@ const messages = defineMessages({
|
|
|
274
274
|
description: 'Label for link to upgrade to get more access controls for inviting collaborators to an item',
|
|
275
275
|
id: 'boxui.unifiedShare.upgradeGetMoreAccessControlsLink',
|
|
276
276
|
},
|
|
277
|
+
upgradeLink: {
|
|
278
|
+
defaultMessage: 'Upgrade now',
|
|
279
|
+
description: 'Label for link to upgrade account',
|
|
280
|
+
id: 'boxui.unifiedShare.upgradeLink',
|
|
281
|
+
},
|
|
282
|
+
upgradeInlineNoticeTitle: {
|
|
283
|
+
defaultMessage: 'Upgrade Your Plan',
|
|
284
|
+
description: 'Title for the upgrade inline notice for upgrade user plan',
|
|
285
|
+
id: 'boxui.unifiedShare.upgradeInlineNoticeTitle',
|
|
286
|
+
},
|
|
277
287
|
sharedLinkSettings: {
|
|
278
288
|
defaultMessage: 'Link Settings',
|
|
279
289
|
description: 'Description of the shared link settings modal entry point. This shows link-specific options.',
|
|
@@ -39,4 +39,27 @@ describe('features/unified-share-modal/utils/mergeContacts', () => {
|
|
|
39
39
|
|
|
40
40
|
expect(mergedContacts).toEqual(expectedMergedContacts);
|
|
41
41
|
});
|
|
42
|
+
|
|
43
|
+
test('should return existing contact information if value matches but case does not match', () => {
|
|
44
|
+
const caseSensitiveEmail = 'DeV@Box.COM';
|
|
45
|
+
const fetchedContacts = { [email]: { email, id, isExternalUser, name, type } };
|
|
46
|
+
const existingContactWithCaseChanges = [
|
|
47
|
+
{ displayText: caseSensitiveEmail, text: caseSensitiveEmail, value: caseSensitiveEmail },
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
const expectedMergedContacts = [{ email, id, isExternalUser, text: name, name, type, value }];
|
|
51
|
+
const mergedContacts = mergeContacts(existingContactWithCaseChanges, fetchedContacts);
|
|
52
|
+
|
|
53
|
+
expect(mergedContacts).toEqual(expectedMergedContacts);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
test('should return external user if not matched to internal user record', () => {
|
|
57
|
+
const newEmail = 'dev+test@box.com';
|
|
58
|
+
const newContact = [{ displayText: newEmail, text: newEmail, value: newEmail }];
|
|
59
|
+
const expected = [
|
|
60
|
+
{ email: newEmail, id: newEmail, isExternalUser, text: newEmail, type: 'user', value: newEmail },
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
expect(mergeContacts(newContact, {})).toEqual(expected);
|
|
64
|
+
});
|
|
42
65
|
});
|
|
@@ -5,7 +5,8 @@ import type { contactType as Contact } from '../flowTypes';
|
|
|
5
5
|
const mergeContacts = (existingContacts: Array<Contact>, fetchedContacts: Object): Array<Contact> => {
|
|
6
6
|
const contactsMap = Object.keys(fetchedContacts).reduce((map, email) => {
|
|
7
7
|
const contact = fetchedContacts[email];
|
|
8
|
-
|
|
8
|
+
// Since objects are case-sensitive, normalize the key to lowercase.
|
|
9
|
+
map[email.toLowerCase()] = { ...contact, text: contact.name, value: contact.email || contact.id };
|
|
9
10
|
return map;
|
|
10
11
|
}, {});
|
|
11
12
|
|
|
@@ -14,7 +15,8 @@ const mergeContacts = (existingContacts: Array<Contact>, fetchedContacts: Object
|
|
|
14
15
|
return contact;
|
|
15
16
|
}
|
|
16
17
|
return (
|
|
17
|
-
|
|
18
|
+
// Normalize the getter in contactsMap so that matching existing contacts will be case-insensitive
|
|
19
|
+
(contact.value && contactsMap[contact.value.toLowerCase()]) || {
|
|
18
20
|
email: String(contact.value),
|
|
19
21
|
id: String(contact.value),
|
|
20
22
|
isExternalUser: true,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
/* eslint-disable react/jsx-sort-props */
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import AccessibleSVG from '../../icons/accessible-svg';
|
|
5
|
+
import type { Icon } from '../../icons/flowTypes';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This is an auto-generated component and should not be edited
|
|
9
|
+
* manually in contributor pull requests.
|
|
10
|
+
*
|
|
11
|
+
* If you have problems with this component:
|
|
12
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
13
|
+
*
|
|
14
|
+
* If there are missing features in this component:
|
|
15
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
const FileXbd32 = (props: Icon) => (
|
|
19
|
+
<AccessibleSVG width={32} height={32} viewBox="0 0 32 32" {...props}>
|
|
20
|
+
<path
|
|
21
|
+
d="M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"
|
|
22
|
+
fill="#00838D"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
d="M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"
|
|
26
|
+
fill="#fff"
|
|
27
|
+
fillOpacity={0.5}
|
|
28
|
+
/>
|
|
29
|
+
<path
|
|
30
|
+
fillRule="evenodd"
|
|
31
|
+
clipRule="evenodd"
|
|
32
|
+
d="M14.583 16v5h2.122c.498 0 .913-.137 1.205-.395.294-.259.452-.63.452-1.076v-.007c0-.565-.34-1.026-.84-1.186.372-.18.625-.588.625-1.034v-.007c0-.394-.14-.722-.404-.95-.263-.227-.638-.345-1.09-.345h-2.07zm4.594 0v5h1.872c.697 0 1.255-.228 1.637-.667.38-.438.575-1.071.575-1.861v-.007c0-.767-.197-1.386-.58-1.813-.383-.429-.94-.652-1.632-.652h-1.872zm-2.765.948c.208 0 .358.054.455.14.095.084.15.21.15.38v.007c0 .171-.058.295-.163.38-.108.086-.279.14-.52.14h-.605v-1.047h.683zm.031 1.911c.265 0 .453.058.573.154.117.092.182.232.182.43v.006c0 .205-.064.348-.178.443-.116.098-.297.157-.555.157h-.737v-1.19h.715zm3.879 1.11V17.03h.578c.383 0 .677.132.878.37.203.24.32.602.32 1.08v.007c0 .498-.114.868-.315 1.11-.198.24-.492.37-.883.37h-.578zM9 20.996h1.35l1.033-1.62 1.035 1.62h1.415l-1.656-2.503L13.858 16H12.46l-.996 1.665L10.461 16H9.005l1.62 2.475L9 20.995z"
|
|
33
|
+
fill="#fff"
|
|
34
|
+
/>
|
|
35
|
+
</AccessibleSVG>
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
export default FileXbd32;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import FileXbd32 from './FileXbd32';
|
|
4
|
+
|
|
5
|
+
export const fileXbd32 = () => <FileXbd32 />;
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Icon|Content|FileXbd32',
|
|
9
|
+
component: FileXbd32,
|
|
10
|
+
parameters: {
|
|
11
|
+
notes: "`import FileXbd32 from 'box-ui-elements/es/icon/content/FileXbd32';`",
|
|
12
|
+
},
|
|
13
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-sort-props */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as vars from '../../styles/variables';
|
|
4
|
+
import AccessibleSVG, { SVGProps } from '../../components/accessible-svg/AccessibleSVG';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This is an auto-generated component and should not be edited
|
|
8
|
+
* manually in contributor pull requests.
|
|
9
|
+
*
|
|
10
|
+
* If you have problems with this component:
|
|
11
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
12
|
+
*
|
|
13
|
+
* If there are missing features in this component:
|
|
14
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const FileXbd32 = (props: SVGProps) => (
|
|
18
|
+
<AccessibleSVG width={32} height={32} viewBox="0 0 32 32" {...props}>
|
|
19
|
+
<path
|
|
20
|
+
d="M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"
|
|
21
|
+
fill="#00838D"
|
|
22
|
+
/>
|
|
23
|
+
<path
|
|
24
|
+
d="M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"
|
|
25
|
+
fill={vars.white}
|
|
26
|
+
fillOpacity={0.5}
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
fillRule="evenodd"
|
|
30
|
+
clipRule="evenodd"
|
|
31
|
+
d="M14.583 16v5h2.122c.498 0 .913-.137 1.205-.395.294-.259.452-.63.452-1.076v-.007c0-.565-.34-1.026-.84-1.186.372-.18.625-.588.625-1.034v-.007c0-.394-.14-.722-.404-.95-.263-.227-.638-.345-1.09-.345h-2.07zm4.594 0v5h1.872c.697 0 1.255-.228 1.637-.667.38-.438.575-1.071.575-1.861v-.007c0-.767-.197-1.386-.58-1.813-.383-.429-.94-.652-1.632-.652h-1.872zm-2.765.948c.208 0 .358.054.455.14.095.084.15.21.15.38v.007c0 .171-.058.295-.163.38-.108.086-.279.14-.52.14h-.605v-1.047h.683zm.031 1.911c.265 0 .453.058.573.154.117.092.182.232.182.43v.006c0 .205-.064.348-.178.443-.116.098-.297.157-.555.157h-.737v-1.19h.715zm3.879 1.11V17.03h.578c.383 0 .677.132.878.37.203.24.32.602.32 1.08v.007c0 .498-.114.868-.315 1.11-.198.24-.492.37-.883.37h-.578zM9 20.996h1.35l1.033-1.62 1.035 1.62h1.415l-1.656-2.503L13.858 16H12.46l-.996 1.665L10.461 16H9.005l1.62 2.475L9 20.995z"
|
|
32
|
+
fill={vars.white}
|
|
33
|
+
/>
|
|
34
|
+
</AccessibleSVG>
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export default FileXbd32;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
/* eslint-disable react/jsx-sort-props */
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import AccessibleSVG from '../../icons/accessible-svg';
|
|
5
|
+
import type { Icon } from '../../icons/flowTypes';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This is an auto-generated component and should not be edited
|
|
9
|
+
* manually in contributor pull requests.
|
|
10
|
+
*
|
|
11
|
+
* If you have problems with this component:
|
|
12
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
13
|
+
*
|
|
14
|
+
* If there are missing features in this component:
|
|
15
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
const FileXdw32 = (props: Icon) => (
|
|
19
|
+
<AccessibleSVG width={32} height={32} viewBox="0 0 32 32" {...props}>
|
|
20
|
+
<path
|
|
21
|
+
d="M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"
|
|
22
|
+
fill="#00838D"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
d="M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"
|
|
26
|
+
fill="#fff"
|
|
27
|
+
fillOpacity={0.5}
|
|
28
|
+
/>
|
|
29
|
+
<path
|
|
30
|
+
fillRule="evenodd"
|
|
31
|
+
clipRule="evenodd"
|
|
32
|
+
d="M9.352 21H8l1.627-2.523L8.005 16h1.457l1.004 1.666.997-1.666h1.4l-1.683 2.495L12.837 21H11.42l-1.036-1.62L9.352 21zm3.918 0v-5h2.035c.75 0 1.354.222 1.771.649.417.427.634 1.046.634 1.816v.007c0 .792-.214 1.427-.629 1.864-.416.438-1.021.664-1.776.664H13.27zm6.01 0l-1.356-5h1.283l.717 3.208.838-3.208h1.024l.854 3.21.71-3.21h1.277l-1.358 5h-1.117l-.88-3.057L20.405 21h-1.125zM14.5 17.031v2.938h.64c.433 0 .757-.133.975-.374.218-.243.342-.61.342-1.107v-.006c0-.476-.127-.837-.348-1.078-.22-.239-.545-.373-.969-.373h-.64z"
|
|
33
|
+
fill="#fff"
|
|
34
|
+
/>
|
|
35
|
+
</AccessibleSVG>
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
export default FileXdw32;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import FileXdw32 from './FileXdw32';
|
|
4
|
+
|
|
5
|
+
export const fileXdw32 = () => <FileXdw32 />;
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Icon|Content|FileXdw32',
|
|
9
|
+
component: FileXdw32,
|
|
10
|
+
parameters: {
|
|
11
|
+
notes: "`import FileXdw32 from 'box-ui-elements/es/icon/content/FileXdw32';`",
|
|
12
|
+
},
|
|
13
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-sort-props */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as vars from '../../styles/variables';
|
|
4
|
+
import AccessibleSVG, { SVGProps } from '../../components/accessible-svg/AccessibleSVG';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This is an auto-generated component and should not be edited
|
|
8
|
+
* manually in contributor pull requests.
|
|
9
|
+
*
|
|
10
|
+
* If you have problems with this component:
|
|
11
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
12
|
+
*
|
|
13
|
+
* If there are missing features in this component:
|
|
14
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const FileXdw32 = (props: SVGProps) => (
|
|
18
|
+
<AccessibleSVG width={32} height={32} viewBox="0 0 32 32" {...props}>
|
|
19
|
+
<path
|
|
20
|
+
d="M9 3h9.586a1 1 0 01.707.293l6.415 6.414a1 1 0 01.293.707V26A3 3 0 0123 29H9a3 3 0 01-3-3V6a3 3 0 013-3z"
|
|
21
|
+
fill="#00838D"
|
|
22
|
+
/>
|
|
23
|
+
<path
|
|
24
|
+
d="M19.286 3.286l5.01 5.009 1.412 1.412a1 1 0 01.203.293H21a2 2 0 01-2-2V3.09a1 1 0 01.286.196z"
|
|
25
|
+
fill={vars.white}
|
|
26
|
+
fillOpacity={0.5}
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
fillRule="evenodd"
|
|
30
|
+
clipRule="evenodd"
|
|
31
|
+
d="M9.352 21H8l1.627-2.523L8.005 16h1.457l1.004 1.666.997-1.666h1.4l-1.683 2.495L12.837 21H11.42l-1.036-1.62L9.352 21zm3.918 0v-5h2.035c.75 0 1.354.222 1.771.649.417.427.634 1.046.634 1.816v.007c0 .792-.214 1.427-.629 1.864-.416.438-1.021.664-1.776.664H13.27zm6.01 0l-1.356-5h1.283l.717 3.208.838-3.208h1.024l.854 3.21.71-3.21h1.277l-1.358 5h-1.117l-.88-3.057L20.405 21h-1.125zM14.5 17.031v2.938h.64c.433 0 .757-.133.975-.374.218-.243.342-.61.342-1.107v-.006c0-.476-.127-.837-.348-1.078-.22-.239-.545-.373-.969-.373h-.64z"
|
|
32
|
+
fill={vars.white}
|
|
33
|
+
/>
|
|
34
|
+
</AccessibleSVG>
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export default FileXdw32;
|
|
@@ -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 RetentionPolicyModifiable32 = (props: Icon) => (
|
|
20
|
+
<AccessibleSVG width={32} height={32} viewBox="0 0 32 32" {...props}>
|
|
21
|
+
<g fillRule="nonzero" fill="none">
|
|
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.808 8C22.467 8 23 8.585 23 9.308v14.384c0 .723-.533 1.308-1.192 1.308H9.174c-.181-.007-.286-.45.021-.546.353-.138.807-.876.807-1.55V9.27c0-.722.65-1.27 1.308-1.27h10.498zM9 20v3.01c0 .525-.447.99-1 .99-.553 0-1-.465-1-.99V20h2zm10.458-6.002l.013.002h-5.938c-.258 0-.524.221-.524.497 0 .246.19.452.43.495l.094.008h5.943c.285 0 .532-.231.532-.5a.505.505 0 00-.415-.488L19.499 14l-.041-.002zM19.5 12h-6l-.09.008a.5.5 0 000 .984l.09.008h6l.09-.008A.5.5 0 0019.5 12z"
|
|
25
|
+
fill={vars.white}
|
|
26
|
+
/>
|
|
27
|
+
</g>
|
|
28
|
+
</AccessibleSVG>
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
export default RetentionPolicyModifiable32;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import RetentionPolicyModifiable32 from './RetentionPolicyModifiable32';
|
|
4
|
+
|
|
5
|
+
export const retentionPolicyModifiable32 = () => <RetentionPolicyModifiable32 />;
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Icon|Content|RetentionPolicyModifiable32',
|
|
9
|
+
component: RetentionPolicyModifiable32,
|
|
10
|
+
parameters: {
|
|
11
|
+
notes:
|
|
12
|
+
"`import RetentionPolicyModifiable32 from 'box-ui-elements/es/icon/content/RetentionPolicyModifiable32';`",
|
|
13
|
+
},
|
|
14
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-sort-props */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as vars from '../../styles/variables';
|
|
4
|
+
import AccessibleSVG, { SVGProps } from '../../components/accessible-svg/AccessibleSVG';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This is an auto-generated component and should not be edited
|
|
8
|
+
* manually in contributor pull requests.
|
|
9
|
+
*
|
|
10
|
+
* If you have problems with this component:
|
|
11
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
12
|
+
*
|
|
13
|
+
* If there are missing features in this component:
|
|
14
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const RetentionPolicyModifiable32 = (props: SVGProps) => (
|
|
18
|
+
<AccessibleSVG width={32} height={32} viewBox="0 0 32 32" {...props}>
|
|
19
|
+
<g fillRule="nonzero" fill="none">
|
|
20
|
+
<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} />
|
|
21
|
+
<path
|
|
22
|
+
d="M21.808 8C22.467 8 23 8.585 23 9.308v14.384c0 .723-.533 1.308-1.192 1.308H9.174c-.181-.007-.286-.45.021-.546.353-.138.807-.876.807-1.55V9.27c0-.722.65-1.27 1.308-1.27h10.498zM9 20v3.01c0 .525-.447.99-1 .99-.553 0-1-.465-1-.99V20h2zm10.458-6.002l.013.002h-5.938c-.258 0-.524.221-.524.497 0 .246.19.452.43.495l.094.008h5.943c.285 0 .532-.231.532-.5a.505.505 0 00-.415-.488L19.499 14l-.041-.002zM19.5 12h-6l-.09.008a.5.5 0 000 .984l.09.008h6l.09-.008A.5.5 0 0019.5 12z"
|
|
23
|
+
fill={vars.white}
|
|
24
|
+
/>
|
|
25
|
+
</g>
|
|
26
|
+
</AccessibleSVG>
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export default RetentionPolicyModifiable32;
|
|
@@ -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,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import RetentionPolicyNonModifiable32 from './RetentionPolicyNonModifiable32';
|
|
4
|
+
|
|
5
|
+
export const retentionPolicyNonModifiable32 = () => <RetentionPolicyNonModifiable32 />;
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Icon|Content|RetentionPolicyNonModifiable32',
|
|
9
|
+
component: RetentionPolicyNonModifiable32,
|
|
10
|
+
parameters: {
|
|
11
|
+
notes:
|
|
12
|
+
"`import RetentionPolicyNonModifiable32 from 'box-ui-elements/es/icon/content/RetentionPolicyNonModifiable32';`",
|
|
13
|
+
},
|
|
14
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-sort-props */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as vars from '../../styles/variables';
|
|
4
|
+
import AccessibleSVG, { SVGProps } from '../../components/accessible-svg/AccessibleSVG';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This is an auto-generated component and should not be edited
|
|
8
|
+
* manually in contributor pull requests.
|
|
9
|
+
*
|
|
10
|
+
* If you have problems with this component:
|
|
11
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Bug_report.md
|
|
12
|
+
*
|
|
13
|
+
* If there are missing features in this component:
|
|
14
|
+
* - https://github.com/box/box-ui-elements/issues/new?template=Feature_request.md
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const RetentionPolicyNonModifiable32 = (props: SVGProps) => (
|
|
18
|
+
<AccessibleSVG width={32} height={32} viewBox="0 0 32 32" {...props}>
|
|
19
|
+
<g fill="none" fillRule="evenodd">
|
|
20
|
+
<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} />
|
|
21
|
+
<path
|
|
22
|
+
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"
|
|
23
|
+
fill={vars.white}
|
|
24
|
+
/>
|
|
25
|
+
</g>
|
|
26
|
+
</AccessibleSVG>
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export default RetentionPolicyNonModifiable32;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import uniqueId from 'lodash/uniqueId';
|
|
3
2
|
|
|
4
3
|
import AccessibleSVG from '../accessible-svg';
|
|
5
4
|
|
|
6
5
|
import { TwoTonedIcon } from '../iconTypes';
|
|
6
|
+
import * as vars from '../../styles/variables';
|
|
7
7
|
|
|
8
8
|
const ICON_CLASS = 'unknown-user-avatar';
|
|
9
9
|
|
|
@@ -14,8 +14,6 @@ class UnknownUserAvatar extends React.PureComponent<TwoTonedIcon> {
|
|
|
14
14
|
width: 28,
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
idPrefix = `${uniqueId(ICON_CLASS)}-`;
|
|
18
|
-
|
|
19
17
|
render() {
|
|
20
18
|
const { className, height, title, width } = this.props;
|
|
21
19
|
return (
|
|
@@ -23,20 +21,14 @@ class UnknownUserAvatar extends React.PureComponent<TwoTonedIcon> {
|
|
|
23
21
|
className={`${ICON_CLASS} ${className}`}
|
|
24
22
|
height={height}
|
|
25
23
|
title={title}
|
|
26
|
-
viewBox="0 0
|
|
24
|
+
viewBox="0 0 16 16"
|
|
27
25
|
width={width}
|
|
28
26
|
>
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<path
|
|
35
|
-
className="fill-color"
|
|
36
|
-
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"
|
|
37
|
-
fill="#C3C3C3"
|
|
38
|
-
/>
|
|
39
|
-
</g>
|
|
27
|
+
<path
|
|
28
|
+
fill={vars.bdlGray50}
|
|
29
|
+
fillRule="evenodd"
|
|
30
|
+
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"
|
|
31
|
+
/>
|
|
40
32
|
</AccessibleSVG>
|
|
41
33
|
);
|
|
42
34
|
}
|