@seafile/sea-email-editor 0.0.1
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/README.md +1 -0
- package/dist/assets/icons/align-center.svg +1 -0
- package/dist/assets/icons/align-left.svg +1 -0
- package/dist/assets/icons/align-right.svg +1 -0
- package/dist/assets/icons/arrow-down.svg +1 -0
- package/dist/assets/icons/arrow-right.svg +1 -0
- package/dist/assets/icons/arrow-up.svg +1 -0
- package/dist/assets/icons/bold.svg +1 -0
- package/dist/assets/icons/callout-color.svg +1 -0
- package/dist/assets/icons/check-mark-option.svg +3 -0
- package/dist/assets/icons/check-square.svg +1 -0
- package/dist/assets/icons/clear-format.svg +1 -0
- package/dist/assets/icons/close.svg +3 -0
- package/dist/assets/icons/code-block.svg +1 -0
- package/dist/assets/icons/image.svg +1 -0
- package/dist/assets/icons/inline-code.svg +1 -0
- package/dist/assets/icons/insert.svg +1 -0
- package/dist/assets/icons/italic.svg +1 -0
- package/dist/assets/icons/link.svg +1 -0
- package/dist/assets/icons/more.svg +1 -0
- package/dist/assets/icons/ol.svg +1 -0
- package/dist/assets/icons/quote.svg +1 -0
- package/dist/assets/icons/rename.svg +4 -0
- package/dist/assets/icons/strikethrough.svg +1 -0
- package/dist/assets/icons/table.svg +1 -0
- package/dist/assets/icons/ul.svg +1 -0
- package/dist/assets/icons/underline.svg +1 -0
- package/dist/assets/icons/unlink.svg +1 -0
- package/dist/components/browser-tip/index.css +18 -0
- package/dist/components/browser-tip/index.js +28 -0
- package/dist/components/centered-loading.js +23 -0
- package/dist/components/icon/index.css +7 -0
- package/dist/components/icon/index.js +30 -0
- package/dist/components/icon-button/index.css +33 -0
- package/dist/components/icon-button/index.js +71 -0
- package/dist/components/index.js +92 -0
- package/dist/components/loading/index.css +54 -0
- package/dist/components/loading/index.js +15 -0
- package/dist/components/modal/index.css +0 -0
- package/dist/components/modal/index.js +27 -0
- package/dist/components/modal-header/index.css +22 -0
- package/dist/components/modal-header/index.js +36 -0
- package/dist/components/option/index.css +20 -0
- package/dist/components/option/index.js +39 -0
- package/dist/components/options-editor/container/index.css +49 -0
- package/dist/components/options-editor/container/index.js +122 -0
- package/dist/components/options-editor/index.css +26 -0
- package/dist/components/options-editor/index.js +70 -0
- package/dist/components/options-editor/options/index.css +5 -0
- package/dist/components/options-editor/options/index.js +138 -0
- package/dist/components/options-editor/options/option/index.css +54 -0
- package/dist/components/options-editor/options/option/index.js +138 -0
- package/dist/components/popover/index.js +85 -0
- package/dist/components/popover/utils.js +76 -0
- package/dist/components/search-input/index.css +52 -0
- package/dist/components/search-input/index.js +148 -0
- package/dist/components/selector-display/index.css +86 -0
- package/dist/components/selector-display/index.js +66 -0
- package/dist/components/toolbar/index.js +20 -0
- package/dist/components/toolbar/toolbar-group/index.css +13 -0
- package/dist/components/toolbar/toolbar-group/index.js +22 -0
- package/dist/components/toolbar/toolbar-item/index.css +3 -0
- package/dist/components/toolbar/toolbar-item/index.js +53 -0
- package/dist/components/tooltip/index.css +68 -0
- package/dist/components/tooltip/index.js +46 -0
- package/dist/components/tooltip/shortcut-key/index.css +7 -0
- package/dist/components/tooltip/shortcut-key/index.js +20 -0
- package/dist/constants/event-types.js +25 -0
- package/dist/constants/index.js +40 -0
- package/dist/constants/key-codes.js +104 -0
- package/dist/editor/index.css +44 -0
- package/dist/editor/index.js +50 -0
- package/dist/editor/main/index.css +19 -0
- package/dist/editor/main/index.js +166 -0
- package/dist/editor/with-props-editor.js +20 -0
- package/dist/extension/commons/dropdown-menu-item/index.css +52 -0
- package/dist/extension/commons/dropdown-menu-item/index.js +62 -0
- package/dist/extension/commons/index.js +5 -0
- package/dist/extension/commons/insert-element-dialog/index.js +91 -0
- package/dist/extension/commons/menu/index.js +3 -0
- package/dist/extension/commons/menu/menu-drop-down.js +98 -0
- package/dist/extension/commons/menu-shortcut-indicator/index.js +24 -0
- package/dist/extension/commons/menu-shortcut-indicator/style.css +18 -0
- package/dist/extension/constants/element-default-style.js +78 -0
- package/dist/extension/constants/element-types.js +33 -0
- package/dist/extension/constants/index.js +63 -0
- package/dist/extension/constants/keyboard.js +33 -0
- package/dist/extension/constants/menus-config.js +142 -0
- package/dist/extension/core/index.js +38 -0
- package/dist/extension/core/queries/index.js +507 -0
- package/dist/extension/core/transforms/focus-editor.js +18 -0
- package/dist/extension/core/transforms/index.js +49 -0
- package/dist/extension/core/transforms/move-children.js +35 -0
- package/dist/extension/core/transforms/remove-node-children.js +19 -0
- package/dist/extension/core/transforms/replace-node-children.js +24 -0
- package/dist/extension/core/utils/index.js +120 -0
- package/dist/extension/event-transfer/get-event-transfer.js +38 -0
- package/dist/extension/event-transfer/set-event-transfer.js +36 -0
- package/dist/extension/highlight/index.js +20 -0
- package/dist/extension/highlight/normalize-tokens.js +94 -0
- package/dist/extension/highlight/prismjs.js +27 -0
- package/dist/extension/highlight/set-node-decorations.js +81 -0
- package/dist/extension/highlight/use-highlight.js +20 -0
- package/dist/extension/index.js +67 -0
- package/dist/extension/plugins/blockquote/helpers.js +68 -0
- package/dist/extension/plugins/blockquote/index.js +18 -0
- package/dist/extension/plugins/blockquote/menu/index.js +35 -0
- package/dist/extension/plugins/blockquote/plugin.js +154 -0
- package/dist/extension/plugins/blockquote/render-elem.js +29 -0
- package/dist/extension/plugins/check-list/helper.js +34 -0
- package/dist/extension/plugins/check-list/index.js +19 -0
- package/dist/extension/plugins/check-list/menu/index.js +39 -0
- package/dist/extension/plugins/check-list/plugin.js +92 -0
- package/dist/extension/plugins/check-list/render-elem.js +61 -0
- package/dist/extension/plugins/clear-format/helpers.js +51 -0
- package/dist/extension/plugins/clear-format/menu/index.js +35 -0
- package/dist/extension/plugins/code-block/helpers.js +140 -0
- package/dist/extension/plugins/code-block/index.js +20 -0
- package/dist/extension/plugins/code-block/menu/index.js +59 -0
- package/dist/extension/plugins/code-block/plugin.js +288 -0
- package/dist/extension/plugins/code-block/render-elem/constant.js +22 -0
- package/dist/extension/plugins/code-block/render-elem/index.js +89 -0
- package/dist/extension/plugins/code-block/render-elem/language-selector/index.css +18 -0
- package/dist/extension/plugins/code-block/render-elem/language-selector/index.js +38 -0
- package/dist/extension/plugins/formula/formula.css +22 -0
- package/dist/extension/plugins/formula/helper.js +80 -0
- package/dist/extension/plugins/formula/index.js +19 -0
- package/dist/extension/plugins/formula/menu/formula-modal.js +98 -0
- package/dist/extension/plugins/formula/menu/index.js +35 -0
- package/dist/extension/plugins/formula/plugin.js +22 -0
- package/dist/extension/plugins/formula/render-elem.js +64 -0
- package/dist/extension/plugins/header/helper.js +55 -0
- package/dist/extension/plugins/header/index.js +19 -0
- package/dist/extension/plugins/header/menu/index.js +72 -0
- package/dist/extension/plugins/header/plugin.js +155 -0
- package/dist/extension/plugins/header/render-elem.js +39 -0
- package/dist/extension/plugins/html/index.js +13 -0
- package/dist/extension/plugins/html/plugin.js +69 -0
- package/dist/extension/plugins/image/helper.js +131 -0
- package/dist/extension/plugins/image/index.js +19 -0
- package/dist/extension/plugins/image/menu/image-menu-dialog.js +92 -0
- package/dist/extension/plugins/image/menu/index.css +3 -0
- package/dist/extension/plugins/image/menu/index.js +103 -0
- package/dist/extension/plugins/image/plugin.js +56 -0
- package/dist/extension/plugins/image/render-element/image-previewer.js +89 -0
- package/dist/extension/plugins/image/render-element/index.js +141 -0
- package/dist/extension/plugins/image/render-element/style.css +68 -0
- package/dist/extension/plugins/index.js +116 -0
- package/dist/extension/plugins/link/helper.js +258 -0
- package/dist/extension/plugins/link/index.js +19 -0
- package/dist/extension/plugins/link/menu/index.js +92 -0
- package/dist/extension/plugins/link/menu/link-modal.js +169 -0
- package/dist/extension/plugins/link/plugin.js +172 -0
- package/dist/extension/plugins/link/render-elem/index.css +12 -0
- package/dist/extension/plugins/link/render-elem/index.js +103 -0
- package/dist/extension/plugins/link/render-elem/link-op-menu/index.css +33 -0
- package/dist/extension/plugins/link/render-elem/link-op-menu/index.js +89 -0
- package/dist/extension/plugins/list/constant.js +8 -0
- package/dist/extension/plugins/list/helpers.js +102 -0
- package/dist/extension/plugins/list/index.js +19 -0
- package/dist/extension/plugins/list/menu/index.js +41 -0
- package/dist/extension/plugins/list/plugin/index.js +80 -0
- package/dist/extension/plugins/list/plugin/insert-break-list.js +29 -0
- package/dist/extension/plugins/list/plugin/insert-fragment-list.js +179 -0
- package/dist/extension/plugins/list/plugin/normalize-list.js +79 -0
- package/dist/extension/plugins/list/plugin/on-tab-handle.js +63 -0
- package/dist/extension/plugins/list/plugin/shortcut.js +69 -0
- package/dist/extension/plugins/list/queries/index.js +52 -0
- package/dist/extension/plugins/list/render-elem/index.js +68 -0
- package/dist/extension/plugins/list/transforms/index.js +75 -0
- package/dist/extension/plugins/list/transforms/insert-list-item.js +98 -0
- package/dist/extension/plugins/list/transforms/move-list-item-down.js +50 -0
- package/dist/extension/plugins/list/transforms/move-list-item-up.js +124 -0
- package/dist/extension/plugins/list/transforms/move-list-items-to-list.js +63 -0
- package/dist/extension/plugins/list/transforms/move-list-items.js +73 -0
- package/dist/extension/plugins/list/transforms/normalize-list-item.js +110 -0
- package/dist/extension/plugins/list/transforms/normalize-nested-list.js +38 -0
- package/dist/extension/plugins/list/transforms/remove-first-list-item.js +24 -0
- package/dist/extension/plugins/list/transforms/transforms-to-list.js +131 -0
- package/dist/extension/plugins/list/transforms/unwrap-list.js +48 -0
- package/dist/extension/plugins/markdown/index.js +12 -0
- package/dist/extension/plugins/markdown/plugin.js +257 -0
- package/dist/extension/plugins/node-id/constants.js +24 -0
- package/dist/extension/plugins/node-id/helpers.js +78 -0
- package/dist/extension/plugins/node-id/index.js +12 -0
- package/dist/extension/plugins/node-id/with-node-id.js +37 -0
- package/dist/extension/plugins/p/helper.js +17 -0
- package/dist/extension/plugins/p/index.js +17 -0
- package/dist/extension/plugins/p/plugin.js +141 -0
- package/dist/extension/plugins/p/render-elem.js +29 -0
- package/dist/extension/plugins/paragraph/helper.js +17 -0
- package/dist/extension/plugins/paragraph/index.js +17 -0
- package/dist/extension/plugins/paragraph/plugin.js +141 -0
- package/dist/extension/plugins/paragraph/render-elem.js +29 -0
- package/dist/extension/plugins/table/constant.js +24 -0
- package/dist/extension/plugins/table/context-menu/horizontal-align-popover/index.css +3 -0
- package/dist/extension/plugins/table/context-menu/horizontal-align-popover/index.js +64 -0
- package/dist/extension/plugins/table/context-menu/index.css +13 -0
- package/dist/extension/plugins/table/context-menu/index.js +152 -0
- package/dist/extension/plugins/table/context-menu/insert-table-element/index.css +27 -0
- package/dist/extension/plugins/table/context-menu/insert-table-element/index.js +113 -0
- package/dist/extension/plugins/table/helper.js +333 -0
- package/dist/extension/plugins/table/index.js +21 -0
- package/dist/extension/plugins/table/menu/index.js +61 -0
- package/dist/extension/plugins/table/menu/table-operator.js +97 -0
- package/dist/extension/plugins/table/menu/table-size-selector/index.css +27 -0
- package/dist/extension/plugins/table/menu/table-size-selector/index.js +98 -0
- package/dist/extension/plugins/table/model.js +102 -0
- package/dist/extension/plugins/table/plugin.js +351 -0
- package/dist/extension/plugins/table/render-elem/index.css +64 -0
- package/dist/extension/plugins/table/render-elem/index.js +252 -0
- package/dist/extension/plugins/table/table-operations.js +323 -0
- package/dist/extension/plugins/text-style/helpers.js +57 -0
- package/dist/extension/plugins/text-style/index.js +17 -0
- package/dist/extension/plugins/text-style/menu/index.js +37 -0
- package/dist/extension/plugins/text-style/plugin.js +38 -0
- package/dist/extension/plugins/text-style/render-elem.js +63 -0
- package/dist/extension/render/render-element.js +115 -0
- package/dist/extension/render/render-leaf.js +22 -0
- package/dist/extension/toolbar/index.css +16 -0
- package/dist/extension/toolbar/index.js +89 -0
- package/dist/extension/toolbar/insert-toolbar.js +78 -0
- package/dist/hooks/use-attachments.js +38 -0
- package/dist/hooks/use-container-style.js +50 -0
- package/dist/hooks/use-mathjax.js +46 -0
- package/dist/hooks/use-scroll-context.js +20 -0
- package/dist/hooks/use-selection-update.js +20 -0
- package/dist/hooks/user-link-click.js +52 -0
- package/dist/index.js +9 -0
- package/dist/intl/ReactIntlUniversal.js +310 -0
- package/dist/intl/constants.js +21 -0
- package/dist/intl/index.js +33 -0
- package/dist/locale/index.js +11 -0
- package/dist/locale/lang/en.json +83 -0
- package/dist/slate-convert/html-to-slate/constants.js +146 -0
- package/dist/slate-convert/html-to-slate/helper.js +106 -0
- package/dist/slate-convert/html-to-slate/index.js +138 -0
- package/dist/slate-convert/html-to-slate/rules/blockquote.js +26 -0
- package/dist/slate-convert/html-to-slate/rules/br.js +29 -0
- package/dist/slate-convert/html-to-slate/rules/check-list.js +29 -0
- package/dist/slate-convert/html-to-slate/rules/code-block.js +95 -0
- package/dist/slate-convert/html-to-slate/rules/header.js +26 -0
- package/dist/slate-convert/html-to-slate/rules/image.js +31 -0
- package/dist/slate-convert/html-to-slate/rules/index.js +20 -0
- package/dist/slate-convert/html-to-slate/rules/link.js +31 -0
- package/dist/slate-convert/html-to-slate/rules/list.js +74 -0
- package/dist/slate-convert/html-to-slate/rules/p.js +37 -0
- package/dist/slate-convert/html-to-slate/rules/paragraph.js +37 -0
- package/dist/slate-convert/html-to-slate/rules/table.js +64 -0
- package/dist/slate-convert/html-to-slate/rules/text.js +71 -0
- package/dist/slate-convert/index.js +20 -0
- package/dist/slate-convert/slate-to-html/index.js +143 -0
- package/dist/utils/common.js +46 -0
- package/dist/utils/deserialize-html.js +219 -0
- package/dist/utils/dom-utils.js +57 -0
- package/dist/utils/dom.js +133 -0
- package/dist/utils/event-bus.js +40 -0
- package/dist/utils/event-handler.js +44 -0
- package/dist/utils/get-browser-Info.js +35 -0
- package/dist/utils/hotkey.js +45 -0
- package/dist/utils/is-punctuation-mark.js +50 -0
- package/dist/utils/object-utils.js +56 -0
- package/dist/utils/search.js +20 -0
- package/dist/utils/translate.js +18 -0
- package/dist/utils/type-detection.js +42 -0
- package/package.json +177 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactstrap = require("reactstrap");
|
|
10
|
+
var _constants = require("@/constants");
|
|
11
|
+
var _dom = require("@/utils/dom");
|
|
12
|
+
var _utils = require("./utils");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
class Popover extends _react.default.Component {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.popoverRef = null;
|
|
18
|
+
this.onHistoryState = e => {
|
|
19
|
+
e.preventDefault();
|
|
20
|
+
this.props.hidePopover(e);
|
|
21
|
+
};
|
|
22
|
+
this.onKeyDown = e => {
|
|
23
|
+
const {
|
|
24
|
+
canHidePopover = true,
|
|
25
|
+
hidePopoverWithEsc
|
|
26
|
+
} = this.props;
|
|
27
|
+
if (e.keyCode === _constants.KeyCodes.esc && typeof hidePopoverWithEsc === 'function') {
|
|
28
|
+
e.preventDefault();
|
|
29
|
+
hidePopoverWithEsc();
|
|
30
|
+
} else if (e.keyCode === _constants.KeyCodes.enter) {
|
|
31
|
+
this.props.onEnter && this.props.onEnter(e);
|
|
32
|
+
// Resolve the default behavior of the enter key when entering formulas is blocked
|
|
33
|
+
if (canHidePopover) return;
|
|
34
|
+
e.stopImmediatePropagation();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
this.onMousedown = e => {
|
|
38
|
+
const {
|
|
39
|
+
canHidePopover = true
|
|
40
|
+
} = this.props;
|
|
41
|
+
if (!canHidePopover) return;
|
|
42
|
+
if (this.popoverRef && e && (0, _dom.getEventClassName)(e).indexOf('popover') === -1 && !this.popoverRef.contains(e.target)) {
|
|
43
|
+
this.props.hidePopover(e);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
this.onPopoverInsideClick = e => {
|
|
47
|
+
e.stopPropagation();
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
componentDidMount() {
|
|
51
|
+
document.addEventListener('mousedown', this.onMousedown);
|
|
52
|
+
document.addEventListener('keydown', this.onKeyDown);
|
|
53
|
+
window.addEventListener('popstate', this.onHistoryState);
|
|
54
|
+
}
|
|
55
|
+
componentWillUnmount() {
|
|
56
|
+
document.removeEventListener('mousedown', this.onMousedown);
|
|
57
|
+
document.removeEventListener('keydown', this.onKeyDown);
|
|
58
|
+
window.removeEventListener('popstate', this.onHistoryState);
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
const {
|
|
62
|
+
target,
|
|
63
|
+
innerClassName,
|
|
64
|
+
className,
|
|
65
|
+
hideArrow = true,
|
|
66
|
+
placement = 'bottom-start'
|
|
67
|
+
} = this.props;
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
|
|
69
|
+
placement: placement,
|
|
70
|
+
isOpen: true,
|
|
71
|
+
target: target,
|
|
72
|
+
fade: false,
|
|
73
|
+
hideArrow: hideArrow,
|
|
74
|
+
innerClassName: innerClassName,
|
|
75
|
+
className: className,
|
|
76
|
+
modifiers: (0, _utils.generatorModifiers)(this.props),
|
|
77
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
78
|
+
ref: ref => this.popoverRef = ref,
|
|
79
|
+
onClick: this.onPopoverInsideClick,
|
|
80
|
+
children: this.props.children
|
|
81
|
+
})
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
var _default = exports.default = Popover;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.generatorModifiers = void 0;
|
|
7
|
+
const generatorModifiers = _ref => {
|
|
8
|
+
let {
|
|
9
|
+
modifiers,
|
|
10
|
+
sameWidthWithTarget = false
|
|
11
|
+
} = _ref;
|
|
12
|
+
if (!sameWidthWithTarget) return modifiers;
|
|
13
|
+
let _modifiers = Array.isArray(modifiers) ? modifiers : [];
|
|
14
|
+
const flipModifier = {
|
|
15
|
+
name: 'flip',
|
|
16
|
+
enabled: true,
|
|
17
|
+
options: {}
|
|
18
|
+
};
|
|
19
|
+
const flipModifierIndex = _modifiers.findIndex(m => m.name === 'flip');
|
|
20
|
+
if (flipModifierIndex === -1) {
|
|
21
|
+
_modifiers.push(flipModifier);
|
|
22
|
+
} else {
|
|
23
|
+
const modifier = _modifiers[flipModifierIndex];
|
|
24
|
+
_modifiers[flipModifierIndex] = {
|
|
25
|
+
...flipModifier,
|
|
26
|
+
...modifier
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
const computeStylesModifier = {
|
|
30
|
+
name: 'computeStyles',
|
|
31
|
+
enabled: true,
|
|
32
|
+
options: {
|
|
33
|
+
// gpuAcceleration: false,
|
|
34
|
+
adaptive: true
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const computeStylesModifierIndex = _modifiers.findIndex(m => m.name === 'computeStyles');
|
|
38
|
+
if (computeStylesModifierIndex === -1) {
|
|
39
|
+
_modifiers.push(computeStylesModifier);
|
|
40
|
+
} else {
|
|
41
|
+
const modifier = _modifiers[computeStylesModifierIndex];
|
|
42
|
+
_modifiers[computeStylesModifierIndex] = {
|
|
43
|
+
...computeStylesModifier,
|
|
44
|
+
...modifier
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const sameWidthModifier = {
|
|
48
|
+
name: 'sameWidth',
|
|
49
|
+
enabled: true,
|
|
50
|
+
phase: 'beforeWrite',
|
|
51
|
+
requires: ['computeStyles'],
|
|
52
|
+
fn: _ref2 => {
|
|
53
|
+
let {
|
|
54
|
+
state
|
|
55
|
+
} = _ref2;
|
|
56
|
+
if (state.elements.reference) {
|
|
57
|
+
const width = state.elements.reference.getBoundingClientRect().width;
|
|
58
|
+
const validWidth = Math.max(sameWidthWithTarget, width);
|
|
59
|
+
state.styles.popper.width = `${validWidth}px`;
|
|
60
|
+
state.styles.popper.maxWidth = `${validWidth}px`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const sameWidthModifierIndex = _modifiers.findIndex(m => m.name === 'sameWidth');
|
|
65
|
+
if (sameWidthModifierIndex === -1) {
|
|
66
|
+
_modifiers.push(sameWidthModifier);
|
|
67
|
+
} else {
|
|
68
|
+
const modifier = _modifiers[sameWidthModifierIndex];
|
|
69
|
+
_modifiers[sameWidthModifierIndex] = {
|
|
70
|
+
...sameWidthModifier,
|
|
71
|
+
...modifier
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
return _modifiers;
|
|
75
|
+
};
|
|
76
|
+
exports.generatorModifiers = generatorModifiers;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
.sea-email-editor-search-input-wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sea-email-editor-search-input-wrapper .sea-email-editor-search-input {
|
|
10
|
+
width: 100%;
|
|
11
|
+
padding-left: 2.5rem;
|
|
12
|
+
border-radius: 8px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.sea-email-editor-search-input-wrapper .sea-email-editor-search-input.small-size {
|
|
16
|
+
border-radius: 4px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.sea-email-editor-search-input-wrapper .sea-email-editor-search-input:focus {
|
|
20
|
+
border-color: #0094F2;
|
|
21
|
+
box-shadow: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sea-email-editor-search-input-wrapper .sea-email-editor-search-input::placeholder {
|
|
25
|
+
color: #868E96;
|
|
26
|
+
font: 14px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sea-email-editor-search-input-wrapper .sea-email-editor-search-input-search {
|
|
30
|
+
position: absolute;
|
|
31
|
+
left: 0;
|
|
32
|
+
top: 0;
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
padding-left: 12px;
|
|
35
|
+
padding-right: 8px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.sea-email-editor-search-input-wrapper .sea-email-editor-search-input-search:hover {
|
|
39
|
+
background-color: inherit;
|
|
40
|
+
cursor: default;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.sea-email-editor-search-input-wrapper .sea-email-editor-search-input-search .sea-email-editor-icon-svg {
|
|
44
|
+
color: var(--sea-email-icon-secondary-color);
|
|
45
|
+
height: 14px;
|
|
46
|
+
width: 14px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sea-email-project-search-in-popover.sea-email-editor-search-input-wrapper {
|
|
50
|
+
margin: 0 16px;
|
|
51
|
+
width: calc(100% - 32px);
|
|
52
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
var _iconButton = _interopRequireDefault(require("../icon-button"));
|
|
12
|
+
require("./index.css");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
class SearchInput extends _react.Component {
|
|
15
|
+
constructor(props) {
|
|
16
|
+
super(props);
|
|
17
|
+
this.onCompositionStart = () => {
|
|
18
|
+
this.isInputtingChinese = true;
|
|
19
|
+
};
|
|
20
|
+
this.onChange = e => {
|
|
21
|
+
this.timer && clearTimeout(this.timer);
|
|
22
|
+
const {
|
|
23
|
+
onChange,
|
|
24
|
+
wait
|
|
25
|
+
} = this.props;
|
|
26
|
+
let text = e.target.value;
|
|
27
|
+
this.setState({
|
|
28
|
+
searchValue: text || ''
|
|
29
|
+
}, () => {
|
|
30
|
+
if (this.isInputtingChinese) return;
|
|
31
|
+
this.timer = setTimeout(() => {
|
|
32
|
+
onChange && onChange(this.state.searchValue.trim());
|
|
33
|
+
}, wait);
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
this.onCompositionEnd = e => {
|
|
37
|
+
this.isInputtingChinese = false;
|
|
38
|
+
this.onChange(e);
|
|
39
|
+
};
|
|
40
|
+
this.onClear = () => {
|
|
41
|
+
const {
|
|
42
|
+
onClear
|
|
43
|
+
} = this.props;
|
|
44
|
+
this.timer && clearTimeout(this.timer);
|
|
45
|
+
this.setState({
|
|
46
|
+
searchValue: ''
|
|
47
|
+
}, () => {
|
|
48
|
+
onClear && onClear();
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
this.setFocus = isSelectAllText => {
|
|
52
|
+
if (this.inputRef === document.activeElement) return;
|
|
53
|
+
this.inputRef.focus();
|
|
54
|
+
if (isSelectAllText) {
|
|
55
|
+
const txtLength = this.state.searchValue.length;
|
|
56
|
+
this.inputRef.setSelectionRange(0, txtLength);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
this.getSearchValue = () => {
|
|
60
|
+
return this.state.searchValue || '';
|
|
61
|
+
};
|
|
62
|
+
this.state = {
|
|
63
|
+
searchValue: props.value
|
|
64
|
+
};
|
|
65
|
+
this.isInputtingChinese = false;
|
|
66
|
+
this.timer = null;
|
|
67
|
+
this.inputRef = null;
|
|
68
|
+
}
|
|
69
|
+
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
70
|
+
if (nextProps.value !== this.props.value) {
|
|
71
|
+
this.setState({
|
|
72
|
+
searchValue: nextProps.value
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
componentWillUnmount() {
|
|
77
|
+
this.timer && clearTimeout(this.timer);
|
|
78
|
+
this.timer = null;
|
|
79
|
+
this.inputRef = null;
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
const {
|
|
83
|
+
placeholder,
|
|
84
|
+
autoFocus,
|
|
85
|
+
className,
|
|
86
|
+
inputClassName,
|
|
87
|
+
disabled,
|
|
88
|
+
style,
|
|
89
|
+
isShowSearchIcon = true,
|
|
90
|
+
size = 38,
|
|
91
|
+
onKeyDown
|
|
92
|
+
} = this.props;
|
|
93
|
+
const {
|
|
94
|
+
searchValue
|
|
95
|
+
} = this.state;
|
|
96
|
+
const isSmallSize = size <= 30;
|
|
97
|
+
let paddingLeft = size - 2;
|
|
98
|
+
if (!isShowSearchIcon) {
|
|
99
|
+
paddingLeft = isSmallSize ? 8 : 12;
|
|
100
|
+
}
|
|
101
|
+
let paddingRight = 8;
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
103
|
+
className: (0, _classnames.default)('sea-email-editor-search-input-wrapper', className, {
|
|
104
|
+
'display-search-icon': isShowSearchIcon,
|
|
105
|
+
'display-clear-icon': false
|
|
106
|
+
}),
|
|
107
|
+
style: {
|
|
108
|
+
...style,
|
|
109
|
+
height: size
|
|
110
|
+
},
|
|
111
|
+
children: [isShowSearchIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_iconButton.default, {
|
|
112
|
+
icon: "search",
|
|
113
|
+
className: "sea-email-editor-search-input-search",
|
|
114
|
+
style: {
|
|
115
|
+
height: size,
|
|
116
|
+
width: size - 2
|
|
117
|
+
}
|
|
118
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
119
|
+
ref: ref => this.inputRef = ref,
|
|
120
|
+
type: "text",
|
|
121
|
+
value: searchValue,
|
|
122
|
+
className: (0, _classnames.default)('form-control sea-email-editor-search-input', inputClassName, {
|
|
123
|
+
'small-size': isSmallSize
|
|
124
|
+
}),
|
|
125
|
+
onChange: this.onChange,
|
|
126
|
+
autoFocus: autoFocus,
|
|
127
|
+
placeholder: placeholder,
|
|
128
|
+
onCompositionStart: this.onCompositionStart,
|
|
129
|
+
onCompositionEnd: this.onCompositionEnd,
|
|
130
|
+
onKeyDown: onKeyDown,
|
|
131
|
+
disabled: disabled,
|
|
132
|
+
style: {
|
|
133
|
+
height: size,
|
|
134
|
+
paddingLeft: paddingLeft,
|
|
135
|
+
paddingRight: paddingRight
|
|
136
|
+
},
|
|
137
|
+
name: "search-input",
|
|
138
|
+
autoComplete: "off"
|
|
139
|
+
})]
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
SearchInput.defaultProps = {
|
|
144
|
+
wait: 100,
|
|
145
|
+
disabled: false,
|
|
146
|
+
value: ''
|
|
147
|
+
};
|
|
148
|
+
var _default = exports.default = SearchInput;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
.sea-email-customize-select {
|
|
2
|
+
width: fit-content;
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
background-image: none;
|
|
5
|
+
padding: 0 0.75rem;
|
|
6
|
+
height: 36px;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
color: #212529;
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
align-items: center;
|
|
12
|
+
text-align: left;
|
|
13
|
+
user-select: none;
|
|
14
|
+
position: relative;
|
|
15
|
+
appearance: none;
|
|
16
|
+
font-size: .9375rem;
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
line-height: 1.6;
|
|
19
|
+
vertical-align: middle;
|
|
20
|
+
overflow: hidden !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.sea-email-customize-select:not(.disabled):hover {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.sea-email-customize-select.disabled,
|
|
28
|
+
.sea-email-customize-select.disabled .selected-option .sea-email-editor-icon-svg {
|
|
29
|
+
color: var(--sea-email-disabled-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.sea-email-customize-select:not(.display-border) {
|
|
33
|
+
border: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.sea-email-customize-select.bg-color {
|
|
37
|
+
background-color: #F7F7F5;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.sea-email-customize-select:hover {
|
|
41
|
+
background-color: var(--option-bg-color);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.sea-email-customize-select:not(.display-border):hover {
|
|
45
|
+
background-color: #EDEDEB;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.sea-email-customize-select.highlight {
|
|
49
|
+
margin: 0;
|
|
50
|
+
min-height: unset;
|
|
51
|
+
max-height: unset;
|
|
52
|
+
color: #ED7109;
|
|
53
|
+
border-color: #ED7109 !important;
|
|
54
|
+
background-color: rgba(237, 113, 9, 0.05);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.sea-email-customize-select.highlight .sea-email-editor-icon-svg {
|
|
58
|
+
color: inherit !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.sea-email-customize-select .selected-option {
|
|
62
|
+
background-color: transparent;
|
|
63
|
+
gap: 8px;
|
|
64
|
+
align-items: center;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex: 1 1;
|
|
67
|
+
flex-wrap: nowrap;
|
|
68
|
+
justify-content: space-between;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.sea-email-customize-select .selected-option .sea-email-editor-icon-svg {
|
|
73
|
+
height: 14px !important;
|
|
74
|
+
width: 14px !important;
|
|
75
|
+
color: var(--sea-email-icon-color);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.sea-email-customize-select .selected-option .selected-option-show {
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
overflow: hidden;
|
|
81
|
+
text-overflow: ellipsis;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
align-items: center;
|
|
84
|
+
display: flex;
|
|
85
|
+
gap: 4px;
|
|
86
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
var _icon = _interopRequireDefault(require("../icon"));
|
|
12
|
+
var _tooltip = _interopRequireDefault(require("../tooltip"));
|
|
13
|
+
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
const SelectorDisplay = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
icon,
|
|
18
|
+
innerRef,
|
|
19
|
+
children,
|
|
20
|
+
className,
|
|
21
|
+
highlight,
|
|
22
|
+
border = true,
|
|
23
|
+
displayBgColor = false,
|
|
24
|
+
iconPlacement = 'left',
|
|
25
|
+
tip,
|
|
26
|
+
tipPlacement,
|
|
27
|
+
disabled,
|
|
28
|
+
height = 36,
|
|
29
|
+
onClick
|
|
30
|
+
} = _ref;
|
|
31
|
+
const _className = (0, _react.useMemo)(() => {
|
|
32
|
+
return (0, _classnames.default)('custom-select sea-email-customize-select', className, {
|
|
33
|
+
'display-border': border,
|
|
34
|
+
'highlight': highlight,
|
|
35
|
+
'bg-color': displayBgColor,
|
|
36
|
+
'disabled': disabled
|
|
37
|
+
});
|
|
38
|
+
}, [className, highlight, border, displayBgColor, disabled]);
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
41
|
+
className: _className,
|
|
42
|
+
ref: innerRef,
|
|
43
|
+
onClick: disabled ? () => {} : onClick,
|
|
44
|
+
style: {
|
|
45
|
+
height,
|
|
46
|
+
borderRadius: height > 30 ? 8 : 4
|
|
47
|
+
},
|
|
48
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
49
|
+
className: (0, _classnames.default)('selected-option', `icon-in-${iconPlacement}`),
|
|
50
|
+
children: [icon && iconPlacement === 'left' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.default, {
|
|
51
|
+
icon: icon
|
|
52
|
+
}), children && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
53
|
+
className: "selected-option-show",
|
|
54
|
+
children: children
|
|
55
|
+
}), icon && iconPlacement === 'right' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.default, {
|
|
56
|
+
icon: icon
|
|
57
|
+
})]
|
|
58
|
+
})
|
|
59
|
+
}), tip && innerRef && /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.default, {
|
|
60
|
+
target: innerRef,
|
|
61
|
+
placement: tipPlacement,
|
|
62
|
+
children: tip
|
|
63
|
+
})]
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
var _default = exports.default = SelectorDisplay;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "ToolbarGroup", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () {
|
|
10
|
+
return _toolbarGroup.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "ToolbarItem", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _toolbarItem.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var _toolbarGroup = _interopRequireDefault(require("./toolbar-group"));
|
|
20
|
+
var _toolbarItem = _interopRequireDefault(require("./toolbar-item"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.sea-email-editor-toolbar-group {
|
|
2
|
+
height: 100%;
|
|
3
|
+
width: fit-content;
|
|
4
|
+
padding: 0 6px;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
border-left: 1px solid #e5e6e8;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sea-email-editor-toolbar-group:first-child {
|
|
12
|
+
border-left: none;
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
+
require("./index.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
const ToolbarGroup = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
className,
|
|
15
|
+
children
|
|
16
|
+
} = _ref;
|
|
17
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
18
|
+
className: (0, _classnames.default)('sea-email-editor-toolbar-group', className),
|
|
19
|
+
children: children
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var _default = exports.default = ToolbarGroup;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _translate = require("../../../utils/translate");
|
|
11
|
+
var _iconButton = _interopRequireDefault(require("../../icon-button"));
|
|
12
|
+
var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
13
|
+
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
const ToolbarItem = _ref => {
|
|
16
|
+
let {
|
|
17
|
+
disabled,
|
|
18
|
+
isActive,
|
|
19
|
+
type,
|
|
20
|
+
onClick,
|
|
21
|
+
className = 'sea-email-toolbar-item',
|
|
22
|
+
icon,
|
|
23
|
+
id,
|
|
24
|
+
text
|
|
25
|
+
} = _ref;
|
|
26
|
+
const handleClick = (0, _react.useCallback)(event => {
|
|
27
|
+
if (disabled) return;
|
|
28
|
+
onClick(event, type);
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
31
|
+
}, [disabled, type, onClick]);
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
33
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_iconButton.default, {
|
|
34
|
+
icon: icon,
|
|
35
|
+
className: className,
|
|
36
|
+
id: id,
|
|
37
|
+
disabled: disabled,
|
|
38
|
+
"data-active": isActive,
|
|
39
|
+
onClick: handleClick,
|
|
40
|
+
size: {
|
|
41
|
+
icon: 14
|
|
42
|
+
}
|
|
43
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.default, {
|
|
44
|
+
target: id,
|
|
45
|
+
transition: {
|
|
46
|
+
timeout: 150
|
|
47
|
+
},
|
|
48
|
+
placement: "bottom",
|
|
49
|
+
children: (0, _translate.gettext)(text)
|
|
50
|
+
})]
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
var _default = exports.default = ToolbarItem;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.sea-email-tooltip .tooltip.show {
|
|
2
|
+
opacity: 1;
|
|
3
|
+
z-index: 1099;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.sea-email-tooltip.top-start .tooltip.show {
|
|
7
|
+
left: -0.4rem !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sea-email-tooltip .tooltip-inner {
|
|
11
|
+
max-width: 242px;
|
|
12
|
+
text-align: start;
|
|
13
|
+
background-color: #212529;
|
|
14
|
+
color: #fff;
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
line-height: 20px;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
padding: 0.25rem 0.5rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.sea-email-tooltip.sea-email-tooltip-with-confirm-tip .tooltip-inner {
|
|
23
|
+
padding: 8px 12px;
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sea-email-tooltip .sea-email-tooltip-text {
|
|
30
|
+
display: inline-block;
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sea-email-tooltip.sea-email-tooltip-with-confirm-tip .sea-email-tooltip-confirm-text {
|
|
35
|
+
color: #999;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
line-height: 22px;
|
|
38
|
+
min-width: 40px;
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
text-align: right;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.sea-email-tooltip.sea-email-tooltip-with-confirm-tip .sea-email-tooltip-confirm-text:hover {
|
|
45
|
+
color: #fff;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.sea-email-tooltip .bs-tooltip-right .arrow::before,
|
|
49
|
+
.sea-email-tooltip .bs-tooltip-auto[x-placement^="right"] .arrow::before,
|
|
50
|
+
.sea-email-tooltip .bs-tooltip-auto[data-popper-placement^="right"] .arrow::before {
|
|
51
|
+
border-right-color: #212529;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.sea-email-tooltip .bs-tooltip-top .arrow::before,
|
|
55
|
+
.sea-email-tooltip .bs-tooltip-auto[x-placement^="top"] .arrow::before {
|
|
56
|
+
border-top-color: #212529;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.sea-email-tooltip .bs-tooltip-bottom .arrow::before,
|
|
60
|
+
.sea-email-tooltip .bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
|
|
61
|
+
border-bottom-color: #212529;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sea-email-tooltip .bs-tooltip-left .arrow::before,
|
|
65
|
+
.sea-email-tooltip .bs-tooltip-auto[x-placement^="left"] .arrow::before {
|
|
66
|
+
border-left-color: #212529;
|
|
67
|
+
}
|
|
68
|
+
|