box-ui-elements 14.0.0 → 14.1.0-beta.11
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 +1 -1
- package/dist/explorer.css +1 -1
- package/dist/explorer.js +15 -15
- package/dist/openwith.css +1 -1
- package/dist/openwith.js +7 -7
- package/dist/picker.css +1 -1
- package/dist/picker.js +12 -12
- package/dist/preview.css +1 -1
- package/dist/preview.js +13 -13
- package/dist/sharing.css +1 -1
- package/dist/sharing.js +11 -11
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +13 -13
- package/dist/uploader.css +1 -1
- package/dist/uploader.js +13 -13
- package/es/components/badge/Badge.scss +1 -1
- package/es/components/button/Button.js +13 -4
- package/es/components/button/Button.js.flow +4 -0
- package/es/components/button/Button.js.map +1 -1
- package/es/components/button/Button.stories.js +64 -4
- package/es/components/button/Button.stories.js.map +1 -1
- package/es/components/button-group/ButtonGroup.scss +5 -5
- package/es/components/button-group/ButtonGroup.stories.js +1 -1
- package/es/components/button-group/ButtonGroup.stories.js.map +1 -1
- package/es/components/date-picker/_pikaday.scss +2 -1
- package/es/components/draft-js-editor/DraftJSEditor.scss +1 -1
- package/es/components/error-mask/ErrorMask.scss +1 -1
- package/es/components/flyout/Flyout.scss +1 -1
- package/es/components/footer-indicator/FooterIndicator.scss +1 -1
- package/es/components/form-elements/draft-js-mention-selector/MentionSelector.scss +10 -1
- package/es/components/guide-tooltip/GuideTooltip.js +5 -2
- package/es/components/guide-tooltip/GuideTooltip.js.flow +3 -0
- package/es/components/guide-tooltip/GuideTooltip.js.map +1 -1
- package/es/components/guide-tooltip/GuideTooltip.scss +14 -1
- package/es/components/hotkeys/HotkeyHelpModal.scss +1 -1
- package/es/components/link/LinkButton.js +6 -2
- package/es/components/link/LinkButton.js.map +1 -1
- package/es/components/link/LinkPrimaryButton.js.map +1 -1
- package/es/components/link/stories/LinkButton.stories.js +12 -1
- package/es/components/link/stories/LinkButton.stories.js.map +1 -1
- package/es/components/link/stories/LinkPrimaryButton.stories.js +12 -1
- package/es/components/link/stories/LinkPrimaryButton.stories.js.map +1 -1
- package/es/components/loading-indicator/Crawler.scss +1 -1
- package/es/components/modal/Modal.scss +5 -2
- package/es/components/modal/ModalDialog.js +1 -1
- package/es/components/modal/ModalDialog.js.flow +1 -1
- package/es/components/modal/ModalDialog.js.map +1 -1
- package/es/components/notification/Notification.js +11 -16
- package/es/components/notification/Notification.js.flow +11 -13
- package/es/components/notification/Notification.js.map +1 -1
- package/es/components/notification/Notification.scss +17 -12
- package/es/components/pill-selector-dropdown/PillSelector.scss +1 -1
- package/es/components/plain-button/PlainButton.stories.js +32 -1
- package/es/components/plain-button/PlainButton.stories.js.map +1 -1
- package/es/components/primary-button/PrimaryButton.stories.js +1 -1
- package/es/components/primary-button/PrimaryButton.stories.js.map +1 -1
- package/es/components/select-field/SelectField.scss +3 -0
- package/es/components/selector-dropdown/SelectorDropdown.scss +5 -0
- package/es/components/selector-dropdown/SelectorDropdown.stories.js +15 -0
- package/es/components/selector-dropdown/SelectorDropdown.stories.js.flow +16 -0
- package/es/components/selector-dropdown/SelectorDropdown.stories.js.map +1 -0
- package/es/components/tab-view/Tabs.scss +1 -0
- package/es/components/text-area/TextArea.js +3 -1
- package/es/components/text-area/TextArea.js.flow +4 -0
- package/es/components/text-area/TextArea.js.map +1 -1
- package/es/components/text-input/TextInput.js +3 -1
- package/es/components/text-input/TextInput.js.flow +10 -1
- package/es/components/text-input/TextInput.js.map +1 -1
- package/es/components/thumbnail-card/ThumbnailCard.scss +1 -1
- package/es/components/tooltip/Tooltip.scss +3 -3
- package/es/elements/common/messages.js +8 -0
- package/es/elements/common/messages.js.flow +10 -0
- package/es/elements/common/messages.js.map +1 -1
- package/es/elements/common/modal.scss +4 -1
- package/es/elements/content-explorer/ShareDialog.scss +2 -2
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js +2 -3
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js.flow +3 -2
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.js.map +1 -1
- package/es/elements/content-sidebar/activity-feed/task-form/TaskForm.scss +0 -15
- package/es/elements/content-sidebar/activity-feed/version/Version.scss +1 -1
- package/es/elements/content-sidebar/additional-tabs/AdditionalTabsLoading.scss +1 -1
- package/es/elements/content-sidebar/skills/faces/Faces.scss +1 -1
- package/es/elements/content-sidebar/skills/keywords/Keywords.scss +1 -1
- package/es/elements/content-sidebar/skills/timeline/Timeline.scss +1 -1
- package/es/elements/content-sidebar/skills/timeline/Timeslice.scss +1 -1
- package/es/elements/content-sidebar/skills/transcript/Transcript.scss +1 -1
- package/es/elements/content-sidebar/versions/VersionsItemBadge.scss +1 -1
- package/es/elements/content-uploader/ContentUploader.js +11 -9
- package/es/elements/content-uploader/ContentUploader.js.flow +10 -7
- package/es/elements/content-uploader/ContentUploader.js.map +1 -1
- package/es/elements/content-uploader/Footer.scss +5 -0
- package/es/elements/content-uploader/ItemAction.js +19 -6
- package/es/elements/content-uploader/ItemAction.js.flow +34 -3
- package/es/elements/content-uploader/ItemAction.js.map +1 -1
- package/es/elements/content-uploader/ItemList.js +5 -4
- package/es/elements/content-uploader/ItemList.js.flow +11 -4
- package/es/elements/content-uploader/ItemList.js.map +1 -1
- package/es/elements/content-uploader/UploadsManager.js +8 -6
- package/es/elements/content-uploader/UploadsManager.js.flow +8 -5
- package/es/elements/content-uploader/UploadsManager.js.map +1 -1
- package/es/elements/content-uploader/actionCellRenderer.js +3 -2
- package/es/elements/content-uploader/actionCellRenderer.js.flow +9 -2
- package/es/elements/content-uploader/actionCellRenderer.js.map +1 -1
- package/es/elements/content-uploader/progressCellRenderer.js +7 -3
- package/es/elements/content-uploader/progressCellRenderer.js.flow +6 -3
- package/es/elements/content-uploader/progressCellRenderer.js.map +1 -1
- package/es/features/collaborator-avatars/CollaboratorList.scss +1 -1
- package/es/features/collapsible-sidebar/CollapsibleSidebarLogo.js +3 -3
- package/es/features/collapsible-sidebar/CollapsibleSidebarLogo.js.flow +3 -3
- package/es/features/collapsible-sidebar/CollapsibleSidebarLogo.js.map +1 -1
- package/es/features/content-explorer/content-explorer/ContentExplorer.scss +5 -0
- package/es/features/content-explorer/item-list/ItemList.scss +1 -1
- package/es/features/left-sidebar/styles/LeftSidebarDropWrapper.scss +1 -1
- package/es/features/left-sidebar/styles/LeftSidebarLinkCallout.scss +2 -2
- package/es/features/message-preview-content/styles/PreviewErrorNotification.scss +1 -1
- package/es/features/metadata-based-view/MetadataBasedItemList.scss +1 -1
- package/es/features/metadata-instance-editor/CascadePolicy.scss +2 -2
- package/es/features/metadata-instance-editor/CustomInstanceNewField.scss +1 -1
- package/es/features/metadata-instance-editor/Instance.scss +1 -1
- package/es/features/metadata-instance-editor/TemplateDropdown.scss +4 -4
- package/es/features/query-bar/styles/Condition.scss +4 -4
- package/es/features/query-bar/styles/QueryBarButtons.scss +1 -1
- package/es/features/quick-search/QuickSearch.scss +1 -4
- package/es/features/quick-search/QuickSearchMessage.scss +1 -0
- package/es/features/security/_mixins.scss +1 -1
- package/es/icon/fill/LightningBolt16.js +30 -0
- package/es/icon/fill/LightningBolt16.js.flow +28 -0
- package/es/icon/fill/LightningBolt16.js.map +1 -0
- package/es/icon/fill/LightningBolt16.stories.js +13 -0
- package/es/icon/fill/LightningBolt16.stories.js.map +1 -0
- package/es/icon/line/GenericCopy16.js +30 -0
- package/es/icon/line/GenericCopy16.js.flow +25 -0
- package/es/icon/line/GenericCopy16.js.map +1 -0
- package/es/icon/line/GenericCopy16.stories.js +13 -0
- package/es/icon/line/GenericCopy16.stories.js.map +1 -0
- package/es/src/components/button/Button.d.ts +4 -0
- package/es/src/components/button/Button.stories.d.ts +4 -0
- package/es/src/components/context-menu/__tests__/ContextMenu.stories.test.d.ts +0 -1
- package/es/src/components/date-picker/__tests__/DatePicker.stories.test.d.ts +0 -1
- package/es/src/components/footer-indicator/__tests__/FooterIndicator.stories.test.d.ts +0 -1
- package/es/src/components/guide-tooltip/GuideTooltip.d.ts +3 -1
- package/es/src/components/link/LinkButton.d.ts +2 -1
- package/es/src/components/link/LinkPrimaryButton.d.ts +2 -4
- package/es/src/components/link/stories/LinkButton.stories.d.ts +2 -1
- package/es/src/components/link/stories/LinkPrimaryButton.stories.d.ts +1 -0
- package/es/src/components/plain-button/PlainButton.stories.d.ts +1 -0
- package/es/src/icon/fill/LightningBolt16.d.ts +13 -0
- package/es/src/icon/fill/LightningBolt16.stories.d.ts +9 -0
- package/es/src/icon/line/GenericCopy16.d.ts +13 -0
- package/es/src/icon/line/GenericCopy16.stories.d.ts +9 -0
- package/es/src/styles/variables.d.ts +9 -1
- package/es/styles/_inputs.scss +1 -1
- package/es/styles/_variables.scss +2 -0
- package/es/styles/common/_buttons.scss +61 -11
- package/es/styles/common/_forms.scss +1 -1
- package/es/styles/common/_inline-notifications.scss +3 -1
- package/es/styles/common/_pills.scss +1 -1
- package/es/styles/constants/_buttons.scss +6 -0
- package/es/styles/constants/_layout.scss +3 -1
- package/es/styles/constants/_typography.scss +9 -1
- package/es/styles/mixins/_buttons.scss +15 -0
- package/es/styles/mixins/_overlay.scss +2 -2
- package/es/styles/variables.js +17 -1
- package/es/styles/variables.js.flow +9 -1
- package/es/styles/variables.js.map +1 -1
- package/es/utils/createTheme.stories.js +8 -8
- package/es/utils/createTheme.stories.js.flow +5 -5
- package/es/utils/createTheme.stories.js.map +1 -1
- package/i18n/bn-IN.js +2 -0
- package/i18n/bn-IN.properties +4 -0
- package/i18n/da-DK.js +2 -0
- package/i18n/da-DK.properties +4 -0
- package/i18n/de-DE.js +2 -0
- package/i18n/de-DE.properties +4 -0
- package/i18n/en-AU.js +2 -0
- package/i18n/en-AU.properties +4 -0
- package/i18n/en-CA.js +2 -0
- package/i18n/en-CA.properties +4 -0
- package/i18n/en-GB.js +2 -0
- package/i18n/en-GB.properties +4 -0
- package/i18n/en-US.js +2 -0
- package/i18n/en-US.properties +4 -0
- package/i18n/en-x-pseudo.js +2 -0
- package/i18n/es-419.js +2 -0
- package/i18n/es-419.properties +4 -0
- package/i18n/es-ES.js +2 -0
- package/i18n/es-ES.properties +4 -0
- package/i18n/fi-FI.js +2 -0
- package/i18n/fi-FI.properties +4 -0
- package/i18n/fr-CA.js +2 -0
- package/i18n/fr-CA.properties +4 -0
- package/i18n/fr-FR.js +2 -0
- package/i18n/fr-FR.properties +4 -0
- package/i18n/hi-IN.js +2 -0
- package/i18n/hi-IN.properties +4 -0
- package/i18n/it-IT.js +2 -0
- package/i18n/it-IT.properties +4 -0
- package/i18n/ja-JP.js +5 -3
- package/i18n/ja-JP.properties +7 -3
- package/i18n/ko-KR.js +2 -0
- package/i18n/ko-KR.properties +4 -0
- package/i18n/nb-NO.js +2 -0
- package/i18n/nb-NO.properties +4 -0
- package/i18n/nl-NL.js +2 -0
- package/i18n/nl-NL.properties +4 -0
- package/i18n/pl-PL.js +2 -0
- package/i18n/pl-PL.properties +4 -0
- package/i18n/pt-BR.js +2 -0
- package/i18n/pt-BR.properties +4 -0
- package/i18n/ru-RU.js +2 -0
- package/i18n/ru-RU.properties +4 -0
- package/i18n/sv-SE.js +2 -0
- package/i18n/sv-SE.properties +4 -0
- package/i18n/tr-TR.js +2 -0
- package/i18n/tr-TR.properties +4 -0
- package/i18n/zh-CN.js +2 -0
- package/i18n/zh-CN.properties +4 -0
- package/i18n/zh-TW.js +2 -0
- package/i18n/zh-TW.properties +4 -0
- package/package.json +1 -1
- package/src/components/avatar/__tests__/__image_snapshots__/avatar-stories-test-tsx-components-avatar-avatar-looks-visually-correct-when-using-story-components-avatar-large-1-snap.png +0 -0
- package/src/components/avatar/__tests__/__image_snapshots__/avatar-stories-test-tsx-components-avatar-avatar-looks-visually-correct-when-using-story-components-avatar-regular-1-snap.png +0 -0
- package/src/components/avatar/__tests__/__image_snapshots__/avatar-stories-test-tsx-components-avatar-avatar-looks-visually-correct-when-using-story-components-avatar-small-1-snap.png +0 -0
- package/src/components/avatar/__tests__/__image_snapshots__/avatar-stories-test-tsx-components-avatar-avatar-looks-visually-correct-when-using-story-components-avatar-with-multiple-avatars-1-snap.png +0 -0
- package/src/components/avatar/__tests__/__image_snapshots__/avatar-stories-test-tsx-components-avatar-avatar-looks-visually-correct-when-using-story-components-avatar-with-url-fallback-to-initials-1-snap.png +0 -0
- package/src/components/badge/Badge.scss +1 -1
- package/src/components/badge/__tests__/__image_snapshots__/badge-stories-test-tsx-components-badge-badge-looks-visually-correct-when-using-story-components-badge-alert-1-snap.png +0 -0
- package/src/components/badge/__tests__/__image_snapshots__/badge-stories-test-tsx-components-badge-badge-looks-visually-correct-when-using-story-components-badge-beta-badge-1-snap.png +0 -0
- package/src/components/badge/__tests__/__image_snapshots__/badge-stories-test-tsx-components-badge-badge-looks-visually-correct-when-using-story-components-badge-error-1-snap.png +0 -0
- package/src/components/badge/__tests__/__image_snapshots__/badge-stories-test-tsx-components-badge-badge-looks-visually-correct-when-using-story-components-badge-highlight-1-snap.png +0 -0
- package/src/components/badge/__tests__/__image_snapshots__/badge-stories-test-tsx-components-badge-badge-looks-visually-correct-when-using-story-components-badge-info-1-snap.png +0 -0
- package/src/components/badge/__tests__/__image_snapshots__/badge-stories-test-tsx-components-badge-badge-looks-visually-correct-when-using-story-components-badge-regular-1-snap.png +0 -0
- package/src/components/badge/__tests__/__image_snapshots__/badge-stories-test-tsx-components-badge-badge-looks-visually-correct-when-using-story-components-badge-success-1-snap.png +0 -0
- package/src/components/badge/__tests__/__image_snapshots__/badge-stories-test-tsx-components-badge-badge-looks-visually-correct-when-using-story-components-badge-trial-badge-1-snap.png +0 -0
- package/src/components/badge/__tests__/__image_snapshots__/badge-stories-test-tsx-components-badge-badge-looks-visually-correct-when-using-story-components-badge-upgrade-badge-1-snap.png +0 -0
- package/src/components/badge/__tests__/__image_snapshots__/badge-stories-test-tsx-components-badge-badge-looks-visually-correct-when-using-story-components-badge-warning-1-snap.png +0 -0
- package/src/components/breadcrumb/__tests__/__image_snapshots__/breadcrumb-stories-test-js-components-breadcrumb-breadcrumb-looks-visually-correct-when-using-story-components-breadcrumb-regular-1-snap.png +0 -0
- package/src/components/breadcrumb/__tests__/__image_snapshots__/breadcrumb-stories-test-js-components-breadcrumb-breadcrumb-looks-visually-correct-when-using-story-components-breadcrumb-with-multiple-crumbs-1-snap.png +0 -0
- package/src/components/button/Button.js.flow +4 -0
- package/src/components/button/Button.stories.tsx +72 -12
- package/src/components/button/Button.tsx +29 -2
- package/src/components/button/__tests__/Button.stories.test.tsx +10 -7
- package/src/components/button/__tests__/Button.test.tsx +31 -0
- package/src/components/button/__tests__/__image_snapshots__/button-stories-test-tsx-components-button-button-looks-visually-correct-when-using-story-components-buttons-button-disabled-1-snap.png +0 -0
- package/src/components/button/__tests__/__image_snapshots__/button-stories-test-tsx-components-button-button-looks-visually-correct-when-using-story-components-buttons-button-icon-and-text-button-1-snap.png +0 -0
- package/src/components/button/__tests__/__image_snapshots__/button-stories-test-tsx-components-button-button-looks-visually-correct-when-using-story-components-buttons-button-icon-button-1-snap.png +0 -0
- package/src/components/button/__tests__/__image_snapshots__/button-stories-test-tsx-components-button-button-looks-visually-correct-when-using-story-components-buttons-button-large-1-snap.png +0 -0
- package/src/components/button/__tests__/__image_snapshots__/button-stories-test-tsx-components-button-button-looks-visually-correct-when-using-story-components-buttons-button-regular-1-snap.png +0 -0
- package/src/components/button/__tests__/__snapshots__/Button.test.tsx.snap +22 -0
- package/src/components/button-group/ButtonGroup.scss +5 -5
- package/src/components/button-group/ButtonGroup.stories.tsx +1 -1
- package/src/components/category-selector/__tests__/__image_snapshots__/category-selector-stories-test-tsx-components-category-selector-category-selector-looks-visually-correct-when-using-story-components-categoryselector-basic-1-snap.png +0 -0
- package/src/components/category-selector/__tests__/__image_snapshots__/category-selector-stories-test-tsx-components-category-selector-category-selector-looks-visually-correct-when-using-story-components-categoryselector-with-dropdown-1-snap.png +0 -0
- package/src/components/checkbox/__tests__/__image_snapshots__/checkbox-stories-test-tsx-components-checkbox-checkbox-looks-visually-correct-when-using-story-components-checkbox-basic-1-snap.png +0 -0
- package/src/components/checkbox/__tests__/__image_snapshots__/checkbox-stories-test-tsx-components-checkbox-checkbox-looks-visually-correct-when-using-story-components-checkbox-controlled-1-snap.png +0 -0
- package/src/components/checkbox/__tests__/__image_snapshots__/checkbox-stories-test-tsx-components-checkbox-checkbox-looks-visually-correct-when-using-story-components-checkbox-disabled-1-snap.png +0 -0
- package/src/components/checkbox/__tests__/__image_snapshots__/checkbox-stories-test-tsx-components-checkbox-checkbox-looks-visually-correct-when-using-story-components-checkbox-with-subsection-1-snap.png +0 -0
- package/src/components/checkbox/__tests__/__image_snapshots__/checkbox-stories-test-tsx-components-checkbox-checkbox-looks-visually-correct-when-using-story-components-checkbox-with-tooltip-1-snap.png +0 -0
- package/src/components/collapsible/__tests__/__image_snapshots__/collapsible-stories-test-tsx-components-collapsible-collapsible-collapses-content-for-story-components-collapsible-with-border-1-snap.png +0 -0
- package/src/components/collapsible/__tests__/__image_snapshots__/collapsible-stories-test-tsx-components-collapsible-collapsible-collapses-content-for-story-components-collapsible-with-button-in-header-1-snap.png +0 -0
- package/src/components/collapsible/__tests__/__image_snapshots__/collapsible-stories-test-tsx-components-collapsible-collapsible-collapses-content-for-story-components-collapsible-without-border-1-snap.png +0 -0
- package/src/components/collapsible/__tests__/__image_snapshots__/collapsible-stories-test-tsx-components-collapsible-collapsible-looks-visually-correct-when-using-story-components-collapsible-with-border-1-snap.png +0 -0
- package/src/components/collapsible/__tests__/__image_snapshots__/collapsible-stories-test-tsx-components-collapsible-collapsible-looks-visually-correct-when-using-story-components-collapsible-with-button-in-header-1-snap.png +0 -0
- package/src/components/collapsible/__tests__/__image_snapshots__/collapsible-stories-test-tsx-components-collapsible-collapsible-looks-visually-correct-when-using-story-components-collapsible-without-border-1-snap.png +0 -0
- package/src/components/context-menu/__tests__/ContextMenu.stories.test.tsx +1 -6
- package/src/components/context-menu/__tests__/__image_snapshots__/context-menu-stories-test-tsx-components-context-menu-context-menu-looks-visually-correct-when-right-clicking-on-story-components-contextmenu-basic-1-snap.png +0 -0
- package/src/components/context-menu/__tests__/__image_snapshots__/context-menu-stories-test-tsx-components-context-menu-context-menu-looks-visually-correct-when-right-clicking-on-story-components-contextmenu-with-submenu-1-snap.png +0 -0
- package/src/components/context-menu/__tests__/__image_snapshots__/context-menu-stories-test-tsx-components-context-menu-context-menu-looks-visually-correct-when-using-story-components-contextmenu-basic-1-snap.png +0 -0
- package/src/components/context-menu/__tests__/__image_snapshots__/context-menu-stories-test-tsx-components-context-menu-context-menu-looks-visually-correct-when-using-story-components-contextmenu-with-submenu-1-snap.png +0 -0
- package/src/components/count-badge/__tests__/__image_snapshots__/count-badge-stories-test-tsx-components-count-badge-count-badge-looks-visually-correct-when-using-story-components-countbadge-with-html-symbol-1-1-snap.png +0 -0
- package/src/components/count-badge/__tests__/__image_snapshots__/count-badge-stories-test-tsx-components-count-badge-count-badge-looks-visually-correct-when-using-story-components-countbadge-with-html-symbol-2-1-snap.png +0 -0
- package/src/components/count-badge/__tests__/__image_snapshots__/count-badge-stories-test-tsx-components-count-badge-count-badge-looks-visually-correct-when-using-story-components-countbadge-without-animation-1-snap.png +0 -0
- package/src/components/date-picker/__tests__/DatePicker.stories.test.tsx +2 -10
- 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 +2 -1
- package/src/components/draft-js-editor/DraftJSEditor.scss +1 -1
- package/src/components/draft-js-editor/__tests__/__image_snapshots__/draft-js-editor-stories-test-js-components-draft-js-editor-draft-js-editor-looks-visually-correct-when-typing-1-snap.png +0 -0
- package/src/components/draft-js-editor/__tests__/__image_snapshots__/draft-js-editor-stories-test-js-components-draft-js-editor-draft-js-editor-looks-visually-correct-when-using-story-components-draftjseditor-basic-1-snap.png +0 -0
- package/src/components/draggable-list/__tests__/__image_snapshots__/draggable-list-stories-test-tsx-components-draggable-list-draggable-list-looks-correct-when-using-story-components-draggablelist-example-1-snap.png +0 -0
- package/src/components/dropdown-menu/__tests__/__image_snapshots__/dropdown-menu-stories-test-js-components-dropdown-menu-dropdown-menu-looks-visually-correct-when-button-is-clicked-in-story-components-dropdownmenu-basic-1-snap.png +0 -0
- package/src/components/dropdown-menu/__tests__/__image_snapshots__/dropdown-menu-stories-test-js-components-dropdown-menu-dropdown-menu-looks-visually-correct-when-button-is-clicked-in-story-components-dropdownmenu-with-link-menu-1-snap.png +0 -0
- package/src/components/dropdown-menu/__tests__/__image_snapshots__/dropdown-menu-stories-test-js-components-dropdown-menu-dropdown-menu-looks-visually-correct-when-using-story-components-dropdownmenu-with-link-menu-1-snap.png +0 -0
- package/src/components/error-mask/ErrorMask.scss +1 -1
- package/src/components/error-mask/__tests__/__image_snapshots__/error-mask-stories-test-tsx-components-error-mask-error-mask-looks-visually-correct-when-using-story-s-1-snap.png +0 -0
- package/src/components/fieldset/__tests__/__image_snapshots__/fieldset-stories-test-tsx-components-fieldset-fieldset-looks-visually-correct-when-using-story-components-fieldset-basic-1-snap.png +0 -0
- package/src/components/flyout/Flyout.scss +1 -1
- package/src/components/footer-indicator/FooterIndicator.scss +1 -1
- package/src/components/footer-indicator/__tests__/FooterIndicator.stories.test.tsx +1 -6
- package/src/components/footer-indicator/__tests__/__image_snapshots__/footer-indicator-stories-test-tsx-components-footer-indicator-footer-indicator-displays-tooltip-on-hover-for-story-components-footerindicator-regular-1-snap.png +0 -0
- package/src/components/footer-indicator/__tests__/__image_snapshots__/footer-indicator-stories-test-tsx-components-footer-indicator-footer-indicator-displays-tooltip-on-hover-for-story-components-footerindicator-with-truncated-text-1-snap.png +0 -0
- package/src/components/footer-indicator/__tests__/__image_snapshots__/footer-indicator-stories-test-tsx-components-footer-indicator-footer-indicator-looks-visually-correct-when-using-story-components-footerindicator-regular-1-snap.png +0 -0
- package/src/components/footer-indicator/__tests__/__image_snapshots__/footer-indicator-stories-test-tsx-components-footer-indicator-footer-indicator-looks-visually-correct-when-using-story-components-footerindicator-with-truncated-text-1-snap.png +0 -0
- package/src/components/form-elements/draft-js-mention-selector/MentionSelector.scss +10 -1
- package/src/components/form-elements/form/__tests__/__image_snapshots__/form-stories-test-js-components-form-elements-form-form-does-not-show-a-custom-validation-error-1-snap.png +0 -0
- package/src/components/form-elements/form/__tests__/__image_snapshots__/form-stories-test-js-components-form-elements-form-form-does-not-show-an-email-validation-error-1-snap.png +0 -0
- package/src/components/form-elements/form/__tests__/__image_snapshots__/form-stories-test-js-components-form-elements-form-form-looks-visually-correct-when-using-story-components-form-elements-form-basic-1-snap.png +0 -0
- package/src/components/form-elements/form/__tests__/__image_snapshots__/form-stories-test-js-components-form-elements-form-form-shows-a-custom-validation-error-1-snap.png +0 -0
- package/src/components/form-elements/form/__tests__/__image_snapshots__/form-stories-test-js-components-form-elements-form-form-shows-a-required-field-error-1-snap.png +0 -0
- package/src/components/form-elements/form/__tests__/__image_snapshots__/form-stories-test-js-components-form-elements-form-form-shows-an-email-validation-error-1-snap.png +0 -0
- package/src/components/form-elements/text-area/__tests__/__image_snapshots__/text-area-stories-test-js-components-form-elements-text-area-text-area-looks-visually-correct-when-using-story-components-form-elements-textarea-basic-1-snap.png +0 -0
- package/src/components/form-elements/text-area/__tests__/__image_snapshots__/text-area-stories-test-js-components-form-elements-text-area-text-area-looks-visually-correct-when-using-story-components-form-elements-textarea-with-validation-1-snap.png +0 -0
- package/src/components/form-elements/text-area/__tests__/__image_snapshots__/text-area-stories-test-js-components-form-elements-text-area-text-area-shows-text-after-typing-1-snap.png +0 -0
- package/src/components/form-elements/text-area/__tests__/__image_snapshots__/text-area-stories-test-js-components-form-elements-text-area-text-area-validates-text-when-given-input-abcde-1-snap.png +0 -0
- package/src/components/form-elements/text-area/__tests__/__image_snapshots__/text-area-stories-test-js-components-form-elements-text-area-text-area-validates-text-when-given-input-www-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-displays-abcde-when-given-abcde-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-displays-abcde-when-given-abcdef-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-does-not-show-a-custom-validation-error-for-box-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-does-not-show-a-url-validation-error-for-http-www-box-com-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-does-not-show-a-url-validation-error-for-https-www-box-com-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-looks-visually-correct-when-using-story-components-form-elements-textinput-basic-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-looks-visually-correct-when-using-story-components-form-elements-textinput-disabled-input-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-looks-visually-correct-when-using-story-components-form-elements-textinput-url-input-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-looks-visually-correct-when-using-story-components-form-elements-textinput-with-custom-validation-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-looks-visually-correct-when-using-story-components-form-elements-textinput-with-hidden-label-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-looks-visually-correct-when-using-story-components-form-elements-textinput-with-maximum-length-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-looks-visually-correct-when-using-story-components-form-elements-textinput-with-minimum-length-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-looks-visually-correct-when-using-story-components-form-elements-textinput-with-tooltip-on-hover-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-shows-a-custom-validation-error-for-notbox-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-shows-a-url-validation-error-for-www-box-com-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-shows-a-url-validation-error-for-zyxwv-1-snap.png +0 -0
- package/src/components/form-elements/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-form-elements-text-input-text-input-shows-min-length-error-for-a-1-snap.png +0 -0
- package/src/components/ghost/__tests__/__image_snapshots__/ghost-stories-test-tsx-components-ghost-ghost-looks-visually-correct-when-using-story-components-ghost-regular-1-snap.png +0 -0
- package/src/components/guide-tooltip/GuideTooltip.js.flow +3 -0
- package/src/components/guide-tooltip/GuideTooltip.scss +14 -1
- package/src/components/guide-tooltip/GuideTooltip.tsx +4 -0
- package/src/components/guide-tooltip/__tests__/GuideTooltip.test.js +61 -7
- package/src/components/header/__tests__/__image_snapshots__/header-stories-test-tsx-components-header-header-looks-visually-correct-when-using-story-components-header-regular-1-snap.png +0 -0
- package/src/components/hotkeys/HotkeyHelpModal.scss +1 -1
- package/src/components/image-tooltip/__tests__/__image_snapshots__/image-tooltip-stories-test-tsx-components-image-tooltip-image-tooltip-looks-visually-correct-when-using-story-components-imagetooltip-basic-1-snap.png +0 -0
- package/src/components/label/__tests__/__image_snapshots__/label-stories-test-tsx-components-label-label-looks-visually-correct-when-using-story-components-label-basic-1-snap.png +0 -0
- package/src/components/label/__tests__/__image_snapshots__/label-stories-test-tsx-components-label-label-looks-visually-correct-when-using-story-components-label-with-info-tooltip-1-snap.png +0 -0
- package/src/components/label/__tests__/__image_snapshots__/label-stories-test-tsx-components-label-label-looks-visually-correct-when-using-story-components-label-with-optional-text-1-snap.png +0 -0
- package/src/components/link/LinkButton.tsx +4 -2
- package/src/components/link/LinkPrimaryButton.tsx +2 -4
- package/src/components/link/__tests__/Link.test.tsx +15 -0
- package/src/components/link/__tests__/LinkButton.stories.test.tsx +8 -7
- package/src/components/link/__tests__/LinkPrimaryButton.stories.test.tsx +1 -0
- package/src/components/link/__tests__/__image_snapshots__/link-button-stories-test-tsx-components-link-link-button-looks-visually-correct-when-using-story-components-links-linkbutton-basic-1-snap.png +0 -0
- package/src/components/link/__tests__/__image_snapshots__/link-button-stories-test-tsx-components-link-link-button-looks-visually-correct-when-using-story-components-links-linkbutton-large-1-snap.png +0 -0
- package/src/components/link/__tests__/__image_snapshots__/link-button-stories-test-tsx-components-link-link-button-looks-visually-correct-when-using-story-components-links-linkbutton-with-custom-component-1-snap.png +0 -0
- package/src/components/link/__tests__/__image_snapshots__/link-group-stories-test-tsx-components-link-link-group-looks-visually-correct-when-using-story-components-links-linkgroup-basic-1-snap.png +0 -0
- package/src/components/link/__tests__/__image_snapshots__/link-primary-button-stories-test-tsx-components-link-link-primary-button-looks-visually-correct-when-using-story-components-links-linkprimarybutton-basic-1-snap.png +0 -0
- package/src/components/link/__tests__/__image_snapshots__/link-primary-button-stories-test-tsx-components-link-link-primary-button-looks-visually-correct-when-using-story-components-links-linkprimarybutton-large-1-snap.png +0 -0
- package/src/components/link/__tests__/__image_snapshots__/link-primary-button-stories-test-tsx-components-link-link-primary-button-looks-visually-correct-when-using-story-components-links-linkprimarybutton-with-custom-component-1-snap.png +0 -0
- package/src/components/link/__tests__/__image_snapshots__/link-stories-test-tsx-components-link-link-looks-visually-correct-when-using-story-components-links-link-basic-1-snap.png +0 -0
- package/src/components/link/__tests__/__image_snapshots__/link-stories-test-tsx-components-link-link-looks-visually-correct-when-using-story-components-links-link-with-custom-component-1-snap.png +0 -0
- package/src/components/link/stories/LinkButton.stories.tsx +15 -1
- package/src/components/link/stories/LinkPrimaryButton.stories.tsx +13 -1
- package/src/components/loading-indicator/Crawler.scss +1 -1
- package/src/components/media/__tests__/__image_snapshots__/media-stories-test-tsx-components-media-media-looks-visually-correct-when-using-story-components-media-media-example-1-snap.png +0 -0
- package/src/components/media/__tests__/__image_snapshots__/media-stories-test-tsx-components-media-media-looks-visually-correct-when-using-story-components-media-media-with-form-elements-1-snap.png +0 -0
- package/src/components/media/__tests__/__image_snapshots__/media-stories-test-tsx-components-media-media-looks-visually-correct-when-using-story-components-media-media-with-nested-components-1-snap.png +0 -0
- package/src/components/menu/__tests__/__image_snapshots__/menu-stories-test-tsx-components-menu-menu-displays-a-submenu-on-hover-in-story-components-menu-with-submenu-1-snap.png +0 -0
- package/src/components/menu/__tests__/__image_snapshots__/menu-stories-test-tsx-components-menu-menu-displays-a-submenu-on-hover-in-story-components-menu-with-submenu-flip-1-snap.png +0 -0
- package/src/components/menu/__tests__/__image_snapshots__/menu-stories-test-tsx-components-menu-menu-looks-visually-correct-when-using-story-components-menu-with-child-on-resize-1-snap.png +0 -0
- package/src/components/menu/__tests__/__image_snapshots__/menu-stories-test-tsx-components-menu-menu-looks-visually-correct-when-using-story-components-menu-with-select-menu-1-snap.png +0 -0
- package/src/components/menu/__tests__/__image_snapshots__/menu-stories-test-tsx-components-menu-menu-looks-visually-correct-when-using-story-components-menu-with-submenu-1-snap.png +0 -0
- package/src/components/menu/__tests__/__image_snapshots__/menu-stories-test-tsx-components-menu-menu-looks-visually-correct-when-using-story-components-menu-with-submenu-flip-1-snap.png +0 -0
- package/src/components/menu/__tests__/__image_snapshots__/select-menu-link-item-stories-test-tsx-components-menu-select-menu-link-item-looks-visually-correct-when-using-story-components-selectmenulinkitem-basic-1-snap.png +0 -0
- package/src/components/modal/Modal.scss +5 -2
- package/src/components/modal/ModalDialog.js +1 -1
- package/src/components/modal/__tests__/__image_snapshots__/modal-actions-stories-test-js-components-modal-modal-actions-looks-visually-correct-when-using-story-components-modalactions-basic-1-snap.png +0 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-dialog-stories-test-js-components-modal-modal-dialog-looks-visually-correct-when-using-story-components-modaldialog-basic-1-snap.png +0 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-stories-test-js-components-modal-modal-looks-visually-correct-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-when-button-is-clicked-in-story-components-modal-with-custom-backdrop-click-handler-1-snap.png +0 -0
- package/src/components/modal/__tests__/__image_snapshots__/modal-stories-test-js-components-modal-modal-looks-visually-correct-when-using-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-when-using-story-components-modal-with-custom-backdrop-click-handler-1-snap.png +0 -0
- package/src/components/notification/Notification.js +11 -13
- package/src/components/notification/Notification.scss +17 -12
- package/src/components/notification/__tests__/Notification.test.js +9 -9
- package/src/components/notification/__tests__/__image_snapshots__/notification-stories-test-js-components-notification-notification-looks-visually-correct-when-using-story-components-notifications-notification-basic-1-snap.png +0 -0
- package/src/components/notification/__tests__/__image_snapshots__/notification-stories-test-js-components-notification-notification-looks-visually-correct-when-using-story-components-notifications-notification-error-1-snap.png +0 -0
- package/src/components/notification/__tests__/__image_snapshots__/notification-stories-test-js-components-notification-notification-looks-visually-correct-when-using-story-components-notifications-notification-info-1-snap.png +0 -0
- package/src/components/notification/__tests__/__image_snapshots__/notification-stories-test-js-components-notification-notification-looks-visually-correct-when-using-story-components-notifications-notification-warn-1-snap.png +0 -0
- package/src/components/notification/__tests__/__image_snapshots__/notifications-wrapper-stories-test-js-components-notification-notifications-wrapper-looks-visually-correct-when-using-story-components-notifications-notificationswrapper-example-1-snap.png +0 -0
- package/src/components/notification/__tests__/__image_snapshots__/notifications-wrapper-stories-test-js-components-notification-notifications-wrapper-shows-a-persistent-notification-1-snap.png +0 -0
- package/src/components/notification/__tests__/__image_snapshots__/notifications-wrapper-stories-test-js-components-notification-notifications-wrapper-shows-a-timed-notification-1-snap.png +0 -0
- package/src/components/nudge/__tests__/__image_snapshots__/nudge-stories-test-tsx-components-nudge-nudge-looks-visually-correct-when-using-story-components-nudge-regular-1-snap.png +0 -0
- package/src/components/pill-selector-dropdown/PillSelector.scss +1 -1
- package/src/components/pill-selector-dropdown/__tests__/__image_snapshots__/pill-selector-dropdown-stories-test-js-components-pill-selector-dropdown-pill-selector-dropdown-looks-visually-correct-when-typing-1-snap.png +0 -0
- package/src/components/pill-selector-dropdown/__tests__/__image_snapshots__/pill-selector-dropdown-stories-test-js-components-pill-selector-dropdown-pill-selector-dropdown-looks-visually-correct-when-using-story-components-pillselectordropdown-custom-pill-styles-1-snap.png +0 -0
- package/src/components/pill-selector-dropdown/__tests__/__image_snapshots__/pill-selector-dropdown-stories-test-js-components-pill-selector-dropdown-pill-selector-dropdown-looks-visually-correct-when-using-story-components-pillselectordropdown-empty-1-snap.png +0 -0
- package/src/components/pill-selector-dropdown/__tests__/__image_snapshots__/pill-selector-dropdown-stories-test-js-components-pill-selector-dropdown-pill-selector-dropdown-looks-visually-correct-when-using-story-components-pillselectordropdown-show-avatars-1-snap.png +0 -0
- package/src/components/pill-selector-dropdown/__tests__/__image_snapshots__/pill-selector-dropdown-stories-test-js-components-pill-selector-dropdown-pill-selector-dropdown-looks-visually-correct-when-using-story-components-pillselectordropdown-show-rounded-pills-1-snap.png +0 -0
- package/src/components/pill-selector-dropdown/__tests__/__image_snapshots__/pill-selector-dropdown-stories-test-js-components-pill-selector-dropdown-pill-selector-dropdown-looks-visually-correct-when-using-story-components-pillselectordropdown-with-pills-1-snap.png +0 -0
- package/src/components/plain-button/PlainButton.stories.tsx +96 -1
- package/src/components/plain-button/__tests__/PlainButton.stories.test.tsx +1 -1
- package/src/components/{button/__tests__/__image_snapshots__/button-stories-test-tsx-components-button-button-looks-visually-correct-when-using-story-components-button-disabled-1-snap.png → plain-button/__tests__/__image_snapshots__/plain-button-stories-test-tsx-components-plain-button-plain-button-looks-visually-correct-when-using-story-components-buttons-plainbutton-disabled-1-snap.png} +0 -0
- package/src/components/{button/__tests__/__image_snapshots__/button-stories-test-tsx-components-button-button-looks-visually-correct-when-using-story-components-button-regular-1-snap.png → plain-button/__tests__/__image_snapshots__/plain-button-stories-test-tsx-components-plain-button-plain-button-looks-visually-correct-when-using-story-components-buttons-plainbutton-regular-1-snap.png} +0 -0
- package/src/components/primary-button/PrimaryButton.stories.tsx +1 -1
- package/src/components/primary-button/__tests__/PrimaryButton.stories.test.tsx +1 -1
- package/src/components/primary-button/__tests__/__image_snapshots__/primary-button-stories-test-tsx-components-primary-button-primary-button-looks-visually-correct-when-using-story-components-buttons-primarybutton-disabled-1-snap.png +0 -0
- package/src/components/primary-button/__tests__/__image_snapshots__/primary-button-stories-test-tsx-components-primary-button-primary-button-looks-visually-correct-when-using-story-components-buttons-primarybutton-regular-1-snap.png +0 -0
- package/src/components/radio/__tests__/RadioGroup.stories.test.tsx +1 -1
- package/src/components/radio/__tests__/__image_snapshots__/radio-button-stories-test-tsx-components-radio-radio-button-looks-visually-correct-when-using-story-components-radio-radiobutton-basic-1-snap.png +0 -0
- package/src/components/radio/__tests__/__image_snapshots__/radio-button-stories-test-tsx-components-radio-radio-button-looks-visually-correct-when-using-story-components-radio-radiobutton-disabled-1-snap.png +0 -0
- package/src/components/radio/__tests__/__image_snapshots__/radio-group-stories-test-tsx-components-radio-radio-button-looks-visually-correct-when-using-story-components-radio-radiogroup-basic-1-snap.png +0 -0
- package/src/components/radio/__tests__/__image_snapshots__/radio-group-stories-test-tsx-components-radio-radio-button-selects-a-radio-button-1-snap.png +0 -0
- package/src/components/section/__tests__/__image_snapshots__/section-stories-test-tsx-components-section-section-looks-visually-correct-when-using-story-components-section-basic-1-snap.png +0 -0
- package/src/components/select/__tests__/__image_snapshots__/select-stories-test-js-components-select-select-looks-visually-correct-when-using-story-components-select-basic-1-snap.png +0 -0
- package/src/components/select/__tests__/__image_snapshots__/select-stories-test-js-components-select-select-looks-visually-correct-when-using-story-components-select-disabled-1-snap.png +0 -0
- package/src/components/select/__tests__/__image_snapshots__/select-stories-test-js-components-select-select-looks-visually-correct-when-using-story-components-select-with-error-message-1-snap.png +0 -0
- package/src/components/select/__tests__/__image_snapshots__/select-stories-test-js-components-select-select-looks-visually-correct-when-using-story-components-select-with-error-outline-1-snap.png +0 -0
- package/src/components/select-button/__tests__/__image_snapshots__/select-button-stories-test-js-components-select-button-select-button-looks-visually-correct-when-using-story-components-selectbutton-disabled-1-snap.png +0 -0
- package/src/components/select-button/__tests__/__image_snapshots__/select-button-stories-test-js-components-select-button-select-button-looks-visually-correct-when-using-story-components-selectbutton-regular-1-snap.png +0 -0
- package/src/components/select-button/__tests__/__image_snapshots__/select-button-stories-test-js-components-select-button-select-button-looks-visually-correct-when-using-story-components-selectbutton-with-error-1-snap.png +0 -0
- package/src/components/select-field/SelectField.scss +3 -0
- package/src/components/select-field/SingleSelectField.md +31 -0
- package/src/components/selector-dropdown/SelectorDropdown.scss +5 -0
- package/src/components/selector-dropdown/SelectorDropdown.stories.js +16 -0
- package/src/components/selector-dropdown/{README.md → SelectorDropdown.stories.md} +0 -9
- package/src/components/selector-dropdown/__tests__/SelectorDropdown.stories.test.js +6 -0
- package/src/components/selector-dropdown/__tests__/__image_snapshots__/selector-dropdown-stories-test-js-components-select-select-looks-visually-correct-when-using-story-components-selectordropdown-basic-1-snap.png +0 -0
- package/src/components/sidebar-toggle-button/__tests__/__image_snapshots__/sidebar-toggle-button-stories-test-js-components-sidebar-toggle-button-sidebar-toggle-button-looks-visually-correct-when-using-story-components-sidebartogglebutton-closed-1-snap.png +0 -0
- package/src/components/tab-view/Tabs.scss +1 -0
- package/src/components/tab-view/__tests__/__image_snapshots__/tab-view-stories-test-js-components-tab-view-tab-view-looks-visually-correct-when-using-story-components-tabview-basic-1-snap.png +0 -0
- package/src/components/tab-view/__tests__/__image_snapshots__/tab-view-stories-test-js-components-tab-view-tab-view-looks-visually-correct-when-using-story-components-tabview-dynamic-1-snap.png +0 -0
- package/src/components/tab-view/__tests__/__image_snapshots__/tab-view-stories-test-js-components-tab-view-tab-view-looks-visually-correct-when-using-story-components-tabview-dynamic-with-links-1-snap.png +0 -0
- package/src/components/tab-view/__tests__/__image_snapshots__/tab-view-stories-test-js-components-tab-view-tab-view-looks-visually-correct-when-using-story-components-tabview-with-callback-1-snap.png +0 -0
- package/src/components/tab-view/__tests__/__image_snapshots__/tab-view-stories-test-js-components-tab-view-tab-view-looks-visually-correct-when-using-story-components-tabview-with-link-1-snap.png +0 -0
- package/src/components/tab-view/__tests__/__image_snapshots__/tab-view-stories-test-js-components-tab-view-tab-view-shows-new-content-after-clicking-on-a-new-tab-1-snap.png +0 -0
- package/src/components/text-area/TextArea.js +4 -0
- package/src/components/text-area/__tests__/TextArea.test.js +11 -0
- package/src/components/text-area/__tests__/__snapshots__/TextArea.test.js.snap +8 -8
- package/src/components/text-input/TextInput.js +10 -1
- package/src/components/text-input/__tests__/TextInput.test.js +11 -0
- package/src/components/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-text-input-text-input-clears-required-tooltip-after-entering-text-1-snap.png +0 -0
- package/src/components/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-text-input-text-input-looks-visually-correct-when-using-story-components-textinput-basic-1-snap.png +0 -0
- package/src/components/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-text-input-text-input-looks-visually-correct-when-using-story-components-textinput-error-1-snap.png +0 -0
- package/src/components/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-text-input-text-input-looks-visually-correct-when-using-story-components-textinput-required-with-on-change-1-snap.png +0 -0
- package/src/components/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-text-input-text-input-looks-visually-correct-when-using-story-components-textinput-valid-1-snap.png +0 -0
- package/src/components/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-text-input-text-input-looks-visually-correct-when-using-story-components-textinput-with-description-1-snap.png +0 -0
- package/src/components/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-text-input-text-input-looks-visually-correct-when-using-story-components-textinput-with-long-breakable-strings-1-snap.png +0 -0
- package/src/components/text-input/__tests__/__image_snapshots__/text-input-stories-test-js-components-text-input-text-input-looks-visually-correct-when-using-story-components-textinput-with-long-unbreakable-strings-1-snap.png +0 -0
- package/src/components/text-input-with-copy-button/__tests__/__image_snapshots__/text-input-with-copy-button-stories-test-js-components-text-input-with-copy-button-text-input-with-copy-button-looks-visually-correct-when-using-story-components-textinputwithcopybutton-example-1-snap.png +0 -0
- package/src/components/text-input-with-copy-button/__tests__/__image_snapshots__/text-input-with-copy-button-stories-test-js-components-text-input-with-copy-button-text-input-with-copy-button-updates-copy-button-on-click-1-snap.png +0 -0
- package/src/components/thumbnail-card/ThumbnailCard.scss +1 -1
- package/src/components/thumbnail-card/__tests__/__image_snapshots__/thumbnail-card-stories-test-js-components-thumbnail-card-thumbnail-card-looks-visually-correct-when-using-story-components-thumbnailcard-basic-1-snap.png +0 -0
- package/src/components/thumbnail-card/__tests__/__image_snapshots__/thumbnail-card-stories-test-js-components-thumbnail-card-thumbnail-card-looks-visually-correct-when-using-story-components-thumbnailcard-highlight-on-hover-1-snap.png +0 -0
- package/src/components/thumbnail-card/__tests__/__image_snapshots__/thumbnail-card-stories-test-js-components-thumbnail-card-thumbnail-card-should-show-a-blue-border-when-the-card-is-hovered-1-snap.png +0 -0
- package/src/components/thumbnail-card/__tests__/__image_snapshots__/thumbnail-card-stories-test-js-components-thumbnail-card-thumbnail-card-should-show-an-orange-border-when-the-card-is-hovered-and-focused-1-snap.png +0 -0
- package/src/components/time-input/__tests__/TimeInput.stories.test.tsx +7 -11
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-looks-correct-when-using-story-components-timeinput-optional-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-looks-correct-when-using-story-components-timeinput-required-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-sets-a-valid-date-based-on-input-after-blur-for-story-components-timeinput-optional-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-sets-a-valid-date-based-on-input-after-blur-for-story-components-timeinput-required-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-sets-a-valid-date-based-on-input-after-change-for-story-components-timeinput-optional-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-sets-a-valid-date-based-on-input-after-change-for-story-components-timeinput-required-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-shows-an-error-for-empty-input-after-blur-for-story-components-timeinput-required-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-shows-an-error-for-empty-input-after-change-for-story-components-timeinput-required-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-shows-an-error-for-invalid-input-after-blur-for-story-components-timeinput-optional-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-shows-an-error-for-invalid-input-after-blur-for-story-components-timeinput-required-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-shows-an-error-for-invalid-input-after-change-for-story-components-timeinput-optional-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-shows-an-error-for-invalid-input-after-change-for-story-components-timeinput-required-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-shows-default-time-for-empty-input-after-blur-for-story-components-timeinput-optional-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-shows-default-time-for-empty-input-after-change-for-story-components-timeinput-optional-1-snap.png +0 -0
- package/src/components/time-input/__tests__/__image_snapshots__/time-input-stories-test-tsx-components-time-input-time-input-shows-default-time-for-empty-input-after-change-for-story-components-timeinput-required-1-snap.png +0 -0
- package/src/components/toggle/__tests__/__image_snapshots__/toggle-stories-test-js-components-toggle-toggle-looks-visually-correct-when-using-story-components-toggle-basic-1-snap.png +0 -0
- package/src/components/toggle/__tests__/__image_snapshots__/toggle-stories-test-js-components-toggle-toggle-looks-visually-correct-when-using-story-components-toggle-controlled-1-snap.png +0 -0
- package/src/components/toggle/__tests__/__image_snapshots__/toggle-stories-test-js-components-toggle-toggle-looks-visually-correct-when-using-story-components-toggle-disabled-1-snap.png +0 -0
- package/src/components/toggle/__tests__/__image_snapshots__/toggle-stories-test-js-components-toggle-toggle-looks-visually-correct-when-using-story-components-toggle-right-aligned-1-snap.png +0 -0
- package/src/components/tooltip/Tooltip.scss +3 -3
- package/src/components/tooltip/__tests__/Tooltip.stories.test.tsx +1 -1
- package/src/components/tooltip/__tests__/__image_snapshots__/tooltip-stories-test-tsx-components-tooltip-tooltip-looks-visually-correct-when-using-story-components-tooltip-attached-to-disabled-button-1-snap.png +0 -0
- package/src/components/tooltip/__tests__/__image_snapshots__/tooltip-stories-test-tsx-components-tooltip-tooltip-looks-visually-correct-when-using-story-components-tooltip-is-shown-1-snap.png +0 -0
- package/src/components/tooltip/__tests__/__image_snapshots__/tooltip-stories-test-tsx-components-tooltip-tooltip-looks-visually-correct-when-using-story-components-tooltip-positioning-1-snap.png +0 -0
- package/src/components/tooltip/__tests__/__image_snapshots__/tooltip-stories-test-tsx-components-tooltip-tooltip-looks-visually-correct-when-using-story-components-tooltip-themes-1-snap.png +0 -0
- package/src/components/tooltip/__tests__/__image_snapshots__/tooltip-stories-test-tsx-components-tooltip-tooltip-looks-visually-correct-when-using-story-components-tooltip-with-close-button-1-snap.png +0 -0
- package/src/components/tooltip/__tests__/__image_snapshots__/tooltip-stories-test-tsx-components-tooltip-tooltip-looks-visually-correct-when-using-story-components-tooltip-with-disabled-1-snap.png +0 -0
- package/src/components/tooltip/__tests__/__image_snapshots__/tooltip-stories-test-tsx-components-tooltip-tooltip-looks-visually-correct-when-using-story-components-tooltip-with-long-text-1-snap.png +0 -0
- package/src/components/tooltip/__tests__/__image_snapshots__/tooltip-stories-test-tsx-components-tooltip-tooltip-looks-visually-correct-when-using-story-components-tooltip-with-offset-1-snap.png +0 -0
- package/src/elements/common/messages.js +10 -0
- package/src/elements/common/modal.scss +4 -1
- package/src/elements/content-explorer/ShareDialog.scss +2 -2
- package/src/elements/content-explorer/__tests__/__image_snapshots__/share-dialog-stories-test-js-elements-content-explorer-share-dialog-looks-visually-correct-when-using-story-elements-contentexplorer-sharedialog-share-dialog-1-snap.png +0 -0
- package/src/elements/content-sidebar/activity-feed/task-form/TaskForm.js +3 -2
- package/src/elements/content-sidebar/activity-feed/task-form/TaskForm.scss +0 -15
- package/src/elements/content-sidebar/activity-feed/task-form/__tests__/TaskForm.test.js +2 -2
- package/src/elements/content-sidebar/activity-feed/task-form/__tests__/__snapshots__/TaskForm.test.js.snap +1 -151
- package/src/elements/content-sidebar/activity-feed/version/Version.scss +1 -1
- package/src/elements/content-sidebar/additional-tabs/AdditionalTabsLoading.scss +1 -1
- package/src/elements/content-sidebar/skills/faces/Faces.scss +1 -1
- package/src/elements/content-sidebar/skills/keywords/Keywords.scss +1 -1
- package/src/elements/content-sidebar/skills/timeline/Timeline.scss +1 -1
- package/src/elements/content-sidebar/skills/timeline/Timeslice.scss +1 -1
- package/src/elements/content-sidebar/skills/transcript/Transcript.scss +1 -1
- package/src/elements/content-sidebar/versions/VersionsItemBadge.scss +1 -1
- package/src/elements/content-uploader/ContentUploader.js +10 -7
- package/src/elements/content-uploader/Footer.scss +5 -0
- package/src/elements/content-uploader/ItemAction.js +34 -3
- package/src/elements/content-uploader/ItemList.js +11 -4
- package/src/elements/content-uploader/UploadsManager.js +8 -5
- package/src/elements/content-uploader/__tests__/ItemAction.test.js +19 -1
- package/src/elements/content-uploader/__tests__/ItemList.test.js +45 -0
- package/src/elements/content-uploader/actionCellRenderer.js +9 -2
- package/src/elements/content-uploader/progressCellRenderer.js +6 -3
- package/src/features/collaborator-avatars/CollaboratorList.scss +1 -1
- package/src/features/collapsible-sidebar/CollapsibleSidebarLogo.js +3 -3
- package/src/features/collapsible-sidebar/__tests__/__snapshots__/CollapsibleSidebarLogo.test.js.snap +7 -7
- package/src/features/content-explorer/content-explorer/ContentExplorer.scss +5 -0
- package/src/features/content-explorer/item-list/ItemList.scss +1 -1
- package/src/features/left-sidebar/styles/LeftSidebarDropWrapper.scss +1 -1
- package/src/features/left-sidebar/styles/LeftSidebarLinkCallout.scss +2 -2
- package/src/features/message-preview-content/styles/PreviewErrorNotification.scss +1 -1
- package/src/features/metadata-based-view/MetadataBasedItemList.scss +1 -1
- package/src/features/metadata-instance-editor/CascadePolicy.scss +2 -2
- package/src/features/metadata-instance-editor/CustomInstanceNewField.scss +1 -1
- package/src/features/metadata-instance-editor/Instance.scss +1 -1
- package/src/features/metadata-instance-editor/TemplateDropdown.scss +4 -4
- package/src/features/query-bar/styles/Condition.scss +4 -4
- package/src/features/query-bar/styles/QueryBarButtons.scss +1 -1
- package/src/features/quick-search/QuickSearch.scss +1 -4
- package/src/features/quick-search/QuickSearchMessage.scss +1 -0
- package/src/features/sandbox-banner/__tests__/__image_snapshots__/sandbox-banner-stories-test-tsx-features-sandbox-banner-sandbox-banner-looks-visually-correct-when-using-story-features-sandboxbanner-basic-1-snap.png +0 -0
- package/src/features/sandbox-banner/__tests__/__image_snapshots__/sandbox-banner-stories-test-tsx-features-sandbox-banner-sandbox-banner-should-show-a-tooltip-when-the-banner-is-hovered-1-snap.png +0 -0
- package/src/features/security/_mixins.scss +1 -1
- package/src/features/shared-link-modal/__tests__/__image_snapshots__/shared-link-modal-stories-test-js-features-shared-link-modal-shared-link-modal-looks-visually-correct-when-button-is-clicked-1-snap.png +0 -0
- package/src/features/shared-link-modal/__tests__/__image_snapshots__/shared-link-modal-stories-test-js-features-shared-link-modal-shared-link-modal-looks-visually-correct-when-using-story-features-sharedlinkmodal-basic-1-snap.png +0 -0
- package/src/features/shared-link-modal/__tests__/__image_snapshots__/shared-link-stories-test-js-features-shared-link-modal-shared-link-looks-visually-correct-when-button-is-clicked-1-snap.png +0 -0
- package/src/features/shared-link-modal/__tests__/__image_snapshots__/shared-link-stories-test-js-features-shared-link-modal-shared-link-looks-visually-correct-when-using-story-features-sharedlink-basic-1-snap.png +0 -0
- package/src/features/shared-link-settings-modal/__tests__/__image_snapshots__/shared-link-settings-modal-stories-test-js-features-shared-link-settings-modal-shared-link-settings-modal-looks-visually-correct-when-button-is-clicked-1-snap.png +0 -0
- package/src/features/shared-link-settings-modal/__tests__/__image_snapshots__/shared-link-settings-modal-stories-test-js-features-shared-link-settings-modal-shared-link-settings-modal-looks-visually-correct-when-using-story-features-sharedlinksettingsmodal-basic-1-snap.png +0 -0
- package/src/features/unified-share-modal/__tests__/__image_snapshots__/unified-share-modal-stories-test-js-features-unified-share-modal-unified-share-modal-features-unifiedsharemodal-with-form-only-looks-visually-correct-1-snap.png +0 -0
- package/src/features/unified-share-modal/__tests__/__image_snapshots__/unified-share-modal-stories-test-js-features-unified-share-modal-unified-share-modal-features-unifiedsharemodal-with-form-only-looks-visually-correct-when-adding-emails-1-snap.png +0 -0
- package/src/features/unified-share-modal/__tests__/__image_snapshots__/unified-share-modal-stories-test-js-features-unified-share-modal-unified-share-modal-looks-visually-correct-when-button-is-clicked-in-story-features-unifiedsharemodal-basic-1-snap.png +0 -0
- package/src/features/unified-share-modal/__tests__/__image_snapshots__/unified-share-modal-stories-test-js-features-unified-share-modal-unified-share-modal-looks-visually-correct-when-button-is-clicked-in-story-features-unifiedsharemodal-with-autofocused-shared-link-1-snap.png +0 -0
- package/src/features/unified-share-modal/__tests__/__image_snapshots__/unified-share-modal-stories-test-js-features-unified-share-modal-unified-share-modal-looks-visually-correct-when-button-is-clicked-in-story-features-unifiedsharemodal-with-shared-link-1-snap.png +0 -0
- package/src/icon/fill/LightningBolt16.js.flow +28 -0
- package/src/icon/fill/LightningBolt16.stories.tsx +13 -0
- package/src/icon/fill/LightningBolt16.tsx +26 -0
- package/src/icon/line/GenericCopy16.js.flow +25 -0
- package/src/icon/line/GenericCopy16.stories.tsx +13 -0
- package/src/icon/line/GenericCopy16.tsx +23 -0
- package/src/styles/_inputs.scss +1 -1
- package/src/styles/_variables.scss +2 -0
- package/src/styles/common/_buttons.scss +61 -11
- package/src/styles/common/_forms.scss +1 -1
- package/src/styles/common/_inline-notifications.scss +3 -1
- package/src/styles/common/_pills.scss +1 -1
- package/src/styles/constants/_buttons.scss +6 -0
- package/src/styles/constants/_layout.scss +3 -1
- package/src/styles/constants/_typography.scss +9 -1
- package/src/styles/mixins/_buttons.scss +15 -0
- package/src/styles/mixins/_overlay.scss +2 -2
- package/src/styles/variables.js +9 -1
- package/src/styles/variables.json +9 -1
- package/src/styles/variables.ts +9 -1
- package/src/utils/createTheme.stories.js +5 -5
- package/src/components/guide-tooltip/__tests__/__snapshots__/GuideTooltip.test.js.snap +0 -142
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { mount } from 'enzyme';
|
|
4
4
|
import GuideTooltip from '../GuideTooltip';
|
|
5
5
|
import FolderShared32 from '../../../icon/content/FolderShared32';
|
|
6
6
|
|
|
@@ -8,24 +8,78 @@ describe('components/guide-tooltip/GuideTooltip', () => {
|
|
|
8
8
|
const title = <div>title</div>;
|
|
9
9
|
const body = <div>body</div>;
|
|
10
10
|
const icon = <FolderShared32 />;
|
|
11
|
+
const image = <img alt="test" src="test" />;
|
|
11
12
|
const steps = [1, 3];
|
|
12
13
|
const primaryButtonProps = { children: 'Next' };
|
|
13
14
|
const secondaryButtonProps = { children: 'Previous' };
|
|
14
15
|
|
|
15
|
-
const getWrapper = props =>
|
|
16
|
+
const getWrapper = props =>
|
|
17
|
+
mount(
|
|
18
|
+
<GuideTooltip {...props}>
|
|
19
|
+
<div />
|
|
20
|
+
</GuideTooltip>,
|
|
21
|
+
);
|
|
16
22
|
|
|
17
23
|
test('should render with title and body', () => {
|
|
18
24
|
const wrapper = getWrapper({ body, title });
|
|
19
|
-
|
|
25
|
+
|
|
26
|
+
// hidden elements
|
|
27
|
+
expect(wrapper.find('.bdl-GuideTooltip-icon').length).toEqual(0);
|
|
28
|
+
expect(wrapper.find('.bdl-GuideTooltip-image').length).toEqual(0);
|
|
29
|
+
expect(wrapper.find('.bdl-GuideTooltip-previousButton').length).toEqual(0);
|
|
30
|
+
expect(wrapper.find('.bdl-GuideTooltip-nextButton').length).toEqual(0);
|
|
31
|
+
expect(wrapper.find('.bdl-GuideTooltip-steps').length).toEqual(0);
|
|
32
|
+
// visible elements
|
|
33
|
+
expect(wrapper.find('.bdl-GuideTooltip-title').length).toEqual(1);
|
|
34
|
+
expect(wrapper.find('.bdl-GuideTooltip-title').text()).toEqual('title');
|
|
35
|
+
expect(wrapper.find('.bdl-GuideTooltip-body').length).toEqual(1);
|
|
36
|
+
expect(wrapper.find('.bdl-GuideTooltip-body').text()).toEqual('body');
|
|
20
37
|
});
|
|
21
38
|
|
|
22
39
|
test('should render with just body', () => {
|
|
23
40
|
const wrapper = getWrapper({ body });
|
|
24
|
-
|
|
41
|
+
|
|
42
|
+
// hidden elements
|
|
43
|
+
expect(wrapper.find('.bdl-GuideTooltip-title').length).toEqual(0);
|
|
44
|
+
expect(wrapper.find('.bdl-GuideTooltip-icon').length).toEqual(0);
|
|
45
|
+
expect(wrapper.find('.bdl-GuideTooltip-image').length).toEqual(0);
|
|
46
|
+
expect(wrapper.find('.bdl-GuideTooltip-previousButton').length).toEqual(0);
|
|
47
|
+
expect(wrapper.find('.bdl-GuideTooltip-nextButton').length).toEqual(0);
|
|
48
|
+
expect(wrapper.find('.bdl-GuideTooltip-steps').length).toEqual(0);
|
|
49
|
+
// visible elements
|
|
50
|
+
expect(wrapper.find('.bdl-GuideTooltip-body').length).toEqual(1);
|
|
51
|
+
expect(wrapper.find('.bdl-GuideTooltip-body').text()).toEqual('body');
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
test('should render with all options but icon', () => {
|
|
55
|
+
const wrapper = getWrapper({ body, title, image, primaryButtonProps, secondaryButtonProps, steps });
|
|
56
|
+
|
|
57
|
+
// hidden elements
|
|
58
|
+
expect(wrapper.find('.bdl-GuideTooltip-icon').length).toEqual(0);
|
|
59
|
+
// visible elements
|
|
60
|
+
expect(wrapper.find('.bdl-GuideTooltip-title').length).toEqual(1);
|
|
61
|
+
expect(wrapper.find('.bdl-GuideTooltip-title').text()).toEqual('title');
|
|
62
|
+
expect(wrapper.find('.bdl-GuideTooltip-image img').length).toEqual(1);
|
|
63
|
+
expect(wrapper.find('.bdl-GuideTooltip-body').length).toEqual(1);
|
|
64
|
+
expect(wrapper.find('.bdl-GuideTooltip-body').text()).toEqual('body');
|
|
65
|
+
expect(wrapper.find('Button.bdl-GuideTooltip-previousButton').length).toEqual(1);
|
|
66
|
+
expect(wrapper.find('Button.bdl-GuideTooltip-nextButton').length).toEqual(1);
|
|
67
|
+
expect(wrapper.find('.bdl-GuideTooltip-steps').length).toEqual(1);
|
|
25
68
|
});
|
|
26
69
|
|
|
27
|
-
test('should render with all options', () => {
|
|
28
|
-
const wrapper = getWrapper({ body, title, icon, primaryButtonProps, secondaryButtonProps, steps });
|
|
29
|
-
|
|
70
|
+
test('should render with all options but image', () => {
|
|
71
|
+
const wrapper = getWrapper({ body, title, icon, image, primaryButtonProps, secondaryButtonProps, steps });
|
|
72
|
+
|
|
73
|
+
// hidden elements
|
|
74
|
+
expect(wrapper.find('.bdl-GuideTooltip-image').length).toEqual(0);
|
|
75
|
+
// visible elements
|
|
76
|
+
expect(wrapper.find('.bdl-GuideTooltip-title').length).toEqual(1);
|
|
77
|
+
expect(wrapper.find('.bdl-GuideTooltip-title').text()).toEqual('title');
|
|
78
|
+
expect(wrapper.find('.bdl-GuideTooltip-icon FolderShared32').length).toEqual(1);
|
|
79
|
+
expect(wrapper.find('.bdl-GuideTooltip-body').length).toEqual(1);
|
|
80
|
+
expect(wrapper.find('.bdl-GuideTooltip-body').text()).toEqual('body');
|
|
81
|
+
expect(wrapper.find('Button.bdl-GuideTooltip-previousButton').length).toEqual(1);
|
|
82
|
+
expect(wrapper.find('Button.bdl-GuideTooltip-nextButton').length).toEqual(1);
|
|
83
|
+
expect(wrapper.find('.bdl-GuideTooltip-steps').length).toEqual(1);
|
|
30
84
|
});
|
|
31
85
|
});
|
|
Binary file
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
2
3
|
import LinkBase, { LinkBaseProps } from './LinkBase';
|
|
3
4
|
|
|
4
5
|
export interface LinkButtonProps extends LinkBaseProps {
|
|
5
6
|
children: React.ReactChild;
|
|
6
7
|
className?: string;
|
|
8
|
+
size?: 'large';
|
|
7
9
|
}
|
|
8
10
|
|
|
9
|
-
const LinkButton = ({ className = '', ...rest }: LinkButtonProps) => (
|
|
10
|
-
<LinkBase className={
|
|
11
|
+
const LinkButton = ({ className = '', size, ...rest }: LinkButtonProps) => (
|
|
12
|
+
<LinkBase className={classNames('btn', className, { 'bdl-btn--large': size === 'large' })} {...rest} />
|
|
11
13
|
);
|
|
12
14
|
|
|
13
15
|
export default LinkButton;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
import LinkButton from './LinkButton';
|
|
4
|
-
import { LinkBaseProps } from './LinkBase';
|
|
3
|
+
import LinkButton, { LinkButtonProps } from './LinkButton';
|
|
5
4
|
|
|
6
|
-
export interface LinkPrimaryButtonProps extends
|
|
7
|
-
children: React.ReactChild;
|
|
5
|
+
export interface LinkPrimaryButtonProps extends LinkButtonProps {
|
|
8
6
|
className?: string;
|
|
9
7
|
}
|
|
10
8
|
|
|
@@ -90,6 +90,13 @@ describe('components/link/Link', () => {
|
|
|
90
90
|
expect(wrapper.find('a').prop('href')).toEqual('#');
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
+
test('should correctly render LinkButton with size=large prop', () => {
|
|
94
|
+
const wrapper = mount(<LinkButton size="large">a link</LinkButton>);
|
|
95
|
+
|
|
96
|
+
expect(wrapper.find('a').hasClass('btn')).toBe(true);
|
|
97
|
+
expect(wrapper.find('a').hasClass('bdl-btn--large')).toBe(true);
|
|
98
|
+
});
|
|
99
|
+
|
|
93
100
|
test('should correctly render LinkButton with proper href', () => {
|
|
94
101
|
const wrapper = mount(<LinkButton href="foo">a link</LinkButton>);
|
|
95
102
|
|
|
@@ -118,6 +125,14 @@ describe('components/link/Link', () => {
|
|
|
118
125
|
expect(wrapper.find('a').prop('href')).toEqual('#');
|
|
119
126
|
});
|
|
120
127
|
|
|
128
|
+
test('should correctly render LinkPrimaryButton with size=large prop', () => {
|
|
129
|
+
const wrapper = mount(<LinkPrimaryButton size="large">a link</LinkPrimaryButton>);
|
|
130
|
+
|
|
131
|
+
expect(wrapper.find('a').hasClass('btn')).toBe(true);
|
|
132
|
+
expect(wrapper.find('a').hasClass('btn-primary')).toBe(true);
|
|
133
|
+
expect(wrapper.find('a').hasClass('bdl-btn--large')).toBe(true);
|
|
134
|
+
});
|
|
135
|
+
|
|
121
136
|
test('should correctly render LinkPrimaryButton with proper href', () => {
|
|
122
137
|
const wrapper = mount(<LinkPrimaryButton href="foo">a link</LinkPrimaryButton>);
|
|
123
138
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
describe('components/link/LinkButton', () => {
|
|
2
|
-
test.each([
|
|
3
|
-
'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
test.each([
|
|
3
|
+
'components-links-linkbutton--basic',
|
|
4
|
+
'components-links-linkbutton--large',
|
|
5
|
+
'components-links-linkbutton--with-custom-component',
|
|
6
|
+
])('looks visually correct when using story %s', async id => {
|
|
7
|
+
const image = await BoxVisualTestUtils.takeScreenshot(id);
|
|
8
|
+
return expect(image).toMatchImageSnapshot();
|
|
9
|
+
});
|
|
9
10
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
describe('components/link/LinkPrimaryButton', () => {
|
|
2
2
|
test.each([
|
|
3
3
|
'components-links-linkprimarybutton--basic',
|
|
4
|
+
'components-links-linkprimarybutton--large',
|
|
4
5
|
'components-links-linkprimarybutton--with-custom-component',
|
|
5
6
|
])('looks visually correct when using story %s', async id => {
|
|
6
7
|
const image = await BoxVisualTestUtils.takeScreenshot(id);
|
|
Binary file
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BrowserRouter as Router, Link as RouterLink, LinkProps as RouterLinkProps } from 'react-router-dom';
|
|
3
|
+
import { select } from '@storybook/addon-knobs';
|
|
3
4
|
|
|
4
5
|
import LinkButton from '../LinkButton';
|
|
5
6
|
import notes from './LinkButton.stories.md';
|
|
6
7
|
|
|
7
|
-
export const basic = () =>
|
|
8
|
+
export const basic = () => (
|
|
9
|
+
<LinkButton
|
|
10
|
+
href="https://www.box.com/platform"
|
|
11
|
+
size={select('size', { None: undefined, Large: 'large' }, undefined)}
|
|
12
|
+
>
|
|
13
|
+
A link that looks like a Button
|
|
14
|
+
</LinkButton>
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
export const large = () => (
|
|
18
|
+
<LinkButton href="https://www.box.com/platform" size="large">
|
|
19
|
+
A link that looks like a Button
|
|
20
|
+
</LinkButton>
|
|
21
|
+
);
|
|
8
22
|
|
|
9
23
|
export const withCustomComponent = () => {
|
|
10
24
|
// You can pass a custom component to be used instead of the default "a" tag, like a React Router link:
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BrowserRouter as Router, Link as RouterLink, LinkProps as RouterLinkProps } from 'react-router-dom';
|
|
3
|
+
import { select } from '@storybook/addon-knobs';
|
|
3
4
|
|
|
4
5
|
import LinkPrimaryButton from '../LinkPrimaryButton';
|
|
5
6
|
import notes from './LinkPrimaryButton.stories.md';
|
|
6
7
|
|
|
7
8
|
export const basic = () => (
|
|
8
|
-
<LinkPrimaryButton
|
|
9
|
+
<LinkPrimaryButton
|
|
10
|
+
href="https://www.box.com/platform"
|
|
11
|
+
size={select('size', { None: undefined, Large: 'large' }, undefined)}
|
|
12
|
+
>
|
|
13
|
+
A link that looks like a PrimaryButton
|
|
14
|
+
</LinkPrimaryButton>
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
export const large = () => (
|
|
18
|
+
<LinkPrimaryButton href="https://www.box.com/platform" size="large">
|
|
19
|
+
A link that looks like a PrimaryButton
|
|
20
|
+
</LinkPrimaryButton>
|
|
9
21
|
);
|
|
10
22
|
|
|
11
23
|
export const withCustomComponent = () => {
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import '../../styles/variables';
|
|
2
|
+
@import '../../styles/mixins/buttons';
|
|
2
3
|
|
|
3
4
|
/**************************************
|
|
4
5
|
* Modal
|
|
@@ -59,8 +60,7 @@
|
|
|
59
60
|
padding: 30px;
|
|
60
61
|
background-color: $white;
|
|
61
62
|
background-clip: padding-box;
|
|
62
|
-
border:
|
|
63
|
-
border-radius: $bdl-border-radius-size;
|
|
63
|
+
border-radius: $bdl-border-radius-size-xlarge;
|
|
64
64
|
box-shadow: 0 1px 1px 1px fade-out($black, .95);
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
max-width: 100%;
|
|
71
71
|
margin: 0;
|
|
72
72
|
overflow: hidden;
|
|
73
|
+
font-weight: bold;
|
|
73
74
|
font-size: 16px;
|
|
74
75
|
line-height: inherit;
|
|
75
76
|
word-wrap: break-word;
|
|
@@ -116,6 +117,8 @@
|
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
.btn {
|
|
120
|
+
@include bdl-Button--large;
|
|
121
|
+
|
|
119
122
|
margin-top: 0;
|
|
120
123
|
margin-bottom: 0;
|
|
121
124
|
}
|
|
@@ -5,7 +5,7 @@ import omit from 'lodash/omit';
|
|
|
5
5
|
import uniqueId from 'lodash/uniqueId';
|
|
6
6
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
7
7
|
|
|
8
|
-
import IconClose from '../../
|
|
8
|
+
import IconClose from '../../icon/fill/X16';
|
|
9
9
|
|
|
10
10
|
const ALERT_TYPE = 'alert';
|
|
11
11
|
const DIALOG_TYPE = 'dialog';
|
|
Binary file
|
|
@@ -3,13 +3,11 @@ import * as React from 'react';
|
|
|
3
3
|
import { defineMessages, injectIntl } from 'react-intl';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import IconInfoThin from '../../icons/general/IconInfoThin';
|
|
12
|
-
import IconSync from '../../icons/general/IconSync';
|
|
6
|
+
import InfoBadge16 from '../../icon/line/InfoBadge16';
|
|
7
|
+
import CircleCheck16 from '../../icon/line/CircleCheck16';
|
|
8
|
+
import TriangleAlert16 from '../../icon/line/TriangleAlert16';
|
|
9
|
+
import XBadge16 from '../../icon/line/XBadge16';
|
|
10
|
+
import X16 from '../../icon/fill/X16';
|
|
13
11
|
|
|
14
12
|
import type { NotificationType } from '../../common/types/core';
|
|
15
13
|
|
|
@@ -32,10 +30,10 @@ const DURATION_TIMES = {
|
|
|
32
30
|
};
|
|
33
31
|
|
|
34
32
|
const ICON_RENDERER: { [string]: Function } = {
|
|
35
|
-
[TYPE_DEFAULT]: () => <
|
|
36
|
-
[TYPE_ERROR]: () => <
|
|
37
|
-
[TYPE_INFO]: () => <
|
|
38
|
-
[TYPE_WARN]: () => <
|
|
33
|
+
[TYPE_DEFAULT]: () => <InfoBadge16 />,
|
|
34
|
+
[TYPE_ERROR]: () => <XBadge16 />,
|
|
35
|
+
[TYPE_INFO]: () => <CircleCheck16 />,
|
|
36
|
+
[TYPE_WARN]: () => <TriangleAlert16 />,
|
|
39
37
|
};
|
|
40
38
|
|
|
41
39
|
const messages = defineMessages({
|
|
@@ -109,7 +107,7 @@ class Notification extends React.Component<Props> {
|
|
|
109
107
|
return (
|
|
110
108
|
<div className={classes}>
|
|
111
109
|
{React.cloneElement(ICON_RENDERER[type](), {
|
|
112
|
-
color:
|
|
110
|
+
color: '#fff',
|
|
113
111
|
height: 20,
|
|
114
112
|
width: 20,
|
|
115
113
|
})}
|
|
@@ -120,7 +118,7 @@ class Notification extends React.Component<Props> {
|
|
|
120
118
|
onClick={this.onClose}
|
|
121
119
|
type="button"
|
|
122
120
|
>
|
|
123
|
-
<
|
|
121
|
+
<X16 />
|
|
124
122
|
</button>
|
|
125
123
|
</div>
|
|
126
124
|
);
|
|
@@ -23,22 +23,26 @@
|
|
|
23
23
|
overflow: hidden;
|
|
24
24
|
color: $bdl-gray;
|
|
25
25
|
font-weight: bold;
|
|
26
|
-
background-color: $bdl-gray-
|
|
27
|
-
border
|
|
26
|
+
background-color: $bdl-gray-10;
|
|
27
|
+
border: 2px solid $bdl-gray;
|
|
28
|
+
border-radius: $bdl-border-radius-size-large;
|
|
28
29
|
box-shadow: 0 2px 6px fade-out($black, .85);
|
|
29
|
-
opacity:
|
|
30
|
+
opacity: 1;
|
|
30
31
|
transition: opacity .1s ease-out;
|
|
31
32
|
|
|
32
33
|
&.info {
|
|
33
|
-
background-color: $bdl-green-light-
|
|
34
|
+
background-color: $bdl-green-light-20;
|
|
35
|
+
border-color: $bdl-green-light;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
&.warn {
|
|
37
|
-
background-color: $bdl-yellorange-
|
|
39
|
+
background-color: $bdl-yellorange-20;
|
|
40
|
+
border-color: $bdl-yellorange;
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
&.error {
|
|
41
|
-
background-color: $bdl-watermelon-red-
|
|
44
|
+
background-color: $bdl-watermelon-red-20;
|
|
45
|
+
border-color: $bdl-watermelon-red;
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
&.is-hidden {
|
|
@@ -72,26 +76,27 @@
|
|
|
72
76
|
a {
|
|
73
77
|
flex: none;
|
|
74
78
|
color: $bdl-gray;
|
|
75
|
-
|
|
79
|
+
font-weight: bold;
|
|
76
80
|
|
|
77
81
|
&.btn.is-disabled,
|
|
78
82
|
&.btn:not(.is-disabled) {
|
|
79
83
|
margin: 0 5px;
|
|
80
84
|
padding: 7px 13px;
|
|
81
85
|
background-color: transparent;
|
|
82
|
-
border-color:
|
|
86
|
+
border-color: $bdl-gray;
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
&.close-btn {
|
|
86
90
|
display: flex;
|
|
87
|
-
|
|
88
|
-
font-weight: bold;
|
|
89
|
-
font-size: 14px;
|
|
91
|
+
align-items: center;
|
|
90
92
|
background: none;
|
|
91
93
|
border: none;
|
|
92
94
|
outline: none;
|
|
93
95
|
cursor: pointer;
|
|
94
|
-
|
|
96
|
+
|
|
97
|
+
& path {
|
|
98
|
+
fill: $bdl-gray;
|
|
99
|
+
}
|
|
95
100
|
}
|
|
96
101
|
}
|
|
97
102
|
}
|
|
@@ -48,15 +48,15 @@ describe('components/notification/Notification', () => {
|
|
|
48
48
|
|
|
49
49
|
test('should render a correct icon when initialized', () => {
|
|
50
50
|
const component = mount(<Notification type={type}>test</Notification>);
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
expect(component.find('
|
|
57
|
-
expect(component.find('
|
|
58
|
-
expect(component.find('
|
|
59
|
-
expect(component.find('
|
|
51
|
+
const infoBadge16Count = type === TYPE_DEFAULT ? 1 : 0;
|
|
52
|
+
const CircleCheck16Count = type === TYPE_INFO ? 1 : 0;
|
|
53
|
+
const XBadge16Count = type === TYPE_ERROR ? 1 : 0;
|
|
54
|
+
const TriangleAlert16Count = type === TYPE_WARN ? 1 : 0;
|
|
55
|
+
|
|
56
|
+
expect(component.find('InfoBadge16').length).toBe(infoBadge16Count);
|
|
57
|
+
expect(component.find('XBadge16').length).toBe(XBadge16Count);
|
|
58
|
+
expect(component.find('CircleCheck16').length).toBe(CircleCheck16Count);
|
|
59
|
+
expect(component.find('TriangleAlert16').length).toBe(TriangleAlert16Count);
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
|
|
Binary file
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
overflow-y: auto;
|
|
26
26
|
background-color: $white;
|
|
27
27
|
border: 1px solid darken($white, 20%);
|
|
28
|
-
border-radius: $bdl-border-radius-size;
|
|
28
|
+
border-radius: $bdl-border-radius-size-med;
|
|
29
29
|
box-shadow: inset 0 1px 1px fade-out($black, .92);
|
|
30
30
|
cursor: text;
|
|
31
31
|
transition: border-color linear .15s, box-shadow linear .15s;
|