@fonixtree/magic-design 2.0.13 → 2.0.15

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.
Files changed (173) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/assets/fonts/magic-box-iconfont.css +23 -3
  3. package/es/assets/fonts/magic-box-iconfont.css.bak +23 -3
  4. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  5. package/es/assets/fonts/magic-box-iconfont.js.bak +1 -1
  6. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  7. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  8. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  9. package/es/assets/images/layout-icon/locationLayout.png +0 -0
  10. package/es/common/ColorPicker/index.js +4 -1
  11. package/es/common/ImagePicker/index.js +3 -1
  12. package/es/composite-comp/bol/components/Location/defaultJSON.js +54 -0
  13. package/es/composite-comp/bol/components/Location/index.js +138 -0
  14. package/es/composite-comp/bol/config-panels/LocationConfig/MyEditor/index.js +42 -0
  15. package/es/composite-comp/bol/config-panels/LocationConfig/index.js +122 -0
  16. package/es/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  17. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +66 -7
  18. package/es/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  19. package/es/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  20. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  21. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  22. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  23. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  24. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  25. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
  26. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
  27. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +95 -0
  28. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  29. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  30. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  31. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
  32. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
  33. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
  34. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
  35. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
  36. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
  37. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
  38. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
  39. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
  40. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
  41. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +129 -0
  42. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
  43. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
  44. package/es/core/Designer/TextEditModal/ToolBar/index.js +209 -0
  45. package/es/core/Designer/TextEditModal/ToolBar/index.less +19 -0
  46. package/es/core/Designer/TextEditModal/index.js +100 -0
  47. package/es/core/Designer/TextEditModal/index.less +4 -0
  48. package/es/core/Designer/TextEditModal_old/index.js +142 -0
  49. package/es/core/Designer/TextEditModal_old/index.less +25 -0
  50. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  51. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  52. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  53. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  54. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  55. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  56. package/es/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  57. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +95 -0
  58. package/es/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  59. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  60. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  61. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  62. package/es/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  63. package/es/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  64. package/es/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  65. package/es/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  66. package/es/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  67. package/es/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  68. package/es/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  69. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +34 -0
  70. package/es/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  71. package/es/core/Designer/ToolBarModal/ToolBtn/index.js +129 -0
  72. package/es/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  73. package/es/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  74. package/es/core/Designer/ToolBarModal/index.js +281 -0
  75. package/es/core/Designer/ToolBarModal/index.less +32 -0
  76. package/es/core/Designer/index.js +28 -6
  77. package/es/locale/en/en.json +2 -0
  78. package/es/locale/es/es.json +2 -0
  79. package/es/locale/id/id.json +2 -0
  80. package/es/meta-comp/components/Text/index.js +101 -386
  81. package/es/meta-comp/components/Text/index.less +57 -0
  82. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  83. package/es/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  84. package/es/meta-comp/config-panels/TextConfig/index.less +19 -0
  85. package/es/mobx/Frame.js +7 -1
  86. package/es/utils/commonUtil.js +18 -4
  87. package/lib/assets/fonts/.DS_Store +0 -0
  88. package/lib/assets/fonts/magic-box-iconfont.css +23 -3
  89. package/lib/assets/fonts/magic-box-iconfont.css.bak +23 -3
  90. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  91. package/lib/assets/fonts/magic-box-iconfont.js.bak +1 -1
  92. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  93. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  94. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  95. package/lib/assets/images/layout-icon/locationLayout.png +0 -0
  96. package/lib/common/ColorPicker/index.js +4 -1
  97. package/lib/common/ImagePicker/index.js +3 -1
  98. package/lib/composite-comp/bol/components/Location/defaultJSON.js +54 -0
  99. package/lib/composite-comp/bol/components/Location/index.js +138 -0
  100. package/lib/composite-comp/bol/config-panels/LocationConfig/MyEditor/index.js +42 -0
  101. package/lib/composite-comp/bol/config-panels/LocationConfig/index.js +122 -0
  102. package/lib/composite-comp/dito/components/SearchBar/defaultJSON.js +8 -0
  103. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +66 -7
  104. package/lib/composite-comp/dito/components/SearchBar/pc/index.js +2 -2
  105. package/lib/composite-comp/dito/config-panels/SearchBarConfig/SearchBarConfigContent/index.js +39 -9
  106. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  107. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  108. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  109. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  110. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  111. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +96 -0
  112. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +26 -0
  113. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +95 -0
  114. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  115. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  116. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  117. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +93 -0
  118. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +26 -0
  119. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +29 -0
  120. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +49 -0
  121. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +29 -0
  122. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +26 -0
  123. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +27 -0
  124. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +31 -0
  125. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +34 -0
  126. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +41 -0
  127. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +129 -0
  128. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +25 -0
  129. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +1 -0
  130. package/lib/core/Designer/TextEditModal/ToolBar/index.js +209 -0
  131. package/lib/core/Designer/TextEditModal/ToolBar/index.less +19 -0
  132. package/lib/core/Designer/TextEditModal/index.js +100 -0
  133. package/lib/core/Designer/TextEditModal/index.less +4 -0
  134. package/lib/core/Designer/TextEditModal_old/index.js +142 -0
  135. package/lib/core/Designer/TextEditModal_old/index.less +25 -0
  136. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +99 -0
  137. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +54 -0
  138. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +27 -0
  139. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +27 -0
  140. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +27 -0
  141. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.js +96 -0
  142. package/lib/core/Designer/ToolBarModal/ToolBtn/components/AlignPicker/index.less +26 -0
  143. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.js +95 -0
  144. package/lib/core/Designer/ToolBarModal/ToolBtn/components/ColorPickerBtn/index.less +26 -0
  145. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +99 -0
  146. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +39 -0
  147. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.js +93 -0
  148. package/lib/core/Designer/ToolBarModal/ToolBtn/components/LinkBtn/index.less +26 -0
  149. package/lib/core/Designer/ToolBarModal/ToolBtn/images/BoldSVG.js +29 -0
  150. package/lib/core/Designer/ToolBarModal/ToolBtn/images/FontColorSVG.js +49 -0
  151. package/lib/core/Designer/ToolBarModal/ToolBtn/images/ItalicSVG.js +29 -0
  152. package/lib/core/Designer/ToolBarModal/ToolBtn/images/LinkSVG.js +26 -0
  153. package/lib/core/Designer/ToolBarModal/ToolBtn/images/OrderSVG.js +27 -0
  154. package/lib/core/Designer/ToolBarModal/ToolBtn/images/StrikeSVG.js +31 -0
  155. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnderlineSVG.js +34 -0
  156. package/lib/core/Designer/ToolBarModal/ToolBtn/images/UnorderSVG.js +41 -0
  157. package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +129 -0
  158. package/lib/core/Designer/ToolBarModal/ToolBtn/index.less +25 -0
  159. package/lib/core/Designer/ToolBarModal/ToolBtn/type.js +1 -0
  160. package/lib/core/Designer/ToolBarModal/index.js +281 -0
  161. package/lib/core/Designer/ToolBarModal/index.less +32 -0
  162. package/lib/core/Designer/index.js +28 -6
  163. package/lib/locale/en/en.json +2 -0
  164. package/lib/locale/es/es.json +2 -0
  165. package/lib/locale/id/id.json +2 -0
  166. package/lib/meta-comp/components/Text/index.js +101 -386
  167. package/lib/meta-comp/components/Text/index.less +57 -0
  168. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.js +100 -0
  169. package/lib/meta-comp/config-panels/TextConfig/TextEditModal/index.less +25 -0
  170. package/lib/meta-comp/config-panels/TextConfig/index.less +19 -0
  171. package/lib/mobx/Frame.js +7 -1
  172. package/lib/utils/commonUtil.js +18 -4
  173. package/package.json +3 -1
@@ -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
+ }
@@ -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
+ }
@@ -0,0 +1,95 @@
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 _FontColorSVG = _interopRequireDefault(require("../../images/FontColorSVG"));
13
+
14
+ var _ColorPicker = _interopRequireDefault(require("../../../../../../../common/ColorPicker"));
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 ColorPickerBtn =
47
+ /** @class */
48
+ function (_super) {
49
+ __extends(ColorPickerBtn, _super);
50
+
51
+ function ColorPickerBtn() {
52
+ var _this = _super !== null && _super.apply(this, arguments) || this;
53
+
54
+ _this.state = {
55
+ visibility: false
56
+ };
57
+ return _this;
58
+ }
59
+
60
+ ColorPickerBtn.prototype.render = function () {
61
+ var _this = this;
62
+
63
+ var _a = this.props,
64
+ value = _a.value,
65
+ onChange = _a.onChange;
66
+ var visibility = this.state.visibility;
67
+ var color = value === null || value === void 0 ? void 0 : value.color;
68
+ return /*#__PURE__*/_react["default"].createElement("div", {
69
+ className: (0, _classnames["default"])('tool-btn-wrap'),
70
+ onClick: function onClick() {
71
+ _this.setState({
72
+ visibility: !visibility
73
+ });
74
+ }
75
+ }, /*#__PURE__*/_react["default"].createElement(_FontColorSVG["default"], {
76
+ color: color || '#262626'
77
+ }), /*#__PURE__*/_react["default"].createElement(_ColorPicker["default"], {
78
+ color: color,
79
+ onChangeColor: onChange,
80
+ onClose: function onClose() {
81
+ _this.setState({
82
+ visibility: false
83
+ });
84
+ },
85
+ placement: "bottomRight",
86
+ visibility: visibility
87
+ }));
88
+ };
89
+
90
+ ColorPickerBtn.defaultProps = {};
91
+ return ColorPickerBtn;
92
+ }(_react["default"].Component);
93
+
94
+ var _default = ColorPickerBtn;
95
+ 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
+ }
@@ -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 _common = require("../../../../../../../../common");
11
+
12
+ require("./index.less");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ var __extends = void 0 && (void 0).__extends || function () {
17
+ var _extendStatics = function extendStatics(d, b) {
18
+ _extendStatics = Object.setPrototypeOf || {
19
+ __proto__: []
20
+ } instanceof Array && function (d, b) {
21
+ d.__proto__ = b;
22
+ } || function (d, b) {
23
+ for (var p in b) {
24
+ if (b.hasOwnProperty(p)) d[p] = b[p];
25
+ }
26
+ };
27
+
28
+ return _extendStatics(d, b);
29
+ };
30
+
31
+ return function (d, b) {
32
+ _extendStatics(d, b);
33
+
34
+ function __() {
35
+ this.constructor = d;
36
+ }
37
+
38
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
39
+ };
40
+ }();
41
+
42
+ var LinkInputPicker =
43
+ /** @class */
44
+ function (_super) {
45
+ __extends(LinkInputPicker, _super);
46
+
47
+ function LinkInputPicker() {
48
+ var _this = _super !== null && _super.apply(this, arguments) || this;
49
+
50
+ _this.state = {
51
+ value: ''
52
+ };
53
+
54
+ _this.onUrlChange = function (v) {
55
+ console.log('v', v);
56
+
57
+ _this.setState({
58
+ value: v
59
+ });
60
+ };
61
+
62
+ _this.onCommit = function () {
63
+ var value = _this.state.value;
64
+ var _a = _this.props,
65
+ onChange = _a.onChange,
66
+ onClose = _a.onClose;
67
+ onChange(value);
68
+ onClose();
69
+ };
70
+
71
+ return _this;
72
+ }
73
+
74
+ LinkInputPicker.prototype.render = function () {
75
+ var _a = this.props,
76
+ visibility = _a.visibility,
77
+ onClose = _a.onClose;
78
+ var value = this.state.value;
79
+ return /*#__PURE__*/_react["default"].createElement("div", {
80
+ className: "link-input-picker-panel"
81
+ }, visibility && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
82
+ className: "panel-bg",
83
+ onClick: onClose
84
+ }), /*#__PURE__*/_react["default"].createElement("div", {
85
+ className: "panel-content"
86
+ }, /*#__PURE__*/_react["default"].createElement(_common.UrlPicker, {
87
+ onChange: this.onUrlChange,
88
+ value: value
89
+ }), /*#__PURE__*/_react["default"].createElement("span", {
90
+ className: "commit-btn",
91
+ onClick: this.onCommit
92
+ }, "\u786E\u5B9A"))));
93
+ };
94
+
95
+ return LinkInputPicker;
96
+ }(_react["default"].Component);
97
+
98
+ var _default = LinkInputPicker;
99
+ exports["default"] = _default;
@@ -0,0 +1,39 @@
1
+ .link-input-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
+ .panel-content {
17
+ display: flex;
18
+ align-items: center;
19
+ padding: 16px;
20
+ border: 1px solid rgba(0, 0, 0, .04);
21
+ background-color: #fff;
22
+ border-radius: 8px;
23
+
24
+ .commit-btn {
25
+ margin-left: 12px;
26
+ background-color: #2e54eb;
27
+ padding: 5px 12px;
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ color: #fff;
32
+ border-radius: 8px;
33
+ white-space: nowrap;
34
+ font-size: 12px;
35
+ cursor: pointer;
36
+ position: relative;
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,93 @@
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 _LinkInputPicker = _interopRequireDefault(require("./LinkInputPicker"));
13
+
14
+ var _LinkSVG = _interopRequireDefault(require("../../images/LinkSVG"));
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 ColorPickerBtn =
47
+ /** @class */
48
+ function (_super) {
49
+ __extends(ColorPickerBtn, _super);
50
+
51
+ function ColorPickerBtn() {
52
+ var _this = _super !== null && _super.apply(this, arguments) || this;
53
+
54
+ _this.state = {
55
+ visibility: false
56
+ };
57
+ return _this;
58
+ }
59
+
60
+ ColorPickerBtn.prototype.render = function () {
61
+ var _this = this;
62
+
63
+ var _a = this.props,
64
+ value = _a.value,
65
+ onChange = _a.onChange;
66
+ var visibility = this.state.visibility;
67
+ var color = value === null || value === void 0 ? void 0 : value.color;
68
+ return /*#__PURE__*/_react["default"].createElement("div", {
69
+ className: (0, _classnames["default"])('tool-btn-wrap')
70
+ }, /*#__PURE__*/_react["default"].createElement(_LinkSVG["default"], {
71
+ color: color || '#262626',
72
+ onChange: function onChange() {
73
+ _this.setState({
74
+ visibility: !visibility
75
+ });
76
+ }
77
+ }), visibility && /*#__PURE__*/_react["default"].createElement(_LinkInputPicker["default"], {
78
+ onChange: onChange,
79
+ onClose: function onClose() {
80
+ _this.setState({
81
+ visibility: false
82
+ });
83
+ },
84
+ visibility: true
85
+ }));
86
+ };
87
+
88
+ ColorPickerBtn.defaultProps = {};
89
+ return ColorPickerBtn;
90
+ }(_react["default"].Component);
91
+
92
+ var _default = ColorPickerBtn;
93
+ 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
+ }
@@ -0,0 +1,29 @@
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-bold",
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: "M129 28c30.376 0 55 24.624 55 55s-24.624 55-55 55H60V44c0-8.837 7.163-16 16-16h53Zm-49 90h49c19.33 0 35-15.67 35-35 0-19.137-15.358-34.686-34.421-34.995L129 48H80v70Z"
24
+ }), /*#__PURE__*/_react["default"].createElement("path", {
25
+ d: "M144.5 118c30.652 0 55.5 24.848 55.5 55.5S175.152 229 144.5 229H76c-8.837 0-16-7.163-16-16v-95h84.5ZM80 209h64.5c19.606 0 35.5-15.894 35.5-35.5 0-19.41-15.578-35.182-34.913-35.495L144.5 138H80v71Z"
26
+ })));
27
+ };
28
+
29
+ exports["default"] = _default;