@fonixtree/magic-design 0.0.53 → 0.0.55

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 (110) hide show
  1. package/README.md +320 -0
  2. package/es/common/ImageModal/index.js +27 -22
  3. package/es/common/ImgArea/components/Crop.js +267 -0
  4. package/es/common/ImgArea/components/Icons.js +44 -0
  5. package/es/common/ImgArea/index.js +11 -0
  6. package/es/common/index.js +8 -0
  7. package/es/composite-comp/bol/components/Banner/defaultJSON.js +8 -8
  8. package/es/composite-comp/bol/components/Banner/mobile/index.js +1 -5
  9. package/es/composite-comp/bol/components/Banner/pc/index.js +1 -5
  10. package/es/composite-comp/bol/components/Button/defaultJSON.js +2 -2
  11. package/es/composite-comp/bol/components/Button/index.js +1 -5
  12. package/es/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
  13. package/es/composite-comp/bol/components/Carousel/index.js +1 -6
  14. package/es/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  15. package/es/composite-comp/bol/components/ImageText/defaultJSON.js +17 -17
  16. package/es/composite-comp/bol/components/ImageText/mobile/index.js +1 -3
  17. package/es/composite-comp/bol/components/ImageText/pc/index.js +1 -1
  18. package/es/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  19. package/es/composite-comp/bol/components/Newsletter/index.js +1 -6
  20. package/es/composite-comp/bol/components/Tag/defaultJSON.js +2 -2
  21. package/es/composite-comp/bol/components/Tag/index.js +1 -5
  22. package/es/composite-comp/bol/components/Text/defaultJSON.js +3 -3
  23. package/es/composite-comp/bol/components/Text/index.js +1 -5
  24. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +5 -3
  25. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +6 -4
  26. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
  27. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +5 -2
  28. package/es/composite-comp/dito/components/FlashDeal/index.js +5 -1
  29. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
  30. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  31. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  32. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  33. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +578 -0
  34. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
  35. package/es/composite-comp/dito/components/MobileNavigation/defaultJSON.js +3 -3
  36. package/es/composite-comp/dito/components/Recommend/defaultJSON.js +2 -2
  37. package/es/composite-comp/dito/components/Recommend/index.js +1 -6
  38. package/es/composite-comp/dito/components/Recommend/pc/index.js +2 -2
  39. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +1 -1
  40. package/es/core/Designer/index.js +0 -2
  41. package/es/decorator/compositeDecorator.js +45 -12
  42. package/es/locale/en/en.json +3 -0
  43. package/es/locale/es/es.json +3 -0
  44. package/es/locale/id/id.json +3 -0
  45. package/es/meta-comp/components/Button/index.js +1 -4
  46. package/es/meta-comp/components/Button/index.less +1 -1
  47. package/es/meta-comp/components/Image/index.js +31 -3
  48. package/es/meta-comp/components/Image/index.less +1 -0
  49. package/es/meta-comp/components/Text/index.js +1 -4
  50. package/es/meta-comp/config-panels/ButtonConfig/index.js +2 -2
  51. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
  52. package/es/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
  53. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +130 -0
  54. package/es/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
  55. package/es/meta-comp/config-panels/ImageConfig/index.js +13 -4
  56. package/lib/common/ImageModal/index.js +27 -22
  57. package/lib/common/ImgArea/components/Crop.js +267 -0
  58. package/lib/common/ImgArea/components/Icons.js +44 -0
  59. package/lib/common/ImgArea/index.js +11 -0
  60. package/lib/common/index.js +8 -0
  61. package/lib/composite-comp/bol/components/Banner/defaultJSON.js +8 -8
  62. package/lib/composite-comp/bol/components/Banner/mobile/index.js +1 -5
  63. package/lib/composite-comp/bol/components/Banner/pc/index.js +1 -5
  64. package/lib/composite-comp/bol/components/Button/defaultJSON.js +2 -2
  65. package/lib/composite-comp/bol/components/Button/index.js +1 -5
  66. package/lib/composite-comp/bol/components/Carousel/defaultJSON.js +12 -16
  67. package/lib/composite-comp/bol/components/Carousel/index.js +1 -6
  68. package/lib/composite-comp/bol/components/ImageGallery/defaultJSON.js +2 -2
  69. package/lib/composite-comp/bol/components/ImageText/defaultJSON.js +17 -17
  70. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +1 -3
  71. package/lib/composite-comp/bol/components/ImageText/pc/index.js +1 -1
  72. package/lib/composite-comp/bol/components/Newsletter/defaultJSON.js +2 -2
  73. package/lib/composite-comp/bol/components/Newsletter/index.js +1 -6
  74. package/lib/composite-comp/bol/components/Tag/defaultJSON.js +2 -2
  75. package/lib/composite-comp/bol/components/Tag/index.js +1 -5
  76. package/lib/composite-comp/bol/components/Text/defaultJSON.js +3 -3
  77. package/lib/composite-comp/bol/components/Text/index.js +1 -5
  78. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +5 -3
  79. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +6 -4
  80. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +1 -1
  81. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +5 -2
  82. package/lib/composite-comp/dito/components/FlashDeal/index.js +5 -1
  83. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +0 -1
  84. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  85. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  86. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  87. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +578 -0
  88. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +121 -0
  89. package/lib/composite-comp/dito/components/MobileNavigation/defaultJSON.js +3 -3
  90. package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +2 -2
  91. package/lib/composite-comp/dito/components/Recommend/index.js +1 -6
  92. package/lib/composite-comp/dito/components/Recommend/pc/index.js +2 -2
  93. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +1 -1
  94. package/lib/core/Designer/index.js +0 -2
  95. package/lib/decorator/compositeDecorator.js +45 -12
  96. package/lib/locale/en/en.json +3 -0
  97. package/lib/locale/es/es.json +3 -0
  98. package/lib/locale/id/id.json +3 -0
  99. package/lib/meta-comp/components/Button/index.js +1 -4
  100. package/lib/meta-comp/components/Button/index.less +1 -1
  101. package/lib/meta-comp/components/Image/index.js +31 -3
  102. package/lib/meta-comp/components/Image/index.less +1 -0
  103. package/lib/meta-comp/components/Text/index.js +1 -4
  104. package/lib/meta-comp/config-panels/ButtonConfig/index.js +2 -2
  105. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.js +164 -0
  106. package/lib/meta-comp/config-panels/ImageConfig/AreaConfigModal/index.less +26 -0
  107. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.js +130 -0
  108. package/lib/meta-comp/config-panels/ImageConfig/HotAreaConfig/index.less +17 -0
  109. package/lib/meta-comp/config-panels/ImageConfig/index.js +13 -4
  110. package/package.json +90 -3
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _MultiCrops = require("./components/MultiCrops");
9
+
10
+ var _default = _MultiCrops.MultiCrops;
11
+ exports["default"] = _default;
@@ -63,6 +63,12 @@ Object.defineProperty(exports, "ImagePicker", {
63
63
  return _ImagePicker["default"];
64
64
  }
65
65
  });
66
+ Object.defineProperty(exports, "ImgArea", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _ImgArea["default"];
70
+ }
71
+ });
66
72
  Object.defineProperty(exports, "LayoutSelector", {
67
73
  enumerable: true,
68
74
  get: function get() {
@@ -124,4 +130,6 @@ var _ButtonIconLayout = _interopRequireDefault(require("./ButtonIconLayout"));
124
130
 
125
131
  var _ProductSource = _interopRequireDefault(require("./ProductSource"));
126
132
 
133
+ var _ImgArea = _interopRequireDefault(require("./ImgArea"));
134
+
127
135
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -43,7 +43,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
43
43
  text: 'Title use, click modify text.',
44
44
  specialContent: [],
45
45
  content: {
46
- // sizeType: 'Headline 1',
46
+ sizeType: 'Customize font styles',
47
47
  fontFamily: 'Open Sans',
48
48
  fontWeight: 700,
49
49
  fontSize: 28,
@@ -65,7 +65,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
65
65
  specialContent: [],
66
66
  text: 'For the text area, you can enter a subtitle or description, the default width is the same as title.',
67
67
  content: {
68
- // sizeType: 'Headline 1',
68
+ sizeType: 'Customize font styles',
69
69
  fontFamily: 'Open Sans',
70
70
  fontWeight: 400,
71
71
  fontSize: 18,
@@ -86,7 +86,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
86
86
  backgroundColor: '#2F54EB'
87
87
  },
88
88
  buttonText: {
89
- // sizeType: 'Headline 1',
89
+ sizeType: 'Customize font styles',
90
90
  fontFamily: 'Open Sans',
91
91
  fontWeight: 600,
92
92
  fontSize: 14,
@@ -122,7 +122,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
122
122
  backgroundColor: '#0d39ed'
123
123
  },
124
124
  buttonText: {
125
- // sizeType: 'Headline 1',
125
+ sizeType: 'Customize font styles',
126
126
  fontFamily: 'Open Sans',
127
127
  fontWeight: 600,
128
128
  fontSize: 14,
@@ -151,7 +151,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
151
151
  backgroundColor: '#fff'
152
152
  },
153
153
  buttonText: {
154
- // sizeType: 'Headline 1',
154
+ sizeType: 'Customize font styles',
155
155
  fontFamily: 'Open Sans',
156
156
  fontWeight: 600,
157
157
  fontSize: 14,
@@ -187,7 +187,7 @@ var bannerGroupSourceJSON = function bannerGroupSourceJSON() {
187
187
  backgroundColor: '#E9F0FF'
188
188
  },
189
189
  buttonText: {
190
- // sizeType: 'Headline 1',
190
+ sizeType: 'Customize font styles',
191
191
  fontFamily: 'Open Sans',
192
192
  fontWeight: 600,
193
193
  fontSize: 14,
@@ -254,12 +254,12 @@ var getDefaultJSON = function getDefaultJSON() {
254
254
  pc: {
255
255
  paddingTop: 0,
256
256
  paddingBottom: 0,
257
- marginBottom: 0
257
+ marginBottom: window.magicDesign.compSpacing * 1.5
258
258
  },
259
259
  mobile: {
260
260
  paddingTop: 0,
261
261
  paddingBottom: 0,
262
- marginBottom: 0
262
+ marginBottom: window.magicDesign.compSpacing
263
263
  }
264
264
  }
265
265
  };
@@ -21,8 +21,6 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
21
21
 
22
22
  var _components = require("../../../../../meta-comp/components");
23
23
 
24
- var _businessUtil = require("../../../../../utils/businessUtil");
25
-
26
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
25
 
28
26
  var __extends = void 0 && (void 0).__extends || function () {
@@ -131,10 +129,8 @@ function (_super) {
131
129
  autoplay = false;
132
130
  }
133
131
 
134
- var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
135
132
  return /*#__PURE__*/_react["default"].createElement("div", {
136
- className: "m-banner-mobile",
137
- style: wrapStyle
133
+ className: "m-banner-mobile"
138
134
  }, /*#__PURE__*/_react["default"].createElement(_antd.Carousel, {
139
135
  ref: this.carouselRef,
140
136
  afterChange: function afterChange(n) {
@@ -23,8 +23,6 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
23
23
 
24
24
  var _common = require("../../../../../common");
25
25
 
26
- var _businessUtil = require("../../../../../utils/businessUtil");
27
-
28
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
27
 
30
28
  var __extends = void 0 && (void 0).__extends || function () {
@@ -174,10 +172,8 @@ function (_super) {
174
172
  autoplay = false;
175
173
  }
176
174
 
177
- var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
178
175
  return /*#__PURE__*/_react["default"].createElement("div", {
179
- className: "m-banner-pc",
180
- style: wrapStyle
176
+ className: "m-banner-pc"
181
177
  }, data.setting.navigation.open && /*#__PURE__*/_react["default"].createElement(_common.Iconfont, {
182
178
  className: "turnPage leftBtn",
183
179
  onClick: function onClick() {
@@ -90,12 +90,12 @@ var getDefaultJSON = function getDefaultJSON() {
90
90
  pc: {
91
91
  paddingTop: 10,
92
92
  paddingBottom: 10,
93
- marginBottom: 0
93
+ marginBottom: window.magicDesign.compSpacing * 1.5
94
94
  },
95
95
  mobile: {
96
96
  paddingTop: 10,
97
97
  paddingBottom: 10,
98
- marginBottom: 0
98
+ marginBottom: window.magicDesign.compSpacing
99
99
  }
100
100
  },
101
101
  customize: {
@@ -15,8 +15,6 @@ var _components = require("../../../../meta-comp/components");
15
15
 
16
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
17
17
 
18
- var _businessUtil = require("../../../../utils/businessUtil");
19
-
20
18
  require("./index.less");
21
19
 
22
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -76,11 +74,9 @@ function (_super) {
76
74
  var _a;
77
75
 
78
76
  var nodeData = this.props.nodeData;
79
- var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
80
77
  return /*#__PURE__*/_react["default"].createElement("div", {
81
78
  className: (0, _classnames["default"])('button-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
82
- onClick: this.onComponentClick,
83
- style: wrapStyle
79
+ onClick: this.onComponentClick
84
80
  }, nodeData.content.button.open && /*#__PURE__*/_react["default"].createElement("div", {
85
81
  className: "first-button"
86
82
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaButton, {
@@ -7,10 +7,6 @@ exports.imagesGroupSourceJSON = exports.getDefaultJSON = void 0;
7
7
 
8
8
  var _uuid = require("uuid");
9
9
 
10
- var _defaultImg = _interopRequireDefault(require("./imgs/defaultImg.png"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
-
14
10
  var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
15
11
  var groupId = (0, _uuid.v4)();
16
12
  return {
@@ -24,8 +20,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
24
20
  content: {
25
21
  h5Name: 'h5Name',
26
22
  pcName: 'pcName',
27
- h5ImgSrc: _defaultImg["default"],
28
- pcImgSrc: _defaultImg["default"],
23
+ h5ImgSrc: '',
24
+ pcImgSrc: '',
29
25
  clickUrl: ''
30
26
  },
31
27
  hover: {
@@ -44,7 +40,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
44
40
  specialContent: [],
45
41
  text: 'Title of this group',
46
42
  content: {
47
- sizeType: 'Headline 1',
43
+ sizeType: 'Customize font styles',
48
44
  fontFamily: 'Open Sans',
49
45
  fontWeight: 600,
50
46
  fontSize: 16,
@@ -67,7 +63,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
67
63
  specialContent: [],
68
64
  text: 'Please enter a description',
69
65
  content: {
70
- sizeType: 'Headline 1',
66
+ sizeType: 'Customize font styles',
71
67
  fontFamily: 'Open Sans',
72
68
  fontWeight: 400,
73
69
  fontSize: 14,
@@ -86,8 +82,8 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
86
82
  content: {
87
83
  h5Name: '',
88
84
  pcName: '',
89
- h5ImgSrc: _defaultImg["default"],
90
- pcImgSrc: _defaultImg["default"],
85
+ h5ImgSrc: '',
86
+ pcImgSrc: '',
91
87
  clickUrl: ''
92
88
  },
93
89
  hover: {
@@ -109,7 +105,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
109
105
  backgroundColor: '#E6EAF0'
110
106
  },
111
107
  buttonText: {
112
- // sizeType: 'Headline 1',
108
+ sizeType: 'Customize font styles',
113
109
  fontFamily: 'Open Sans',
114
110
  fontWeight: 600,
115
111
  fontSize: 14,
@@ -145,7 +141,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
145
141
  backgroundColor: '#E6EAF0'
146
142
  },
147
143
  buttonText: {
148
- // sizeType: 'Headline 1',
144
+ sizeType: 'Customize font styles',
149
145
  fontFamily: 'Open Sans',
150
146
  fontWeight: 600,
151
147
  fontSize: 14,
@@ -174,7 +170,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
174
170
  backgroundColor: '#E6EAF0'
175
171
  },
176
172
  buttonText: {
177
- // sizeType: 'Headline 1',
173
+ sizeType: 'Customize font styles',
178
174
  fontFamily: 'Open Sans',
179
175
  fontWeight: 600,
180
176
  fontSize: 14,
@@ -210,7 +206,7 @@ var imagesGroupSourceJSON = function imagesGroupSourceJSON(compId) {
210
206
  backgroundColor: '#E6EAF0'
211
207
  },
212
208
  buttonText: {
213
- // sizeType: 'Headline 1',
209
+ sizeType: 'Customize font styles',
214
210
  fontFamily: 'Open Sans',
215
211
  fontWeight: 600,
216
212
  fontSize: 14,
@@ -266,12 +262,12 @@ var getDefaultJSON = function getDefaultJSON() {
266
262
  pc: {
267
263
  paddingTop: 10,
268
264
  paddingBottom: 10,
269
- marginBottom: 0
265
+ marginBottom: window.magicDesign.compSpacing * 1.5
270
266
  },
271
267
  mobile: {
272
268
  paddingTop: 10,
273
269
  paddingBottom: 10,
274
- marginBottom: 0
270
+ marginBottom: window.magicDesign.compSpacing
275
271
  }
276
272
  },
277
273
  customize: {
@@ -15,8 +15,6 @@ var _defaultJSON = require("./defaultJSON");
15
15
 
16
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
17
17
 
18
- var _businessUtil = require("../../../../utils/businessUtil");
19
-
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
22
20
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -72,10 +70,7 @@ function (_super) {
72
70
 
73
71
  Carousel.prototype.render = function () {
74
72
  var nodeData = this.props.nodeData;
75
- var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
76
- return /*#__PURE__*/_react["default"].createElement("div", {
77
- style: wrapStyle
78
- }, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
73
+ return /*#__PURE__*/_react["default"].createElement("div", null, window.magicDesign.device === 'pc' ? /*#__PURE__*/_react["default"].createElement(_pc["default"], {
79
74
  data: nodeData
80
75
  }) : /*#__PURE__*/_react["default"].createElement(_mobile["default"], {
81
76
  data: nodeData
@@ -50,12 +50,12 @@ var getDefaultJSON = function getDefaultJSON() {
50
50
  pc: {
51
51
  paddingTop: 10,
52
52
  paddingBottom: 10,
53
- marginBottom: 0
53
+ marginBottom: window.magicDesign.compSpacing * 1.5
54
54
  },
55
55
  mobile: {
56
56
  paddingTop: 10,
57
57
  paddingBottom: 10,
58
- marginBottom: 0
58
+ marginBottom: window.magicDesign.compSpacing
59
59
  }
60
60
  },
61
61
  customize: {
@@ -39,7 +39,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
39
39
  specialContent: [],
40
40
  text: 'Title of this group',
41
41
  content: {
42
- sizeType: 'Headline 1',
42
+ sizeType: 'Customize font styles',
43
43
  fontFamily: 'Open Sans',
44
44
  fontWeight: 600,
45
45
  fontSize: 12,
@@ -61,7 +61,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
61
61
  specialContent: [],
62
62
  text: 'Please enter a description',
63
63
  content: {
64
- sizeType: 'Headline 1',
64
+ sizeType: 'Customize font styles',
65
65
  fontFamily: 'Open Sans',
66
66
  fontWeight: 400,
67
67
  fontSize: 10,
@@ -82,7 +82,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
82
82
  backgroundColor: '#2F54EB'
83
83
  },
84
84
  buttonText: {
85
- sizeType: 'Headline 1',
85
+ sizeType: 'Customize font styles',
86
86
  fontFamily: 'Open Sans',
87
87
  fontWeight: 400,
88
88
  fontSize: 10,
@@ -104,7 +104,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
104
104
  backgroundColor: '#0d39ed'
105
105
  },
106
106
  buttonText: {
107
- sizeType: 'Headline 1',
107
+ sizeType: 'Customize font styles',
108
108
  fontFamily: 'Open Sans',
109
109
  fontWeight: 600,
110
110
  fontSize: 14,
@@ -137,7 +137,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
137
137
  backgroundColor: '#fff'
138
138
  },
139
139
  buttonText: {
140
- sizeType: 'Headline 1',
140
+ sizeType: 'Customize font styles',
141
141
  fontFamily: 'Open Sans',
142
142
  fontWeight: 400,
143
143
  fontSize: 10,
@@ -159,7 +159,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
159
159
  backgroundColor: '#E9F0FF'
160
160
  },
161
161
  buttonText: {
162
- sizeType: 'Headline 1',
162
+ sizeType: 'Customize font styles',
163
163
  fontFamily: 'Open Sans',
164
164
  fontWeight: 600,
165
165
  fontSize: 14,
@@ -237,7 +237,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
237
237
  specialContent: [],
238
238
  text: '',
239
239
  content: {
240
- sizeType: 'Headline 1',
240
+ sizeType: 'Customize font styles',
241
241
  fontFamily: 'Open Sans',
242
242
  fontWeight: 400,
243
243
  fontSize: 18,
@@ -257,7 +257,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
257
257
  backgroundColor: '#2F54EB'
258
258
  },
259
259
  buttonText: {
260
- sizeType: 'Headline 1',
260
+ sizeType: 'Customize font styles',
261
261
  fontFamily: 'Open Sans',
262
262
  fontWeight: 600,
263
263
  fontSize: 14,
@@ -279,7 +279,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
279
279
  backgroundColor: '#0d39ed'
280
280
  },
281
281
  buttonText: {
282
- sizeType: 'Headline 1',
282
+ sizeType: 'Customize font styles',
283
283
  fontFamily: 'Open Sans',
284
284
  fontWeight: 600,
285
285
  fontSize: 14,
@@ -307,7 +307,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
307
307
  backgroundColor: '#fff'
308
308
  },
309
309
  buttonText: {
310
- sizeType: 'Headline 1',
310
+ sizeType: 'Customize font styles',
311
311
  fontFamily: 'Open Sans',
312
312
  fontWeight: 600,
313
313
  fontSize: 14,
@@ -329,7 +329,7 @@ var ImageTextGroupSourceJSON = function ImageTextGroupSourceJSON() {
329
329
  backgroundColor: '#E9F0FF'
330
330
  },
331
331
  buttonText: {
332
- sizeType: 'Headline 1',
332
+ sizeType: 'Customize font styles',
333
333
  fontFamily: 'Open Sans',
334
334
  fontWeight: 600,
335
335
  fontSize: 14,
@@ -370,7 +370,7 @@ var getDefaultJSON = function getDefaultJSON() {
370
370
  // specialContent: [],
371
371
  // text: 'Digital Maturity',
372
372
  // content: {
373
- // sizeType: 'Headline 1',
373
+ // sizeType: 'Customize font styles',
374
374
  // fontFamily: 'Open Sans',
375
375
  // fontWeight: 600,
376
376
  // fontSize: 28,
@@ -392,7 +392,7 @@ var getDefaultJSON = function getDefaultJSON() {
392
392
  // specialContent: [],
393
393
  // text: 'Freedom to innovate and create with ODA compliant B/OSS solutions',
394
394
  // content: {
395
- // sizeType: 'Headline 1',
395
+ // sizeType: 'Customize font styles',
396
396
  // fontFamily: 'Open Sans',
397
397
  // fontWeight: 400,
398
398
  // // textAlign: 'center',
@@ -418,7 +418,7 @@ var getDefaultJSON = function getDefaultJSON() {
418
418
  // backgroundColor: '#2F54EB',
419
419
  // },
420
420
  // buttonText: {
421
- // sizeType: 'Headline 1',
421
+ // sizeType: 'Customize font styles',
422
422
  // fontFamily: 'Open Sans',
423
423
  // fontWeight: 600,
424
424
  // fontSize: 14,
@@ -440,7 +440,7 @@ var getDefaultJSON = function getDefaultJSON() {
440
440
  // backgroundColor: '#0d39ed',
441
441
  // },
442
442
  // buttonText: {
443
- // sizeType: 'Headline 1',
443
+ // sizeType: 'Customize font styles',
444
444
  // fontFamily: 'Open Sans',
445
445
  // fontWeight: 600,
446
446
  // fontSize: 14,
@@ -468,7 +468,7 @@ var getDefaultJSON = function getDefaultJSON() {
468
468
  // backgroundColor: '#FFFFFF',
469
469
  // },
470
470
  // buttonText: {
471
- // sizeType: 'Headline 1',
471
+ // sizeType: 'Customize font styles',
472
472
  // fontFamily: 'Open Sans',
473
473
  // fontWeight: 600,
474
474
  // fontSize: 14,
@@ -490,7 +490,7 @@ var getDefaultJSON = function getDefaultJSON() {
490
490
  // backgroundColor: '#0d39ed',
491
491
  // },
492
492
  // buttonText: {
493
- // sizeType: 'Headline 1',
493
+ // sizeType: 'Customize font styles',
494
494
  // fontFamily: 'Open Sans',
495
495
  // fontWeight: 600,
496
496
  // fontSize: 14,
@@ -15,8 +15,6 @@ var _AlignSelector = require("../../../../../common/AlignSelector");
15
15
 
16
16
  var _components = require("../../../../../meta-comp/components");
17
17
 
18
- var _businessUtil = require("../../../../../utils/businessUtil");
19
-
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
22
20
  var __extends = void 0 && (void 0).__extends || function () {
@@ -107,7 +105,7 @@ function (_super) {
107
105
  var data = this.props.data; // const { ready } = this.state;
108
106
  // console.log('----imagetext mobile', data);
109
107
 
110
- var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
108
+ var wrapStyle = {};
111
109
  wrapStyle.textAlign = data.customize.align; // if (data.background.bgType === 'color') {
112
110
  // wrapStyle.backgroundColor = data.background.color;
113
111
  // wrapStyle.opacity = data.background.opacity ? data.background.opacity : 1;
@@ -122,7 +122,7 @@ function (_super) {
122
122
  // console.log(data);
123
123
  // console.log('====================================');
124
124
 
125
- var wrapStyle = (0, _businessUtil.computeStyle)(data, window.magicDesign.device);
125
+ var wrapStyle = {};
126
126
  wrapStyle.alignItems = _AlignSelector.alignItemMap[data.customize.align];
127
127
  return /*#__PURE__*/_react["default"].createElement("div", {
128
128
  className: (0, _classnames["default"])('image-text-pc', data.customize.layout.pcLayout),
@@ -111,12 +111,12 @@ var getDefaultJSON = function getDefaultJSON() {
111
111
  pc: {
112
112
  paddingTop: 10,
113
113
  paddingBottom: 10,
114
- marginBottom: 0
114
+ marginBottom: window.magicDesign.compSpacing * 1.5
115
115
  },
116
116
  mobile: {
117
117
  paddingTop: 10,
118
118
  paddingBottom: 10,
119
- marginBottom: 0
119
+ marginBottom: window.magicDesign.compSpacing
120
120
  }
121
121
  },
122
122
  customize: {
@@ -19,8 +19,6 @@ var _Text = require("../../../../meta-comp/components/Text");
19
19
 
20
20
  require("./index.less");
21
21
 
22
- var _businessUtil = require("../../../../utils/businessUtil");
23
-
24
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
23
 
26
24
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -90,15 +88,12 @@ function (_super) {
90
88
  // wrapStyle.backgroundPosition = 'center';
91
89
  // }
92
90
 
93
- var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
94
-
95
91
  var style = __assign({}, (0, _Text.contentStyle)(nodeData.content.inputField.content));
96
92
 
97
93
  Reflect.deleteProperty(style, 'width');
98
94
  return /*#__PURE__*/_react["default"].createElement("div", {
99
95
  className: (0, _classnames["default"])('newsletter-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a[window.magicDesign.device] = true, _a)),
100
- onClick: this.onComponentClick,
101
- style: wrapStyle
96
+ onClick: this.onComponentClick
102
97
  }, /*#__PURE__*/_react["default"].createElement("div", {
103
98
  className: "top-wrap"
104
99
  }, nodeData.content.inputField.open && /*#__PURE__*/_react["default"].createElement("div", {
@@ -88,12 +88,12 @@ var getDefaultJSON = function getDefaultJSON() {
88
88
  pc: {
89
89
  paddingTop: 10,
90
90
  paddingBottom: 10,
91
- marginBottom: 0
91
+ marginBottom: window.magicDesign.compSpacing * 1.5
92
92
  },
93
93
  mobile: {
94
94
  paddingTop: 10,
95
95
  paddingBottom: 10,
96
- marginBottom: 0
96
+ marginBottom: window.magicDesign.compSpacing
97
97
  }
98
98
  },
99
99
  customize: {
@@ -15,8 +15,6 @@ var _components = require("../../../../meta-comp/components");
15
15
 
16
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
17
17
 
18
- var _businessUtil = require("../../../../utils/businessUtil");
19
-
20
18
  require("./index.less");
21
19
 
22
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -76,11 +74,9 @@ function (_super) {
76
74
  var _a;
77
75
 
78
76
  var nodeData = this.props.nodeData;
79
- var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
80
77
  return /*#__PURE__*/_react["default"].createElement("div", {
81
78
  className: (0, _classnames["default"])('tag-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
82
- onClick: this.onComponentClick,
83
- style: wrapStyle
79
+ onClick: this.onComponentClick
84
80
  }, nodeData.content.image.open && /*#__PURE__*/_react["default"].createElement("div", {
85
81
  className: "tag-image"
86
82
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaImage, {
@@ -103,7 +103,7 @@ var getDefaultJSON = function getDefaultJSON() {
103
103
  headline: __assign(__assign({}, getDefaultMetaTextJson()), {
104
104
  text: 'Title use, click modify text.',
105
105
  content: {
106
- sizeType: 'Headline 1',
106
+ sizeType: 'Customize font styles',
107
107
  fontFamily: 'Montserrat',
108
108
  fontWeight: 600,
109
109
  fontSize: 28,
@@ -130,12 +130,12 @@ var getDefaultJSON = function getDefaultJSON() {
130
130
  pc: {
131
131
  paddingTop: 10,
132
132
  paddingBottom: 10,
133
- marginBottom: 0
133
+ marginBottom: window.magicDesign.compSpacing * 1.5
134
134
  },
135
135
  mobile: {
136
136
  paddingTop: 10,
137
137
  paddingBottom: 10,
138
- marginBottom: 0
138
+ marginBottom: window.magicDesign.compSpacing
139
139
  }
140
140
  },
141
141
  customize: {
@@ -15,8 +15,6 @@ var _components = require("../../../../meta-comp/components");
15
15
 
16
16
  var _compositeDecorator = _interopRequireDefault(require("../../../../decorator/compositeDecorator"));
17
17
 
18
- var _businessUtil = require("../../../../utils/businessUtil");
19
-
20
18
  require("./index.less");
21
19
 
22
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -76,11 +74,9 @@ function (_super) {
76
74
  var _a;
77
75
 
78
76
  var nodeData = this.props.nodeData;
79
- var wrapStyle = (0, _businessUtil.computeStyle)(nodeData, window.magicDesign.device);
80
77
  return /*#__PURE__*/_react["default"].createElement("div", {
81
78
  className: "m-text",
82
- onClick: this.onComponentClick,
83
- style: wrapStyle
79
+ onClick: this.onComponentClick
84
80
  }, nodeData.title.headline.open && /*#__PURE__*/_react["default"].createElement("div", {
85
81
  className: "title-wrap"
86
82
  }, /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
@@ -15,6 +15,8 @@ var _common = require("../../../../../common");
15
15
 
16
16
  var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
17
17
 
18
+ var _locale = require("../../../../../locale");
19
+
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
21
 
20
22
  var __extends = void 0 && (void 0).__extends || function () {
@@ -71,21 +73,21 @@ function (_super) {
71
73
  onRefresh: this.reRender,
72
74
  source: [{
73
75
  key: '1',
74
- name: i18n('IMAGE_TAG'),
76
+ name: (0, _locale.i18n)('IMAGE_TAG'),
75
77
  value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
76
78
  data: panelProps.image
77
79
  }),
78
80
  metaOption: panelProps.image
79
81
  }, {
80
82
  key: '2',
81
- name: i18n('BUTTON_TAG'),
83
+ name: (0, _locale.i18n)('BUTTON_TAG'),
82
84
  value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
83
85
  data: panelProps.button
84
86
  }),
85
87
  metaOption: panelProps.button
86
88
  }, {
87
89
  key: '3',
88
- name: i18n('SECONDARY_BUTTON_TAG'),
90
+ name: (0, _locale.i18n)('SECONDARY_BUTTON_TAG'),
89
91
  value: /*#__PURE__*/_react["default"].createElement(_ButtonConfig["default"], {
90
92
  data: panelProps.secondaryButton
91
93
  }),