@fonixtree/magic-design 1.0.11 → 1.0.13

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 (101) hide show
  1. package/es/assets/fonts/.DS_Store +0 -0
  2. package/es/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  3. package/es/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  4. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  5. package/es/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  6. package/es/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  7. package/es/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  8. package/es/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  9. package/es/composite-comp/bol/components/Video/mobile/index.less +3 -2
  10. package/es/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  11. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  12. package/es/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  13. package/es/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  14. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  15. package/es/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  16. package/es/core/Designer/ToolBarModal/index.js +16 -4
  17. package/es/meta-comp/components/Text/formats/fontStyle.js +58 -0
  18. package/es/meta-comp/components/Text/index.js +2 -0
  19. package/es/utils/commonUtil.js +4 -2
  20. package/lib/assets/fonts/.DS_Store +0 -0
  21. package/lib/composite-comp/bol/components/Banner/mobile/index.less +78 -52
  22. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +100 -81
  23. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +22 -15
  24. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +292 -233
  25. package/lib/composite-comp/bol/components/Video/mobile/Layout1/index.less +27 -21
  26. package/lib/composite-comp/bol/components/Video/mobile/Layout2/index.less +45 -36
  27. package/lib/composite-comp/bol/components/Video/mobile/Layout3/index.less +54 -43
  28. package/lib/composite-comp/bol/components/Video/mobile/index.less +3 -2
  29. package/lib/composite-comp/bol/components/Wallet/mobile/index.less +40 -27
  30. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +97 -83
  31. package/lib/composite-comp/dito/components/MobileNavigation/mobile/index.less +35 -18
  32. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +86 -73
  33. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +52 -45
  34. package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +66 -62
  35. package/lib/core/Designer/ToolBarModal/index.js +16 -4
  36. package/lib/meta-comp/components/Text/formats/fontStyle.js +58 -0
  37. package/lib/meta-comp/components/Text/index.js +2 -0
  38. package/lib/utils/commonUtil.js +4 -2
  39. package/package.json +1 -1
  40. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +0 -99
  41. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +0 -54
  42. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +0 -27
  43. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +0 -27
  44. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +0 -27
  45. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +0 -96
  46. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +0 -26
  47. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +0 -101
  48. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +0 -26
  49. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +0 -99
  50. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +0 -39
  51. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +0 -93
  52. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +0 -26
  53. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +0 -27
  54. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +0 -29
  55. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +0 -49
  56. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +0 -29
  57. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +0 -26
  58. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +0 -27
  59. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +0 -31
  60. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +0 -34
  61. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +0 -41
  62. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +0 -136
  63. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +0 -25
  64. package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +0 -1
  65. package/es/core/Designer/TextEditModal/ToolBar/index.js +0 -219
  66. package/es/core/Designer/TextEditModal/ToolBar/index.less +0 -19
  67. package/es/core/Designer/TextEditModal/index.js +0 -100
  68. package/es/core/Designer/TextEditModal/index.less +0 -4
  69. package/es/core/Designer/TextEditModal_old/index.js +0 -142
  70. package/es/core/Designer/TextEditModal_old/index.less +0 -25
  71. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +0 -99
  72. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +0 -54
  73. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +0 -27
  74. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +0 -27
  75. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +0 -27
  76. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +0 -96
  77. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +0 -26
  78. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +0 -101
  79. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +0 -26
  80. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +0 -99
  81. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +0 -39
  82. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +0 -93
  83. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +0 -26
  84. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +0 -27
  85. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +0 -29
  86. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +0 -49
  87. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +0 -29
  88. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +0 -26
  89. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +0 -27
  90. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +0 -31
  91. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +0 -34
  92. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +0 -41
  93. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +0 -136
  94. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +0 -25
  95. package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +0 -1
  96. package/lib/core/Designer/TextEditModal/ToolBar/index.js +0 -219
  97. package/lib/core/Designer/TextEditModal/ToolBar/index.less +0 -19
  98. package/lib/core/Designer/TextEditModal/index.js +0 -100
  99. package/lib/core/Designer/TextEditModal/index.less +0 -4
  100. package/lib/core/Designer/TextEditModal_old/index.js +0 -142
  101. package/lib/core/Designer/TextEditModal_old/index.less +0 -25
@@ -1,51 +1,58 @@
1
1
  .m-search-bar {
2
- height: 0.96rem;
3
- padding: 0.16rem 0;
2
+ height: 48px;
3
+ padding: 8px 0;
4
4
  display: flex;
5
5
  flex-direction: row-reverse;
6
6
  align-items: center;
7
7
  justify-content: space-between;
8
8
  width: 100%;
9
- }
10
- .m-search-bar .right {
11
- display: flex;
12
- flex: 1;
13
- margin-left: 0.3rem;
14
- align-items: center;
15
- justify-content: space-between;
16
- }
17
- .m-search-bar .right .search-input-wrap {
18
- flex: 1;
19
- background: #fff;
20
- border-radius: 0.08rem;
21
- border: 0.02rem solid #D2D9E5;
22
- padding: 0.08rem 0.24rem;
23
- height: 0.64rem;
24
- text-align: right;
25
- display: flex;
26
- justify-content: flex-end;
27
- }
28
- .m-search-bar .right .message-wrap {
29
- position: relative;
30
- margin-left: 0.2rem;
31
- }
32
- .m-search-bar .right .message-wrap .num {
33
- position: absolute;
34
- top: -0.12rem;
35
- right: -0.12rem;
36
- display: inline-block;
37
- padding: 0.02rem 0.04rem;
38
- min-width: 0.34rem;
39
- text-align: center;
40
- background-color: #CE1126;
41
- border: 0.02rem solid #fff;
42
- border-radius: 0.16rem;
43
- font-family: 'Montserrat';
44
- font-style: normal;
45
- font-weight: 600;
46
- font-size: 0.16rem;
47
- color: #FFFFFF;
48
- }
49
- .m-search-bar .logo img {
50
- width: auto;
51
- }
9
+
10
+ .right {
11
+ display: flex;
12
+ flex: 1;
13
+ margin-left: 15px;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+
17
+ .search-input-wrap {
18
+ flex: 1;
19
+ background: #fff;
20
+ border-radius: 4px;
21
+ border: 1px solid #D2D9E5;
22
+ padding: 4px 12px;
23
+ height: 32px;
24
+ text-align: right;
25
+ display: flex;
26
+ justify-content: flex-end;
27
+ }
28
+
29
+ .message-wrap {
30
+ position: relative;
31
+ margin-left: 10px;
32
+
33
+ .num {
34
+ position: absolute;
35
+ top: -6px;
36
+ right: -6px;
37
+ display: inline-block;
38
+ padding: 1px 2px;
39
+ min-width: 17px;
40
+ text-align: center;
41
+ background-color: #CE1126;
42
+ border: 1px solid #fff;
43
+ border-radius: 8px;
44
+ font-family: 'Montserrat';
45
+ font-style: normal;
46
+ font-weight: 600;
47
+ font-size: 8px;
48
+ color: #FFFFFF;
49
+ }
50
+ }
51
+ }
52
+
53
+ .logo {
54
+ img {
55
+ width: auto;
56
+ }
57
+ }
58
+ }
@@ -1,64 +1,68 @@
1
1
  .m-sign-board-bar {
2
2
  width: 100%;
3
- }
4
- .m-sign-board-bar .search {
5
- width: 100%;
6
- background: #EEEEEE;
7
- border-radius: 0.16rem;
8
- padding: 0.16rem 0.24rem;
9
- height: 0.72rem;
10
- display: flex;
11
- justify-content: space-between;
12
- align-items: center;
13
- margin-bottom: 0.08rem;
14
- }
15
- .m-sign-board-bar .search .search-input {
16
- height: 0.4rem;
17
- font-weight: 400;
18
- font-size: 0.32rem;
19
- line-height: 0.4rem;
20
- padding: 0;
21
- background-color: transparent;
22
- border: none;
23
- }
24
- .m-sign-board-bar .store-info-wrap {
25
- display: flex;
26
- align-items: center;
27
- margin-top: 0.4rem;
28
- }
29
- .m-sign-board-bar .store-info-wrap .number {
30
- font-family: 'Montserrat';
31
- font-weight: 400;
32
- font-size: 0.24rem;
33
- line-height: 0.32rem;
34
- color: #696973;
35
- display: flex;
36
- align-items: center;
37
- }
38
- .m-sign-board-bar .store-info-wrap .number > img {
39
- width: 0.28rem;
40
- }
41
- .m-sign-board-bar .store-info-wrap .number > span {
42
- font-weight: 700;
43
- font-size: 0.28rem;
44
- line-height: 0.36rem;
45
- color: #333333;
46
- margin: 0 0.08rem;
47
- }
48
- .m-sign-board-bar .store-info-wrap .number:nth-child(2) {
49
- margin-left: 0.48rem;
50
- flex: 1;
51
- }
52
- .m-sign-board-bar .store-info-wrap .chat-btn {
53
- padding: 0.1rem 0.24rem;
54
- background: #FFFFFF;
55
- border: 0.02rem solid #333333;
56
- border-radius: 0.08rem;
57
- width: fit-content;
58
- font-family: 'Montserrat';
59
- font-weight: 400;
60
- font-size: 0.24rem;
61
- line-height: 0.32rem;
62
- text-transform: uppercase;
63
- color: #333333;
64
- }
3
+
4
+ .search {
5
+ width: 100%;
6
+ background: #EEEEEE;
7
+ border-radius: 8px;
8
+ padding: 8px 12px;
9
+ height: 36px;
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ margin-bottom: 4px;
14
+ .search-input {
15
+ height: 20px;
16
+ font-weight: 400;
17
+ font-size: 16px;
18
+ line-height: 20px;
19
+ padding: 0;
20
+ background-color: transparent;
21
+ border: none;
22
+ }
23
+ }
24
+
25
+ .store-info-wrap {
26
+ display: flex;
27
+ align-items: center;
28
+ margin-top: 20px;
29
+ .number {
30
+ font-family: 'Montserrat';
31
+ font-weight: 400;
32
+ font-size: 12px;
33
+ line-height: 16px;
34
+ color: #696973;
35
+ display: flex;
36
+ align-items: center;
37
+ &> img {
38
+ width: 14px;
39
+ }
40
+ &> span {
41
+ font-weight: 700;
42
+ font-size: 14px;
43
+ line-height: 18px;
44
+ color: #333333;
45
+ margin: 0 4px;
46
+ }
47
+ &:nth-child(2) {
48
+ margin-left: 24px;
49
+ flex: 1;
50
+ }
51
+ }
52
+ .chat-btn {
53
+ padding: 5px 12px;
54
+ // height: 26px;
55
+ background: #FFFFFF;
56
+ border: 1px solid #333333;
57
+ border-radius: 4px;
58
+ width: fit-content;
59
+ font-family: 'Montserrat';
60
+ font-weight: 400;
61
+ font-size: 12px;
62
+ line-height: 16px;
63
+ text-transform: uppercase;
64
+ color: #333333;
65
+ }
66
+ }
67
+
68
+ }
@@ -146,18 +146,30 @@ function (_super) {
146
146
  _this.props.quillRef.format('font', value);
147
147
  } else if (type == 'font-weight') {
148
148
  _this.props.quillRef.format('font-weight', value);
149
+ } else if (type == 'font-style') {
150
+ _this.props.quillRef.format('font-style', 'italic' === quillFormat['font-style'] ? '' : 'italic');
149
151
  } else if (type == 'font-family') {
150
152
  _this.props.quillRef.format('font-family', value);
151
153
  } else if (type == 'text-decoration-style') {
154
+ _this.props.quillRef.format('underline', true);
155
+
152
156
  _this.props.quillRef.format('text-decoration-style', value);
153
157
  } else if (type == 'bullet') {
154
158
  _this.props.quillRef.format('list-style-type', value);
155
159
 
156
- _this.props.quillRef.format('list', 'bullet');
160
+ if (value === quillFormat['list-style-type']) {
161
+ _this.props.quillRef.format('list', '');
162
+ } else {
163
+ _this.props.quillRef.format('list', 'bullet');
164
+ }
157
165
  } else if (type == 'ordered') {
158
166
  _this.props.quillRef.format('list-style-type', value);
159
167
 
160
- _this.props.quillRef.format('list', 'ordered');
168
+ if (value === quillFormat['list-style-type']) {
169
+ _this.props.quillRef.format('list', '');
170
+ } else {
171
+ _this.props.quillRef.format('list', 'ordered');
172
+ }
161
173
  } else if (type == 'text-decoration-color') {
162
174
  if (value) {
163
175
  _this.props.quillRef.format('underline', true);
@@ -269,9 +281,9 @@ function (_super) {
269
281
  }, /*#__PURE__*/_react["default"].createElement("div", {
270
282
  className: "tool-item"
271
283
  }, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
272
- active: quillFormat['italic'],
284
+ active: quillFormat['font-style'] === 'italic',
273
285
  onChange: function onChange() {
274
- _this.onToolBtnClick('italic');
286
+ _this.onToolBtnClick('font-style');
275
287
  },
276
288
  type: "italic"
277
289
  })), /*#__PURE__*/_react["default"].createElement("div", {
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.FontStyleAttributor = exports.FontStyle = void 0;
7
+
8
+ var _quill = _interopRequireDefault(require("quill"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var __extends = void 0 && (void 0).__extends || function () {
13
+ var _extendStatics = function extendStatics(d, b) {
14
+ _extendStatics = Object.setPrototypeOf || {
15
+ __proto__: []
16
+ } instanceof Array && function (d, b) {
17
+ d.__proto__ = b;
18
+ } || function (d, b) {
19
+ for (var p in b) {
20
+ if (b.hasOwnProperty(p)) d[p] = b[p];
21
+ }
22
+ };
23
+
24
+ return _extendStatics(d, b);
25
+ };
26
+
27
+ return function (d, b) {
28
+ _extendStatics(d, b);
29
+
30
+ function __() {
31
+ this.constructor = d;
32
+ }
33
+
34
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
35
+ };
36
+ }();
37
+
38
+ var Parchment = _quill["default"]["import"]('parchment');
39
+
40
+ var FontStyleAttributor =
41
+ /** @class */
42
+ function (_super) {
43
+ __extends(FontStyleAttributor, _super);
44
+
45
+ function FontStyleAttributor() {
46
+ return _super !== null && _super.apply(this, arguments) || this;
47
+ }
48
+
49
+ return FontStyleAttributor;
50
+ }(Parchment.Attributor.Style);
51
+
52
+ exports.FontStyleAttributor = FontStyleAttributor;
53
+ var FontStyle = new FontStyleAttributor('font-style', 'font-style', {
54
+ scope: Parchment.Scope.INLINE
55
+ });
56
+ exports.FontStyle = FontStyle;
57
+
58
+ _quill["default"].register('formats/font-style', FontStyle, true);
@@ -17,6 +17,8 @@ require("./formats/fontFamily");
17
17
 
18
18
  require("./formats/textDecorationColor");
19
19
 
20
+ require("./formats/fontStyle");
21
+
20
22
  require("./formats/listStyleTypeStyle");
21
23
 
22
24
  require("./formats/textDecorationStyle");
@@ -743,7 +743,8 @@ var asyncNextTick = function asyncNextTick(asyncFunc, interval, count) {
743
743
  exports.asyncNextTick = asyncNextTick;
744
744
 
745
745
  var convertToRem = function convertToRem(value) {
746
- // return value; // PTO项目 解开注释
746
+ return value; // PTO项目 解开注释
747
+
747
748
  if (window.magicDesign.device === 'pc') {
748
749
  return value + "px";
749
750
  }
@@ -762,7 +763,8 @@ var convertToRem = function convertToRem(value) {
762
763
  exports.convertToRem = convertToRem;
763
764
 
764
765
  var pxToRem = function pxToRem(styleObj) {
765
- // return styleObj; // PTO项目 解开注释
766
+ return styleObj; // PTO项目 解开注释
767
+
766
768
  if (window.magicDesign.device === 'pc') {
767
769
  return styleObj;
768
770
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.11",
4
+ "version": "1.0.13",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",
@@ -1,99 +0,0 @@
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;
@@ -1,54 +0,0 @@
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
- }
@@ -1,27 +0,0 @@
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;
@@ -1,27 +0,0 @@
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;
@@ -1,27 +0,0 @@
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;