@fonixtree/magic-design 0.0.16 → 0.0.17

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 (754) hide show
  1. package/README.md +311 -0
  2. package/dist/_virtual/__node-resolve_empty.js +6 -0
  3. package/dist/_virtual/_cloneBuffer.js +3 -0
  4. package/dist/_virtual/_commonjsHelpers.js +24 -0
  5. package/dist/_virtual/_node-resolve_empty.js +3 -0
  6. package/dist/_virtual/_nodeUtil.js +3 -0
  7. package/dist/_virtual/_rollupPluginBabelHelpers.js +18 -0
  8. package/dist/_virtual/index.js +3 -0
  9. package/dist/_virtual/index2.js +3 -0
  10. package/dist/_virtual/index3.js +3 -0
  11. package/dist/_virtual/index4.js +3 -0
  12. package/dist/_virtual/index5.js +5 -0
  13. package/dist/_virtual/interopRequireDefault.js +3 -0
  14. package/dist/_virtual/isBuffer.js +3 -0
  15. package/dist/_virtual/react-is.development.js +3 -0
  16. package/dist/_virtual/react-is.production.min.js +3 -0
  17. package/dist/_virtual/rng-browser.js +3 -0
  18. package/dist/_virtual/toArray.js +3 -0
  19. package/dist/my_node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +11 -0
  20. package/dist/my_node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
  21. package/dist/my_node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +9 -0
  22. package/dist/my_node_modules/@babel/runtime/helpers/esm/classCallCheck.js +7 -0
  23. package/dist/my_node_modules/@babel/runtime/helpers/esm/createClass.js +20 -0
  24. package/dist/my_node_modules/@babel/runtime/helpers/esm/createSuper.js +22 -0
  25. package/dist/my_node_modules/@babel/runtime/helpers/esm/defineProperty.js +16 -0
  26. package/dist/my_node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
  27. package/dist/my_node_modules/@babel/runtime/helpers/esm/inherits.js +21 -0
  28. package/dist/my_node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +14 -0
  29. package/dist/my_node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +31 -0
  30. package/dist/my_node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
  31. package/dist/my_node_modules/@babel/runtime/helpers/esm/objectSpread2.js +29 -0
  32. package/dist/my_node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +14 -0
  33. package/dist/my_node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -0
  34. package/dist/my_node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
  35. package/dist/my_node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
  36. package/dist/my_node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +12 -0
  37. package/dist/my_node_modules/@babel/runtime/helpers/interopRequireDefault.js +11 -0
  38. package/dist/my_node_modules/call-bind/callBound.js +19 -0
  39. package/dist/my_node_modules/call-bind/index.js +52 -0
  40. package/dist/my_node_modules/classnames/index.js +61 -0
  41. package/dist/my_node_modules/function-bind/implementation.js +52 -0
  42. package/dist/my_node_modules/function-bind/index.js +7 -0
  43. package/dist/my_node_modules/get-intrinsic/index.js +338 -0
  44. package/dist/my_node_modules/has/src/index.js +7 -0
  45. package/dist/my_node_modules/has-symbols/index.js +15 -0
  46. package/dist/my_node_modules/has-symbols/shams.js +42 -0
  47. package/dist/my_node_modules/lodash/_DataView.js +12 -0
  48. package/dist/my_node_modules/lodash/_Hash.js +40 -0
  49. package/dist/my_node_modules/lodash/_ListCache.js +40 -0
  50. package/dist/my_node_modules/lodash/_Map.js +12 -0
  51. package/dist/my_node_modules/lodash/_MapCache.js +40 -0
  52. package/dist/my_node_modules/lodash/_Promise.js +12 -0
  53. package/dist/my_node_modules/lodash/_Set.js +12 -0
  54. package/dist/my_node_modules/lodash/_SetCache.js +33 -0
  55. package/dist/my_node_modules/lodash/_Stack.js +36 -0
  56. package/dist/my_node_modules/lodash/_Symbol.js +10 -0
  57. package/dist/my_node_modules/lodash/_Uint8Array.js +10 -0
  58. package/dist/my_node_modules/lodash/_WeakMap.js +12 -0
  59. package/dist/my_node_modules/lodash/_arrayEach.js +25 -0
  60. package/dist/my_node_modules/lodash/_arrayFilter.js +28 -0
  61. package/dist/my_node_modules/lodash/_arrayLikeKeys.js +59 -0
  62. package/dist/my_node_modules/lodash/_arrayMap.js +24 -0
  63. package/dist/my_node_modules/lodash/_arrayPush.js +23 -0
  64. package/dist/my_node_modules/lodash/_arraySome.js +26 -0
  65. package/dist/my_node_modules/lodash/_assignValue.js +33 -0
  66. package/dist/my_node_modules/lodash/_assocIndexOf.js +25 -0
  67. package/dist/my_node_modules/lodash/_baseAssign.js +22 -0
  68. package/dist/my_node_modules/lodash/_baseAssignIn.js +22 -0
  69. package/dist/my_node_modules/lodash/_baseAssignValue.js +29 -0
  70. package/dist/my_node_modules/lodash/_baseClone.js +193 -0
  71. package/dist/my_node_modules/lodash/_baseCreate.js +34 -0
  72. package/dist/my_node_modules/lodash/_baseFindIndex.js +27 -0
  73. package/dist/my_node_modules/lodash/_baseFor.js +20 -0
  74. package/dist/my_node_modules/lodash/_baseForOwn.js +21 -0
  75. package/dist/my_node_modules/lodash/_baseGet.js +29 -0
  76. package/dist/my_node_modules/lodash/_baseGetAllKeys.js +25 -0
  77. package/dist/my_node_modules/lodash/_baseGetTag.js +34 -0
  78. package/dist/my_node_modules/lodash/_baseHasIn.js +16 -0
  79. package/dist/my_node_modules/lodash/_baseIsArguments.js +23 -0
  80. package/dist/my_node_modules/lodash/_baseIsEqual.js +33 -0
  81. package/dist/my_node_modules/lodash/_baseIsEqualDeep.js +95 -0
  82. package/dist/my_node_modules/lodash/_baseIsMap.js +23 -0
  83. package/dist/my_node_modules/lodash/_baseIsMatch.js +67 -0
  84. package/dist/my_node_modules/lodash/_baseIsNative.js +54 -0
  85. package/dist/my_node_modules/lodash/_baseIsSet.js +23 -0
  86. package/dist/my_node_modules/lodash/_baseIsTypedArray.js +66 -0
  87. package/dist/my_node_modules/lodash/_baseIteratee.js +39 -0
  88. package/dist/my_node_modules/lodash/_baseKeys.js +35 -0
  89. package/dist/my_node_modules/lodash/_baseKeysIn.js +39 -0
  90. package/dist/my_node_modules/lodash/_baseMatches.js +28 -0
  91. package/dist/my_node_modules/lodash/_baseMatchesProperty.js +43 -0
  92. package/dist/my_node_modules/lodash/_baseProperty.js +17 -0
  93. package/dist/my_node_modules/lodash/_basePropertyDeep.js +20 -0
  94. package/dist/my_node_modules/lodash/_baseTimes.js +23 -0
  95. package/dist/my_node_modules/lodash/_baseToNumber.js +28 -0
  96. package/dist/my_node_modules/lodash/_baseToString.js +44 -0
  97. package/dist/my_node_modules/lodash/_baseTrim.js +23 -0
  98. package/dist/my_node_modules/lodash/_baseUnary.js +17 -0
  99. package/dist/my_node_modules/lodash/_cacheHas.js +16 -0
  100. package/dist/my_node_modules/lodash/_castPath.js +28 -0
  101. package/dist/my_node_modules/lodash/_cloneArrayBuffer.js +20 -0
  102. package/dist/my_node_modules/lodash/_cloneBuffer.js +40 -0
  103. package/dist/my_node_modules/lodash/_cloneDataView.js +20 -0
  104. package/dist/my_node_modules/lodash/_cloneRegExp.js +20 -0
  105. package/dist/my_node_modules/lodash/_cloneSymbol.js +22 -0
  106. package/dist/my_node_modules/lodash/_cloneTypedArray.js +20 -0
  107. package/dist/my_node_modules/lodash/_copyArray.js +23 -0
  108. package/dist/my_node_modules/lodash/_copyObject.js +45 -0
  109. package/dist/my_node_modules/lodash/_copySymbols.js +21 -0
  110. package/dist/my_node_modules/lodash/_copySymbolsIn.js +21 -0
  111. package/dist/my_node_modules/lodash/_coreJsData.js +10 -0
  112. package/dist/my_node_modules/lodash/_createBaseFor.js +28 -0
  113. package/dist/my_node_modules/lodash/_createMathOperation.js +43 -0
  114. package/dist/my_node_modules/lodash/_defineProperty.js +15 -0
  115. package/dist/my_node_modules/lodash/_equalArrays.js +90 -0
  116. package/dist/my_node_modules/lodash/_equalByTag.js +121 -0
  117. package/dist/my_node_modules/lodash/_equalObjects.js +94 -0
  118. package/dist/my_node_modules/lodash/_freeGlobal.js +9 -0
  119. package/dist/my_node_modules/lodash/_getAllKeys.js +22 -0
  120. package/dist/my_node_modules/lodash/_getAllKeysIn.js +23 -0
  121. package/dist/my_node_modules/lodash/_getMapData.js +22 -0
  122. package/dist/my_node_modules/lodash/_getMatchData.js +29 -0
  123. package/dist/my_node_modules/lodash/_getNative.js +22 -0
  124. package/dist/my_node_modules/lodash/_getPrototype.js +10 -0
  125. package/dist/my_node_modules/lodash/_getRawTag.js +50 -0
  126. package/dist/my_node_modules/lodash/_getSymbols.js +35 -0
  127. package/dist/my_node_modules/lodash/_getSymbolsIn.js +32 -0
  128. package/dist/my_node_modules/lodash/_getTag.js +68 -0
  129. package/dist/my_node_modules/lodash/_getValue.js +16 -0
  130. package/dist/my_node_modules/lodash/_hasPath.js +48 -0
  131. package/dist/my_node_modules/lodash/_hashClear.js +19 -0
  132. package/dist/my_node_modules/lodash/_hashDelete.js +20 -0
  133. package/dist/my_node_modules/lodash/_hashGet.js +34 -0
  134. package/dist/my_node_modules/lodash/_hashHas.js +27 -0
  135. package/dist/my_node_modules/lodash/_hashSet.js +27 -0
  136. package/dist/my_node_modules/lodash/_initCloneArray.js +29 -0
  137. package/dist/my_node_modules/lodash/_initCloneByTag.js +85 -0
  138. package/dist/my_node_modules/lodash/_initCloneObject.js +24 -0
  139. package/dist/my_node_modules/lodash/_isIndex.js +28 -0
  140. package/dist/my_node_modules/lodash/_isKey.js +34 -0
  141. package/dist/my_node_modules/lodash/_isKeyable.js +18 -0
  142. package/dist/my_node_modules/lodash/_isMasked.js +24 -0
  143. package/dist/my_node_modules/lodash/_isPrototype.js +21 -0
  144. package/dist/my_node_modules/lodash/_isStrictComparable.js +19 -0
  145. package/dist/my_node_modules/lodash/_listCacheClear.js +16 -0
  146. package/dist/my_node_modules/lodash/_listCacheDelete.js +39 -0
  147. package/dist/my_node_modules/lodash/_listCacheGet.js +23 -0
  148. package/dist/my_node_modules/lodash/_listCacheHas.js +20 -0
  149. package/dist/my_node_modules/lodash/_listCacheSet.js +30 -0
  150. package/dist/my_node_modules/lodash/_mapCacheClear.js +27 -0
  151. package/dist/my_node_modules/lodash/_mapCacheDelete.js +22 -0
  152. package/dist/my_node_modules/lodash/_mapCacheGet.js +20 -0
  153. package/dist/my_node_modules/lodash/_mapCacheHas.js +20 -0
  154. package/dist/my_node_modules/lodash/_mapCacheSet.js +26 -0
  155. package/dist/my_node_modules/lodash/_mapToArray.js +21 -0
  156. package/dist/my_node_modules/lodash/_matchesStrictComparable.js +23 -0
  157. package/dist/my_node_modules/lodash/_memoizeCapped.js +30 -0
  158. package/dist/my_node_modules/lodash/_nativeCreate.js +10 -0
  159. package/dist/my_node_modules/lodash/_nativeKeys.js +10 -0
  160. package/dist/my_node_modules/lodash/_nativeKeysIn.js +23 -0
  161. package/dist/my_node_modules/lodash/_nodeUtil.js +35 -0
  162. package/dist/my_node_modules/lodash/_objectToString.js +25 -0
  163. package/dist/my_node_modules/lodash/_overArg.js +18 -0
  164. package/dist/my_node_modules/lodash/_root.js +13 -0
  165. package/dist/my_node_modules/lodash/_setCacheAdd.js +22 -0
  166. package/dist/my_node_modules/lodash/_setCacheHas.js +17 -0
  167. package/dist/my_node_modules/lodash/_setToArray.js +21 -0
  168. package/dist/my_node_modules/lodash/_stackClear.js +19 -0
  169. package/dist/my_node_modules/lodash/_stackDelete.js +21 -0
  170. package/dist/my_node_modules/lodash/_stackGet.js +17 -0
  171. package/dist/my_node_modules/lodash/_stackHas.js +17 -0
  172. package/dist/my_node_modules/lodash/_stackSet.js +40 -0
  173. package/dist/my_node_modules/lodash/_stringToPath.js +31 -0
  174. package/dist/my_node_modules/lodash/_toKey.js +25 -0
  175. package/dist/my_node_modules/lodash/_toSource.js +29 -0
  176. package/dist/my_node_modules/lodash/_trimmedEndIndex.js +22 -0
  177. package/dist/my_node_modules/lodash/cloneDeep.js +33 -0
  178. package/dist/my_node_modules/lodash/divide.js +26 -0
  179. package/dist/my_node_modules/lodash/eq.js +40 -0
  180. package/dist/my_node_modules/lodash/findIndex.js +61 -0
  181. package/dist/my_node_modules/lodash/get.js +37 -0
  182. package/dist/my_node_modules/lodash/hasIn.js +39 -0
  183. package/dist/my_node_modules/lodash/identity.js +24 -0
  184. package/dist/my_node_modules/lodash/isArguments.js +41 -0
  185. package/dist/my_node_modules/lodash/isArray.js +29 -0
  186. package/dist/my_node_modules/lodash/isArrayLike.js +38 -0
  187. package/dist/my_node_modules/lodash/isBuffer.js +44 -0
  188. package/dist/my_node_modules/lodash/isEmpty.js +89 -0
  189. package/dist/my_node_modules/lodash/isFunction.js +42 -0
  190. package/dist/my_node_modules/lodash/isLength.js +38 -0
  191. package/dist/my_node_modules/lodash/isMap.js +34 -0
  192. package/dist/my_node_modules/lodash/isObject.js +34 -0
  193. package/dist/my_node_modules/lodash/isObjectLike.js +32 -0
  194. package/dist/my_node_modules/lodash/isSet.js +34 -0
  195. package/dist/my_node_modules/lodash/isSymbol.js +34 -0
  196. package/dist/my_node_modules/lodash/isTypedArray.js +34 -0
  197. package/dist/my_node_modules/lodash/keys.js +43 -0
  198. package/dist/my_node_modules/lodash/keysIn.js +38 -0
  199. package/dist/my_node_modules/lodash/mapKeys.js +42 -0
  200. package/dist/my_node_modules/lodash/memoize.js +77 -0
  201. package/dist/my_node_modules/lodash/property.js +39 -0
  202. package/dist/my_node_modules/lodash/stubArray.js +26 -0
  203. package/dist/my_node_modules/lodash/stubFalse.js +21 -0
  204. package/dist/my_node_modules/lodash/toFinite.js +46 -0
  205. package/dist/my_node_modules/lodash/toInteger.js +40 -0
  206. package/dist/my_node_modules/lodash/toNumber.js +70 -0
  207. package/dist/my_node_modules/lodash/toString.js +32 -0
  208. package/dist/my_node_modules/object-assign/index.js +99 -0
  209. package/dist/my_node_modules/object-inspect/index.js +516 -0
  210. package/dist/my_node_modules/prop-types/checkPropTypes.js +115 -0
  211. package/dist/my_node_modules/prop-types/factoryWithThrowingShims.js +74 -0
  212. package/dist/my_node_modules/prop-types/factoryWithTypeCheckers.js +625 -0
  213. package/dist/my_node_modules/prop-types/index.js +27 -0
  214. package/dist/my_node_modules/prop-types/lib/ReactPropTypesSecret.js +21 -0
  215. package/dist/my_node_modules/prop-types/lib/has.js +11 -0
  216. package/dist/my_node_modules/qs/lib/formats.js +23 -0
  217. package/dist/my_node_modules/qs/lib/index.js +15 -0
  218. package/dist/my_node_modules/qs/lib/parse.js +265 -0
  219. package/dist/my_node_modules/qs/lib/stringify.js +330 -0
  220. package/dist/my_node_modules/qs/lib/utils.js +254 -0
  221. package/dist/my_node_modules/rc-motion/es/CSSMotion.js +149 -0
  222. package/dist/my_node_modules/rc-motion/es/DomWrapper.js +28 -0
  223. package/dist/my_node_modules/rc-motion/es/hooks/useDomMotionEvents.js +45 -0
  224. package/dist/my_node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js +6 -0
  225. package/dist/my_node_modules/rc-motion/es/hooks/useNextFrame.js +36 -0
  226. package/dist/my_node_modules/rc-motion/es/hooks/useStatus.js +232 -0
  227. package/dist/my_node_modules/rc-motion/es/hooks/useStepQueue.js +69 -0
  228. package/dist/my_node_modules/rc-motion/es/index.js +4 -0
  229. package/dist/my_node_modules/rc-motion/es/interface.js +11 -0
  230. package/dist/my_node_modules/rc-motion/es/util/motion.js +85 -0
  231. package/dist/my_node_modules/rc-util/es/Dom/canUseDom.js +5 -0
  232. package/dist/my_node_modules/rc-util/es/Dom/findDOMNode.js +15 -0
  233. package/dist/my_node_modules/rc-util/es/hooks/useState.js +36 -0
  234. package/dist/my_node_modules/rc-util/es/raf.js +57 -0
  235. package/dist/my_node_modules/rc-util/es/ref.js +30 -0
  236. package/dist/my_node_modules/rc-util/lib/Children/toArray.js +39 -0
  237. package/dist/my_node_modules/react-is/cjs/react-is.development.js +190 -0
  238. package/dist/my_node_modules/react-is/cjs/react-is.production.min.js +26 -0
  239. package/dist/my_node_modules/react-is/index.js +21 -0
  240. package/dist/my_node_modules/shallowequal/index.js +48 -0
  241. package/dist/my_node_modules/side-channel/index.js +128 -0
  242. package/dist/my_node_modules/slick-carousel/slick/slick-theme.css.js +4 -0
  243. package/dist/my_node_modules/slick-carousel/slick/slick.css.js +4 -0
  244. package/dist/my_node_modules/style-inject/dist/style-inject.es.js +28 -0
  245. package/dist/my_node_modules/tslib/tslib.es6.js +110 -0
  246. package/dist/my_node_modules/uuid/index.js +13 -0
  247. package/dist/my_node_modules/uuid/lib/bytesToUuid.js +29 -0
  248. package/dist/my_node_modules/uuid/lib/rng-browser.js +39 -0
  249. package/dist/my_node_modules/uuid/v1.js +115 -0
  250. package/dist/my_node_modules/uuid/v4.js +35 -0
  251. package/dist/package.json +31 -0
  252. package/dist/src/components/assets/images/layout-icon/carouselLayout1.png.js +3 -0
  253. package/dist/src/components/assets/images/layout-icon/carouselLayout2.png.js +3 -0
  254. package/dist/src/components/assets/images/layout-icon/dividerLayout.svg.js +3 -0
  255. package/dist/src/components/assets/images/layout-icon/imageGalleryLayout1.png.js +3 -0
  256. package/dist/src/components/assets/images/layout-icon/imageGalleryLayout2.png.js +3 -0
  257. package/dist/src/components/assets/images/layout-icon/imageGalleryLayout3.png.js +3 -0
  258. package/dist/src/components/assets/images/layout-icon/layout-imagetext-m1-1.png.js +3 -0
  259. package/dist/src/components/assets/images/layout-icon/layout-imagetext-m1-2.png.js +3 -0
  260. package/dist/src/components/assets/images/layout-icon/layout-imagetext-m1-3.png.js +3 -0
  261. package/dist/src/components/assets/images/layout-icon/layout-imagetext-m2.png.js +3 -0
  262. package/dist/src/components/assets/images/layout-icon/layout-imagetext-m3.png.js +3 -0
  263. package/dist/src/components/assets/images/layout-icon/layout-imagetext-p1.png.js +3 -0
  264. package/dist/src/components/assets/images/layout-icon/layout-imagetext-p2.png.js +3 -0
  265. package/dist/src/components/assets/images/layout-icon/layout-imagetext-p4.png.js +3 -0
  266. package/dist/src/components/assets/images/layout-icon/layout-search.png.js +3 -0
  267. package/dist/src/components/assets/images/layout-icon/newsletter.svg.js +3 -0
  268. package/dist/src/components/assets/less/cylon-antd.less.js +3 -0
  269. package/dist/src/components/assets/less/index.less.js +4 -0
  270. package/dist/src/components/common/AlignSelector/index.js +65 -0
  271. package/dist/src/components/common/AlignSelector/index.less.js +4 -0
  272. package/dist/src/components/common/Button/index.js +75 -0
  273. package/dist/src/components/common/Button/index.less.js +4 -0
  274. package/dist/src/components/common/ButtonIconLayout/index.js +66 -0
  275. package/dist/src/components/common/ButtonIconLayout/index.less.js +4 -0
  276. package/dist/src/components/common/Collapse/index.js +323 -0
  277. package/dist/src/components/common/Collapse/index.less.js +4 -0
  278. package/dist/src/components/common/ColorPicker/index.js +94 -0
  279. package/dist/src/components/common/ColorPicker/index.less.js +4 -0
  280. package/dist/src/components/common/ColorPickerInput/index.js +76 -0
  281. package/dist/src/components/common/ColorPickerInput/index.less.js +4 -0
  282. package/dist/src/components/common/CountDown/index.js +110 -0
  283. package/dist/src/components/common/CountDown/index.less.js +4 -0
  284. package/dist/src/components/common/Field/index.js +43 -0
  285. package/dist/src/components/common/Field/index.less.js +4 -0
  286. package/dist/src/components/common/FontStyles/index.js +124 -0
  287. package/dist/src/components/common/FontStyles/index.less.js +4 -0
  288. package/dist/src/components/common/GroupList/defaultImg.png.js +3 -0
  289. package/dist/src/components/common/GroupList/index.js +170 -0
  290. package/dist/src/components/common/GroupList/index.less.js +4 -0
  291. package/dist/src/components/common/IconPicker/index.js +93 -0
  292. package/dist/src/components/common/IconPicker/index.less.js +4 -0
  293. package/dist/src/components/common/Iconfont/index.js +74 -0
  294. package/dist/src/components/common/Iconfont/index.less.js +4 -0
  295. package/dist/src/components/common/ImageModal/CommonModal/const.js +16 -0
  296. package/dist/src/components/common/ImageModal/CommonModal/index.js +33 -0
  297. package/dist/src/components/common/ImageModal/CommonSelPicCard/index.js +66 -0
  298. package/dist/src/components/common/ImageModal/CommonSelPicCard/index.less.js +4 -0
  299. package/dist/src/components/common/ImageModal/const.js +18 -0
  300. package/dist/src/components/common/ImageModal/index.js +547 -0
  301. package/dist/src/components/common/ImageModal/index.less.js +4 -0
  302. package/dist/src/components/common/ImagePicker/index.js +124 -0
  303. package/dist/src/components/common/ImagePicker/index.less.js +4 -0
  304. package/dist/src/components/common/InputNumber/index.js +54 -0
  305. package/dist/src/components/common/InputNumber/index.less.js +4 -0
  306. package/dist/src/components/common/LayoutSelector/imgs/center.png.js +3 -0
  307. package/dist/src/components/common/LayoutSelector/imgs/left.png.js +3 -0
  308. package/dist/src/components/common/LayoutSelector/imgs/right.png.js +3 -0
  309. package/dist/src/components/common/LayoutSelector/index.js +70 -0
  310. package/dist/src/components/common/LayoutSelector/index.less.js +4 -0
  311. package/dist/src/components/common/LinkModal/CatgTable/index.js +78 -0
  312. package/dist/src/components/common/LinkModal/CouponTable/index.js +111 -0
  313. package/dist/src/components/common/LinkModal/CustomTable/index.js +72 -0
  314. package/dist/src/components/common/LinkModal/FilteredProductModal/index.js +463 -0
  315. package/dist/src/components/common/LinkModal/FilteredProductModal/index.less.js +4 -0
  316. package/dist/src/components/common/LinkModal/FunctionTable/index.js +66 -0
  317. package/dist/src/components/common/LinkModal/ProductDetailPage/index.js +241 -0
  318. package/dist/src/components/common/LinkModal/ProductDetailPage/index.less.js +4 -0
  319. package/dist/src/components/common/LinkModal/index.js +112 -0
  320. package/dist/src/components/common/LinkModal/index.less.js +4 -0
  321. package/dist/src/components/common/NewImg/index.js +91 -0
  322. package/dist/src/components/common/ProductModal/index.js +556 -0
  323. package/dist/src/components/common/ProductModal/index.less.js +4 -0
  324. package/dist/src/components/common/ProductSource/index.js +91 -0
  325. package/dist/src/components/common/ProductSource/index.less.js +4 -0
  326. package/dist/src/components/common/RcCollapse/Collapse.js +176 -0
  327. package/dist/src/components/common/RcCollapse/Panel.js +146 -0
  328. package/dist/src/components/common/RcCollapse/PanelContent.js +41 -0
  329. package/dist/src/components/common/RcCollapse/index.js +6 -0
  330. package/dist/src/components/common/RcCollapse/index.less.js +4 -0
  331. package/dist/src/components/common/RcCollapse/motionUtil.js +37 -0
  332. package/dist/src/components/common/Slider/index.js +95 -0
  333. package/dist/src/components/common/Slider/index.less.js +4 -0
  334. package/dist/src/components/common/SwitchCollapse/index.js +162 -0
  335. package/dist/src/components/common/SwitchCollapse/index.less.js +4 -0
  336. package/dist/src/components/common/UrlPicker/index.js +81 -0
  337. package/dist/src/components/common/UrlPicker/index.less.js +4 -0
  338. package/dist/src/components/composite-comp/bol/components/Banner/defaultJSON.js +258 -0
  339. package/dist/src/components/composite-comp/bol/components/Banner/imgs/banner.png.js +3 -0
  340. package/dist/src/components/composite-comp/bol/components/Banner/index.js +34 -0
  341. package/dist/src/components/composite-comp/bol/components/Banner/mobile/index.js +176 -0
  342. package/dist/src/components/composite-comp/bol/components/Banner/mobile/index.less.js +4 -0
  343. package/dist/src/components/composite-comp/bol/components/Banner/pc/index.js +254 -0
  344. package/dist/src/components/composite-comp/bol/components/Banner/pc/index.less.js +4 -0
  345. package/dist/src/components/composite-comp/bol/components/Button/defaultJSON.js +93 -0
  346. package/dist/src/components/composite-comp/bol/components/Button/index.js +48 -0
  347. package/dist/src/components/composite-comp/bol/components/Button/index.less.js +4 -0
  348. package/dist/src/components/composite-comp/bol/components/Carousel/defaultJSON.js +287 -0
  349. package/dist/src/components/composite-comp/bol/components/Carousel/imgs/defaultImg.png.js +3 -0
  350. package/dist/src/components/composite-comp/bol/components/Carousel/index.js +37 -0
  351. package/dist/src/components/composite-comp/bol/components/Carousel/mobile/index.js +217 -0
  352. package/dist/src/components/composite-comp/bol/components/Carousel/mobile/index.less.js +4 -0
  353. package/dist/src/components/composite-comp/bol/components/Carousel/pc/index.js +208 -0
  354. package/dist/src/components/composite-comp/bol/components/Carousel/pc/index.less.js +4 -0
  355. package/dist/src/components/composite-comp/bol/components/Divider/defaultJSON.js +40 -0
  356. package/dist/src/components/composite-comp/bol/components/Divider/index.js +48 -0
  357. package/dist/src/components/composite-comp/bol/components/ImageGallery/defaultJSON.js +64 -0
  358. package/dist/src/components/composite-comp/bol/components/ImageGallery/index.js +30 -0
  359. package/dist/src/components/composite-comp/bol/components/ImageGallery/mobile/index.js +47 -0
  360. package/dist/src/components/composite-comp/bol/components/ImageGallery/mobile/index.less.js +4 -0
  361. package/dist/src/components/composite-comp/bol/components/ImageText/defaultJSON.js +540 -0
  362. package/dist/src/components/composite-comp/bol/components/ImageText/index.js +33 -0
  363. package/dist/src/components/composite-comp/bol/components/ImageText/mobile/index.js +145 -0
  364. package/dist/src/components/composite-comp/bol/components/ImageText/mobile/index.less.js +4 -0
  365. package/dist/src/components/composite-comp/bol/components/ImageText/pc/index.js +126 -0
  366. package/dist/src/components/composite-comp/bol/components/ImageText/pc/index.less.js +4 -0
  367. package/dist/src/components/composite-comp/bol/components/Newsletter/defaultJSON.js +114 -0
  368. package/dist/src/components/composite-comp/bol/components/Newsletter/index.js +65 -0
  369. package/dist/src/components/composite-comp/bol/components/Newsletter/index.less.js +4 -0
  370. package/dist/src/components/composite-comp/bol/components/Tag/defaultJSON.js +91 -0
  371. package/dist/src/components/composite-comp/bol/components/Tag/index.js +52 -0
  372. package/dist/src/components/composite-comp/bol/components/Tag/index.less.js +4 -0
  373. package/dist/src/components/composite-comp/bol/components/Text/defaultJSON.js +125 -0
  374. package/dist/src/components/composite-comp/bol/components/Text/index.js +68 -0
  375. package/dist/src/components/composite-comp/bol/components/Text/index.less.js +4 -0
  376. package/dist/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +73 -0
  377. package/dist/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less.js +4 -0
  378. package/dist/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +200 -0
  379. package/dist/src/components/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less.js +4 -0
  380. package/dist/src/components/composite-comp/bol/config-panels/BannerConfig/index.js +35 -0
  381. package/dist/src/components/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +79 -0
  382. package/dist/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png.js +3 -0
  383. package/dist/src/components/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png.js +3 -0
  384. package/dist/src/components/composite-comp/bol/config-panels/ButtonCompConfig/index.js +53 -0
  385. package/dist/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +91 -0
  386. package/dist/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +175 -0
  387. package/dist/src/components/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less.js +4 -0
  388. package/dist/src/components/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png.js +3 -0
  389. package/dist/src/components/composite-comp/bol/config-panels/CarouselConfig/index.js +54 -0
  390. package/dist/src/components/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +153 -0
  391. package/dist/src/components/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +66 -0
  392. package/dist/src/components/composite-comp/bol/config-panels/DividerConfig/index.js +44 -0
  393. package/dist/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +91 -0
  394. package/dist/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png.js +3 -0
  395. package/dist/src/components/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +44 -0
  396. package/dist/src/components/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +74 -0
  397. package/dist/src/components/composite-comp/bol/config-panels/ImageTextConfig/index.js +170 -0
  398. package/dist/src/components/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +143 -0
  399. package/dist/src/components/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +89 -0
  400. package/dist/src/components/composite-comp/bol/config-panels/NewsletterConfig/index.js +44 -0
  401. package/dist/src/components/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +88 -0
  402. package/dist/src/components/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png.js +3 -0
  403. package/dist/src/components/composite-comp/bol/config-panels/TagCompConfig/index.js +48 -0
  404. package/dist/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +79 -0
  405. package/dist/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +85 -0
  406. package/dist/src/components/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less.js +4 -0
  407. package/dist/src/components/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png.js +3 -0
  408. package/dist/src/components/composite-comp/bol/config-panels/TextCompConfig/index.js +55 -0
  409. package/dist/src/components/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +109 -0
  410. package/dist/src/components/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +107 -0
  411. package/dist/src/components/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +118 -0
  412. package/dist/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +79 -0
  413. package/dist/src/components/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +70 -0
  414. package/dist/src/components/composite-comp/common/components/ImageLabel/index.js +47 -0
  415. package/dist/src/components/composite-comp/common/components/ImageLabel/index.less.js +4 -0
  416. package/dist/src/components/composite-comp/common/components/ProductItem/index.js +121 -0
  417. package/dist/src/components/composite-comp/common/components/ProductItem/index.less.js +4 -0
  418. package/dist/src/components/composite-comp/common/config-panels/BackgroundConfig/index.js +89 -0
  419. package/dist/src/components/composite-comp/common/config-panels/CustomizeConfig/index.js +182 -0
  420. package/dist/src/components/composite-comp/common/config-panels/CustomizeConfig/index.less.js +4 -0
  421. package/dist/src/components/composite-comp/common/config-panels/SpacingConfig/index.js +133 -0
  422. package/dist/src/components/composite-comp/common/config-panels/SpacingConfig/index.less.js +4 -0
  423. package/dist/src/components/composite-comp/dito/components/FlashDeal/defaultJSON.js +176 -0
  424. package/dist/src/components/composite-comp/dito/components/FlashDeal/index.js +31 -0
  425. package/dist/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png.js +3 -0
  426. package/dist/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png.js +3 -0
  427. package/dist/src/components/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png.js +3 -0
  428. package/dist/src/components/composite-comp/dito/components/FlashDeal/mobile/index.js +233 -0
  429. package/dist/src/components/composite-comp/dito/components/FlashDeal/mobile/index.less.js +4 -0
  430. package/dist/src/components/composite-comp/dito/components/Recommend/defaultJSON.js +210 -0
  431. package/dist/src/components/composite-comp/dito/components/Recommend/index.js +31 -0
  432. package/dist/src/components/composite-comp/dito/components/Recommend/mobile/index.js +317 -0
  433. package/dist/src/components/composite-comp/dito/components/Recommend/mobile/index.less.js +4 -0
  434. package/dist/src/components/composite-comp/dito/components/SearchBar/defaultJSON.js +44 -0
  435. package/dist/src/components/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg.js +3 -0
  436. package/dist/src/components/composite-comp/dito/components/SearchBar/index.js +31 -0
  437. package/dist/src/components/composite-comp/dito/components/SearchBar/mobile/index.js +89 -0
  438. package/dist/src/components/composite-comp/dito/components/SearchBar/mobile/index.less.js +4 -0
  439. package/dist/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +121 -0
  440. package/dist/src/components/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +102 -0
  441. package/dist/src/components/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png.js +3 -0
  442. package/dist/src/components/composite-comp/dito/config-panels/FlashDealConfig/index.js +49 -0
  443. package/dist/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +97 -0
  444. package/dist/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +89 -0
  445. package/dist/src/components/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less.js +4 -0
  446. package/dist/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png.js +3 -0
  447. package/dist/src/components/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png.js +3 -0
  448. package/dist/src/components/composite-comp/dito/config-panels/RecommendConfig/index.js +49 -0
  449. package/dist/src/components/composite-comp/dito/config-panels/SearchBarConfig/index.js +115 -0
  450. package/dist/src/components/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +156 -0
  451. package/dist/src/components/constants/component-types.js +48 -0
  452. package/dist/src/components/constants/index.js +74 -0
  453. package/dist/src/components/constants/layout.js +90 -0
  454. package/dist/src/components/core/Designer/CompListPanel/CompCard/index.js +33 -0
  455. package/dist/src/components/core/Designer/CompListPanel/CompCard/index.less.js +4 -0
  456. package/dist/src/components/core/Designer/CompListPanel/index.js +109 -0
  457. package/dist/src/components/core/Designer/CompListPanel/index.less.js +4 -0
  458. package/dist/src/components/core/Designer/ConfigPanel/index.js +246 -0
  459. package/dist/src/components/core/Designer/ConfigPanel/index.less.js +4 -0
  460. package/dist/src/components/core/Designer/History/index.js +82 -0
  461. package/dist/src/components/core/Designer/PageCompList/index.js +248 -0
  462. package/dist/src/components/core/Designer/PageCompList/index.less.js +4 -0
  463. package/dist/src/components/core/Designer/QuickMenuBar/index.js +130 -0
  464. package/dist/src/components/core/Designer/QuickMenuBar/index.less.js +4 -0
  465. package/dist/src/components/core/Designer/ViewArea/index.js +86 -0
  466. package/dist/src/components/core/Designer/ViewArea/index.less.js +4 -0
  467. package/dist/src/components/core/Designer/index.js +364 -0
  468. package/dist/src/components/core/Designer/index.less.js +4 -0
  469. package/dist/src/components/core/Renderer/index.js +55 -0
  470. package/dist/src/components/decorator/compositeDecorator.js +94 -0
  471. package/dist/src/components/decorator/metaDecorator.js +150 -0
  472. package/dist/src/components/index.js +4 -0
  473. package/dist/src/components/meta-comp/components/Button/index.js +113 -0
  474. package/dist/src/components/meta-comp/components/Button/index.less.js +4 -0
  475. package/dist/src/components/meta-comp/components/Image/index.js +133 -0
  476. package/dist/src/components/meta-comp/components/Image/index.less.js +4 -0
  477. package/dist/src/components/meta-comp/components/Text/index.js +385 -0
  478. package/dist/src/components/meta-comp/components/Text/index.less.js +4 -0
  479. package/dist/src/components/meta-comp/config-panels/BaseConfig.js +47 -0
  480. package/dist/src/components/meta-comp/config-panels/ButtonConfig/index.js +308 -0
  481. package/dist/src/components/meta-comp/config-panels/ButtonConfig/index.less.js +4 -0
  482. package/dist/src/components/meta-comp/config-panels/ImageConfig/index.js +224 -0
  483. package/dist/src/components/meta-comp/config-panels/ImageConfig/index.less.js +4 -0
  484. package/dist/src/components/meta-comp/config-panels/TextConfig/index.js +310 -0
  485. package/dist/src/components/meta-comp/config-panels/TextConfig/index.less.js +4 -0
  486. package/dist/src/components/mobx/Store.js +88 -0
  487. package/dist/src/components/mobx/index.js +12 -0
  488. package/dist/src/components/utils/androidUtil.js +22 -0
  489. package/dist/src/components/utils/businessUtil.js +214 -0
  490. package/dist/src/components/utils/commonUtil.js +240 -0
  491. package/dist/src/components/utils/coreUtil.js +108 -0
  492. package/dist/src/components/utils/currencyUtil.js +110 -0
  493. package/dist/src/components/utils/dataTreeUtils.js +93 -0
  494. package/dist/src/components/utils/dateUtil.js +30 -0
  495. package/dist/src/components/utils/storeUtil.js +113 -0
  496. package/es/composite-comp/bol/components/Banner/imgs/banner.png +0 -0
  497. package/es/composite-comp/bol/components/Banner/mobile/index.js +216 -0
  498. package/es/composite-comp/bol/components/Banner/mobile/index.less +73 -0
  499. package/es/composite-comp/bol/components/Banner/pc/index.js +278 -0
  500. package/es/composite-comp/bol/components/Banner/pc/index.less +78 -0
  501. package/es/composite-comp/bol/components/Button/index.js +103 -0
  502. package/es/composite-comp/bol/components/Button/index.less +47 -0
  503. package/es/composite-comp/bol/components/Carousel/imgs/defaultImg.png +0 -0
  504. package/es/composite-comp/bol/components/Carousel/index.js +93 -0
  505. package/es/composite-comp/bol/components/Carousel/mobile/index.js +289 -0
  506. package/es/composite-comp/bol/components/Carousel/mobile/index.less +81 -0
  507. package/es/composite-comp/bol/components/Carousel/pc/index.js +250 -0
  508. package/es/composite-comp/bol/components/Carousel/pc/index.less +81 -0
  509. package/es/composite-comp/bol/components/Divider/index.js +101 -0
  510. package/es/composite-comp/bol/components/ImageGallery/imgs/banner.png +0 -0
  511. package/es/composite-comp/bol/components/ImageGallery/index.js +84 -0
  512. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +83 -0
  513. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +73 -0
  514. package/es/composite-comp/bol/components/ImageText/index.js +88 -0
  515. package/es/composite-comp/bol/components/ImageText/mobile/index.js +183 -0
  516. package/es/composite-comp/bol/components/ImageText/mobile/index.less +288 -0
  517. package/es/composite-comp/bol/components/ImageText/pc/index.js +180 -0
  518. package/es/composite-comp/bol/components/ImageText/pc/index.less +110 -0
  519. package/es/composite-comp/bol/components/Newsletter/index.js +127 -0
  520. package/es/composite-comp/bol/components/Newsletter/index.less +75 -0
  521. package/es/composite-comp/bol/components/Tag/index.js +107 -0
  522. package/es/composite-comp/bol/components/Tag/index.less +34 -0
  523. package/es/composite-comp/bol/components/Text/index.js +123 -0
  524. package/es/composite-comp/bol/components/Text/index.less +61 -0
  525. package/es/composite-comp/bol/components/Text/slice.svg +1 -0
  526. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +126 -0
  527. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less +16 -0
  528. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +225 -0
  529. package/es/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less +9 -0
  530. package/es/composite-comp/bol/config-panels/BannerConfig/index.js +46 -0
  531. package/es/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +99 -0
  532. package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/defaultImg.png +0 -0
  533. package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
  534. package/es/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
  535. package/es/composite-comp/bol/config-panels/ButtonCompConfig/index.js +67 -0
  536. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +144 -0
  537. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.less +0 -0
  538. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +199 -0
  539. package/es/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less +9 -0
  540. package/es/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png +0 -0
  541. package/es/composite-comp/bol/config-panels/CarouselConfig/index.js +68 -0
  542. package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +98 -0
  543. package/es/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.less +9 -0
  544. package/es/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +177 -0
  545. package/es/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +89 -0
  546. package/es/composite-comp/bol/config-panels/DividerConfig/index.js +57 -0
  547. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +144 -0
  548. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.less +0 -0
  549. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png +0 -0
  550. package/es/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +57 -0
  551. package/es/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +126 -0
  552. package/es/composite-comp/bol/config-panels/ImageTextConfig/index.js +196 -0
  553. package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +185 -0
  554. package/es/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +111 -0
  555. package/es/composite-comp/bol/config-panels/NewsletterConfig/index.js +57 -0
  556. package/es/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +109 -0
  557. package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/defaultImg.png +0 -0
  558. package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
  559. package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout2.png +0 -0
  560. package/es/composite-comp/bol/config-panels/TagCompConfig/index.js +61 -0
  561. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +99 -0
  562. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.less +0 -0
  563. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +138 -0
  564. package/es/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less +16 -0
  565. package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/defaultImg.png +0 -0
  566. package/es/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  567. package/es/composite-comp/bol/config-panels/TextCompConfig/index.js +69 -0
  568. package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +151 -0
  569. package/es/composite-comp/bol/second-config-panels/BannerSecondConfig/index.less +3 -0
  570. package/es/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +162 -0
  571. package/es/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +82 -0
  572. package/es/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +143 -0
  573. package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +99 -0
  574. package/es/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.less +0 -0
  575. package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +90 -0
  576. package/es/composite-comp/bol/second-config-panels/TextSecondConfig/index.less +3 -0
  577. package/es/composite-comp/common/components/ImageLabel/index.js +90 -0
  578. package/es/composite-comp/common/components/ImageLabel/index.less +35 -0
  579. package/es/composite-comp/common/components/ProductItem/index.js +191 -0
  580. package/es/composite-comp/common/components/ProductItem/index.less +121 -0
  581. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +109 -0
  582. package/es/composite-comp/common/config-panels/CustomizeConfig/index.js +234 -0
  583. package/es/composite-comp/common/config-panels/CustomizeConfig/index.less +21 -0
  584. package/es/composite-comp/common/config-panels/SpacingConfig/index.js +154 -0
  585. package/es/composite-comp/common/config-panels/SpacingConfig/index.less +17 -0
  586. package/es/composite-comp/dito/components/FlashDeal/index.js +86 -0
  587. package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png +0 -0
  588. package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png +0 -0
  589. package/es/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png +0 -0
  590. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +436 -0
  591. package/es/composite-comp/dito/components/FlashDeal/mobile/index.less +94 -0
  592. package/es/composite-comp/dito/components/Recommend/index.js +86 -0
  593. package/es/composite-comp/dito/components/Recommend/mobile/imgs/defImg1.png +0 -0
  594. package/es/composite-comp/dito/components/Recommend/mobile/imgs/defImg2.png +0 -0
  595. package/es/composite-comp/dito/components/Recommend/mobile/imgs/defImg3.png +0 -0
  596. package/es/composite-comp/dito/components/Recommend/mobile/index.js +530 -0
  597. package/es/composite-comp/dito/components/Recommend/mobile/index.less +79 -0
  598. package/es/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg +6 -0
  599. package/es/composite-comp/dito/components/SearchBar/index.js +86 -0
  600. package/es/composite-comp/dito/components/SearchBar/mobile/index.js +108 -0
  601. package/es/composite-comp/dito/components/SearchBar/mobile/index.less +38 -0
  602. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +143 -0
  603. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -0
  604. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +125 -0
  605. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.less +0 -0
  606. package/es/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png +0 -0
  607. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +62 -0
  608. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +118 -0
  609. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.less +0 -0
  610. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +143 -0
  611. package/es/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less +16 -0
  612. package/es/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png +0 -0
  613. package/es/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png +0 -0
  614. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +62 -0
  615. package/es/composite-comp/dito/config-panels/SearchBarConfig/index.js +138 -0
  616. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +185 -0
  617. package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +3 -0
  618. package/es/core/Designer/CompListPanel/CompCard/index.js +42 -0
  619. package/es/core/Designer/CompListPanel/CompCard/index.less +69 -0
  620. package/es/meta-comp/components/Image/index.less +18 -0
  621. package/es/meta-comp/components/Text/index.less +38 -0
  622. package/es/meta-comp/config-panels/ButtonConfig/index.less +4 -0
  623. package/es/meta-comp/config-panels/ImageConfig/index.less +16 -0
  624. package/es/meta-comp/config-panels/TextConfig/index.less +24 -0
  625. package/lib/composite-comp/bol/components/Banner/imgs/banner.png +0 -0
  626. package/lib/composite-comp/bol/components/Banner/mobile/index.js +216 -0
  627. package/lib/composite-comp/bol/components/Banner/mobile/index.less +73 -0
  628. package/lib/composite-comp/bol/components/Banner/pc/index.js +278 -0
  629. package/lib/composite-comp/bol/components/Banner/pc/index.less +78 -0
  630. package/lib/composite-comp/bol/components/Button/index.less +47 -0
  631. package/lib/composite-comp/bol/components/Carousel/imgs/defaultImg.png +0 -0
  632. package/lib/composite-comp/bol/components/Carousel/index.js +93 -0
  633. package/lib/composite-comp/bol/components/Carousel/mobile/index.js +289 -0
  634. package/lib/composite-comp/bol/components/Carousel/mobile/index.less +81 -0
  635. package/lib/composite-comp/bol/components/Carousel/pc/index.js +250 -0
  636. package/lib/composite-comp/bol/components/Carousel/pc/index.less +81 -0
  637. package/lib/composite-comp/bol/components/Divider/index.js +101 -0
  638. package/lib/composite-comp/bol/components/ImageGallery/imgs/banner.png +0 -0
  639. package/lib/composite-comp/bol/components/ImageGallery/index.js +84 -0
  640. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +83 -0
  641. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +73 -0
  642. package/lib/composite-comp/bol/components/ImageText/index.js +88 -0
  643. package/lib/composite-comp/bol/components/ImageText/mobile/index.js +183 -0
  644. package/lib/composite-comp/bol/components/ImageText/mobile/index.less +288 -0
  645. package/lib/composite-comp/bol/components/ImageText/pc/index.js +180 -0
  646. package/lib/composite-comp/bol/components/ImageText/pc/index.less +110 -0
  647. package/lib/composite-comp/bol/components/Newsletter/index.js +127 -0
  648. package/lib/composite-comp/bol/components/Newsletter/index.less +75 -0
  649. package/lib/composite-comp/bol/components/Tag/index.js +107 -0
  650. package/lib/composite-comp/bol/components/Tag/index.less +34 -0
  651. package/lib/composite-comp/bol/components/Text/index.js +123 -0
  652. package/lib/composite-comp/bol/components/Text/index.less +61 -0
  653. package/lib/composite-comp/bol/components/Text/slice.svg +1 -0
  654. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.js +126 -0
  655. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigGroup/index.less +16 -0
  656. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.js +225 -0
  657. package/lib/composite-comp/bol/config-panels/BannerConfig/BannerConfigSetting/index.less +9 -0
  658. package/lib/composite-comp/bol/config-panels/BannerConfig/index.js +46 -0
  659. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/ButtonConfigContent/index.js +99 -0
  660. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/defaultImg.png +0 -0
  661. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout1.png +0 -0
  662. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/imgs/layout2.png +0 -0
  663. package/lib/composite-comp/bol/config-panels/ButtonCompConfig/index.js +67 -0
  664. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.js +144 -0
  665. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigImageGroup/index.less +0 -0
  666. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.js +199 -0
  667. package/lib/composite-comp/bol/config-panels/CarouselConfig/CarouselConfigSetting/index.less +9 -0
  668. package/lib/composite-comp/bol/config-panels/CarouselConfig/imgs/defaultImg.png +0 -0
  669. package/lib/composite-comp/bol/config-panels/CarouselConfig/index.js +68 -0
  670. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.js +98 -0
  671. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerConfigSetting/index.less +9 -0
  672. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerContentSetting/index.js +177 -0
  673. package/lib/composite-comp/bol/config-panels/DividerConfig/DividerSpacingSetting/index.js +89 -0
  674. package/lib/composite-comp/bol/config-panels/DividerConfig/index.js +57 -0
  675. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.js +144 -0
  676. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/ImageGalleryConfigImageGroup/index.less +0 -0
  677. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/imgs/defaultImg.png +0 -0
  678. package/lib/composite-comp/bol/config-panels/ImageGalleryConfig/index.js +57 -0
  679. package/lib/composite-comp/bol/config-panels/ImageTextConfig/ImageTextConfigGroup/index.js +126 -0
  680. package/lib/composite-comp/bol/config-panels/ImageTextConfig/index.js +196 -0
  681. package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +185 -0
  682. package/lib/composite-comp/bol/config-panels/NewsletterConfig/NewsletterContentSetting/index.js +111 -0
  683. package/lib/composite-comp/bol/config-panels/NewsletterConfig/index.js +57 -0
  684. package/lib/composite-comp/bol/config-panels/TagCompConfig/TagConfigContent/index.js +109 -0
  685. package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/defaultImg.png +0 -0
  686. package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
  687. package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout2.png +0 -0
  688. package/lib/composite-comp/bol/config-panels/TagCompConfig/index.js +61 -0
  689. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.js +99 -0
  690. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigContent/index.less +0 -0
  691. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.js +138 -0
  692. package/lib/composite-comp/bol/config-panels/TextCompConfig/TextConfigGroup/index.less +16 -0
  693. package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/defaultImg.png +0 -0
  694. package/lib/composite-comp/bol/config-panels/TextCompConfig/imgs/layout1.png +0 -0
  695. package/lib/composite-comp/bol/config-panels/TextCompConfig/index.js +69 -0
  696. package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.js +151 -0
  697. package/lib/composite-comp/bol/second-config-panels/BannerSecondConfig/index.less +3 -0
  698. package/lib/composite-comp/bol/second-config-panels/CarouselSecondConfig/index.js +162 -0
  699. package/lib/composite-comp/bol/second-config-panels/ImageGallerySecondConfig/index.js +82 -0
  700. package/lib/composite-comp/bol/second-config-panels/ImageTextSecondConfig/index.js +143 -0
  701. package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.js +99 -0
  702. package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/TextContentConfigContent/index.less +0 -0
  703. package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.js +90 -0
  704. package/lib/composite-comp/bol/second-config-panels/TextSecondConfig/index.less +3 -0
  705. package/lib/composite-comp/common/components/ImageLabel/index.js +90 -0
  706. package/lib/composite-comp/common/components/ImageLabel/index.less +35 -0
  707. package/lib/composite-comp/common/components/ProductItem/index.js +191 -0
  708. package/lib/composite-comp/common/components/ProductItem/index.less +121 -0
  709. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +109 -0
  710. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.js +234 -0
  711. package/lib/composite-comp/common/config-panels/CustomizeConfig/index.less +21 -0
  712. package/lib/composite-comp/common/config-panels/SpacingConfig/index.js +154 -0
  713. package/lib/composite-comp/common/config-panels/SpacingConfig/index.less +17 -0
  714. package/lib/composite-comp/dito/components/FlashDeal/index.js +86 -0
  715. package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg1.png +0 -0
  716. package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg2.png +0 -0
  717. package/lib/composite-comp/dito/components/FlashDeal/mobile/imgs/defImg3.png +0 -0
  718. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +436 -0
  719. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.less +94 -0
  720. package/lib/composite-comp/dito/components/Recommend/index.js +86 -0
  721. package/lib/composite-comp/dito/components/Recommend/mobile/imgs/defImg1.png +0 -0
  722. package/lib/composite-comp/dito/components/Recommend/mobile/imgs/defImg2.png +0 -0
  723. package/lib/composite-comp/dito/components/Recommend/mobile/imgs/defImg3.png +0 -0
  724. package/lib/composite-comp/dito/components/Recommend/mobile/index.js +530 -0
  725. package/lib/composite-comp/dito/components/Recommend/mobile/index.less +79 -0
  726. package/lib/composite-comp/dito/components/SearchBar/imgs/dito-logo.svg +6 -0
  727. package/lib/composite-comp/dito/components/SearchBar/index.js +86 -0
  728. package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +108 -0
  729. package/lib/composite-comp/dito/components/SearchBar/mobile/index.less +38 -0
  730. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.js +143 -0
  731. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigContent/index.less +0 -0
  732. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +125 -0
  733. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.less +0 -0
  734. package/lib/composite-comp/dito/config-panels/FlashDealConfig/imgs/layout1.png +0 -0
  735. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +62 -0
  736. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.js +118 -0
  737. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigContent/index.less +0 -0
  738. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.js +143 -0
  739. package/lib/composite-comp/dito/config-panels/RecommendConfig/RecommendConfigGroup/index.less +16 -0
  740. package/lib/composite-comp/dito/config-panels/RecommendConfig/imgs/defaultImg.png +0 -0
  741. package/lib/composite-comp/dito/config-panels/RecommendConfig/imgs/layout1.png +0 -0
  742. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +62 -0
  743. package/lib/composite-comp/dito/config-panels/SearchBarConfig/index.js +138 -0
  744. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +185 -0
  745. package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.less +3 -0
  746. package/lib/core/Designer/CompListPanel/CompCard/index.js +42 -0
  747. package/lib/core/Designer/CompListPanel/CompCard/index.less +69 -0
  748. package/lib/meta-comp/components/Button/index.less +19 -0
  749. package/lib/meta-comp/components/Image/index.less +18 -0
  750. package/lib/meta-comp/components/Text/index.less +38 -0
  751. package/lib/meta-comp/config-panels/ButtonConfig/index.less +4 -0
  752. package/lib/meta-comp/config-panels/ImageConfig/index.less +16 -0
  753. package/lib/meta-comp/config-panels/TextConfig/index.less +24 -0
  754. package/package.json +1 -1
@@ -0,0 +1,145 @@
1
+ import { __extends } from '../../../../../../../my_my_node_modules/tslib/tslib.es6.js';
2
+ import React__default from 'react';
3
+ import classNames from '../../../../../../../my_my_node_modules/classnames/index.js';
4
+ import './index.less.js';
5
+ import { alignItemMap } from '../../../../../common/AlignSelector/index.js';
6
+ import Text from '../../../../../meta-comp/components/Text/index.js';
7
+ import Button from '../../../../../meta-comp/components/Button/index.js';
8
+ import Image from '../../../../../meta-comp/components/Image/index.js';
9
+ import { computeStyle } from '../../../../../utils/businessUtil.js';
10
+
11
+ var maxWidthAndHeight = {
12
+ normal1: 60,
13
+ normal2: 375,
14
+ normal3: 107,
15
+ outsideM: 60,
16
+ centerM: 60
17
+ };
18
+
19
+ var ImageTextMobile =
20
+ /** @class */
21
+ function (_super) {
22
+ __extends(ImageTextMobile, _super);
23
+
24
+ function ImageTextMobile() {
25
+ var _this = _super !== null && _super.apply(this, arguments) || this;
26
+
27
+ _this.calcWidth = function (num) {
28
+ return "".concat((100 - (num - 1) * 2) / num, "%");
29
+ };
30
+
31
+ _this.getCardStyle = function (source, i) {
32
+ var data = _this.props.data;
33
+ var cardStyle = {
34
+ textAlign: data.customize.align
35
+ };
36
+
37
+ if (data.customize.layout.h5Layout !== 'centerM' && data.customize.layout.h5Layout !== 'normal1') {
38
+ cardStyle.alignItems = alignItemMap[data.customize.align];
39
+ }
40
+
41
+ if (data.customize.layout.h5Layout === 'normal3') {
42
+ cardStyle.width = _this.calcWidth(data.customize.rowNum);
43
+ cardStyle.marginRight = (1 + i) % data.customize.rowNum !== 0 ? '2%' : 0;
44
+ }
45
+
46
+ if (source.background.bgType == 'color') {
47
+ cardStyle.backgroundColor = source.background.color;
48
+ cardStyle.opacity = source.background.opacity ? source.background.opacity : 1;
49
+ } else {
50
+ cardStyle.backgroundImage = "url(".concat(source.background.image, ")");
51
+ cardStyle.backgroundPosition = 'center';
52
+ }
53
+
54
+ return cardStyle;
55
+ };
56
+
57
+ return _this;
58
+ }
59
+
60
+ ImageTextMobile.prototype.render = function () {
61
+ var _this = this;
62
+
63
+ var data = this.props.data; // const { ready } = this.state;
64
+ // console.log('----imagetext mobile', data);
65
+
66
+ var wrapStyle = computeStyle(data, window.magicDesign.device);
67
+ wrapStyle.textAlign = data.customize.align; // if (data.background.bgType === 'color') {
68
+ // wrapStyle.backgroundColor = data.background.color;
69
+ // wrapStyle.opacity = data.background.opacity ? data.background.opacity : 1;
70
+ // } else {
71
+ // wrapStyle.backgroundImage = `url(${data.background.image})`;
72
+ // wrapStyle.backgroundPosition = 'center';
73
+ // }
74
+
75
+ var cardBtnStyle = {};
76
+
77
+ if (data.customize.layout.h5Layout === 'normal3') {
78
+ cardBtnStyle.alignItems = alignItemMap[data.customize.align];
79
+ }
80
+
81
+ if (data.customize.layout.h5Layout === 'normal2' || data.customize.layout.h5Layout === 'normal1' || data.customize.layout.h5Layout === 'outsideM') {
82
+ cardBtnStyle.justifyContent = alignItemMap[data.customize.align];
83
+ }
84
+
85
+ return /*#__PURE__*/React__default.createElement("div", {
86
+ className: classNames('image-text-mobile', data.customize.layout.h5Layout),
87
+ style: wrapStyle
88
+ }, (data === null || data === void 0 ? void 0 : data.groupSource.length) > 0 && /*#__PURE__*/React__default.createElement("div", {
89
+ className: "group-wrap"
90
+ }, data.groupSource.map(function (source, i) {
91
+ return /*#__PURE__*/React__default.createElement("div", {
92
+ key: source.id,
93
+ className: data.groupSource.length > data.customize.rowNum ? 'one-card card-margin-bottom' : 'one-card',
94
+ style: _this.getCardStyle(source, i)
95
+ }, source.image.open && data.customize.layout.h5Layout !== 'centerM' && /*#__PURE__*/React__default.createElement("div", {
96
+ className: "card-image-wrap"
97
+ }, /*#__PURE__*/React__default.createElement(Image, {
98
+ className: "card-image",
99
+ data: source.image,
100
+ limitWidthHeight: true,
101
+ maxHeight: maxWidthAndHeight[data.customize.layout.h5Layout],
102
+ maxWidth: maxWidthAndHeight[data.customize.layout.h5Layout]
103
+ })), /*#__PURE__*/React__default.createElement("div", {
104
+ className: "card-content-wrap"
105
+ }, data.customize.layout.h5Layout === 'centerM' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, source.title.open && /*#__PURE__*/React__default.createElement(Text, {
106
+ className: "card-title",
107
+ data: source.title
108
+ }), /*#__PURE__*/React__default.createElement("div", {
109
+ className: "image-subtext-wrap"
110
+ }, source.image.open && /*#__PURE__*/React__default.createElement("div", {
111
+ className: "card-image-wrap"
112
+ }, /*#__PURE__*/React__default.createElement(Image, {
113
+ className: "card-image",
114
+ data: source.image,
115
+ limitWidthHeight: true,
116
+ maxHeight: 110
117
+ })), source.text.open && /*#__PURE__*/React__default.createElement(Text, {
118
+ className: "card-text",
119
+ data: source.text
120
+ }))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, source.title.open && /*#__PURE__*/React__default.createElement(Text, {
121
+ className: "card-title",
122
+ data: source.title
123
+ }), source.text.open && /*#__PURE__*/React__default.createElement(Text, {
124
+ className: "card-text",
125
+ data: source.text
126
+ })), /*#__PURE__*/React__default.createElement("div", {
127
+ className: "card-btn-wrap",
128
+ style: cardBtnStyle
129
+ }, source.button.open && /*#__PURE__*/React__default.createElement(Button, {
130
+ className: "card-first-btn",
131
+ data: source.button
132
+ }), source.secondButton.open && /*#__PURE__*/React__default.createElement(Button, {
133
+ className: "card-second-btn",
134
+ data: source.secondButton
135
+ }))));
136
+ })));
137
+ };
138
+
139
+ ImageTextMobile.defaultProps = {
140
+ data: {}
141
+ };
142
+ return ImageTextMobile;
143
+ }(React__default.Component);
144
+
145
+ export { ImageTextMobile as default };
@@ -0,0 +1,4 @@
1
+ import styleInject from '../../../../../../../my_my_node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".index_image-text-mobile__wcodl {\n padding: 17px 0;\n}\n.index_image-text-mobile__wcodl .index_headline__C24a8 {\n margin-bottom: 8px;\n}\n.index_image-text-mobile__wcodl .index_subtitle__rrdfn {\n margin-bottom: 36px;\n}\n.index_image-text-mobile__wcodl .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-btn-wrap__jdwtW .index_card-first-btn__LiSqH,\n.index_image-text-mobile__wcodl .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-btn-wrap__jdwtW .index_card-second-btn__XqmWw {\n width: fit-content;\n}\n.index_image-text-mobile__wcodl .index_btn-wrap__1Cgdm {\n display: flex;\n width: 100%;\n justify-content: center;\n}\n.index_image-text-mobile__wcodl .index_btn-wrap__1Cgdm .index_first-btn__ZCEBD {\n margin-top: 36px;\n}\n.index_image-text-mobile__wcodl .index_btn-wrap__1Cgdm .index_second-btn__jaGp6 {\n margin-top: 36px;\n margin-left: 12px;\n}\n.index_normal1__-DEkH .index_group-wrap__ByNFt {\n padding: 0 15px;\n width: 100%;\n}\n.index_normal1__-DEkH .index_group-wrap__ByNFt .index_one-card__mEbCD {\n display: flex;\n align-items: stretch;\n padding: 18px;\n margin-bottom: 8px;\n}\n.index_normal1__-DEkH .index_group-wrap__ByNFt .index_one-card__mEbCD:last-of-type {\n margin-bottom: 0;\n}\n.index_normal1__-DEkH .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-image-wrap__r9cJr {\n flex-shrink: 0;\n margin-right: 12px;\n}\n.index_normal1__-DEkH .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.index_normal1__-DEkH .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-title__ZPyCN {\n margin-bottom: 6px;\n}\n.index_normal1__-DEkH .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-text__2Ntaj {\n margin-bottom: 12px;\n}\n.index_normal1__-DEkH .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-btn-wrap__jdwtW {\n display: flex;\n}\n.index_normal1__-DEkH .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-btn-wrap__jdwtW .index_card-first-btn__LiSqH {\n margin-right: 12px;\n}\n.index_normal2__8GWwi .index_group-wrap__ByNFt {\n width: 100%;\n padding: 0 15px;\n}\n.index_normal2__8GWwi .index_group-wrap__ByNFt .index_one-card__mEbCD {\n width: 100%;\n padding: 20px 16px;\n margin-bottom: 36px;\n}\n.index_normal2__8GWwi .index_group-wrap__ByNFt .index_one-card__mEbCD:last-of-type {\n margin-bottom: 0;\n}\n.index_normal2__8GWwi .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-image-wrap__r9cJr .index_card-image__NBvlh {\n width: fit-content;\n margin: 0 auto;\n}\n.index_normal2__8GWwi .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-title__ZPyCN {\n margin-bottom: 8px;\n}\n.index_normal2__8GWwi .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-text__2Ntaj {\n margin-bottom: 16px;\n}\n.index_normal2__8GWwi .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-btn-wrap__jdwtW {\n display: flex;\n}\n.index_normal2__8GWwi .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-btn-wrap__jdwtW .index_card-first-btn__LiSqH {\n margin-right: 12px;\n}\n.index_normal3__oZf6b .index_group-wrap__ByNFt {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n padding: 0 15px;\n}\n.index_normal3__oZf6b .index_group-wrap__ByNFt .index_one-card__mEbCD {\n display: flex;\n flex-direction: column;\n}\n.index_normal3__oZf6b .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-image-wrap__r9cJr {\n width: 100%;\n}\n.index_normal3__oZf6b .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-image-wrap__r9cJr .index_card-image__NBvlh {\n width: fit-content;\n margin: 0 auto 7px;\n}\n.index_normal3__oZf6b .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-title__ZPyCN {\n margin-bottom: 4px;\n}\n.index_normal3__oZf6b .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-text__2Ntaj {\n margin-bottom: 7px;\n}\n.index_normal3__oZf6b .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-btn-wrap__jdwtW {\n display: flex;\n flex-direction: column;\n}\n.index_normal3__oZf6b .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-second-btn__XqmWw {\n margin-top: 8px;\n}\n.index_normal3__oZf6b .index_group-wrap__ByNFt .index_card-margin-bottom__D6rgm {\n margin-bottom: 10px;\n}\n.index_outsideM__g6TyU .index_group-wrap__ByNFt {\n padding: 0 15px;\n width: 100%;\n}\n.index_outsideM__g6TyU .index_group-wrap__ByNFt .index_one-card__mEbCD {\n margin-top: 35px;\n position: relative;\n padding: 30px 10px 20px 36px;\n}\n.index_outsideM__g6TyU .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-image-wrap__r9cJr {\n position: absolute;\n left: 18px;\n top: 0;\n transform: translateY(-50%);\n}\n.index_outsideM__g6TyU .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-title__ZPyCN {\n margin-bottom: 4px;\n}\n.index_outsideM__g6TyU .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-text__2Ntaj {\n margin-bottom: 12px;\n}\n.index_outsideM__g6TyU .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-btn-wrap__jdwtW {\n display: flex;\n}\n.index_outsideM__g6TyU .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-btn-wrap__jdwtW .index_card-first-btn__LiSqH {\n margin-right: 12px;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt {\n position: relative;\n width: 100%;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt::before {\n content: '';\n position: absolute;\n width: 1px;\n height: 100%;\n border-right: 1px dashed #D2D9E5;\n left: 50%;\n transform: translateX(-50%);\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD {\n width: calc((100% - 1px)/2);\n position: relative;\n padding: 0 14px 16px;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD::before {\n content: '';\n position: absolute;\n border-radius: 50%;\n background: #2F54EB;\n width: 10px;\n height: 10px;\n z-index: 10;\n border: 2px solid #CCE3FF;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n-1) {\n left: 0;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n-1)::before {\n right: -5px;\n top: 5px;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n-1) .index_card-content-wrap__4JBAu {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n-1) .index_card-content-wrap__4JBAu .index_card-title__ZPyCN,\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n-1) .index_card-content-wrap__4JBAu .index_card-text__2Ntaj {\n text-align: right !important;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n-1) .index_card-content-wrap__4JBAu .index_image-subtext-wrap__c0fgm {\n flex-direction: row-reverse;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n-1) .index_card-content-wrap__4JBAu .index_image-subtext-wrap__c0fgm .index_card-image-wrap__r9cJr {\n margin-left: 8px;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n-1) .index_card-content-wrap__4JBAu .index_card-btn-wrap__jdwtW {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n) {\n left: 50%;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n)::before {\n left: -5px;\n top: 5px;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n) .index_card-content-wrap__4JBAu .index_card-title__ZPyCN,\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n) .index_card-content-wrap__4JBAu .index_card-text__2Ntaj {\n text-align: left !important;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD:nth-of-type(2n) .index_card-content-wrap__4JBAu .index_image-subtext-wrap__c0fgm .index_card-image-wrap__r9cJr {\n margin-right: 8px;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-title__ZPyCN {\n margin-bottom: 10px;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_image-subtext-wrap__c0fgm {\n display: flex;\n margin-bottom: 20px;\n align-items: center;\n}\n.index_centerM__M3UWG .index_group-wrap__ByNFt .index_one-card__mEbCD .index_card-content-wrap__4JBAu .index_card-btn-wrap__jdwtW .index_card-second-btn__XqmWw {\n margin-top: 12px;\n}\n";
4
+ styleInject(css_248z);
@@ -0,0 +1,126 @@
1
+ import { __extends, __assign } from '../../../../../../../my_my_node_modules/tslib/tslib.es6.js';
2
+ import React__default from 'react';
3
+ import './index.less.js';
4
+ import classNames from '../../../../../../../my_my_node_modules/classnames/index.js';
5
+ import { alignItemMap } from '../../../../../common/AlignSelector/index.js';
6
+ import Text from '../../../../../meta-comp/components/Text/index.js';
7
+ import Button from '../../../../../meta-comp/components/Button/index.js';
8
+ import Image from '../../../../../meta-comp/components/Image/index.js';
9
+ import { computeStyle } from '../../../../../utils/businessUtil.js';
10
+
11
+ var maxWidthAndHeight = {
12
+ normal: 410,
13
+ outside: 100,
14
+ center: 410
15
+ };
16
+
17
+ var ImageTextPc =
18
+ /** @class */
19
+ function (_super) {
20
+ __extends(ImageTextPc, _super);
21
+
22
+ function ImageTextPc() {
23
+ var _this = _super !== null && _super.apply(this, arguments) || this;
24
+
25
+ _this.state = {
26
+ hoverState: false
27
+ }; // componentDidMount() {
28
+ // this.distroy = autorun(() => {
29
+ // this.setState({
30
+ // clickedGroup: store.clickedGroup,
31
+ // });
32
+ // });
33
+ // }
34
+ // componentWillUnmount() {
35
+ // this.distroy();
36
+ // }
37
+
38
+ _this.calcWidth = function (num) {
39
+ return "".concat((100 - (num - 1) * 2) / num, "%");
40
+ };
41
+
42
+ _this.getCardStyle = function (source, i) {
43
+ var data = _this.props.data;
44
+ var cardStyle = {
45
+ width: _this.calcWidth(data.customize.pcRowNum),
46
+ marginRight: (1 + i) % data.customize.pcRowNum !== 0 ? '2%' : 0,
47
+ alignItems: alignItemMap[data.customize.align],
48
+ textAlign: data.customize.align
49
+ };
50
+ var wrapStyle = computeStyle(source, window.magicDesign.device);
51
+ return __assign(__assign({}, cardStyle), wrapStyle);
52
+ };
53
+
54
+ return _this;
55
+ }
56
+
57
+ ImageTextPc.prototype.render = function () {
58
+ var _this = this;
59
+
60
+ var data = this.props.data;
61
+ this.state.hoverState;
62
+ console.log('====================================');
63
+ console.log(data);
64
+ console.log('====================================');
65
+ var wrapStyle = computeStyle(data, window.magicDesign.device);
66
+ wrapStyle.alignItems = alignItemMap[data.customize.align];
67
+ return /*#__PURE__*/React__default.createElement("div", {
68
+ className: classNames('image-text-pc', data.customize.layout.pcLayout),
69
+ style: wrapStyle
70
+ }, (data === null || data === void 0 ? void 0 : data.groupSource.length) > 0 && /*#__PURE__*/React__default.createElement("div", {
71
+ className: "group-wrap"
72
+ }, data.groupSource.map(function (source, i) {
73
+ return /*#__PURE__*/React__default.createElement("div", {
74
+ key: source.id,
75
+ className: data.groupSource.length > data.customize.pcRowNum ? 'one-card card-margin-bottom' : 'one-card',
76
+ onMouseEnter: function () {
77
+ if (source.hover.open) {
78
+ _this.setState({
79
+ hoverState: true
80
+ });
81
+ }
82
+ },
83
+ onMouseLeave: function () {
84
+ _this.setState({
85
+ hoverState: false
86
+ });
87
+ },
88
+ style: _this.getCardStyle(source, i)
89
+ }, source.title.open && data.customize.layout.pcLayout === 'center' && /*#__PURE__*/React__default.createElement(Text, {
90
+ className: "card-title",
91
+ data: source.title
92
+ }), source.image.open && /*#__PURE__*/React__default.createElement("div", {
93
+ className: "card-image-wrap"
94
+ }, /*#__PURE__*/React__default.createElement(Image, {
95
+ className: "card-image",
96
+ data: source.image,
97
+ limitWidthHeight: true,
98
+ maxHeight: maxWidthAndHeight[data.customize.layout.pcLayout],
99
+ maxWidth: maxWidthAndHeight[data.customize.layout.pcLayout]
100
+ })), source.title.open && data.customize.layout.pcLayout !== 'center' && /*#__PURE__*/React__default.createElement(Text, {
101
+ className: "card-title",
102
+ data: source.title
103
+ }), source.text.open && /*#__PURE__*/React__default.createElement(Text, {
104
+ className: "card-text",
105
+ data: source.text
106
+ }), /*#__PURE__*/React__default.createElement("div", {
107
+ className: classNames({
108
+ 'card-btn-wrap': data.customize.pcRowNum <= 3
109
+ })
110
+ }, source.button.open && /*#__PURE__*/React__default.createElement(Button, {
111
+ className: "card-first-btn",
112
+ data: source.button
113
+ }), source.secondButton.open && /*#__PURE__*/React__default.createElement(Button, {
114
+ className: "card-second-btn",
115
+ data: source.secondButton
116
+ })));
117
+ })));
118
+ };
119
+
120
+ ImageTextPc.defaultProps = {
121
+ data: {}
122
+ };
123
+ return ImageTextPc;
124
+ }(React__default.Component);
125
+
126
+ export { ImageTextPc as default };
@@ -0,0 +1,4 @@
1
+ import styleInject from '../../../../../../../my_my_node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".index_image-text-pc__U30U8 {\n display: flex;\n flex-direction: column;\n padding: 17px 70px;\n}\n.index_image-text-pc__U30U8 .index_headline__CyykA {\n margin-bottom: 8px;\n}\n.index_image-text-pc__U30U8 .index_subtitle__qXvkY {\n margin-bottom: 36px;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK {\n display: flex;\n flex-wrap: wrap;\n width: 100%;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_one-card__NWols {\n display: flex;\n flex-direction: column;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-image-wrap__EE8VR {\n width: 100%;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-image-wrap__EE8VR .index_card-image__mLns4 {\n width: fit-content;\n margin: 0 auto 7px;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-title__GZL0K {\n margin-bottom: 4px;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-text__byGz2 {\n margin-bottom: 7px;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-btn-wrap__xfbbO {\n width: fit-content;\n display: flex;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-btn-wrap__xfbbO .index_card-first-btn__VJL1d {\n margin-right: 12px;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-btn-wrap__xfbbO .index_card-second-btn__kwtrw {\n margin-top: 0;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-first-btn__VJL1d {\n width: fit-content;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-second-btn__kwtrw {\n margin-top: 8px;\n width: fit-content;\n}\n.index_image-text-pc__U30U8 .index_group-wrap__Kb8tK .index_card-margin-bottom__Wt1F5 {\n margin-bottom: 10px;\n}\n.index_image-text-pc__U30U8 .index_btn-wrap__-p9e8 {\n width: 100%;\n display: flex;\n justify-content: center;\n}\n.index_image-text-pc__U30U8 .index_btn-wrap__-p9e8 > div {\n margin-right: 12px;\n}\n.index_image-text-pc__U30U8 .index_btn-wrap__-p9e8 > div:last-of-type {\n margin-right: 0;\n}\n.index_image-text-pc__U30U8 .index_btn-wrap__-p9e8 .index_first-btn__D9m7W {\n margin-top: 36px;\n}\n.index_image-text-pc__U30U8 .index_btn-wrap__-p9e8 .index_second-btn__w7JgY {\n margin-top: 36px;\n}\n.index_normal__xHk2t .index_group-wrap__Kb8tK .index_one-card__NWols {\n padding: 40px 24px;\n}\n.index_outside__-x9jW .index_group-wrap__Kb8tK .index_one-card__NWols {\n padding: 40px 24px 24px;\n position: relative;\n margin-top: 40px;\n}\n.index_outside__-x9jW .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-image-wrap__EE8VR .index_card-image__mLns4 {\n position: absolute;\n top: 0;\n transform: translateY(-50%);\n left: 24px;\n}\n.index_center__LBeZ- .index_group-wrap__Kb8tK .index_one-card__NWols {\n padding: 20px 20px;\n}\n.index_center__LBeZ- .index_group-wrap__Kb8tK .index_one-card__NWols .index_card-title__GZL0K {\n margin-bottom: 10px;\n}\n";
4
+ styleInject(css_248z);
@@ -0,0 +1,114 @@
1
+ import { __assign } from '../../../../../../my_my_node_modules/tslib/tslib.es6.js';
2
+ import uuid_1 from '../../../../../../my_my_node_modules/uuid/index.js';
3
+
4
+ /**
5
+ * 获取 text 元组件json
6
+ */
7
+
8
+ var getDefaultMetaTextJson = function () {
9
+ return {
10
+ id: uuid_1.v4(),
11
+ open: true,
12
+ type: 'Text',
13
+ specialContent: [],
14
+ text: 'Thank you for you subscription',
15
+ content: {
16
+ sizeType: 'Customize font styles',
17
+ fontFamily: 'Open Sans',
18
+ fontWeight: 400,
19
+ fontSize: 14,
20
+ color: '#8493AF'
21
+ },
22
+ underline: {
23
+ open: false,
24
+ textDecorationColor: '',
25
+ textDecorationStyle: 'solid'
26
+ },
27
+ vertical: {
28
+ open: false,
29
+ lineHeight: 18
30
+ }
31
+ };
32
+ };
33
+ /**
34
+ * 获取 text 元组件json
35
+ */
36
+
37
+
38
+ var getDefaultMetaButtonJson = function () {
39
+ return {
40
+ id: uuid_1.v4(),
41
+ open: true,
42
+ content: {
43
+ url: '',
44
+ backgroundColor: '#2F54EB'
45
+ },
46
+ buttonText: {
47
+ sizeType: 'Customize font styles',
48
+ fontFamily: 'Open Sans',
49
+ fontWeight: 600,
50
+ fontSize: 14,
51
+ fontStyle: 'normal',
52
+ color: '#fff',
53
+ padding: '12px 30px'
54
+ },
55
+ buttonBorder: {
56
+ open: true,
57
+ borderColor: '',
58
+ borderRadius: 8
59
+ },
60
+ buttonIcon: {
61
+ iconUrl: '',
62
+ layout: 'right'
63
+ },
64
+ text: 'Subscribe',
65
+ hover: null
66
+ };
67
+ };
68
+
69
+ var getDefaultJSON = function () {
70
+ return {
71
+ id: uuid_1.v4(),
72
+ type: 'NEWSLETTER',
73
+ content: {
74
+ inputField: {
75
+ open: true,
76
+ type: 'InputField',
77
+ placeholder: 'Email Address',
78
+ content: {
79
+ sizeType: 'Customize font styles',
80
+ fontFamily: 'Open Sans',
81
+ fontWeight: 600,
82
+ fontSize: 16,
83
+ color: '#CE1126'
84
+ }
85
+ },
86
+ button: __assign({}, getDefaultMetaButtonJson()),
87
+ confirmation: __assign({}, getDefaultMetaTextJson())
88
+ },
89
+ spacing: {
90
+ pc: {
91
+ paddingTop: 10,
92
+ paddingBottom: 10,
93
+ marginBottom: 0
94
+ },
95
+ mobile: {
96
+ paddingTop: 10,
97
+ paddingBottom: 10,
98
+ marginBottom: 0
99
+ }
100
+ },
101
+ customize: {
102
+ layout: 'layout1',
103
+ align: 'center'
104
+ },
105
+ background: {
106
+ opacity: 100,
107
+ color: '#fff',
108
+ image: '',
109
+ bgType: 'color'
110
+ }
111
+ };
112
+ };
113
+
114
+ export { getDefaultJSON };
@@ -0,0 +1,65 @@
1
+ import { __extends, __assign } from '../../../../../../my_my_node_modules/tslib/tslib.es6.js';
2
+ import React__default, { Component } from 'react';
3
+ import classNames from '../../../../../../my_my_node_modules/classnames/index.js';
4
+ import { getDefaultJSON } from './defaultJSON.js';
5
+ import Text, { contentStyle } from '../../../../meta-comp/components/Text/index.js';
6
+ import Button from '../../../../meta-comp/components/Button/index.js';
7
+ import '../../../../meta-comp/components/Image/index.js';
8
+ import './index.less.js';
9
+ import { computeStyle } from '../../../../utils/businessUtil.js';
10
+
11
+ var Newsletter =
12
+ /** @class */
13
+ function (_super) {
14
+ __extends(Newsletter, _super);
15
+
16
+ function Newsletter() {
17
+ return _super !== null && _super.apply(this, arguments) || this;
18
+ }
19
+
20
+ Newsletter.prototype.render = function () {
21
+ var _a;
22
+
23
+ var nodeData = this.props.nodeData; // const wrapStyle = {};
24
+ // if (nodeData.background.bgType === 'color') {
25
+ // wrapStyle.backgroundColor = nodeData.background.color;
26
+ // wrapStyle.opacity = nodeData.background.opacity ? nodeData.background.opacity : 1;
27
+ // } else {
28
+ // wrapStyle.backgroundImage = `url(${nodeData.background.image})`;
29
+ // wrapStyle.backgroundPosition = 'center';
30
+ // }
31
+
32
+ var wrapStyle = computeStyle(nodeData, window.magicDesign.device);
33
+
34
+ var style = __assign({}, contentStyle(nodeData.content.inputField.content));
35
+
36
+ Reflect.deleteProperty(style, 'width');
37
+ return /*#__PURE__*/React__default.createElement("div", {
38
+ className: classNames('newsletter-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a[window.magicDesign.device] = true, _a)),
39
+ onClick: this.onComponentClick,
40
+ style: wrapStyle
41
+ }, /*#__PURE__*/React__default.createElement("div", {
42
+ className: "top-wrap"
43
+ }, nodeData.content.inputField.open && /*#__PURE__*/React__default.createElement("div", {
44
+ className: "input-wrap"
45
+ }, /*#__PURE__*/React__default.createElement("input", {
46
+ placeholder: nodeData.content.inputField.placeholder,
47
+ style: style,
48
+ type: "text"
49
+ })), nodeData.content.inputField.open && /*#__PURE__*/React__default.createElement("div", {
50
+ className: "btn-wrap"
51
+ }, /*#__PURE__*/React__default.createElement(Button, {
52
+ data: nodeData.content.button
53
+ }))), nodeData.content.button.open && /*#__PURE__*/React__default.createElement("div", {
54
+ className: "confirmation-text"
55
+ }, /*#__PURE__*/React__default.createElement(Text, {
56
+ data: nodeData.content.confirmation
57
+ })));
58
+ };
59
+
60
+ Newsletter.type = 'NEWSLETTER';
61
+ Newsletter.getDefaultJSON = getDefaultJSON;
62
+ return Newsletter;
63
+ }(Component);
64
+
65
+ export { Newsletter as default };
@@ -0,0 +1,4 @@
1
+ import styleInject from '../../../../../../my_my_node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".index_newsletter-wrap__f0Sjc {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n.index_newsletter-wrap__f0Sjc .index_top-wrap__-xnJZ {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n padding: 0 20px;\n}\n.index_newsletter-wrap__f0Sjc .index_top-wrap__-xnJZ .index_input-wrap__MZj-C input {\n border: 1px solid #D2D9E5;\n width: 600px;\n height: 56px;\n padding: 0 20px;\n border-radius: 8px;\n background-color: #fff;\n}\n.index_newsletter-wrap__f0Sjc .index_top-wrap__-xnJZ .index_btn-wrap__u-LM- {\n margin-left: 12px;\n}\n.index_newsletter-wrap__f0Sjc .index_confirmation-text__ZMmib {\n margin-top: 12px;\n}\n.index_newsletter-wrap__f0Sjc.index_layout1__c6SFz {\n flex-direction: column;\n}\n.index_newsletter-wrap__f0Sjc.index_layout1__c6SFz.index_left__VGwZJ {\n align-items: flex-start;\n}\n.index_newsletter-wrap__f0Sjc.index_layout1__c6SFz.index_left__VGwZJ .index_top-wrap__-xnJZ {\n justify-content: flex-start;\n}\n.index_newsletter-wrap__f0Sjc.index_layout1__c6SFz.index_center__FNodw {\n align-items: center;\n}\n.index_newsletter-wrap__f0Sjc.index_layout1__c6SFz.index_center__FNodw .index_top-wrap__-xnJZ {\n justify-content: center;\n}\n.index_newsletter-wrap__f0Sjc.index_layout1__c6SFz.index_right__S7rnh {\n align-items: flex-end;\n}\n.index_newsletter-wrap__f0Sjc.index_layout1__c6SFz.index_right__S7rnh .index_top-wrap__-xnJZ {\n justify-content: flex-end;\n}\n.index_newsletter-wrap__f0Sjc.index_mobile__TS-KA .index_input-wrap__MZj-C input {\n border: 1px solid #D2D9E5;\n width: 100%;\n height: 48px;\n border-radius: 8px;\n background-color: #fff;\n}\n";
4
+ styleInject(css_248z);
@@ -0,0 +1,91 @@
1
+ import { __assign } from '../../../../../../my_my_node_modules/tslib/tslib.es6.js';
2
+ import uuid_1 from '../../../../../../my_my_node_modules/uuid/index.js';
3
+
4
+ /**
5
+ * 获取 text 元组件json
6
+ */
7
+
8
+ var getDefaultMetaButtonJson = function () {
9
+ return {
10
+ id: uuid_1.v4(),
11
+ open: true,
12
+ content: {
13
+ url: '',
14
+ backgroundColor: '#e6eaf0'
15
+ },
16
+ buttonText: {
17
+ sizeType: 'Customize font styles',
18
+ fontFamily: 'Open Sans',
19
+ fontWeight: 600,
20
+ fontSize: 12,
21
+ fontStyle: 'normal',
22
+ color: '#8493AF',
23
+ padding: '2px 8px'
24
+ },
25
+ buttonBorder: {
26
+ open: true,
27
+ borderColor: '',
28
+ borderRadius: 4
29
+ },
30
+ buttonIcon: {
31
+ iconUrl: '',
32
+ layout: 'right'
33
+ },
34
+ text: 'Button Tag',
35
+ hover: null
36
+ };
37
+ };
38
+
39
+ var getDefaultJSON = function () {
40
+ return {
41
+ id: uuid_1.v4(),
42
+ type: 'TAG',
43
+ content: {
44
+ image: {
45
+ id: uuid_1.v4(),
46
+ open: false,
47
+ type: 'IMAGE',
48
+ content: {
49
+ h5Name: '',
50
+ pcName: '',
51
+ h5ImgSrc: '',
52
+ pcImgSrc: '',
53
+ clickUrl: ''
54
+ },
55
+ hover: {
56
+ open: false,
57
+ backgroundType: 'enlarge',
58
+ magnification: 1.5,
59
+ pcImgHoverUrl: '',
60
+ h5ImgHoverUrl: ''
61
+ }
62
+ },
63
+ button: __assign({}, getDefaultMetaButtonJson()),
64
+ secondaryButton: __assign({}, getDefaultMetaButtonJson())
65
+ },
66
+ spacing: {
67
+ pc: {
68
+ paddingTop: 10,
69
+ paddingBottom: 10,
70
+ marginBottom: 0
71
+ },
72
+ mobile: {
73
+ paddingTop: 10,
74
+ paddingBottom: 10,
75
+ marginBottom: 0
76
+ }
77
+ },
78
+ customize: {
79
+ layout: 'layout1',
80
+ align: 'center'
81
+ },
82
+ background: {
83
+ opacity: 100,
84
+ color: '#F2F2F2',
85
+ image: '',
86
+ bgType: 'color'
87
+ }
88
+ };
89
+ };
90
+
91
+ export { getDefaultJSON };
@@ -0,0 +1,52 @@
1
+ import { __extends, __decorate } from '../../../../../../my_my_node_modules/tslib/tslib.es6.js';
2
+ import React__default, { Component } from 'react';
3
+ import classNames from '../../../../../../my_my_node_modules/classnames/index.js';
4
+ import { getDefaultJSON } from './defaultJSON.js';
5
+ import '../../../../meta-comp/components/Text/index.js';
6
+ import Button from '../../../../meta-comp/components/Button/index.js';
7
+ import Image from '../../../../meta-comp/components/Image/index.js';
8
+ import compositeDecorator from '../../../../decorator/compositeDecorator.js';
9
+ import { computeStyle } from '../../../../utils/businessUtil.js';
10
+ import './index.less.js';
11
+
12
+ var Tag =
13
+ /** @class */
14
+ function (_super) {
15
+ __extends(Tag, _super);
16
+
17
+ function Tag() {
18
+ return _super !== null && _super.apply(this, arguments) || this;
19
+ }
20
+
21
+ Tag.prototype.render = function () {
22
+ var _a;
23
+
24
+ var nodeData = this.props.nodeData;
25
+ var wrapStyle = computeStyle(nodeData, window.magicDesign.device);
26
+ return /*#__PURE__*/React__default.createElement("div", {
27
+ className: classNames('tag-comp-wrap', (_a = {}, _a[nodeData.customize.layout] = true, _a[nodeData.customize.align] = true, _a)),
28
+ onClick: this.onComponentClick,
29
+ style: wrapStyle
30
+ }, nodeData.content.image.open && /*#__PURE__*/React__default.createElement("div", {
31
+ className: "tag-image"
32
+ }, /*#__PURE__*/React__default.createElement(Image, {
33
+ data: nodeData.content.image
34
+ })), nodeData.content.button.open && /*#__PURE__*/React__default.createElement("div", {
35
+ className: "first-button"
36
+ }, /*#__PURE__*/React__default.createElement(Button, {
37
+ data: nodeData.content.button
38
+ })), nodeData.content.secondaryButton.open && /*#__PURE__*/React__default.createElement("div", {
39
+ className: "secondary-button"
40
+ }, /*#__PURE__*/React__default.createElement(Button, {
41
+ data: nodeData.content.secondaryButton
42
+ })));
43
+ };
44
+
45
+ Tag.defaultProps = {};
46
+ Tag.type = 'TAG';
47
+ Tag.getDefaultJSON = getDefaultJSON;
48
+ Tag = __decorate([compositeDecorator], Tag);
49
+ return Tag;
50
+ }(Component);
51
+
52
+ export { Tag as default };
@@ -0,0 +1,4 @@
1
+ import styleInject from '../../../../../../my_my_node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".index_tag-comp-wrap__UjbcC {\n display: flex;\n align-items: center;\n}\n.index_tag-comp-wrap__UjbcC .index_tag-image__5FKgB {\n width: 26px;\n height: 26px;\n}\n.index_tag-comp-wrap__UjbcC .index_first-button__SE0VE {\n margin: 5px;\n}\n.index_tag-comp-wrap__UjbcC .index_secondary-button__T8X9y {\n margin: 5px;\n}\n.index_tag-comp-wrap__UjbcC.index_layout1__NKtEQ {\n flex-direction: row;\n}\n.index_tag-comp-wrap__UjbcC.index_layout1__NKtEQ.index_left__ra7iR {\n justify-content: flex-start;\n}\n.index_tag-comp-wrap__UjbcC.index_layout1__NKtEQ.index_center__TNrNg {\n justify-content: center;\n}\n.index_tag-comp-wrap__UjbcC.index_layout1__NKtEQ.index_right__T9842 {\n justify-content: flex-end;\n}\n";
4
+ styleInject(css_248z);