@fonixtree/magic-design 2.0.14 → 2.0.16
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/es/assets/fonts/magic-box-iconfont.css +23 -3
- package/es/assets/fonts/magic-box-iconfont.css.bak +23 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/locationLayout.png +0 -0
- package/es/common/ColorPicker/index.js +4 -1
- package/es/common/ImagePicker/index.js +3 -1
- package/es/composite-comp/bol/components/Location/defaultJSON.js +54 -0
- package/es/composite-comp/bol/components/Location/index.js +138 -0
- package/es/composite-comp/bol/config-panels/LocationConfig/MyEditor/index.js +42 -0
- package/es/composite-comp/bol/config-panels/LocationConfig/index.js +122 -0
- package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +66 -7
- package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +95 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +129 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
- package/es/core/Designer/TextEditModal/ToolBar/index.js +209 -0
- package/es/core/Designer/TextEditModal/ToolBar/index.less +19 -0
- package/es/core/Designer/TextEditModal/index.js +100 -0
- package/es/core/Designer/TextEditModal/index.less +4 -0
- package/es/core/Designer/TextEditModal_old/index.js +142 -0
- package/es/core/Designer/TextEditModal_old/index.less +25 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +95 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +34 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +129 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
- package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/es/core/Designer/ToolBarModal/index.js +281 -0
- package/es/core/Designer/ToolBarModal/index.less +32 -0
- package/es/core/Designer/index.js +30 -8
- package/es/locale/en/en.json +2 -0
- package/es/locale/es/es.json +2 -0
- package/es/locale/id/id.json +2 -0
- package/es/meta-comp/components/Text/index.js +101 -386
- package/es/meta-comp/components/Text/index.less +57 -0
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
- package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
- package/es/meta-comp/config-panels/TextConfig/index.less +19 -0
- package/es/mobx/Frame.js +7 -1
- package/es/utils/commonUtil.js +18 -4
- package/lib/assets/fonts/magic-box-iconfont.css +23 -3
- package/lib/assets/fonts/magic-box-iconfont.css.bak +23 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/locationLayout.png +0 -0
- package/lib/common/ColorPicker/index.js +4 -1
- package/lib/common/ImagePicker/index.js +3 -1
- package/lib/composite-comp/bol/components/Location/defaultJSON.js +54 -0
- package/lib/composite-comp/bol/components/Location/index.js +138 -0
- package/lib/composite-comp/bol/config-panels/LocationConfig/MyEditor/index.js +42 -0
- package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +122 -0
- package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +66 -7
- package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
- package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +95 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +129 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
- package/lib/core/Designer/TextEditModal/ToolBar/index.js +209 -0
- package/lib/core/Designer/TextEditModal/ToolBar/index.less +19 -0
- package/lib/core/Designer/TextEditModal/index.js +100 -0
- package/lib/core/Designer/TextEditModal/index.less +4 -0
- package/lib/core/Designer/TextEditModal_old/index.js +142 -0
- package/lib/core/Designer/TextEditModal_old/index.less +25 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +95 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +34 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +129 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
- package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
- package/lib/core/Designer/ToolBarModal/index.js +281 -0
- package/lib/core/Designer/ToolBarModal/index.less +32 -0
- package/lib/core/Designer/index.js +30 -8
- package/lib/locale/en/en.json +2 -0
- package/lib/locale/es/es.json +2 -0
- package/lib/locale/id/id.json +2 -0
- package/lib/meta-comp/components/Text/index.js +101 -386
- package/lib/meta-comp/components/Text/index.less +57 -0
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
- package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
- package/lib/meta-comp/config-panels/TextConfig/index.less +19 -0
- package/lib/mobx/Frame.js +7 -1
- package/lib/utils/commonUtil.js +18 -4
- package/package.json +3 -1
- package/es/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/.DS_Store +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
11
|
+
|
|
12
|
+
var _antd = require("antd");
|
|
13
|
+
|
|
14
|
+
var _ToolBar = _interopRequireDefault(require("./ToolBar"));
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
21
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
22
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
23
|
+
__proto__: []
|
|
24
|
+
} instanceof Array && function (d, b) {
|
|
25
|
+
d.__proto__ = b;
|
|
26
|
+
} || function (d, b) {
|
|
27
|
+
for (var p in b) {
|
|
28
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return _extendStatics(d, b);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return function (d, b) {
|
|
36
|
+
_extendStatics(d, b);
|
|
37
|
+
|
|
38
|
+
function __() {
|
|
39
|
+
this.constructor = d;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
+
};
|
|
44
|
+
}();
|
|
45
|
+
/* eslint-disable react/no-danger */
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
var TextEditModal =
|
|
49
|
+
/** @class */
|
|
50
|
+
function (_super) {
|
|
51
|
+
__extends(TextEditModal, _super);
|
|
52
|
+
|
|
53
|
+
function TextEditModal() {
|
|
54
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
+
|
|
56
|
+
_this.state = {};
|
|
57
|
+
_this.quillRef = null;
|
|
58
|
+
|
|
59
|
+
_this.onCommit = function () {
|
|
60
|
+
_this.props.onOk(_this.quillRef.root.innerHTML);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
return _this;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
TextEditModal.prototype.componentDidMount = function () {
|
|
67
|
+
this.quillRef = new _quill["default"]('#editor', {
|
|
68
|
+
placeholder: 'input text...'
|
|
69
|
+
});
|
|
70
|
+
this.setState({});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
TextEditModal.prototype.render = function () {
|
|
74
|
+
var _a = this.props,
|
|
75
|
+
onCancel = _a.onCancel,
|
|
76
|
+
value = _a.value;
|
|
77
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
|
|
78
|
+
closable: false,
|
|
79
|
+
onCancel: onCancel,
|
|
80
|
+
onOk: this.onCommit,
|
|
81
|
+
open: true,
|
|
82
|
+
width: 1000
|
|
83
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
+
className: "text-editor-content"
|
|
85
|
+
}, this.quillRef && /*#__PURE__*/_react["default"].createElement(_ToolBar["default"], {
|
|
86
|
+
quillRef: this.quillRef
|
|
87
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
|
+
dangerouslySetInnerHTML: {
|
|
89
|
+
__html: value
|
|
90
|
+
},
|
|
91
|
+
id: "editor"
|
|
92
|
+
})));
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
TextEditModal.defaultProps = {};
|
|
96
|
+
return TextEditModal;
|
|
97
|
+
}(_react["default"].Component);
|
|
98
|
+
|
|
99
|
+
var _default = TextEditModal;
|
|
100
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _reactQuill = _interopRequireDefault(require("react-quill"));
|
|
11
|
+
|
|
12
|
+
require("react-quill/dist/quill.snow.css");
|
|
13
|
+
|
|
14
|
+
var _antd = require("antd");
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
21
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
22
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
23
|
+
__proto__: []
|
|
24
|
+
} instanceof Array && function (d, b) {
|
|
25
|
+
d.__proto__ = b;
|
|
26
|
+
} || function (d, b) {
|
|
27
|
+
for (var p in b) {
|
|
28
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return _extendStatics(d, b);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return function (d, b) {
|
|
36
|
+
_extendStatics(d, b);
|
|
37
|
+
|
|
38
|
+
function __() {
|
|
39
|
+
this.constructor = d;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43
|
+
};
|
|
44
|
+
}();
|
|
45
|
+
|
|
46
|
+
var themes = [{
|
|
47
|
+
label: 'Theme 1',
|
|
48
|
+
style: {
|
|
49
|
+
fontSize: '42px',
|
|
50
|
+
fontWeight: 'bold'
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
label: 'Theme 2',
|
|
54
|
+
style: {
|
|
55
|
+
fontSize: '24px',
|
|
56
|
+
fontWeight: 'normal'
|
|
57
|
+
}
|
|
58
|
+
}];
|
|
59
|
+
|
|
60
|
+
var CustomToolbar = function CustomToolbar(_a) {
|
|
61
|
+
var quillRefEdit = _a.quillRefEdit,
|
|
62
|
+
reactQuillRef = _a.reactQuillRef;
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement("select", {
|
|
64
|
+
onChange: function onChange(e) {
|
|
65
|
+
var theme = themes.find(function (item) {
|
|
66
|
+
return item.label === e.target.value;
|
|
67
|
+
});
|
|
68
|
+
console.log('theme: ', theme);
|
|
69
|
+
var range = reactQuillRef.getEditor().getSelection();
|
|
70
|
+
|
|
71
|
+
if (range) {
|
|
72
|
+
// reactQuillRef.getEditor().removeFormat(range.index, range.length);
|
|
73
|
+
reactQuillRef.getEditor().format('strike', 1);
|
|
74
|
+
reactQuillRef.getEditor().format('bold', theme.style.fontWeight === 'bold');
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}, /*#__PURE__*/_react["default"].createElement("option", null, "Choose a theme"), themes.map(function (theme, index) {
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement("option", {
|
|
79
|
+
key: index
|
|
80
|
+
}, theme.label);
|
|
81
|
+
}));
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
var TextEditModal =
|
|
85
|
+
/** @class */
|
|
86
|
+
function (_super) {
|
|
87
|
+
__extends(TextEditModal, _super);
|
|
88
|
+
|
|
89
|
+
function TextEditModal() {
|
|
90
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
91
|
+
|
|
92
|
+
_this.state = {
|
|
93
|
+
value: ''
|
|
94
|
+
};
|
|
95
|
+
_this.reactQuillRef = null;
|
|
96
|
+
_this.quillRefEdit = null;
|
|
97
|
+
|
|
98
|
+
_this.onCommit = function () {
|
|
99
|
+
_this.props.onOk(_this.quillRefEdit.root.innerHTML);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
return _this;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
TextEditModal.prototype.componentDidMount = function () {
|
|
106
|
+
this.quillRefEdit = this.reactQuillRef.getEditor();
|
|
107
|
+
this.setState({
|
|
108
|
+
value: this.props.value
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
TextEditModal.prototype.render = function () {
|
|
113
|
+
var _this = this;
|
|
114
|
+
|
|
115
|
+
var onCancel = this.props.onCancel;
|
|
116
|
+
var value = this.state.value;
|
|
117
|
+
return /*#__PURE__*/_react["default"].createElement(_antd.Modal, {
|
|
118
|
+
closable: false,
|
|
119
|
+
onCancel: onCancel,
|
|
120
|
+
onOk: this.onCommit,
|
|
121
|
+
open: true,
|
|
122
|
+
width: 1000
|
|
123
|
+
}, /*#__PURE__*/_react["default"].createElement(CustomToolbar, {
|
|
124
|
+
quillRefEdit: this.quillRefEdit,
|
|
125
|
+
reactQuillRef: this.reactQuillRef
|
|
126
|
+
}), /*#__PURE__*/_react["default"].createElement(_reactQuill["default"], {
|
|
127
|
+
ref: function ref(el) {
|
|
128
|
+
_this.reactQuillRef = el;
|
|
129
|
+
},
|
|
130
|
+
style: {
|
|
131
|
+
height: 600
|
|
132
|
+
},
|
|
133
|
+
value: value
|
|
134
|
+
}));
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
TextEditModal.defaultProps = {};
|
|
138
|
+
return TextEditModal;
|
|
139
|
+
}(_react["default"].Component);
|
|
140
|
+
|
|
141
|
+
var _default = TextEditModal;
|
|
142
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.text-label-content {
|
|
2
|
+
background-color: #f5f6f7;
|
|
3
|
+
|
|
4
|
+
.label-wrap {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
|
|
9
|
+
.label-item {
|
|
10
|
+
padding: 5px 11px;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
border-radius: 5px;
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
margin: 8px;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: #f6f6f7;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _AlignLeftSVG = _interopRequireDefault(require("../images/AlignLeftSVG"));
|
|
13
|
+
|
|
14
|
+
var _AlignCenterSVG = _interopRequireDefault(require("../images/AlignCenterSVG"));
|
|
15
|
+
|
|
16
|
+
var _AlignRightSVG = _interopRequireDefault(require("../images/AlignRightSVG"));
|
|
17
|
+
|
|
18
|
+
require("./index.less");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
23
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
24
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
25
|
+
__proto__: []
|
|
26
|
+
} instanceof Array && function (d, b) {
|
|
27
|
+
d.__proto__ = b;
|
|
28
|
+
} || function (d, b) {
|
|
29
|
+
for (var p in b) {
|
|
30
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
return _extendStatics(d, b);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return function (d, b) {
|
|
38
|
+
_extendStatics(d, b);
|
|
39
|
+
|
|
40
|
+
function __() {
|
|
41
|
+
this.constructor = d;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
|
+
};
|
|
46
|
+
}();
|
|
47
|
+
|
|
48
|
+
var AlignSelectPicker =
|
|
49
|
+
/** @class */
|
|
50
|
+
function (_super) {
|
|
51
|
+
__extends(AlignSelectPicker, _super);
|
|
52
|
+
|
|
53
|
+
function AlignSelectPicker() {
|
|
54
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
AlignSelectPicker.prototype.render = function () {
|
|
58
|
+
var _a = this.props,
|
|
59
|
+
visibility = _a.visibility,
|
|
60
|
+
value = _a.value,
|
|
61
|
+
_onChange = _a.onChange;
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
+
className: "align-select-picker-panel"
|
|
64
|
+
}, visibility && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
|
+
className: "panel-bg"
|
|
66
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
+
className: "select-modal-content"
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
+
className: (0, _classnames["default"])('select-item', {
|
|
70
|
+
active: value == 'left'
|
|
71
|
+
})
|
|
72
|
+
}, /*#__PURE__*/_react["default"].createElement(_AlignLeftSVG["default"], {
|
|
73
|
+
onChange: function onChange() {
|
|
74
|
+
return _onChange('');
|
|
75
|
+
}
|
|
76
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
77
|
+
className: (0, _classnames["default"])('select-item', {
|
|
78
|
+
active: value == 'center'
|
|
79
|
+
})
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement(_AlignCenterSVG["default"], {
|
|
81
|
+
onChange: function onChange() {
|
|
82
|
+
return _onChange('center');
|
|
83
|
+
}
|
|
84
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
85
|
+
className: (0, _classnames["default"])('select-item', {
|
|
86
|
+
active: value == 'right'
|
|
87
|
+
})
|
|
88
|
+
}, /*#__PURE__*/_react["default"].createElement(_AlignRightSVG["default"], {
|
|
89
|
+
onChange: function onChange() {
|
|
90
|
+
return _onChange('right');
|
|
91
|
+
}
|
|
92
|
+
})))));
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
return AlignSelectPicker;
|
|
96
|
+
}(_react["default"].Component);
|
|
97
|
+
|
|
98
|
+
var _default = AlignSelectPicker;
|
|
99
|
+
exports["default"] = _default;
|
package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.align-select-picker-panel {
|
|
2
|
+
z-index: 999;
|
|
3
|
+
position: absolute;
|
|
4
|
+
top: 100%;
|
|
5
|
+
left: 0;
|
|
6
|
+
|
|
7
|
+
.panel-bg {
|
|
8
|
+
position: fixed;
|
|
9
|
+
z-index: 0;
|
|
10
|
+
top: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
right: 0;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.select-modal-content {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
padding: 5px;
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
border: 1px solid #E7E9E8;
|
|
22
|
+
box-shadow: 0 8px 16px 4px hsla(0, 0%, 0%, 0.04);
|
|
23
|
+
color: #262626;
|
|
24
|
+
border-radius: 6px;
|
|
25
|
+
|
|
26
|
+
.select-item {
|
|
27
|
+
width: 26px;
|
|
28
|
+
height: 26px;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
border-radius: 6px;
|
|
34
|
+
padding: 0;
|
|
35
|
+
border: none;
|
|
36
|
+
transition: .2s all linear;
|
|
37
|
+
position: relative;
|
|
38
|
+
margin: 0 5px;
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
background: #f8f8f8;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.active {
|
|
45
|
+
background: #E7E9E8;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
svg {
|
|
49
|
+
height: 18px;
|
|
50
|
+
height: 18px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = function _default(_a) {
|
|
13
|
+
var onChange = _a.onChange;
|
|
14
|
+
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
15
|
+
id: "ne-t-alignment-center",
|
|
16
|
+
onClick: onChange,
|
|
17
|
+
viewBox: "0 0 256 256",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
fillRule: "nonzero"
|
|
22
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
23
|
+
d: "M181 148c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L181 168H76c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L76 148h105ZM218 89c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 109H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 89h180ZM181 30c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L181 50H76c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L76 30h105ZM218 207c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 227H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 207h180Z"
|
|
24
|
+
})));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = function _default(_a) {
|
|
13
|
+
var onChange = _a.onChange;
|
|
14
|
+
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
15
|
+
id: "ne-t-alignment-left",
|
|
16
|
+
onClick: onChange,
|
|
17
|
+
viewBox: "0 0 256 256",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
fillRule: "nonzero"
|
|
22
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
23
|
+
d: "M143 148c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L143 168H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 148h105ZM218 89c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 109H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 89h180ZM143 30c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L143 50H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 30h105ZM218 207c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 227H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 207h180Z"
|
|
24
|
+
})));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var _default = function _default(_a) {
|
|
13
|
+
var onChange = _a.onChange;
|
|
14
|
+
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
15
|
+
id: "ne-t-alignment-right",
|
|
16
|
+
onClick: onChange,
|
|
17
|
+
viewBox: "0 0 256 256",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
fillRule: "nonzero"
|
|
22
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
23
|
+
d: "M218 148c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 168H113c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L113 148h105ZM218 89c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 109H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 89h180ZM218 30c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 50H113c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L113 30h105ZM218 207c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 227H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 207h180Z"
|
|
24
|
+
})));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
12
|
+
var _AlignLeftSVG = _interopRequireDefault(require("./images/AlignLeftSVG"));
|
|
13
|
+
|
|
14
|
+
var _AlignSelectPicker = _interopRequireDefault(require("./AlignSelectPicker"));
|
|
15
|
+
|
|
16
|
+
require("./index.less");
|
|
17
|
+
|
|
18
|
+
var _AlignRightSVG = _interopRequireDefault(require("./images/AlignRightSVG"));
|
|
19
|
+
|
|
20
|
+
var _AlignCenterSVG = _interopRequireDefault(require("./images/AlignCenterSVG"));
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
25
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
26
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
27
|
+
__proto__: []
|
|
28
|
+
} instanceof Array && function (d, b) {
|
|
29
|
+
d.__proto__ = b;
|
|
30
|
+
} || function (d, b) {
|
|
31
|
+
for (var p in b) {
|
|
32
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return _extendStatics(d, b);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return function (d, b) {
|
|
40
|
+
_extendStatics(d, b);
|
|
41
|
+
|
|
42
|
+
function __() {
|
|
43
|
+
this.constructor = d;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
|
+
};
|
|
48
|
+
}();
|
|
49
|
+
|
|
50
|
+
var SvgMap = {
|
|
51
|
+
left: _AlignLeftSVG["default"],
|
|
52
|
+
center: _AlignCenterSVG["default"],
|
|
53
|
+
right: _AlignRightSVG["default"]
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var AlignPicker =
|
|
57
|
+
/** @class */
|
|
58
|
+
function (_super) {
|
|
59
|
+
__extends(AlignPicker, _super);
|
|
60
|
+
|
|
61
|
+
function AlignPicker() {
|
|
62
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63
|
+
|
|
64
|
+
_this.state = {
|
|
65
|
+
visibility: false
|
|
66
|
+
};
|
|
67
|
+
return _this;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
AlignPicker.prototype.render = function () {
|
|
71
|
+
var _this = this;
|
|
72
|
+
|
|
73
|
+
var _a = this.props,
|
|
74
|
+
value = _a.value,
|
|
75
|
+
onChange = _a.onChange;
|
|
76
|
+
var visibility = this.state.visibility;
|
|
77
|
+
var align = (value === null || value === void 0 ? void 0 : value.align) || 'left';
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
+
className: (0, _classnames["default"])('tool-btn-wrap'),
|
|
80
|
+
onClick: function onClick() {
|
|
81
|
+
_this.setState({
|
|
82
|
+
visibility: !visibility
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}, SvgMap[align]({}), /*#__PURE__*/_react["default"].createElement(_AlignSelectPicker["default"], {
|
|
86
|
+
onChange: onChange,
|
|
87
|
+
visibility: visibility
|
|
88
|
+
}));
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
AlignPicker.defaultProps = {};
|
|
92
|
+
return AlignPicker;
|
|
93
|
+
}(_react["default"].Component);
|
|
94
|
+
|
|
95
|
+
var _default = AlignPicker;
|
|
96
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.tool-btn-wrap {
|
|
2
|
+
width: 26px;
|
|
3
|
+
height: 26px;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
border-radius: 6px;
|
|
9
|
+
padding: 0;
|
|
10
|
+
border: none;
|
|
11
|
+
transition: .2s all linear;
|
|
12
|
+
position: relative;
|
|
13
|
+
|
|
14
|
+
&:hover {
|
|
15
|
+
background: #f8f8f8;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.active {
|
|
19
|
+
background: #E7E9E8;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
svg {
|
|
23
|
+
height: 18px;
|
|
24
|
+
height: 18px;
|
|
25
|
+
}
|
|
26
|
+
}
|