UNPKG

@atlaskit/editor-plugin-text-formatting

Version:

Text-formatting plugin for @atlaskit/editor-core

39 lines (33 loc) 3.84 kB
import _defineProperty from "@babel/runtime/helpers/defineProperty"; import { ToolbarSize } from '@atlaskit/editor-common/types'; import { IconTypes } from './types'; export var ToolbarButtonsStrongItalic = [IconTypes.strong, IconTypes.em]; export var ToolbarButtonsStrong = [IconTypes.strong]; export var ToolbarButtonsStrongItalicUnderline = [IconTypes.strong, IconTypes.em, IconTypes.underline]; export var ButtonsMenuMinimal = [IconTypes.em, IconTypes.underline, IconTypes.strike, IconTypes.code, IconTypes.subscript, IconTypes.superscript]; export var ButtonsMenuCompact = [IconTypes.underline, IconTypes.strike, IconTypes.code, IconTypes.subscript, IconTypes.superscript]; export var ButtonsMenuSpacious = [IconTypes.strike, IconTypes.code, IconTypes.subscript, IconTypes.superscript]; /** * Minimal toolbar is with Bold as single button, and Italic as a dropdown button. */ export var ResponsiveCustomButtonToolbarMinimal = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ToolbarSize.XXL, ToolbarButtonsStrong), ToolbarSize.XL, ToolbarButtonsStrong), ToolbarSize.L, ToolbarButtonsStrong), ToolbarSize.M, ToolbarButtonsStrong), ToolbarSize.S, ToolbarButtonsStrong), ToolbarSize.XXXS, []); /** * Compact toolbar is with Bold, Italic as single buttons, and underline as a dropdown button. */ export var ResponsiveCustomButtonToolbarCompact = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ToolbarSize.XXL, ToolbarButtonsStrongItalic), ToolbarSize.XL, ToolbarButtonsStrongItalic), ToolbarSize.L, ToolbarButtonsStrongItalic), ToolbarSize.M, ToolbarButtonsStrongItalic), ToolbarSize.S, ToolbarButtonsStrongItalic), ToolbarSize.XXXS, []); /** * Spacious toolbar is with Bold, italic, underline as single buttons, and strike as a dropdown button. */ export var ResponsiveCustomButtonToolbarSpacious = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ToolbarSize.XXL, ToolbarButtonsStrongItalicUnderline), ToolbarSize.XL, ToolbarButtonsStrongItalicUnderline), ToolbarSize.L, ToolbarButtonsStrongItalicUnderline), ToolbarSize.M, ToolbarButtonsStrongItalic), ToolbarSize.S, ToolbarButtonsStrongItalic), ToolbarSize.XXXS, ToolbarButtonsStrong); /** * Corresponding dropdown menu for the ResponsiveCustomButtonToolbarMinimal */ export var ResponsiveCustomMenuMinimal = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ToolbarSize.XXL, ButtonsMenuMinimal), ToolbarSize.XL, ButtonsMenuMinimal), ToolbarSize.L, ButtonsMenuMinimal), ToolbarSize.M, ButtonsMenuMinimal), ToolbarSize.S, ButtonsMenuMinimal), ToolbarSize.XXXS, [IconTypes.strong, IconTypes.em].concat(ButtonsMenuMinimal)); /** * Corresponding dropdown menu for the ResponsiveCustomButtonToolbarCompact */ export var ResponsiveCustomMenuCompact = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ToolbarSize.XXL, ButtonsMenuCompact), ToolbarSize.XL, ButtonsMenuCompact), ToolbarSize.L, ButtonsMenuCompact), ToolbarSize.M, ButtonsMenuCompact), ToolbarSize.S, ButtonsMenuCompact), ToolbarSize.XXXS, [IconTypes.strong, IconTypes.em].concat(ButtonsMenuCompact)); /** * Corresponding dropdown menu for the ResponsiveCustomButtonToolbarSpacious */ export var ResponsiveCustomMenuSpacious = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ToolbarSize.XXL, ButtonsMenuSpacious), ToolbarSize.XL, ButtonsMenuSpacious), ToolbarSize.L, ButtonsMenuSpacious), ToolbarSize.M, [IconTypes.underline].concat(ButtonsMenuSpacious)), ToolbarSize.S, [IconTypes.underline].concat(ButtonsMenuSpacious)), ToolbarSize.XXXS, [IconTypes.em, IconTypes.underline].concat(ButtonsMenuSpacious));