UNPKG

@elliemae/ds-wysiwygeditor

Version:

Ellie Mae - Dim Sum - WYSIWYG Editor

46 lines (39 loc) 1.86 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray'); var components_colors = require('./components/colors.js'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray); var colors = ['#000000', '#e60000', '#ff9900', '#ffff00', '#008A00', '#0066cc', '#9933ff', '#ffffff', '#facccc', '#ffebcc', '#ffffcc', '#cce8cc', '#cce0f5', '#ebd6ff', '#bbbbbb', '#f06666', '#ffc266', '#ffff66', '#66b966', '#66a3e0', '#c285ff', '#888888', '#a10000', '#b26b00', '#b2b200', '#006100', '#0047b2', '#6b24b2', '#444444', '#5c0000', '#663d00', '#666600', '#003700', '#002966', '#3d1466'].concat(_toConsumableArray__default['default'](components_colors.getRainbowColors(28))); var fonts = ['Sans Serif', 'Serif', 'Monospace', 'Arial', 'Georgia', 'Helvetica']; var sizes = ['Small', 'Normal', 'Large', 'Huge']; var sizesReal = [// https://www.w3schools.com/cssref/pr_font_font-size.asp 'X-Small', 'Normal', 'Large', 'X-Large']; var defaultItems = { HEADER: 'header', FONT: 'font', FONT_SIZE: 'size', BOLD: 'bold', ITALIC: 'italic', UNDERLINE: 'underline', STRIKE: 'strike', SUB: 'sub', SUPER: 'super', ORDERED_LIST: 'ordered list', BULLET_LIST: 'bullet list', INDENT_MINUS_ONE: 'indent -1', INDENT_PLUS_ONE: 'indent +1', ALIGN: 'align', FONT_COLOR: 'font color', FONT_BACKGROUND_COLOR: 'font background color', HYPERLINK: 'hyperlink', IMAGE: 'image', CLEAR_FORMAT: 'clear format', SHOW_HTML: 'show html' }; exports.colors = colors; exports.defaultItems = defaultItems; exports.fonts = fonts; exports.sizes = sizes; exports.sizesReal = sizesReal; //# sourceMappingURL=constants.js.map