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,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { boolean } from '@storybook/addon-knobs';
|
|
3
3
|
|
|
4
|
+
import Icon from '../../icons/general/IconCopy';
|
|
5
|
+
import * as vars from '../../styles/variables';
|
|
6
|
+
|
|
4
7
|
import PlainButton from './PlainButton';
|
|
5
8
|
import { ButtonType } from '../button';
|
|
6
9
|
import notes from './PlainButton.stories.md';
|
|
@@ -13,8 +16,100 @@ export const regular = () => (
|
|
|
13
16
|
|
|
14
17
|
export const disabled = () => <PlainButton isDisabled>Click Here</PlainButton>;
|
|
15
18
|
|
|
19
|
+
export const fixingMargins = () => (
|
|
20
|
+
<>
|
|
21
|
+
<div style={{ backgroundColor: vars.bdlLightBlue20, display: 'inline-block' }}>
|
|
22
|
+
<PlainButton>
|
|
23
|
+
<Icon />
|
|
24
|
+
</PlainButton>
|
|
25
|
+
</div>
|
|
26
|
+
<p>By default the PlainButton component has margins set to 0.</p>
|
|
27
|
+
|
|
28
|
+
<style>
|
|
29
|
+
{`
|
|
30
|
+
.bdl-SpecialButtonBug {
|
|
31
|
+
margin: 8px;
|
|
32
|
+
}
|
|
33
|
+
`}
|
|
34
|
+
</style>
|
|
35
|
+
<p style={{ backgroundColor: vars.bdlWatermelonRed10, display: 'inline-block' }}>
|
|
36
|
+
<PlainButton className="bdl-SpecialButtonBug">
|
|
37
|
+
<Icon />
|
|
38
|
+
</PlainButton>
|
|
39
|
+
</p>
|
|
40
|
+
<p>
|
|
41
|
+
The layout jumps on hover if margin overrides are not set for the :active and :hover states.
|
|
42
|
+
<pre>
|
|
43
|
+
<code>
|
|
44
|
+
{`
|
|
45
|
+
.bdl-SpecialButtonBug {
|
|
46
|
+
margin: $bdl-grid-unit*2;
|
|
47
|
+
}
|
|
48
|
+
`}
|
|
49
|
+
</code>
|
|
50
|
+
</pre>
|
|
51
|
+
</p>
|
|
52
|
+
<style>
|
|
53
|
+
{`
|
|
54
|
+
.bdl-SpecialButtonFix,
|
|
55
|
+
.bdl-SpecialButtonFix:hover,
|
|
56
|
+
.bdl-SpecialButtonFix:active {
|
|
57
|
+
margin: 8px;
|
|
58
|
+
}
|
|
59
|
+
`}
|
|
60
|
+
</style>
|
|
61
|
+
<p style={{ backgroundColor: vars.bdlGreenLight10, display: 'inline-block' }}>
|
|
62
|
+
<PlainButton className="bdl-SpecialButtonFix">
|
|
63
|
+
<Icon />
|
|
64
|
+
</PlainButton>
|
|
65
|
+
</p>
|
|
66
|
+
<p>
|
|
67
|
+
Workaround - use bdl-Button-margins mixin to define margins.
|
|
68
|
+
<pre>
|
|
69
|
+
<code>
|
|
70
|
+
{`
|
|
71
|
+
.bdl-SpecialButtonFix {
|
|
72
|
+
@include bdl-Button-margins($bdl-grid-unit*2);
|
|
73
|
+
}
|
|
74
|
+
`}
|
|
75
|
+
</code>
|
|
76
|
+
</pre>
|
|
77
|
+
</p>
|
|
78
|
+
<style>
|
|
79
|
+
{`
|
|
80
|
+
.bdl-SpecialButtonFix2,
|
|
81
|
+
.bdl-SpecialButtonFix2:hover,
|
|
82
|
+
.bdl-SpecialButtonFix2:active {
|
|
83
|
+
margin: 8px 12px 0 16px;
|
|
84
|
+
}
|
|
85
|
+
`}
|
|
86
|
+
</style>
|
|
87
|
+
<p style={{ backgroundColor: vars.bdlGreenLight10, display: 'inline-block' }}>
|
|
88
|
+
<PlainButton className="bdl-SpecialButtonFix2">
|
|
89
|
+
<Icon />
|
|
90
|
+
</PlainButton>
|
|
91
|
+
</p>
|
|
92
|
+
<p>
|
|
93
|
+
You can set all 4 margins inline using shorthand property syntax.
|
|
94
|
+
<pre>
|
|
95
|
+
<code>
|
|
96
|
+
{`
|
|
97
|
+
.bdl-SpecialButtonFix2 {
|
|
98
|
+
@include bdl-Button-margins($bdl-grid-unit*2 $bdl-grid-unit*3 0 $bdl-grid-unit*4);
|
|
99
|
+
}
|
|
100
|
+
`}
|
|
101
|
+
</code>
|
|
102
|
+
</pre>
|
|
103
|
+
</p>
|
|
104
|
+
<p>
|
|
105
|
+
<b>Why not fix this?</b> We will eventually, but since this behavior is relied upon in many places it is a
|
|
106
|
+
breaking change that needs to be rolled out strategically.
|
|
107
|
+
</p>
|
|
108
|
+
</>
|
|
109
|
+
);
|
|
110
|
+
|
|
16
111
|
export default {
|
|
17
|
-
title: 'Components|PlainButton',
|
|
112
|
+
title: 'Components|Buttons/PlainButton',
|
|
18
113
|
component: PlainButton,
|
|
19
114
|
parameters: {
|
|
20
115
|
notes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
describe('components/plain-button/PlainButton', () => {
|
|
2
|
-
test.each([
|
|
2
|
+
test.each(['components-buttons-plainbutton--regular', 'components-buttons-plainbutton--disabled'])(
|
|
3
3
|
'looks visually correct when using story %s',
|
|
4
4
|
async id => {
|
|
5
5
|
const image = await BoxVisualTestUtils.takeScreenshot(id);
|
|
@@ -20,7 +20,7 @@ export const loading = () => <PrimaryButton isLoading>Click Here</PrimaryButton>
|
|
|
20
20
|
export const disabled = () => <PrimaryButton isDisabled>Click Here</PrimaryButton>;
|
|
21
21
|
|
|
22
22
|
export default {
|
|
23
|
-
title: 'Components|PrimaryButton',
|
|
23
|
+
title: 'Components|Buttons/PrimaryButton',
|
|
24
24
|
component: PrimaryButton,
|
|
25
25
|
parameters: {
|
|
26
26
|
notes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
describe('components/primary-button/PrimaryButton', () => {
|
|
2
|
-
test.each([
|
|
2
|
+
test.each(['components-buttons-primarybutton--regular', 'components-buttons-primarybutton--disabled'])(
|
|
3
3
|
'looks visually correct when using story %s',
|
|
4
4
|
async id => {
|
|
5
5
|
const image = await BoxVisualTestUtils.takeScreenshot(id);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
describe('components/radio/RadioButton', () => {
|
|
2
|
-
const RADIOGROUP_STORY = 'components-radio-radiogroup--
|
|
2
|
+
const RADIOGROUP_STORY = 'components-radio-radiogroup--basic';
|
|
3
3
|
test(`looks visually correct when using story ${RADIOGROUP_STORY}`, async () => {
|
|
4
4
|
const image = await BoxVisualTestUtils.takeScreenshot(RADIOGROUP_STORY);
|
|
5
5
|
return expect(image).toMatchImageSnapshot();
|
|
Binary file
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: center;
|
|
29
29
|
white-space: nowrap;
|
|
30
|
+
border-radius: 0;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
.select-option.is-clear-option {
|
|
@@ -54,7 +55,9 @@
|
|
|
54
55
|
.bdl-SelectFieldDropdown {
|
|
55
56
|
z-index: 4;
|
|
56
57
|
min-width: 100%;
|
|
58
|
+
margin-top: $bdl-grid-unit * 2;
|
|
57
59
|
overflow-x: hidden;
|
|
60
|
+
border-radius: $bdl-border-radius-size-med;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
.bdl-SelectField-optionText {
|
|
@@ -230,3 +230,34 @@ const handleChange = selectedOption => {
|
|
|
230
230
|
/>
|
|
231
231
|
</Label>
|
|
232
232
|
```
|
|
233
|
+
|
|
234
|
+
Search Input
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
initialState = {
|
|
238
|
+
selectedValue: 'b',
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
const options = [
|
|
242
|
+
{ displayText: 'Option A', value: 'a' },
|
|
243
|
+
{ displayText: 'Option B', value: 'b' },
|
|
244
|
+
{ displayText: 'Option C', value: 'c' },
|
|
245
|
+
{ displayText: 'Option D', value: 'd' },
|
|
246
|
+
{ displayText: 'Option E', value: 'e' },
|
|
247
|
+
];
|
|
248
|
+
|
|
249
|
+
const handleChange = selectedOption => {
|
|
250
|
+
setState({
|
|
251
|
+
selectedValue: selectedOption.value,
|
|
252
|
+
});
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
<Label text="Single select field">
|
|
256
|
+
<SingleSelectField
|
|
257
|
+
onChange={ handleChange }
|
|
258
|
+
options={ options }
|
|
259
|
+
selectedValue={ state.selectedValue }
|
|
260
|
+
shouldShowSearchInput
|
|
261
|
+
/>
|
|
262
|
+
</Label>
|
|
263
|
+
```
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import '../../styles/variables';
|
|
2
|
+
@import '../../styles/mixins/overlay';
|
|
2
3
|
|
|
3
4
|
/**************************************
|
|
4
5
|
* Selector Dropdown
|
|
@@ -8,6 +9,10 @@
|
|
|
8
9
|
position: relative;
|
|
9
10
|
z-index: 3; /* increase z-index based on max-height of dropdown wrapper */
|
|
10
11
|
|
|
12
|
+
.overlay {
|
|
13
|
+
@include bdl-Overlay-container;
|
|
14
|
+
}
|
|
15
|
+
|
|
11
16
|
.overlay-wrapper,
|
|
12
17
|
.overlay {
|
|
13
18
|
display: block;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
import SelectorDropdownExamples from '../../../examples/src/SelectorDropdownExamples';
|
|
5
|
+
import SelectorDropdown from './SelectorDropdown';
|
|
6
|
+
import notes from './SelectorDropdown.stories.md';
|
|
7
|
+
|
|
8
|
+
export const basic = () => <SelectorDropdownExamples />;
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components|SelectorDropdown',
|
|
12
|
+
component: SelectorDropdown,
|
|
13
|
+
parameters: {
|
|
14
|
+
notes,
|
|
15
|
+
},
|
|
16
|
+
};
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
### Description
|
|
2
|
-
|
|
3
1
|
This component requires a selector component (input text field or wrapper containing an input)
|
|
4
2
|
that receives `inputProps` as a prop and spreads it onto the `input` element.
|
|
5
3
|
It renders the specified children as options in a dropdown.
|
|
6
4
|
|
|
7
5
|
The component handles opening and closing the dropdown, updating the active option,
|
|
8
6
|
keyboard handling, and aria attributes necessary for a [combobox widget](https://www.w3.org/TR/wai-aria/roles#combobox).
|
|
9
|
-
|
|
10
|
-
### Examples
|
|
11
|
-
```
|
|
12
|
-
const SelectorDropdownExamples = require('examples').SelectorDropdownExamples;
|
|
13
|
-
|
|
14
|
-
<SelectorDropdownExamples />
|
|
15
|
-
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
describe('components/select/Select', () => {
|
|
2
|
+
test.each(['components-selectordropdown--basic'])('looks visually correct when using story %s', async id => {
|
|
3
|
+
const image = await BoxVisualTestUtils.takeScreenshotAfterInput(id, '.SelectorDropdown input', 'focus');
|
|
4
|
+
return expect(image).toMatchImageSnapshot();
|
|
5
|
+
});
|
|
6
|
+
});
|
|
Binary file
|
|
@@ -26,6 +26,8 @@ type Props = {
|
|
|
26
26
|
/** Label displayed for the text area */
|
|
27
27
|
label: React.Node,
|
|
28
28
|
textareaRef?: Function, // @TODO: eventually rename to innerRef for consistancy across all form elements
|
|
29
|
+
/** A CSS class for the tooltip's tether element component */
|
|
30
|
+
tooltipTetherClassName?: string,
|
|
29
31
|
};
|
|
30
32
|
|
|
31
33
|
const TextArea = ({
|
|
@@ -39,6 +41,7 @@ const TextArea = ({
|
|
|
39
41
|
isResizable,
|
|
40
42
|
label,
|
|
41
43
|
textareaRef,
|
|
44
|
+
tooltipTetherClassName,
|
|
42
45
|
...rest
|
|
43
46
|
}: Props) => {
|
|
44
47
|
const hasError = !!error;
|
|
@@ -67,6 +70,7 @@ const TextArea = ({
|
|
|
67
70
|
<Tooltip
|
|
68
71
|
isShown={hasError}
|
|
69
72
|
position={errorTooltipPosition || 'bottom-left'}
|
|
73
|
+
tetherElementClassName={tooltipTetherClassName}
|
|
70
74
|
text={error || ''}
|
|
71
75
|
theme="error"
|
|
72
76
|
>
|
|
@@ -69,6 +69,17 @@ describe('components/text-area/TextArea', () => {
|
|
|
69
69
|
expect(tooltip.prop('isShown')).toBe(false);
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
+
test('should render Tooltip with tetherElementClassName', () => {
|
|
73
|
+
const className = 'tether-element-class-name';
|
|
74
|
+
const wrapper = shallow(<TextArea error="error" label="label" tooltipTetherClassName={className} />);
|
|
75
|
+
const tetherEl = wrapper
|
|
76
|
+
.find('Tooltip')
|
|
77
|
+
.dive()
|
|
78
|
+
.find('TetherComponent');
|
|
79
|
+
|
|
80
|
+
expect(tetherEl.prop('className')).toBe(className);
|
|
81
|
+
});
|
|
82
|
+
|
|
72
83
|
test('should not show optional text when hideOptionalLabel is true', () => {
|
|
73
84
|
const wrapper = shallow(<TextArea label="label" hideOptionalLabel />);
|
|
74
85
|
expect(wrapper).toMatchSnapshot();
|
|
@@ -18,7 +18,7 @@ exports[`components/text-area/TextArea should not show optional text when hideOp
|
|
|
18
18
|
theme="error"
|
|
19
19
|
>
|
|
20
20
|
<textarea
|
|
21
|
-
aria-errormessage="
|
|
21
|
+
aria-errormessage="errorMessage22"
|
|
22
22
|
aria-invalid={false}
|
|
23
23
|
style={
|
|
24
24
|
Object {
|
|
@@ -29,7 +29,7 @@ exports[`components/text-area/TextArea should not show optional text when hideOp
|
|
|
29
29
|
</Tooltip>
|
|
30
30
|
<span
|
|
31
31
|
className="accessibility-hidden"
|
|
32
|
-
id="
|
|
32
|
+
id="errorMessage22"
|
|
33
33
|
role="alert"
|
|
34
34
|
/>
|
|
35
35
|
</Label>
|
|
@@ -46,7 +46,7 @@ exports[`components/text-area/TextArea should render text area with description
|
|
|
46
46
|
>
|
|
47
47
|
<div
|
|
48
48
|
className="text-area-description"
|
|
49
|
-
id="
|
|
49
|
+
id="description27"
|
|
50
50
|
>
|
|
51
51
|
some description
|
|
52
52
|
</div>
|
|
@@ -60,8 +60,8 @@ exports[`components/text-area/TextArea should render text area with description
|
|
|
60
60
|
theme="error"
|
|
61
61
|
>
|
|
62
62
|
<textarea
|
|
63
|
-
aria-describedby="
|
|
64
|
-
aria-errormessage="
|
|
63
|
+
aria-describedby="description27"
|
|
64
|
+
aria-errormessage="errorMessage26"
|
|
65
65
|
aria-invalid={false}
|
|
66
66
|
style={
|
|
67
67
|
Object {
|
|
@@ -72,7 +72,7 @@ exports[`components/text-area/TextArea should render text area with description
|
|
|
72
72
|
</Tooltip>
|
|
73
73
|
<span
|
|
74
74
|
className="accessibility-hidden"
|
|
75
|
-
id="
|
|
75
|
+
id="errorMessage26"
|
|
76
76
|
role="alert"
|
|
77
77
|
/>
|
|
78
78
|
</Label>
|
|
@@ -97,7 +97,7 @@ exports[`components/text-area/TextArea should show optional text when hideOption
|
|
|
97
97
|
theme="error"
|
|
98
98
|
>
|
|
99
99
|
<textarea
|
|
100
|
-
aria-errormessage="
|
|
100
|
+
aria-errormessage="errorMessage24"
|
|
101
101
|
aria-invalid={false}
|
|
102
102
|
style={
|
|
103
103
|
Object {
|
|
@@ -108,7 +108,7 @@ exports[`components/text-area/TextArea should show optional text when hideOption
|
|
|
108
108
|
</Tooltip>
|
|
109
109
|
<span
|
|
110
110
|
className="accessibility-hidden"
|
|
111
|
-
id="
|
|
111
|
+
id="errorMessage24"
|
|
112
112
|
role="alert"
|
|
113
113
|
/>
|
|
114
114
|
</Label>
|
|
@@ -35,6 +35,8 @@ type Props = {
|
|
|
35
35
|
/** Label displayed for the text input */
|
|
36
36
|
label: React.Node,
|
|
37
37
|
labelTooltip?: React.Node,
|
|
38
|
+
/** A CSS class for the tooltip's tether element component */
|
|
39
|
+
tooltipTetherClassName?: string,
|
|
38
40
|
};
|
|
39
41
|
|
|
40
42
|
const TextInput = ({
|
|
@@ -51,6 +53,7 @@ const TextInput = ({
|
|
|
51
53
|
isValid,
|
|
52
54
|
label,
|
|
53
55
|
labelTooltip,
|
|
56
|
+
tooltipTetherClassName,
|
|
54
57
|
...rest
|
|
55
58
|
}: Props) => {
|
|
56
59
|
const hasError = !!error;
|
|
@@ -79,7 +82,13 @@ const TextInput = ({
|
|
|
79
82
|
{description}
|
|
80
83
|
</div>
|
|
81
84
|
)}
|
|
82
|
-
<Tooltip
|
|
85
|
+
<Tooltip
|
|
86
|
+
isShown={hasError}
|
|
87
|
+
position={errorPosition || 'middle-right'}
|
|
88
|
+
tetherElementClassName={tooltipTetherClassName}
|
|
89
|
+
text={error || ''}
|
|
90
|
+
theme="error"
|
|
91
|
+
>
|
|
83
92
|
<input ref={inputRef} required={isRequired} {...ariaAttrs} {...rest} />
|
|
84
93
|
</Tooltip>
|
|
85
94
|
{isLoading && !isValid && <LoadingIndicator className="text-input-loading" />}
|
|
@@ -78,6 +78,17 @@ describe('components/text-input/TextInput', () => {
|
|
|
78
78
|
expect(tooltip.prop('isShown')).toBe(false);
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
+
test('should render Tooltip with tetherElementClassName', () => {
|
|
82
|
+
const className = 'tether-element-class-name';
|
|
83
|
+
const wrapper = shallow(<TextInput error="error" label="label" tooltipTetherClassName={className} />);
|
|
84
|
+
const tetherEl = wrapper
|
|
85
|
+
.find('Tooltip')
|
|
86
|
+
.dive()
|
|
87
|
+
.find('TetherComponent');
|
|
88
|
+
|
|
89
|
+
expect(tetherEl.prop('className')).toBe(className);
|
|
90
|
+
});
|
|
91
|
+
|
|
81
92
|
test('should render text input with description', () => {
|
|
82
93
|
const wrapper = shallow(<TextInput description="some description" />);
|
|
83
94
|
|
|
Binary file
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-ignore flow import
|
|
2
|
+
import { DEFAULT_FORMAT_DEBOUNCE } from '../../../constants';
|
|
2
3
|
|
|
3
4
|
describe('components/time-input/TimeInput', () => {
|
|
4
5
|
const INPUT_SELECTOR = 'input';
|
|
@@ -18,15 +19,13 @@ describe('components/time-input/TimeInput', () => {
|
|
|
18
19
|
${TIMEINPUT_STORIES[1]} | ${'abcde'} | ${'shows an error for invalid input after blur'}
|
|
19
20
|
${TIMEINPUT_STORIES[1]} | ${''} | ${'shows default time for empty input after blur'}
|
|
20
21
|
`('$testCase for story $storyId', async ({ storyId, input }) => {
|
|
21
|
-
const
|
|
22
|
-
const page = await browser.newPage();
|
|
23
|
-
await page.goto(`http://localhost:6061/iframe.html?id=${storyId}`);
|
|
22
|
+
const page = await BoxVisualTestUtils.gotoStory(storyId);
|
|
24
23
|
await page.waitForSelector(INPUT_SELECTOR);
|
|
25
24
|
await BoxVisualTestUtils.clearInput(INPUT_SELECTOR, page);
|
|
26
25
|
await page.type(INPUT_SELECTOR, input);
|
|
27
|
-
await
|
|
26
|
+
await BoxVisualTestUtils.blurInput(INPUT_SELECTOR);
|
|
27
|
+
|
|
28
28
|
const image = await page.screenshot();
|
|
29
|
-
await browser.close();
|
|
30
29
|
return expect(image).toMatchImageSnapshot();
|
|
31
30
|
});
|
|
32
31
|
|
|
@@ -39,15 +38,12 @@ describe('components/time-input/TimeInput', () => {
|
|
|
39
38
|
${TIMEINPUT_STORIES[1]} | ${'134525'} | ${'shows an error for invalid input after change'}
|
|
40
39
|
${TIMEINPUT_STORIES[1]} | ${''} | ${'shows default time for empty input after change'}
|
|
41
40
|
`('$testCase for story $storyId', async ({ storyId, input }) => {
|
|
42
|
-
const
|
|
43
|
-
const page = await browser.newPage();
|
|
44
|
-
await page.goto(`http://localhost:6061/iframe.html?id=${storyId}`);
|
|
41
|
+
const page = await BoxVisualTestUtils.gotoStory(storyId);
|
|
45
42
|
await page.waitForSelector(INPUT_SELECTOR);
|
|
46
43
|
await BoxVisualTestUtils.clearInput(INPUT_SELECTOR, page);
|
|
47
44
|
await page.type(INPUT_SELECTOR, input);
|
|
48
|
-
await BoxVisualTestUtils.sleep();
|
|
45
|
+
await BoxVisualTestUtils.sleep(DEFAULT_FORMAT_DEBOUNCE * 1.1);
|
|
49
46
|
const image = await page.screenshot();
|
|
50
|
-
await browser.close();
|
|
51
47
|
return expect(image).toMatchImageSnapshot();
|
|
52
48
|
});
|
|
53
49
|
});
|