box-ui-elements 15.0.0-beta.7 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +3 -1
- package/dist/explorer.css +1 -1
- package/dist/explorer.js +58 -26
- package/dist/openwith.css +1 -1
- package/dist/openwith.js +10 -17
- package/dist/picker.css +1 -1
- package/dist/picker.js +12 -19
- package/dist/preview.css +1 -1
- package/dist/preview.js +56 -24
- package/dist/sharing.css +1 -1
- package/dist/sharing.js +54 -22
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +56 -24
- package/dist/uploader.css +1 -1
- package/dist/uploader.js +12 -19
- package/es/api/uploads/UploadsReachability.js.flow +2 -2
- package/es/api/uploads/UploadsReachability.js.map +1 -1
- package/es/common/messages.js +4 -0
- package/es/common/messages.js.flow +5 -0
- package/es/common/messages.js.map +1 -1
- package/es/common/types/core.js.flow +2 -0
- package/es/common/types/core.js.map +1 -1
- package/es/components/avatar/UnknownUserAvatar.js +6 -9
- package/es/components/avatar/UnknownUserAvatar.js.map +1 -1
- package/es/components/close-button/CloseButton.js +24 -0
- package/es/components/close-button/CloseButton.js.flow +26 -0
- package/es/components/close-button/CloseButton.js.map +1 -0
- package/es/components/close-button/CloseButton.scss +10 -0
- package/es/components/close-button/CloseButton.stories.js +14 -0
- package/es/components/close-button/CloseButton.stories.js.map +1 -0
- package/es/components/close-button/index.js +2 -0
- package/es/components/close-button/index.js.flow +2 -0
- package/es/components/close-button/index.js.map +1 -0
- package/es/components/date-picker/AccessiblePikaday.js +113 -0
- package/es/components/date-picker/AccessiblePikaday.js.map +1 -0
- package/es/components/date-picker/DatePicker.js +426 -106
- package/es/components/date-picker/DatePicker.js.map +1 -1
- package/es/components/date-picker/DatePicker.scss +32 -22
- package/es/components/date-picker/DatePicker.stories.js +10 -0
- package/es/components/date-picker/DatePicker.stories.js.map +1 -1
- package/es/components/date-picker/_pikaday.scss +8 -2
- package/es/components/flyout/Flyout.js +13 -3
- package/es/components/flyout/Flyout.js.flow +14 -3
- package/es/components/flyout/Flyout.js.map +1 -1
- package/es/components/flyout/Flyout.scss +40 -0
- package/es/components/flyout/FlyoutContext.js +6 -0
- package/es/components/flyout/FlyoutContext.js.flow +9 -0
- package/es/components/flyout/FlyoutContext.js.map +1 -0
- package/es/components/flyout/OverlayHeader.js +33 -0
- package/es/components/flyout/OverlayHeader.js.map +1 -0
- package/es/components/flyout/OverlayHeader.scss +9 -0
- package/es/components/flyout/_variables.scss +1 -0
- package/es/components/flyout/index.js +2 -0
- package/es/components/flyout/index.js.flow +2 -0
- package/es/components/flyout/index.js.map +1 -1
- package/es/components/image-tooltip/ImageTooltip.js +1 -2
- package/es/components/image-tooltip/ImageTooltip.js.map +1 -1
- package/es/components/media-query/constants.js +26 -0
- package/es/components/media-query/constants.js.flow +32 -0
- package/es/components/media-query/constants.js.map +1 -0
- package/es/components/media-query/index.js +3 -0
- package/es/components/media-query/index.js.flow +4 -0
- package/es/components/media-query/index.js.map +1 -0
- package/es/components/media-query/stories/MediaQuery.stories.js +37 -0
- package/es/components/media-query/stories/MediaQuery.stories.js.flow +80 -0
- package/es/components/media-query/stories/MediaQuery.stories.js.map +1 -0
- package/es/components/media-query/types.js +2 -0
- package/es/components/media-query/types.js.flow +29 -0
- package/es/components/media-query/types.js.map +1 -0
- package/es/components/media-query/useMediaQuery.js +91 -0
- package/es/components/media-query/useMediaQuery.js.flow +97 -0
- package/es/components/media-query/useMediaQuery.js.map +1 -0
- package/es/components/media-query/withMediaQuery.js +21 -0
- package/es/components/media-query/withMediaQuery.js.flow +23 -0
- package/es/components/media-query/withMediaQuery.js.map +1 -0
- package/es/components/modal/Modal.scss +27 -0
- package/es/components/preview/previewIcons.js +4 -0
- package/es/components/preview/previewIcons.js.map +1 -1
- package/es/components/search-form/SearchForm.scss +0 -5
- package/es/components/selector-dropdown/SelectorDropdown.js +5 -3
- package/es/components/selector-dropdown/SelectorDropdown.js.flow +3 -3
- package/es/components/selector-dropdown/SelectorDropdown.js.map +1 -1
- package/es/components/tab-view/Tabs.scss +0 -4
- package/es/components/tooltip/Tooltip.js +21 -4
- package/es/components/tooltip/Tooltip.js.map +1 -1
- package/es/constants.js +1 -0
- package/es/constants.js.flow +1 -0
- package/es/constants.js.map +1 -1
- package/es/elements/content-open-with/IconFileMap.js +0 -2
- package/es/elements/content-open-with/IconFileMap.js.flow +0 -2
- package/es/elements/content-open-with/IconFileMap.js.map +1 -1
- package/es/elements/content-sidebar/Sidebar.js +2 -1
- package/es/elements/content-sidebar/Sidebar.js.flow +1 -1
- package/es/elements/content-sidebar/Sidebar.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.scss +3 -3
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js +14 -4
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js.flow +18 -5
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js.map +1 -1
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js +78 -0
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.flow +97 -0
- package/es/elements/content-sidebar/versions/StaticVersionSidebar.js.map +1 -0
- package/es/elements/content-sidebar/versions/StaticVersionsSidebar.scss +67 -0
- package/es/elements/content-sidebar/versions/VersionsSidebar.js +12 -4
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.flow +16 -3
- package/es/elements/content-sidebar/versions/VersionsSidebar.js.map +1 -1
- package/es/elements/content-sidebar/versions/VersionsSidebar.scss +5 -0
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js +42 -10
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.flow +42 -7
- package/es/elements/content-sidebar/versions/VersionsSidebarContainer.js.map +1 -1
- package/es/elements/content-sidebar/versions/flowTypes.js.flow +1 -0
- package/es/elements/content-sidebar/versions/messages.js +20 -0
- package/es/elements/content-sidebar/versions/messages.js.flow +28 -0
- package/es/elements/content-sidebar/versions/messages.js.map +1 -1
- package/es/features/classification/constants.js +2 -1
- package/es/features/classification/constants.js.flow +2 -0
- package/es/features/classification/constants.js.map +1 -1
- package/es/features/classification/flowTypes.js +1 -0
- package/es/features/classification/flowTypes.js.flow +7 -1
- package/es/features/classification/flowTypes.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControls.js +3 -4
- package/es/features/classification/security-controls/SecurityControls.js.flow +3 -4
- package/es/features/classification/security-controls/SecurityControls.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.js +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.js.flow +20 -17
- package/es/features/classification/security-controls/SecurityControlsItem.js.map +1 -1
- package/es/features/classification/security-controls/SecurityControlsItem.scss +4 -0
- package/es/features/classification/security-controls/SecurityControlsModal.js +2 -2
- package/es/features/classification/security-controls/SecurityControlsModal.js.flow +2 -2
- package/es/features/classification/security-controls/SecurityControlsModal.js.map +1 -1
- package/es/features/classification/security-controls/messages.js +4 -0
- package/es/features/classification/security-controls/messages.js.flow +5 -0
- package/es/features/classification/security-controls/messages.js.map +1 -1
- package/es/features/classification/security-controls/utils.js +56 -35
- package/es/features/classification/security-controls/utils.js.flow +51 -27
- package/es/features/classification/security-controls/utils.js.map +1 -1
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js +9 -3
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js.flow +13 -5
- package/es/features/collapsible-sidebar/CollapsibleSidebar.js.map +1 -1
- package/es/features/collapsible-sidebar/CollapsibleSidebar.scss +35 -3
- package/es/features/content-explorer/content-explorer/ContentExplorer.scss +1 -1
- package/es/features/content-explorer/item-list/ItemList.js +1 -0
- package/es/features/content-explorer/item-list/ItemList.js.flow +1 -0
- package/es/features/content-explorer/item-list/ItemList.js.map +1 -1
- package/es/features/content-explorer/item-list/ItemListName.js +13 -2
- package/es/features/content-explorer/item-list/ItemListName.js.flow +3 -2
- package/es/features/content-explorer/item-list/ItemListName.js.map +1 -1
- package/es/features/header-flyout/HeaderFlyout.js +8 -10
- package/es/features/header-flyout/HeaderFlyout.js.flow +4 -8
- package/es/features/header-flyout/HeaderFlyout.js.map +1 -1
- package/es/features/header-flyout/styles/HeaderFlyout.scss +54 -15
- package/es/features/header-flyout/styles/_variables.scss +4 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js +1 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js.flow +1 -0
- package/es/features/message-center/components/message-center-modal/MessageCenterModal.js.map +1 -1
- package/es/features/presence/PresenceCollaborator.js +90 -0
- package/es/features/presence/PresenceCollaborator.js.flow +81 -0
- package/es/features/presence/PresenceCollaborator.js.map +1 -0
- package/es/features/presence/PresenceCollaborator.scss +28 -0
- package/es/features/presence/PresenceCollaboratorsList.js +9 -57
- package/es/features/presence/PresenceCollaboratorsList.js.flow +7 -58
- package/es/features/presence/PresenceCollaboratorsList.js.map +1 -1
- package/es/features/presence/PresenceCollaboratorsList.scss +8 -35
- package/es/features/quick-search/QuickSearch.js +4 -2
- package/es/features/quick-search/QuickSearch.js.flow +13 -1
- package/es/features/quick-search/QuickSearch.js.map +1 -1
- package/es/features/unified-share-modal/SharedLinkSection.js +9 -20
- package/es/features/unified-share-modal/SharedLinkSection.js.flow +6 -27
- package/es/features/unified-share-modal/SharedLinkSection.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareForm.js +95 -53
- package/es/features/unified-share-modal/UnifiedShareForm.js.flow +70 -14
- package/es/features/unified-share-modal/UnifiedShareForm.js.map +1 -1
- package/es/features/unified-share-modal/UnifiedShareModal.scss +3 -0
- package/es/features/unified-share-modal/flowTypes.js.flow +6 -0
- package/es/features/unified-share-modal/flowTypes.js.map +1 -1
- package/es/features/unified-share-modal/messages.js +8 -0
- package/es/features/unified-share-modal/messages.js.flow +10 -0
- package/es/features/unified-share-modal/messages.js.map +1 -1
- package/es/features/unified-share-modal/utils/mergeContacts.js +13 -10
- package/es/features/unified-share-modal/utils/mergeContacts.js.flow +4 -2
- package/es/features/unified-share-modal/utils/mergeContacts.js.map +1 -1
- package/es/icon/content/FileXbd32.js +39 -0
- package/es/icon/content/FileXbd32.js.flow +38 -0
- package/es/icon/content/FileXbd32.js.map +1 -0
- package/es/icon/content/FileXbd32.stories.js +13 -0
- package/es/icon/content/FileXbd32.stories.js.map +1 -0
- package/es/icon/content/FileXdw32.js +39 -0
- package/es/icon/content/FileXdw32.js.flow +38 -0
- package/es/icon/content/FileXdw32.js.map +1 -0
- package/es/icon/content/FileXdw32.stories.js +13 -0
- package/es/icon/content/FileXdw32.stories.js.map +1 -0
- package/es/icon/content/RetentionPolicyModifiable32.js +36 -0
- package/es/icon/content/RetentionPolicyModifiable32.js.flow +31 -0
- package/es/icon/content/RetentionPolicyModifiable32.js.map +1 -0
- package/es/icon/content/RetentionPolicyModifiable32.stories.js +13 -0
- package/es/icon/content/RetentionPolicyModifiable32.stories.js.map +1 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js +36 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js.flow +31 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.js.map +1 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.stories.js +13 -0
- package/es/icon/content/RetentionPolicyNonModifiable32.stories.js.map +1 -0
- package/es/icons/avatars/UnknownUserAvatar.js +10 -34
- package/es/icons/avatars/UnknownUserAvatar.js.map +1 -1
- package/es/icons/file-icon/FileIcon.js +8 -2
- package/es/icons/file-icon/FileIcon.js.flow +2 -2
- package/es/icons/file-icon/FileIcon.js.map +1 -1
- package/es/icons/general/IconSearch.js +1 -1
- package/es/icons/general/IconSearch.js.flow +1 -1
- package/es/icons/general/IconSearch.js.map +1 -1
- package/es/icons/general/IconSearchJuicy.js +30 -0
- package/es/icons/general/IconSearchJuicy.js.flow +26 -0
- package/es/icons/general/IconSearchJuicy.js.map +1 -0
- package/es/icons/google-docs/IconGoogle.js +89 -0
- package/es/icons/google-docs/IconGoogle.js.flow +57 -0
- package/es/icons/google-docs/IconGoogle.js.map +1 -0
- package/es/icons/item-icon/ItemIcon.js +4 -0
- package/es/icons/item-icon/ItemIcon.js.map +1 -1
- package/es/icons/microsoft-office/IconOffice.js +80 -0
- package/es/icons/microsoft-office/IconOffice.js.flow +45 -0
- package/es/icons/microsoft-office/IconOffice.js.map +1 -0
- package/es/illustration/EmailVerification140.js +111 -0
- package/es/illustration/EmailVerification140.js.flow +102 -0
- package/es/illustration/EmailVerification140.js.map +1 -0
- package/es/illustration/EmailVerification140.stories.js +13 -0
- package/es/illustration/EmailVerification140.stories.js.map +1 -0
- package/es/src/components/close-button/CloseButton.d.ts +9 -0
- package/es/src/components/close-button/CloseButton.stories.d.ts +9 -0
- package/es/src/components/close-button/__tests__/CloseButton.stories.test.d.ts +0 -0
- package/es/src/components/close-button/__tests__/CloseButton.test.d.ts +1 -0
- package/es/src/components/close-button/index.d.ts +1 -0
- package/es/src/components/date-picker/AccessiblePikaday.d.ts +16 -0
- package/es/src/components/date-picker/DatePicker.d.ts +33 -6
- package/es/src/components/date-picker/DatePicker.stories.d.ts +2 -1
- package/es/src/components/flyout/OverlayHeader.d.ts +10 -0
- package/es/src/components/tooltip/Tooltip.d.ts +4 -3
- package/es/src/icon/content/FileXbd32.d.ts +13 -0
- package/es/src/icon/content/FileXbd32.stories.d.ts +9 -0
- package/es/src/icon/content/FileXdw32.d.ts +13 -0
- package/es/src/icon/content/FileXdw32.stories.d.ts +9 -0
- package/es/src/icon/content/RetentionPolicyModifiable32.d.ts +13 -0
- package/es/src/icon/content/RetentionPolicyModifiable32.stories.d.ts +9 -0
- package/es/src/icon/content/RetentionPolicyNonModifiable32.d.ts +13 -0
- package/es/src/icon/content/RetentionPolicyNonModifiable32.stories.d.ts +9 -0
- package/es/src/icons/avatars/UnknownUserAvatar.d.ts +0 -1
- package/es/src/icons/general/IconSearchJuicy.d.ts +3 -0
- package/es/src/icons/general/__tests__/IconSearchJuicy.test.d.ts +1 -0
- package/es/src/icons/google-docs/IconGoogle.d.ts +12 -0
- package/es/src/icons/google-docs/__tests__/IconGoogle.test.d.ts +1 -0
- package/es/src/icons/item-icon/ItemIcon.d.ts +2 -0
- package/es/src/icons/microsoft-office/IconOffice.d.ts +12 -0
- package/es/src/icons/microsoft-office/__tests__/IconOffice.test.d.ts +1 -0
- package/es/src/illustration/EmailVerification140.d.ts +13 -0
- package/es/src/illustration/EmailVerification140.stories.d.ts +9 -0
- package/es/src/styles/variables.d.ts +9 -0
- package/es/styles/_variables.scss +1 -0
- package/es/styles/common/_forms.scss +6 -0
- package/es/styles/constants/_layout.scss +3 -0
- package/es/styles/constants/_media-queries.scss +15 -0
- package/es/styles/variables.js +18 -0
- package/es/styles/variables.js.flow +10 -1
- package/es/styles/variables.js.map +1 -1
- package/es/utils/Browser.js +12 -0
- package/es/utils/Browser.js.flow +10 -0
- package/es/utils/Browser.js.map +1 -1
- package/es/utils/validators.js +26 -4
- package/es/utils/validators.js.flow +25 -3
- package/es/utils/validators.js.map +1 -1
- package/i18n/bn-IN.js +12 -0
- package/i18n/bn-IN.properties +24 -0
- package/i18n/da-DK.js +12 -0
- package/i18n/da-DK.properties +24 -0
- package/i18n/de-DE.js +12 -0
- package/i18n/de-DE.properties +24 -0
- package/i18n/en-AU.js +12 -0
- package/i18n/en-AU.properties +24 -0
- package/i18n/en-CA.js +12 -0
- package/i18n/en-CA.properties +24 -0
- package/i18n/en-GB.js +12 -0
- package/i18n/en-GB.properties +24 -0
- package/i18n/en-US.js +12 -0
- package/i18n/en-US.properties +24 -0
- package/i18n/en-x-pseudo.js +12 -0
- package/i18n/es-419.js +12 -0
- package/i18n/es-419.properties +24 -0
- package/i18n/es-ES.js +12 -0
- package/i18n/es-ES.properties +24 -0
- package/i18n/fi-FI.js +12 -0
- package/i18n/fi-FI.properties +24 -0
- package/i18n/fr-CA.js +12 -0
- package/i18n/fr-CA.properties +24 -0
- package/i18n/fr-FR.js +12 -0
- package/i18n/fr-FR.properties +24 -0
- package/i18n/hi-IN.js +12 -0
- package/i18n/hi-IN.properties +24 -0
- package/i18n/it-IT.js +12 -0
- package/i18n/it-IT.properties +24 -0
- package/i18n/ja-JP.js +25 -13
- package/i18n/ja-JP.properties +37 -13
- package/i18n/ko-KR.js +12 -0
- package/i18n/ko-KR.properties +24 -0
- package/i18n/nb-NO.js +12 -0
- package/i18n/nb-NO.properties +24 -0
- package/i18n/nl-NL.js +12 -0
- package/i18n/nl-NL.properties +24 -0
- package/i18n/pl-PL.js +12 -0
- package/i18n/pl-PL.properties +24 -0
- package/i18n/pt-BR.js +12 -0
- package/i18n/pt-BR.properties +24 -0
- package/i18n/ru-RU.js +12 -0
- package/i18n/ru-RU.properties +24 -0
- package/i18n/sv-SE.js +12 -0
- package/i18n/sv-SE.properties +24 -0
- package/i18n/tr-TR.js +12 -0
- package/i18n/tr-TR.properties +24 -0
- package/i18n/zh-CN.js +12 -0
- package/i18n/zh-CN.properties +24 -0
- package/i18n/zh-TW.js +12 -0
- package/i18n/zh-TW.properties +24 -0
- package/package.json +8 -5
- package/src/__mocks__/pikaday.js +1 -0
- package/src/api/__tests__/MockOpenWithData.json +2 -25
- package/src/api/uploads/UploadsReachability.js +2 -2
- package/src/common/messages.js +5 -0
- package/src/common/types/core.js +2 -0
- package/src/components/avatar/UnknownUserAvatar.tsx +5 -4
- package/src/components/close-button/CloseButton.js.flow +26 -0
- package/src/components/close-button/CloseButton.scss +10 -0
- package/src/components/close-button/CloseButton.stories.md +1 -0
- package/src/components/close-button/CloseButton.stories.tsx +14 -0
- package/src/components/close-button/CloseButton.tsx +30 -0
- package/src/components/close-button/__tests__/CloseButton.stories.test.tsx +6 -0
- package/src/components/close-button/__tests__/CloseButton.test.tsx +40 -0
- package/src/components/close-button/__tests__/__image_snapshots__/close-button-stories-test-tsx-components-close-button-close-button-looks-visually-correct-when-using-story-components-buttons-closebutton-regular-1-snap.png +0 -0
- package/src/components/close-button/index.js.flow +2 -0
- package/src/components/close-button/index.ts +1 -0
- package/src/components/date-picker/AccessiblePikaday.ts +79 -0
- package/src/components/date-picker/DatePicker.scss +32 -22
- package/src/components/date-picker/DatePicker.stories.tsx +6 -0
- package/src/components/date-picker/DatePicker.tsx +350 -64
- package/src/components/date-picker/__tests__/DatePicker.test.tsx +44 -2
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-allows-editing-in-story-components-datepicker-manually-editable-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-allows-keyboard-selection-in-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-closes-calendar-and-clears-date-for-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-custom-error-tooltip-position-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-disabled-with-error-message-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-manually-editable-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-description-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-limited-date-range-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-looks-visually-correct-when-using-story-components-datepicker-with-range-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-reflects-changes-in-components-datepicker-always-visible-with-custom-input-field-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-shows-calendar-and-date-for-components-datepicker-basic-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/__image_snapshots__/date-picker-stories-test-tsx-components-date-picker-date-picker-shows-limited-range-in-components-datepicker-with-limited-date-range-1-snap.png +0 -0
- package/src/components/date-picker/_pikaday.scss +8 -2
- package/src/components/flyout/Flyout.js +14 -3
- package/src/components/flyout/Flyout.scss +40 -0
- package/src/components/flyout/FlyoutContext.js +9 -0
- package/src/components/flyout/OverlayHeader.scss +9 -0
- package/src/components/flyout/OverlayHeader.tsx +38 -0
- package/src/components/flyout/__tests__/Flyout.test.js +15 -0
- package/src/components/flyout/__tests__/OverlayHeader.test.js +56 -0
- package/src/components/flyout/_variables.scss +1 -0
- package/src/components/flyout/index.js +2 -0
- package/src/components/image-tooltip/ImageTooltip.tsx +1 -2
- package/src/components/media-query/__tests__/useMediaQuery.test.js +48 -0
- package/src/components/media-query/__tests__/withMediaQuery.test.js +29 -0
- package/src/components/media-query/constants.js +32 -0
- package/src/components/media-query/index.js +4 -0
- package/src/components/media-query/stories/MediaQuery.stories.js +80 -0
- package/src/components/media-query/stories/MediaQuery.stories.md +29 -0
- package/src/components/media-query/types.js +29 -0
- package/src/components/media-query/useMediaQuery.js +97 -0
- package/src/components/media-query/withMediaQuery.js +23 -0
- package/src/components/modal/Modal.scss +27 -0
- package/src/components/modal/__tests__/Modal.stories.test.js +10 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-stories-test-js-components-modal-modal-looks-visually-correct-for-small-screens-when-button-is-clicked-in-story-components-modal-basic-1-snap.png +0 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-stories-test-js-components-modal-modal-looks-visually-correct-for-small-screens-when-button-is-clicked-in-story-components-modal-with-custom-backdrop-click-handler-1-snap.png +0 -0
- package/src/components/preview/previewIcons.ts +4 -0
- package/src/components/search-form/SearchForm.scss +0 -5
- package/src/components/selector-dropdown/SelectorDropdown.js +3 -3
- package/src/components/selector-dropdown/__tests__/SelectorDropdown.test.js +5 -1
- package/src/components/sidebar-toggle-button/__tests__/__snapshots__/SidebarToggleButton.test.js.snap +0 -8
- package/src/components/tab-view/Tabs.scss +0 -4
- package/src/components/tooltip/Tooltip.tsx +20 -5
- package/src/components/tooltip/__tests__/Tooltip.test.tsx +17 -4
- package/src/components/tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +0 -2
- package/src/constants.js +1 -0
- package/src/elements/content-open-with/IconFileMap.js +0 -2
- package/src/elements/content-open-with/__tests__/ContentOpenWith.test.js +13 -13
- package/src/elements/content-open-with/__tests__/OpenWithButton.test.js +1 -1
- package/src/elements/content-open-with/__tests__/OpenWithDropdownMenu.test.js +1 -5
- package/src/elements/content-open-with/__tests__/OpenWithDropdownMenuItem.test.js +2 -2
- package/src/elements/content-open-with/__tests__/__snapshots__/ContentOpenWith.test.js.snap +5 -5
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithButton.test.js.snap +1 -1
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithDropdownMenu.test.js.snap +1 -11
- package/src/elements/content-open-with/__tests__/__snapshots__/OpenWithDropdownMenuItem.test.js.snap +4 -3
- package/src/elements/content-sidebar/Sidebar.js +1 -1
- package/src/elements/content-sidebar/__tests__/AddTaskButton.test.js +15 -0
- package/src/elements/content-sidebar/activity-feed/common/delete-confirmation/DeleteConfirmation.scss +3 -3
- package/src/elements/content-sidebar/activity-feed/task-form/TaskForm.js +18 -5
- package/src/elements/content-sidebar/versions/StaticVersionSidebar.js +97 -0
- package/src/elements/content-sidebar/versions/StaticVersionsSidebar.scss +67 -0
- package/src/elements/content-sidebar/versions/VersionsSidebar.js +16 -3
- package/src/elements/content-sidebar/versions/VersionsSidebar.scss +5 -0
- package/src/elements/content-sidebar/versions/VersionsSidebarContainer.js +42 -7
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebar.test.js +18 -1
- package/src/elements/content-sidebar/versions/__tests__/VersionsSidebarContainer.test.js +51 -2
- package/src/elements/content-sidebar/versions/__tests__/__snapshots__/VersionsSidebarContainer.test.js.snap +75 -0
- package/src/elements/content-sidebar/versions/flowTypes.js +1 -0
- package/src/elements/content-sidebar/versions/messages.js +28 -0
- package/src/features/classification/constants.js +2 -0
- package/src/features/classification/flowTypes.js +7 -1
- package/src/features/classification/security-controls/SecurityControls.js +3 -4
- package/src/features/classification/security-controls/SecurityControlsItem.js +20 -17
- package/src/features/classification/security-controls/SecurityControlsItem.scss +4 -0
- package/src/features/classification/security-controls/SecurityControlsModal.js +2 -2
- package/src/features/classification/security-controls/__tests__/SecurityControlsItem.test.js +10 -0
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControls.test.js.snap +6 -6
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControlsItem.test.js.snap +35 -0
- package/src/features/classification/security-controls/__tests__/__snapshots__/SecurityControlsModal.test.js.snap +2 -2
- package/src/features/classification/security-controls/__tests__/__snapshots__/utils.test.js.snap +20 -0
- package/src/features/classification/security-controls/__tests__/utils.test.js +38 -18
- package/src/features/classification/security-controls/messages.js +5 -0
- package/src/features/classification/security-controls/utils.js +51 -27
- package/src/features/collapsible-sidebar/CollapsibleSidebar.js +13 -5
- package/src/features/collapsible-sidebar/CollapsibleSidebar.scss +35 -3
- package/src/features/collapsible-sidebar/__tests__/CollapsibleSidebar.test.js +35 -0
- package/src/features/collapsible-sidebar/__tests__/__snapshots__/CollapsibleSidebar.test.js.snap +1 -0
- package/src/features/content-explorer/content-explorer/ContentExplorer.scss +1 -1
- package/src/features/content-explorer/item-list/ItemList.js +1 -0
- package/src/features/content-explorer/item-list/ItemListName.js +3 -2
- package/src/features/content-explorer/item-list/__tests__/ItemListName.test.js +16 -2
- package/src/features/header-flyout/HeaderFlyout.js +4 -8
- package/src/features/header-flyout/__tests__/__snapshots__/HeaderFlyout.test.js.snap +14 -11
- package/src/features/header-flyout/styles/HeaderFlyout.scss +54 -15
- package/src/features/header-flyout/styles/_variables.scss +4 -0
- package/src/features/message-center/components/message-center-modal/MessageCenterModal.js +1 -0
- package/src/features/metadata-instance-editor/__tests__/__snapshots__/TemplateDropdown.test.js.snap +7 -0
- package/src/features/pagination/__tests__/__snapshots__/MarkerBasedPagination.test.js.snap +0 -8
- package/src/features/pagination/__tests__/__snapshots__/OffsetBasedPagination.test.js.snap +0 -16
- package/src/features/presence/PresenceCollaborator.js +81 -0
- package/src/features/presence/PresenceCollaborator.scss +28 -0
- package/src/features/presence/PresenceCollaboratorsList.js +7 -58
- package/src/features/presence/PresenceCollaboratorsList.scss +8 -35
- package/src/features/presence/__tests__/PresenceCollaborator.test.js +36 -0
- package/src/features/presence/__tests__/PresenceCollaboratorsList.test.js +13 -57
- package/src/features/presence/__tests__/__snapshots__/Presence.test.js.snap +5 -0
- package/src/features/presence/__tests__/__snapshots__/PresenceLink.test.js.snap +3 -0
- package/src/features/query-bar/__tests__/__snapshots__/ColumnButton.test.js.snap +3 -0
- package/src/features/quick-search/QuickSearch.js +13 -1
- package/src/features/quick-search/__tests__/QuickSearch.test.js +17 -0
- package/src/features/unified-share-modal/SharedLinkSection.js +6 -27
- package/src/features/unified-share-modal/UnifiedShareForm.js +70 -14
- package/src/features/unified-share-modal/UnifiedShareModal.scss +3 -0
- package/src/features/unified-share-modal/__tests__/EmailForm.test.js +9 -0
- package/src/features/unified-share-modal/__tests__/SharedLinkSection.test.js +14 -4
- package/src/features/unified-share-modal/__tests__/UnifiedShareForm.test.js +53 -4
- package/src/features/unified-share-modal/__tests__/__snapshots__/SharedLinkSection.test.js.snap +9 -0
- package/src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareForm.test.js.snap +0 -159
- package/src/features/unified-share-modal/flowTypes.js +6 -0
- package/src/features/unified-share-modal/messages.js +10 -0
- package/src/features/unified-share-modal/utils/__tests__/mergeContacts.test.js +23 -0
- package/src/features/unified-share-modal/utils/mergeContacts.js +4 -2
- package/src/icon/content/FileXbd32.js.flow +38 -0
- package/src/icon/content/FileXbd32.stories.tsx +13 -0
- package/src/icon/content/FileXbd32.tsx +37 -0
- package/src/icon/content/FileXdw32.js.flow +38 -0
- package/src/icon/content/FileXdw32.stories.tsx +13 -0
- package/src/icon/content/FileXdw32.tsx +37 -0
- package/src/icon/content/RetentionPolicyModifiable32.js.flow +31 -0
- package/src/icon/content/RetentionPolicyModifiable32.stories.tsx +14 -0
- package/src/icon/content/RetentionPolicyModifiable32.tsx +29 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.js.flow +31 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.stories.tsx +14 -0
- package/src/icon/content/RetentionPolicyNonModifiable32.tsx +29 -0
- package/src/icons/adobe-sign/README.md +1 -1
- package/src/icons/avatars/UnknownUserAvatar.tsx +7 -15
- package/src/icons/file-icon/FileIcon.js.flow +2 -2
- package/src/icons/file-icon/FileIcon.tsx +8 -2
- package/src/icons/file-icon/__tests__/FileIcon.test.tsx +28 -69
- package/src/icons/file-icon/__tests__/__snapshots__/FileIcon.test.tsx.snap +48 -34
- package/src/icons/general/IconSearch.js.flow +1 -1
- package/src/icons/general/IconSearch.tsx +1 -1
- package/src/icons/general/IconSearchJuicy.js.flow +26 -0
- package/src/icons/general/IconSearchJuicy.tsx +25 -0
- package/src/icons/general/README.md +5 -0
- package/src/icons/general/__tests__/IconSearchJuicy.test.tsx +38 -0
- package/src/icons/google-docs/IconGoogle.js.flow +57 -0
- package/src/icons/google-docs/IconGoogle.tsx +50 -0
- package/src/icons/google-docs/__tests__/IconGoogle.test.tsx +44 -0
- package/src/icons/item-icon/ItemIcon.tsx +4 -0
- package/src/icons/item-icon/__tests__/ItemIcon.test.tsx +47 -115
- package/src/icons/item-icon/__tests__/__snapshots__/ItemIcon.test.tsx.snap +229 -229
- package/src/icons/microsoft-office/IconOffice.js.flow +45 -0
- package/src/icons/microsoft-office/IconOffice.tsx +38 -0
- package/src/icons/microsoft-office/__tests__/IconOffice.test.tsx +44 -0
- package/src/illustration/EmailVerification140.js.flow +102 -0
- package/src/illustration/EmailVerification140.stories.tsx +13 -0
- package/src/illustration/EmailVerification140.tsx +100 -0
- package/src/styles/_variables.scss +1 -0
- package/src/styles/common/_forms.scss +6 -0
- package/src/styles/constants/_layout.scss +3 -0
- package/src/styles/constants/_media-queries.scss +15 -0
- package/src/styles/variables.js +10 -1
- package/src/styles/variables.json +10 -1
- package/src/styles/variables.ts +9 -0
- package/src/utils/Browser.js +10 -0
- package/src/utils/validators.js +25 -3
|
@@ -0,0 +1,45 @@
|
|
|
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-office';
|
|
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 IconOfficeDefault 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 64 77"
|
|
34
|
+
width={width}
|
|
35
|
+
>
|
|
36
|
+
<path
|
|
37
|
+
d="M 0 62.113281 L 0 15.304688 L 41.464844 0.00390625 L 64 7.199219 L 64 70.214844 L 41.464844 77 L 0 62.113281 L 41.464844 67.097656 L 41.464844 12.605469 L 14.421875 18.90625 L 14.421875 55.816406 Z M 0 62.113281 "
|
|
38
|
+
fill="#d83b01"
|
|
39
|
+
/>
|
|
40
|
+
</AccessibleSVG>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export default IconOfficeDefault;
|
|
@@ -0,0 +1,38 @@
|
|
|
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-office';
|
|
9
|
+
|
|
10
|
+
class IconOffice 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 64 77"
|
|
27
|
+
width={width}
|
|
28
|
+
>
|
|
29
|
+
<path
|
|
30
|
+
d="M 0 62.113281 L 0 15.304688 L 41.464844 0.00390625 L 64 7.199219 L 64 70.214844 L 41.464844 77 L 0 62.113281 L 41.464844 67.097656 L 41.464844 12.605469 L 14.421875 18.90625 L 14.421875 55.816406 Z M 0 62.113281 "
|
|
31
|
+
fill="#d83b01"
|
|
32
|
+
/>
|
|
33
|
+
</AccessibleSVG>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default IconOffice;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { shallow } from 'enzyme';
|
|
3
|
+
import IconOffice from '../IconOffice';
|
|
4
|
+
|
|
5
|
+
describe('icons/microsoft-office/IconOffice', () => {
|
|
6
|
+
const getWrapper = (props = {}) => shallow(<IconOffice {...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-office')).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
|
+
});
|
|
@@ -0,0 +1,102 @@
|
|
|
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 EmailVerification140 = (props: Icon) => (
|
|
20
|
+
<AccessibleSVG width={140} height={140} viewBox="0 0 140 140" {...props}>
|
|
21
|
+
<g fill="none" fillRule="evenodd">
|
|
22
|
+
<path
|
|
23
|
+
d="M118.5 103a8.498 8.498 0 00-8.5 8.5c0 4.696 3.804 8.5 8.5 8.5s8.5-3.804 8.5-8.5-3.804-8.5-8.5-8.5zM65 12c-5.525 0-10 4.475-10 10s4.475 10 10 10 10-4.475 10-10-4.475-10-10-10zM41 92c-7.731 0-14 6.269-14 14s6.269 14 14 14 14-6.269 14-14-6.269-14-14-14z"
|
|
24
|
+
fill={vars.bdlBoxBlue10}
|
|
25
|
+
fillRule="nonzero"
|
|
26
|
+
/>
|
|
27
|
+
<path
|
|
28
|
+
d="M30.626 32.076a6.653 6.653 0 011.759-.033l.24.03.26.041 78.199 13.745.275.054.309.074.27.077c.342.104.672.232.988.383l.294.149c.156.082.307.17.454.264l.294.197.268.198.048.038c.1.08.199.162.295.246l.246.228.236.241.181.2.053.062c.085.1.167.202.247.307l.149.204.097.14.12.186.17.285.494.903-.051.034a7.105 7.105 0 01.42 3.485l-.052.332-8.48 47.94a7.165 7.165 0 01-8.057 5.842l-.238-.037-78.198-13.745a7.152 7.152 0 01-5.844-8.05l.038-.237 8.48-47.94a7.166 7.166 0 015.7-5.786l.336-.057z"
|
|
29
|
+
fill={vars.bdlBoxBlue}
|
|
30
|
+
fillRule="nonzero"
|
|
31
|
+
/>
|
|
32
|
+
<path
|
|
33
|
+
d="M32.32 34.048a5.159 5.159 0 00-1.432.015 4.461 4.461 0 00-.993.291c.152.453.32.82.553 1.186l.148.22.14.19 31.21 40.72c1.705 2.223 4.99 2.855 7.409 1.465l.21-.128 44.382-28.333-.075-.093-.153-.172-.16-.165-.162-.153-.152-.132a5.136 5.136 0 00-.308-.238l-.16-.11-.211-.132-.211-.118-.215-.107-.14-.064-.145-.06-.23-.085-.085-.029a5.189 5.189 0 00-.47-.128l-.239-.048-78.275-13.756-.237-.036z"
|
|
34
|
+
fill={vars.white}
|
|
35
|
+
fillRule="nonzero"
|
|
36
|
+
/>
|
|
37
|
+
<path
|
|
38
|
+
d="M28.14 35.388a5.133 5.133 0 00-1.519 2.622l-.053.263-8.488 47.976a5.127 5.127 0 00.48 3.231c.314-.625.836-1.257 1.575-1.858l.177-.14 29.794-22.973 1.217 1.588-29.79 22.968c-1.96 1.511-1.764 2.562.553 3.021l.192.036 78.475 13.791.378.058c.444.058.816.066 1.116.025 1.047-.143 1.221-.88.503-2.183l-.09-.16-.202-.327-20.115-31.103 1.686-1.076 20.109 31.093c.53.82.843 1.597.962 2.3a5.132 5.132 0 001.377-2.481l.055-.268 8.488-47.976a5.127 5.127 0 00-.134-2.365L70.642 79.692c-3.236 2.066-7.693 1.342-10.12-1.602l-.163-.204-31.21-40.72a6.899 6.899 0 01-1.008-1.778z"
|
|
39
|
+
fill={vars.white}
|
|
40
|
+
fillRule="nonzero"
|
|
41
|
+
/>
|
|
42
|
+
<g transform="translate(62 53.005)">
|
|
43
|
+
<path
|
|
44
|
+
d="M50.065 0H5.935A5.938 5.938 0 000 5.93v22.14C0 31.35 2.655 34 5.935 34h44.13A5.938 5.938 0 0056 28.07V5.93C56 2.65 53.345 0 50.065 0z"
|
|
45
|
+
fill={vars.bdlBoxBlue}
|
|
46
|
+
fillRule="nonzero"
|
|
47
|
+
/>
|
|
48
|
+
<path
|
|
49
|
+
d="M5.935 2h44.13A3.928 3.928 0 0154 5.93v22.14A3.938 3.938 0 0150.065 32H5.935A3.928 3.928 0 012 28.07V5.93A3.938 3.938 0 015.935 2z"
|
|
50
|
+
fill={vars.bdlBoxBlue05}
|
|
51
|
+
fillRule="nonzero"
|
|
52
|
+
/>
|
|
53
|
+
<rect fill={vars.bdlBoxBlue} x={33} y={14} width={16} height={1} rx={0.5} />
|
|
54
|
+
<rect fill={vars.bdlBoxBlue} x={33} y={18} width={12} height={1} rx={0.5} />
|
|
55
|
+
<rect fill={vars.bdlBoxBlue} x={33} y={22} width={14} height={1} rx={0.5} />
|
|
56
|
+
<path
|
|
57
|
+
d="M17 5c6.627 0 12 5.373 12 12s-5.373 12-12 12S5 23.627 5 17 10.373 5 17 5z"
|
|
58
|
+
fill={vars.white}
|
|
59
|
+
fillRule="nonzero"
|
|
60
|
+
/>
|
|
61
|
+
<path
|
|
62
|
+
d="M17 5c6.627 0 12 5.373 12 12l-.004.33-.022.466-.037.439-.027.243-.044.32-.093.54-.078.364-.112.447.021-.082c-.062.239-.133.475-.21.707l-.14.4-.153.391c-.15.364-.317.72-.501 1.065l-.242.432-.257.419-.162.245-.234.333-.288.38-.285.346-.155.178-.212.234-.166.173-.305.303-.287.265A11.956 11.956 0 0117 29a11.95 11.95 0 01-7.49-2.625l-.292-.24-.163-.141-.343-.315-.27-.266-.232-.244-.342-.384-.33-.402a12.31 12.31 0 01-.306-.411l-.17-.243-.294-.456-.179-.3a12.119 12.119 0 01-.456-.875l-.12-.265-.15-.358-.137-.354c-.077-.212-.149-.427-.215-.644l-.094-.328-.07-.269-.067-.292-.094-.47-.052-.32-.062-.48-.029-.291-.025-.368A12.197 12.197 0 015 17c0-6.627 5.373-12 12-12zm0 15a7.998 7.998 0 00-7.006 4.135A9.965 9.965 0 0017 27c2.728 0 5.2-1.092 7.005-2.863A7.992 7.992 0 0017 20zm0-10a4 4 0 100 8 4 4 0 000-8z"
|
|
63
|
+
fill={vars.bdlBoxBlue}
|
|
64
|
+
fillRule="nonzero"
|
|
65
|
+
/>
|
|
66
|
+
</g>
|
|
67
|
+
<g fillRule="nonzero">
|
|
68
|
+
<path
|
|
69
|
+
d="M125.751 51.943L105.02 40.338c-1.304-.73-2.892-.219-3.488 1.122l-4.29 9.634c-.552 1.24-.134 2.742 1.02 3.388l18.245 10.212c1.153.646 2.698.246 3.528-.835l6.462-8.419c.9-1.173.56-2.767-.745-3.497z"
|
|
70
|
+
fill={vars.bdlBoxBlue}
|
|
71
|
+
/>
|
|
72
|
+
<path
|
|
73
|
+
d="M103.94 42.077l20.524 11.81c.253.145.305.396.132.628l-6.397 8.567c-.242.325-.673.44-.892.313l-18.06-10.392c-.217-.124-.332-.549-.172-.919l4.246-9.804c.116-.268.364-.35.62-.203z"
|
|
74
|
+
fill={vars.white}
|
|
75
|
+
/>
|
|
76
|
+
<path
|
|
77
|
+
d="M118.642 45.647l-4.78-2.75a1 1 0 00-1.206.16l-11.69 11.717a1 1 0 00.21 1.573l12.134 6.982a1 1 0 001.464-.605l4.334-15.948a1 1 0 00-.466-1.13z"
|
|
78
|
+
fill={vars.bdlBoxBlue}
|
|
79
|
+
/>
|
|
80
|
+
<path fill={vars.white} d="M116.975 46.995l-3.791 13.953-9.882-5.685 10.228-10.25z" />
|
|
81
|
+
<path
|
|
82
|
+
d="M99.506 48.663c-1.261-.735-2.383-1.007-2.946-.007l-1.422 2.778c-.388.834.08 1.541.936 2.16l.283.192c.098.064.2.126.306.187l20.544 12.382c1.21.705 2.306.975 2.914.098l1.675-2.63c.576-.987-.132-1.805-1.305-2.519l-20.985-12.64z"
|
|
83
|
+
fill={vars.bdlBoxBlue}
|
|
84
|
+
/>
|
|
85
|
+
<path
|
|
86
|
+
d="M119.348 62.965l.165.101.152.103.12.09-1.023 1.606-.063-.023a3.815 3.815 0 01-.486-.24L97.66 52.22l-.163-.1a3.602 3.602 0 01-.286-.204l-.049-.042.869-1.696.144.064c.107.05.22.108.334.175l20.838 12.548z"
|
|
87
|
+
fill={vars.white}
|
|
88
|
+
/>
|
|
89
|
+
<path
|
|
90
|
+
d="M116.464 48.87l-4.413-2.556a1.012 1.012 0 01-.476-.636l-.075-.333-.1-.49a23.963 23.963 0 01-.296-1.932 15.095 15.095 0 01-.099-2.083c.062-2.064.684-3.497 2.238-3.78 3.037-.555 9.57 3.233 10.607 6.145.534 1.496-.399 2.751-2.161 3.841-.538.333-1.152.647-1.823.944-.602.267-1.219.505-1.818.713l-.474.16-.326.101a1 1 0 01-.784-.094z"
|
|
91
|
+
fill={vars.bdlBoxBlue}
|
|
92
|
+
/>
|
|
93
|
+
<path
|
|
94
|
+
d="M117.09 47.005l.31-.107a21.87 21.87 0 001.672-.663 13.166 13.166 0 001.586-.829c1.037-.649 1.425-1.177 1.327-1.455-.709-2.011-6.313-5.3-8.392-4.915-.296.054-.552.652-.589 1.88-.016.545.016 1.163.088 1.827.065.605.16 1.215.272 1.795l.063.32 3.662 2.147z"
|
|
95
|
+
fill={vars.bdlBoxBlue05}
|
|
96
|
+
/>
|
|
97
|
+
</g>
|
|
98
|
+
</g>
|
|
99
|
+
</AccessibleSVG>
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
export default EmailVerification140;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
import EmailVerification140 from './EmailVerification140';
|
|
4
|
+
|
|
5
|
+
export const emailVerification140 = () => <EmailVerification140 />;
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Illustration|EmailVerification140',
|
|
9
|
+
component: EmailVerification140,
|
|
10
|
+
parameters: {
|
|
11
|
+
notes: "`import EmailVerification140 from 'box-ui-elements/es/illustration/EmailVerification140';`",
|
|
12
|
+
},
|
|
13
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
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 EmailVerification140 = (props: SVGProps) => (
|
|
18
|
+
<AccessibleSVG width={140} height={140} viewBox="0 0 140 140" {...props}>
|
|
19
|
+
<g fill="none" fillRule="evenodd">
|
|
20
|
+
<path
|
|
21
|
+
d="M118.5 103a8.498 8.498 0 00-8.5 8.5c0 4.696 3.804 8.5 8.5 8.5s8.5-3.804 8.5-8.5-3.804-8.5-8.5-8.5zM65 12c-5.525 0-10 4.475-10 10s4.475 10 10 10 10-4.475 10-10-4.475-10-10-10zM41 92c-7.731 0-14 6.269-14 14s6.269 14 14 14 14-6.269 14-14-6.269-14-14-14z"
|
|
22
|
+
fill={vars.bdlBoxBlue10}
|
|
23
|
+
fillRule="nonzero"
|
|
24
|
+
/>
|
|
25
|
+
<path
|
|
26
|
+
d="M30.626 32.076a6.653 6.653 0 011.759-.033l.24.03.26.041 78.199 13.745.275.054.309.074.27.077c.342.104.672.232.988.383l.294.149c.156.082.307.17.454.264l.294.197.268.198.048.038c.1.08.199.162.295.246l.246.228.236.241.181.2.053.062c.085.1.167.202.247.307l.149.204.097.14.12.186.17.285.494.903-.051.034a7.105 7.105 0 01.42 3.485l-.052.332-8.48 47.94a7.165 7.165 0 01-8.057 5.842l-.238-.037-78.198-13.745a7.152 7.152 0 01-5.844-8.05l.038-.237 8.48-47.94a7.166 7.166 0 015.7-5.786l.336-.057z"
|
|
27
|
+
fill={vars.bdlBoxBlue}
|
|
28
|
+
fillRule="nonzero"
|
|
29
|
+
/>
|
|
30
|
+
<path
|
|
31
|
+
d="M32.32 34.048a5.159 5.159 0 00-1.432.015 4.461 4.461 0 00-.993.291c.152.453.32.82.553 1.186l.148.22.14.19 31.21 40.72c1.705 2.223 4.99 2.855 7.409 1.465l.21-.128 44.382-28.333-.075-.093-.153-.172-.16-.165-.162-.153-.152-.132a5.136 5.136 0 00-.308-.238l-.16-.11-.211-.132-.211-.118-.215-.107-.14-.064-.145-.06-.23-.085-.085-.029a5.189 5.189 0 00-.47-.128l-.239-.048-78.275-13.756-.237-.036z"
|
|
32
|
+
fill={vars.white}
|
|
33
|
+
fillRule="nonzero"
|
|
34
|
+
/>
|
|
35
|
+
<path
|
|
36
|
+
d="M28.14 35.388a5.133 5.133 0 00-1.519 2.622l-.053.263-8.488 47.976a5.127 5.127 0 00.48 3.231c.314-.625.836-1.257 1.575-1.858l.177-.14 29.794-22.973 1.217 1.588-29.79 22.968c-1.96 1.511-1.764 2.562.553 3.021l.192.036 78.475 13.791.378.058c.444.058.816.066 1.116.025 1.047-.143 1.221-.88.503-2.183l-.09-.16-.202-.327-20.115-31.103 1.686-1.076 20.109 31.093c.53.82.843 1.597.962 2.3a5.132 5.132 0 001.377-2.481l.055-.268 8.488-47.976a5.127 5.127 0 00-.134-2.365L70.642 79.692c-3.236 2.066-7.693 1.342-10.12-1.602l-.163-.204-31.21-40.72a6.899 6.899 0 01-1.008-1.778z"
|
|
37
|
+
fill={vars.white}
|
|
38
|
+
fillRule="nonzero"
|
|
39
|
+
/>
|
|
40
|
+
<g transform="translate(62 53.005)">
|
|
41
|
+
<path
|
|
42
|
+
d="M50.065 0H5.935A5.938 5.938 0 000 5.93v22.14C0 31.35 2.655 34 5.935 34h44.13A5.938 5.938 0 0056 28.07V5.93C56 2.65 53.345 0 50.065 0z"
|
|
43
|
+
fill={vars.bdlBoxBlue}
|
|
44
|
+
fillRule="nonzero"
|
|
45
|
+
/>
|
|
46
|
+
<path
|
|
47
|
+
d="M5.935 2h44.13A3.928 3.928 0 0154 5.93v22.14A3.938 3.938 0 0150.065 32H5.935A3.928 3.928 0 012 28.07V5.93A3.938 3.938 0 015.935 2z"
|
|
48
|
+
fill={vars.bdlBoxBlue05}
|
|
49
|
+
fillRule="nonzero"
|
|
50
|
+
/>
|
|
51
|
+
<rect fill={vars.bdlBoxBlue} x={33} y={14} width={16} height={1} rx={0.5} />
|
|
52
|
+
<rect fill={vars.bdlBoxBlue} x={33} y={18} width={12} height={1} rx={0.5} />
|
|
53
|
+
<rect fill={vars.bdlBoxBlue} x={33} y={22} width={14} height={1} rx={0.5} />
|
|
54
|
+
<path
|
|
55
|
+
d="M17 5c6.627 0 12 5.373 12 12s-5.373 12-12 12S5 23.627 5 17 10.373 5 17 5z"
|
|
56
|
+
fill={vars.white}
|
|
57
|
+
fillRule="nonzero"
|
|
58
|
+
/>
|
|
59
|
+
<path
|
|
60
|
+
d="M17 5c6.627 0 12 5.373 12 12l-.004.33-.022.466-.037.439-.027.243-.044.32-.093.54-.078.364-.112.447.021-.082c-.062.239-.133.475-.21.707l-.14.4-.153.391c-.15.364-.317.72-.501 1.065l-.242.432-.257.419-.162.245-.234.333-.288.38-.285.346-.155.178-.212.234-.166.173-.305.303-.287.265A11.956 11.956 0 0117 29a11.95 11.95 0 01-7.49-2.625l-.292-.24-.163-.141-.343-.315-.27-.266-.232-.244-.342-.384-.33-.402a12.31 12.31 0 01-.306-.411l-.17-.243-.294-.456-.179-.3a12.119 12.119 0 01-.456-.875l-.12-.265-.15-.358-.137-.354c-.077-.212-.149-.427-.215-.644l-.094-.328-.07-.269-.067-.292-.094-.47-.052-.32-.062-.48-.029-.291-.025-.368A12.197 12.197 0 015 17c0-6.627 5.373-12 12-12zm0 15a7.998 7.998 0 00-7.006 4.135A9.965 9.965 0 0017 27c2.728 0 5.2-1.092 7.005-2.863A7.992 7.992 0 0017 20zm0-10a4 4 0 100 8 4 4 0 000-8z"
|
|
61
|
+
fill={vars.bdlBoxBlue}
|
|
62
|
+
fillRule="nonzero"
|
|
63
|
+
/>
|
|
64
|
+
</g>
|
|
65
|
+
<g fillRule="nonzero">
|
|
66
|
+
<path
|
|
67
|
+
d="M125.751 51.943L105.02 40.338c-1.304-.73-2.892-.219-3.488 1.122l-4.29 9.634c-.552 1.24-.134 2.742 1.02 3.388l18.245 10.212c1.153.646 2.698.246 3.528-.835l6.462-8.419c.9-1.173.56-2.767-.745-3.497z"
|
|
68
|
+
fill={vars.bdlBoxBlue}
|
|
69
|
+
/>
|
|
70
|
+
<path
|
|
71
|
+
d="M103.94 42.077l20.524 11.81c.253.145.305.396.132.628l-6.397 8.567c-.242.325-.673.44-.892.313l-18.06-10.392c-.217-.124-.332-.549-.172-.919l4.246-9.804c.116-.268.364-.35.62-.203z"
|
|
72
|
+
fill={vars.white}
|
|
73
|
+
/>
|
|
74
|
+
<path
|
|
75
|
+
d="M118.642 45.647l-4.78-2.75a1 1 0 00-1.206.16l-11.69 11.717a1 1 0 00.21 1.573l12.134 6.982a1 1 0 001.464-.605l4.334-15.948a1 1 0 00-.466-1.13z"
|
|
76
|
+
fill={vars.bdlBoxBlue}
|
|
77
|
+
/>
|
|
78
|
+
<path fill={vars.white} d="M116.975 46.995l-3.791 13.953-9.882-5.685 10.228-10.25z" />
|
|
79
|
+
<path
|
|
80
|
+
d="M99.506 48.663c-1.261-.735-2.383-1.007-2.946-.007l-1.422 2.778c-.388.834.08 1.541.936 2.16l.283.192c.098.064.2.126.306.187l20.544 12.382c1.21.705 2.306.975 2.914.098l1.675-2.63c.576-.987-.132-1.805-1.305-2.519l-20.985-12.64z"
|
|
81
|
+
fill={vars.bdlBoxBlue}
|
|
82
|
+
/>
|
|
83
|
+
<path
|
|
84
|
+
d="M119.348 62.965l.165.101.152.103.12.09-1.023 1.606-.063-.023a3.815 3.815 0 01-.486-.24L97.66 52.22l-.163-.1a3.602 3.602 0 01-.286-.204l-.049-.042.869-1.696.144.064c.107.05.22.108.334.175l20.838 12.548z"
|
|
85
|
+
fill={vars.white}
|
|
86
|
+
/>
|
|
87
|
+
<path
|
|
88
|
+
d="M116.464 48.87l-4.413-2.556a1.012 1.012 0 01-.476-.636l-.075-.333-.1-.49a23.963 23.963 0 01-.296-1.932 15.095 15.095 0 01-.099-2.083c.062-2.064.684-3.497 2.238-3.78 3.037-.555 9.57 3.233 10.607 6.145.534 1.496-.399 2.751-2.161 3.841-.538.333-1.152.647-1.823.944-.602.267-1.219.505-1.818.713l-.474.16-.326.101a1 1 0 01-.784-.094z"
|
|
89
|
+
fill={vars.bdlBoxBlue}
|
|
90
|
+
/>
|
|
91
|
+
<path
|
|
92
|
+
d="M117.09 47.005l.31-.107a21.87 21.87 0 001.672-.663 13.166 13.166 0 001.586-.829c1.037-.649 1.425-1.177 1.327-1.455-.709-2.011-6.313-5.3-8.392-4.915-.296.054-.552.652-.589 1.88-.016.545.016 1.163.088 1.827.065.605.16 1.215.272 1.795l.063.32 3.662 2.147z"
|
|
93
|
+
fill={vars.bdlBoxBlue05}
|
|
94
|
+
/>
|
|
95
|
+
</g>
|
|
96
|
+
</g>
|
|
97
|
+
</AccessibleSVG>
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
export default EmailVerification140;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/* Inputs */
|
|
8
8
|
|
|
9
9
|
input[type='text'],
|
|
10
|
+
input[type='date'],
|
|
10
11
|
input[type='password'],
|
|
11
12
|
input[type='search'],
|
|
12
13
|
input[type='email'],
|
|
@@ -21,6 +22,7 @@ textarea {
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
input[type='text']:hover,
|
|
25
|
+
input[type='date']:hover,
|
|
24
26
|
input[type='password']:hover,
|
|
25
27
|
input[type='search']:hover,
|
|
26
28
|
input[type='email']:hover,
|
|
@@ -33,6 +35,7 @@ textarea:hover {
|
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
input[type='text']:focus,
|
|
38
|
+
input[type='date']:focus,
|
|
36
39
|
input[type='password']:focus,
|
|
37
40
|
input[type='search']:focus,
|
|
38
41
|
input[type='email']:focus,
|
|
@@ -51,6 +54,7 @@ input:-ms-input-placeholder {
|
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
input[type='text'].is-invalid,
|
|
57
|
+
input[type='date'].is-invalid,
|
|
54
58
|
input[type='password'].is-invalid,
|
|
55
59
|
input[type='search'].is-invalid,
|
|
56
60
|
input[type='email'].is-invalid,
|
|
@@ -63,6 +67,7 @@ textarea.is-invalid {
|
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
input[type='text'].is-invalid:focus,
|
|
70
|
+
input[type='date'].is-invalid:focus,
|
|
66
71
|
input[type='password'].is-invalid:focus,
|
|
67
72
|
input[type='search'].is-invalid:focus,
|
|
68
73
|
input[type='email'].is-invalid:focus,
|
|
@@ -75,6 +80,7 @@ textarea.is-invalid:focus {
|
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
input[type='text']:disabled,
|
|
83
|
+
input[type='date']:disabled,
|
|
78
84
|
input[type='password']:disabled,
|
|
79
85
|
input[type='search']:disabled,
|
|
80
86
|
input[type='email']:disabled,
|
|
@@ -11,6 +11,9 @@ $bdl-border-radius-size-med: $bdl-border-radius-size * 1.5;
|
|
|
11
11
|
$bdl-border-radius-size-large: $bdl-border-radius-size * 2;
|
|
12
12
|
$bdl-border-radius-size-xlarge: $bdl-border-radius-size * 3;
|
|
13
13
|
|
|
14
|
+
// Drop shadows
|
|
15
|
+
$bdl-header-box-shadow: 0 0 10px 0 rgba(0, 0, 0, .05);
|
|
16
|
+
|
|
14
17
|
// Spacing
|
|
15
18
|
$bdl-grid-unit: 4px !default;
|
|
16
19
|
$bdl-grid-unit-px: 4 !default; // unitless grid unit (defined in pixels for manual multiplication in JS)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
$size-small-max: 374px;
|
|
2
|
+
$size-small-medium-max: 460px;
|
|
3
|
+
$size-medium-max: 767px;
|
|
4
|
+
$size-large-max: 1023px;
|
|
5
|
+
|
|
6
|
+
$small-screen: unquote('(max-width: #{$size-small-max})');
|
|
7
|
+
$small-medium-screen: unquote('(max-width: #{$size-small-medium-max})');
|
|
8
|
+
$medium-screen: unquote('(max-width: #{$size-medium-max})');
|
|
9
|
+
$large-screen: unquote('(max-width: #{$size-large-max})');
|
|
10
|
+
|
|
11
|
+
@mixin breakpoint($media-query) {
|
|
12
|
+
@media #{$media-query} {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
}
|
package/src/styles/variables.js
CHANGED
|
@@ -92,6 +92,7 @@ export const bdlBorderRadiusSize = "4px"; // bdl-border-radius-size
|
|
|
92
92
|
export const bdlBorderRadiusSizeMed = "6px"; // bdl-border-radius-size-med
|
|
93
93
|
export const bdlBorderRadiusSizeLarge = "8px"; // bdl-border-radius-size-large
|
|
94
94
|
export const bdlBorderRadiusSizeXlarge = "12px"; // bdl-border-radius-size-xlarge
|
|
95
|
+
export const bdlHeaderBoxShadow = ["0 0 10px 0 rgba(0","0","0","0.05)"]; // bdl-header-box-shadow
|
|
95
96
|
export const bdlGridUnit = "4px"; // bdl-grid-unit
|
|
96
97
|
export const bdlGridUnitPx = "4"; // bdl-grid-unit-px
|
|
97
98
|
export const bdlBtnBorderWidth = "1px"; // bdl-btn-border-width
|
|
@@ -101,4 +102,12 @@ export const bdlBtnIconSize = "20px"; // bdl-btn-icon-size
|
|
|
101
102
|
export const bdlBtnTextIconSize = "16px"; // bdl-btn-text-icon-size
|
|
102
103
|
export const bdlBtnPaddingHorizontal = "16px"; // bdl-btn-padding-horizontal
|
|
103
104
|
export const bdlTransitionDurationBase = "0.15s"; // bdl-transitionDurationBase
|
|
104
|
-
export const bdlTimingFunction = ["cubic-bezier(0","0","0.6","1)"]; // bdl-timingFunction
|
|
105
|
+
export const bdlTimingFunction = ["cubic-bezier(0","0","0.6","1)"]; // bdl-timingFunction
|
|
106
|
+
export const sizeSmallMax = "374px"; // size-small-max
|
|
107
|
+
export const sizeSmallMediumMax = "460px"; // size-small-medium-max
|
|
108
|
+
export const sizeMediumMax = "767px"; // size-medium-max
|
|
109
|
+
export const sizeLargeMax = "1023px"; // size-large-max
|
|
110
|
+
export const smallScreen = "(max-width: 374px)"; // small-screen
|
|
111
|
+
export const smallMediumScreen = "(max-width: 460px)"; // small-medium-screen
|
|
112
|
+
export const mediumScreen = "(max-width: 767px)"; // medium-screen
|
|
113
|
+
export const largeScreen = "(max-width: 1023px)"; // large-screen
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"bdl-border-radius-size-med": "6px",
|
|
90
90
|
"bdl-border-radius-size-large": "8px",
|
|
91
91
|
"bdl-border-radius-size-xlarge": "12px",
|
|
92
|
+
"bdl-header-box-shadow": ["0 0 10px 0 rgba(0", "0", "0", "0.05)"],
|
|
92
93
|
"bdl-grid-unit": "4px",
|
|
93
94
|
"bdl-grid-unit-px": "4",
|
|
94
95
|
"bdl-btn-border-width": "1px",
|
|
@@ -98,5 +99,13 @@
|
|
|
98
99
|
"bdl-btn-text-icon-size": "16px",
|
|
99
100
|
"bdl-btn-padding-horizontal": "16px",
|
|
100
101
|
"bdl-transitionDurationBase": "0.15s",
|
|
101
|
-
"bdl-timingFunction": ["cubic-bezier(0", "0", "0.6", "1)"]
|
|
102
|
+
"bdl-timingFunction": ["cubic-bezier(0", "0", "0.6", "1)"],
|
|
103
|
+
"size-small-max": "374px",
|
|
104
|
+
"size-small-medium-max": "460px",
|
|
105
|
+
"size-medium-max": "767px",
|
|
106
|
+
"size-large-max": "1023px",
|
|
107
|
+
"small-screen": "(max-width: 374px)",
|
|
108
|
+
"small-medium-screen": "(max-width: 460px)",
|
|
109
|
+
"medium-screen": "(max-width: 767px)",
|
|
110
|
+
"large-screen": "(max-width: 1023px)"
|
|
102
111
|
}
|
package/src/styles/variables.ts
CHANGED
|
@@ -89,6 +89,7 @@ export const bdlBorderRadiusSize = '4px'; // bdl-border-radius-size
|
|
|
89
89
|
export const bdlBorderRadiusSizeMed = '6px'; // bdl-border-radius-size-med
|
|
90
90
|
export const bdlBorderRadiusSizeLarge = '8px'; // bdl-border-radius-size-large
|
|
91
91
|
export const bdlBorderRadiusSizeXlarge = '12px'; // bdl-border-radius-size-xlarge
|
|
92
|
+
export const bdlHeaderBoxShadow = ['0 0 10px 0 rgba(0', '0', '0', '0.05)']; // bdl-header-box-shadow
|
|
92
93
|
export const bdlGridUnit = '4px'; // bdl-grid-unit
|
|
93
94
|
export const bdlGridUnitPx = '4'; // bdl-grid-unit-px
|
|
94
95
|
export const bdlBtnBorderWidth = '1px'; // bdl-btn-border-width
|
|
@@ -99,3 +100,11 @@ export const bdlBtnTextIconSize = '16px'; // bdl-btn-text-icon-size
|
|
|
99
100
|
export const bdlBtnPaddingHorizontal = '16px'; // bdl-btn-padding-horizontal
|
|
100
101
|
export const bdlTransitionDurationBase = '0.15s'; // bdl-transitionDurationBase
|
|
101
102
|
export const bdlTimingFunction = ['cubic-bezier(0', '0', '0.6', '1)']; // bdl-timingFunction
|
|
103
|
+
export const sizeSmallMax = '374px'; // size-small-max
|
|
104
|
+
export const sizeSmallMediumMax = '460px'; // size-small-medium-max
|
|
105
|
+
export const sizeMediumMax = '767px'; // size-medium-max
|
|
106
|
+
export const sizeLargeMax = '1023px'; // size-large-max
|
|
107
|
+
export const smallScreen = '(max-width: 374px)'; // small-screen
|
|
108
|
+
export const smallMediumScreen = '(max-width: 460px)'; // small-medium-screen
|
|
109
|
+
export const mediumScreen = '(max-width: 767px)'; // medium-screen
|
|
110
|
+
export const largeScreen = '(max-width: 1023px)'; // large-screen
|
package/src/utils/Browser.js
CHANGED
|
@@ -41,6 +41,16 @@ class Browser {
|
|
|
41
41
|
return /Trident/i.test(Browser.getUserAgent());
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Returns whether browser is Firefox.
|
|
46
|
+
*
|
|
47
|
+
* @return {boolean} Whether browser is Firefox
|
|
48
|
+
*/
|
|
49
|
+
static isFirefox() {
|
|
50
|
+
const userAgent = Browser.getUserAgent();
|
|
51
|
+
return /Firefox/i.test(userAgent) && !/Seamonkey\//i.test(userAgent);
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
/**
|
|
45
55
|
* Returns whether browser is Safari.
|
|
46
56
|
*
|
package/src/utils/validators.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
import Address from '@hapi/address';
|
|
3
|
+
import tldsHapi from '@hapi/address/lib/tlds';
|
|
3
4
|
|
|
4
5
|
function hostnameValidator(value: string): boolean {
|
|
5
6
|
// @see https://github.com/hapijs/joi/blame/3516cf0b995c9fe415634c4612c0ac2f8792f0b4/lib/types/string/index.js#L530
|
|
@@ -17,8 +18,29 @@ function domainNameValidator(value: string): boolean {
|
|
|
17
18
|
return Address.domain.isValid(value);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
// @sideway/address ^4 has exhaustive TLDs, but upgrading requires a TextEncoder polyfill (such as fast-text-encoder) for IE11 support.
|
|
22
|
+
// We can freely upgrade and remove manual TLD supplementation after IE11 EOL.
|
|
23
|
+
|
|
24
|
+
// Diff of '@hapi/address/lib/tlds' and:
|
|
25
|
+
// https://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
|
26
|
+
// Version 2022020100, Last Updated Tue Feb 1 07:07:01 2022 UTC,
|
|
27
|
+
const tldSupplements = [
|
|
28
|
+
'AMAZON',
|
|
29
|
+
'CPA',
|
|
30
|
+
'LLP',
|
|
31
|
+
'MUSIC',
|
|
32
|
+
'SPA',
|
|
33
|
+
'XN--4DBRK0CE',
|
|
34
|
+
'XN--CCKWCXETD',
|
|
35
|
+
'XN--JLQ480N2RG',
|
|
36
|
+
'XN--MGBCPQ6GPA1A',
|
|
37
|
+
'XN--Q7CE6A',
|
|
38
|
+
'ZW',
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
const emailValidator = (value: string): boolean =>
|
|
42
|
+
Address.email.isValid(value, {
|
|
43
|
+
tlds: { allow: new Set([...tldsHapi, ...tldSupplements.map(tld => tld.toLowerCase())]) },
|
|
44
|
+
});
|
|
23
45
|
|
|
24
46
|
export { domainNameValidator, emailValidator, hostnameValidator, ipv4AddressValidator };
|