pb-sxp-ui 1.0.2 → 1.0.3-alpha.2

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 (182) hide show
  1. package/dist/index.cjs +3624 -1460
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +143 -245
  4. package/dist/index.js +3625 -1461
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -5
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -5
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +3624 -1460
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -5
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/SxpPageCore/index.d.ts +1 -0
  15. package/es/core/components/SxpPageCore/index.js +2 -2
  16. package/es/core/components/SxpPageRender/ExpandableText.d.ts +1 -0
  17. package/es/core/components/SxpPageRender/ExpandableText.js +17 -10
  18. package/es/core/components/SxpPageRender/Hashtag/index.d.ts +2 -1
  19. package/es/core/components/SxpPageRender/Hashtag/index.js +3 -3
  20. package/es/core/components/SxpPageRender/Modal/index.d.ts +2 -0
  21. package/es/core/components/SxpPageRender/Modal/index.js +7 -4
  22. package/es/core/components/SxpPageRender/Navbar.d.ts +1 -0
  23. package/es/core/components/SxpPageRender/Navbar.js +3 -2
  24. package/es/core/components/SxpPageRender/Nudge/index.d.ts +24 -0
  25. package/es/core/components/SxpPageRender/Nudge/index.js +13 -0
  26. package/es/core/components/SxpPageRender/PictureGroup/index.js +11 -7
  27. package/es/core/components/SxpPageRender/Popup/index.js +3 -3
  28. package/es/core/components/SxpPageRender/VideoWidget/index.js +30 -21
  29. package/es/core/components/SxpPageRender/WaterFall/List.d.ts +2 -1
  30. package/es/core/components/SxpPageRender/WaterFall/List.js +24 -14
  31. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.d.ts +2 -1
  32. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +17 -14
  33. package/es/core/components/SxpPageRender/WaterFall/index.d.ts +2 -1
  34. package/es/core/components/SxpPageRender/WaterFall/index.js +4 -3
  35. package/es/core/components/SxpPageRender/WaterFall/preview.json +1242 -0
  36. package/es/core/components/SxpPageRender/index.d.ts +22 -1
  37. package/es/core/components/SxpPageRender/index.js +22 -19
  38. package/es/core/components/SxpPageRender/typing.d.ts +1 -0
  39. package/es/core/components/SxpPageRender/useIconLink.d.ts +1 -1
  40. package/es/core/components/SxpPageRender/useIconLink.js +8 -3
  41. package/es/core/context/EditorContext.d.ts +5 -0
  42. package/es/core/context/EditorContext.js +21 -3
  43. package/es/core/context/EditorDataProvider.d.ts +3 -1
  44. package/es/core/context/EditorDataProvider.js +5 -2
  45. package/es/core/context/SxpDataSourceProvider.d.ts +2 -0
  46. package/es/core/context/SxpDataSourceProvider.js +8 -4
  47. package/es/core/create.d.ts +1 -1
  48. package/es/materials/sxp/HashTag/index.d.ts +14 -0
  49. package/es/materials/sxp/HashTag/index.js +6 -0
  50. package/es/materials/sxp/HashTag/material.d.ts +2 -0
  51. package/es/materials/sxp/HashTag/material.js +52 -0
  52. package/es/materials/sxp/HashTag/settingRender.d.ts +122 -0
  53. package/es/materials/sxp/HashTag/settingRender.js +153 -0
  54. package/es/materials/sxp/index.d.ts +1 -0
  55. package/es/materials/sxp/index.js +1 -0
  56. package/es/materials/sxp/popup/CommodityDetail/index.d.ts +20 -1
  57. package/es/materials/sxp/popup/CommodityDetail/index.js +44 -21
  58. package/es/materials/sxp/popup/CommodityDetail/material.js +36 -1
  59. package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +134 -0
  60. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +167 -0
  61. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +13 -1
  62. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +20 -17
  63. package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +46 -1
  64. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +134 -0
  65. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +171 -0
  66. package/es/materials/sxp/popup/index.d.ts +0 -1
  67. package/es/materials/sxp/popup/index.js +0 -1
  68. package/es/materials/sxp/template/Appoint/index.d.ts +2 -0
  69. package/es/materials/sxp/template/Appoint/index.js +4 -18
  70. package/es/materials/sxp/template/Appoint/material.js +22 -6
  71. package/es/materials/sxp/template/Commodity/index.d.ts +2 -0
  72. package/es/materials/sxp/template/Commodity/index.js +5 -22
  73. package/es/materials/sxp/template/Commodity/material.js +31 -6
  74. package/es/materials/sxp/template/CommodityDiro/index.d.ts +2 -0
  75. package/es/materials/sxp/template/CommodityDiro/index.js +5 -24
  76. package/es/materials/sxp/template/CommodityDiro/material.js +30 -5
  77. package/es/materials/sxp/template/CommodityDiroNew/index.d.ts +2 -0
  78. package/es/materials/sxp/template/CommodityDiroNew/index.js +5 -24
  79. package/es/materials/sxp/template/CommodityDiroNew/material.js +32 -6
  80. package/es/materials/sxp/template/Link/index.d.ts +2 -0
  81. package/es/materials/sxp/template/Link/index.js +4 -13
  82. package/es/materials/sxp/template/Link/material.js +22 -5
  83. package/es/materials/sxp/template/MultiCommodity/index.d.ts +2 -0
  84. package/es/materials/sxp/template/MultiCommodity/index.js +8 -24
  85. package/es/materials/sxp/template/MultiCommodity/material.js +30 -5
  86. package/es/materials/sxp/template/MultiCommodityDiro/index.d.ts +2 -0
  87. package/es/materials/sxp/template/MultiCommodityDiro/index.js +8 -27
  88. package/es/materials/sxp/template/MultiCommodityDiro/material.js +31 -6
  89. package/es/materials/sxp/template/MultiCommodityDiroNew/index.d.ts +2 -0
  90. package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +8 -25
  91. package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +32 -6
  92. package/es/materials/sxp/template/components/EventProvider.d.ts +2 -1
  93. package/es/materials/sxp/template/components/EventProvider.js +5 -4
  94. package/es/materials/sxp/template/components/settingRender.d.ts +123 -0
  95. package/es/materials/sxp/template/components/settingRender.js +215 -0
  96. package/es/materials/sxp/template/components/typing.d.ts +6 -0
  97. package/es/materials/sxp/template/components/typing.js +1 -0
  98. package/lib/core/components/SxpPageCore/index.d.ts +1 -0
  99. package/lib/core/components/SxpPageCore/index.js +2 -2
  100. package/lib/core/components/SxpPageRender/ExpandableText.d.ts +1 -0
  101. package/lib/core/components/SxpPageRender/ExpandableText.js +17 -10
  102. package/lib/core/components/SxpPageRender/Hashtag/index.d.ts +2 -1
  103. package/lib/core/components/SxpPageRender/Hashtag/index.js +3 -3
  104. package/lib/core/components/SxpPageRender/Modal/index.d.ts +2 -0
  105. package/lib/core/components/SxpPageRender/Modal/index.js +7 -4
  106. package/lib/core/components/SxpPageRender/Navbar.d.ts +1 -0
  107. package/lib/core/components/SxpPageRender/Navbar.js +3 -2
  108. package/lib/core/components/SxpPageRender/Nudge/index.d.ts +24 -0
  109. package/lib/core/components/SxpPageRender/Nudge/index.js +16 -0
  110. package/lib/core/components/SxpPageRender/PictureGroup/index.js +10 -6
  111. package/lib/core/components/SxpPageRender/Popup/index.js +3 -3
  112. package/lib/core/components/SxpPageRender/VideoWidget/index.js +30 -21
  113. package/lib/core/components/SxpPageRender/WaterFall/List.d.ts +2 -1
  114. package/lib/core/components/SxpPageRender/WaterFall/List.js +23 -14
  115. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.d.ts +2 -1
  116. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +15 -13
  117. package/lib/core/components/SxpPageRender/WaterFall/index.d.ts +2 -1
  118. package/lib/core/components/SxpPageRender/WaterFall/index.js +4 -3
  119. package/lib/core/components/SxpPageRender/WaterFall/preview.json +1242 -0
  120. package/lib/core/components/SxpPageRender/index.d.ts +22 -1
  121. package/lib/core/components/SxpPageRender/index.js +22 -19
  122. package/lib/core/components/SxpPageRender/typing.d.ts +1 -0
  123. package/lib/core/components/SxpPageRender/useIconLink.d.ts +1 -1
  124. package/lib/core/components/SxpPageRender/useIconLink.js +8 -3
  125. package/lib/core/context/EditorContext.d.ts +5 -0
  126. package/lib/core/context/EditorContext.js +21 -3
  127. package/lib/core/context/EditorDataProvider.d.ts +3 -1
  128. package/lib/core/context/EditorDataProvider.js +4 -1
  129. package/lib/core/context/SxpDataSourceProvider.d.ts +2 -0
  130. package/lib/core/context/SxpDataSourceProvider.js +8 -4
  131. package/lib/core/create.d.ts +1 -1
  132. package/lib/materials/sxp/HashTag/index.d.ts +14 -0
  133. package/lib/materials/sxp/HashTag/index.js +9 -0
  134. package/lib/materials/sxp/HashTag/material.d.ts +2 -0
  135. package/lib/materials/sxp/HashTag/material.js +56 -0
  136. package/lib/materials/sxp/HashTag/settingRender.d.ts +122 -0
  137. package/lib/materials/sxp/HashTag/settingRender.js +155 -0
  138. package/lib/materials/sxp/index.d.ts +1 -0
  139. package/lib/materials/sxp/index.js +1 -0
  140. package/lib/materials/sxp/popup/CommodityDetail/index.d.ts +20 -1
  141. package/lib/materials/sxp/popup/CommodityDetail/index.js +43 -20
  142. package/lib/materials/sxp/popup/CommodityDetail/material.js +36 -1
  143. package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +134 -0
  144. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +169 -0
  145. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +13 -1
  146. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +20 -17
  147. package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +46 -1
  148. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +134 -0
  149. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +173 -0
  150. package/lib/materials/sxp/popup/index.d.ts +0 -1
  151. package/lib/materials/sxp/popup/index.js +0 -1
  152. package/lib/materials/sxp/template/Appoint/index.d.ts +2 -0
  153. package/lib/materials/sxp/template/Appoint/index.js +4 -18
  154. package/lib/materials/sxp/template/Appoint/material.js +22 -6
  155. package/lib/materials/sxp/template/Commodity/index.d.ts +2 -0
  156. package/lib/materials/sxp/template/Commodity/index.js +5 -22
  157. package/lib/materials/sxp/template/Commodity/material.js +31 -6
  158. package/lib/materials/sxp/template/CommodityDiro/index.d.ts +2 -0
  159. package/lib/materials/sxp/template/CommodityDiro/index.js +5 -24
  160. package/lib/materials/sxp/template/CommodityDiro/material.js +30 -5
  161. package/lib/materials/sxp/template/CommodityDiroNew/index.d.ts +2 -0
  162. package/lib/materials/sxp/template/CommodityDiroNew/index.js +5 -24
  163. package/lib/materials/sxp/template/CommodityDiroNew/material.js +32 -6
  164. package/lib/materials/sxp/template/Link/index.d.ts +2 -0
  165. package/lib/materials/sxp/template/Link/index.js +4 -13
  166. package/lib/materials/sxp/template/Link/material.js +22 -5
  167. package/lib/materials/sxp/template/MultiCommodity/index.d.ts +2 -0
  168. package/lib/materials/sxp/template/MultiCommodity/index.js +7 -23
  169. package/lib/materials/sxp/template/MultiCommodity/material.js +30 -5
  170. package/lib/materials/sxp/template/MultiCommodityDiro/index.d.ts +2 -0
  171. package/lib/materials/sxp/template/MultiCommodityDiro/index.js +7 -26
  172. package/lib/materials/sxp/template/MultiCommodityDiro/material.js +31 -6
  173. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.d.ts +2 -0
  174. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +7 -24
  175. package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +32 -6
  176. package/lib/materials/sxp/template/components/EventProvider.d.ts +2 -1
  177. package/lib/materials/sxp/template/components/EventProvider.js +4 -3
  178. package/lib/materials/sxp/template/components/settingRender.d.ts +123 -0
  179. package/lib/materials/sxp/template/components/settingRender.js +217 -0
  180. package/lib/materials/sxp/template/components/typing.d.ts +6 -0
  181. package/lib/materials/sxp/template/components/typing.js +2 -0
  182. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { ICtaTempStylesType } from '../components/typing';
2
3
  import { RecItemType } from '../../../../core/components/SxpPageRender/typing';
3
4
  export interface IMultiCommodityDiroNewProps {
4
5
  content?: string;
@@ -7,6 +8,7 @@ export interface IMultiCommodityDiroNewProps {
7
8
  recData?: RecItemType;
8
9
  onClick?: () => void;
9
10
  bottom_image?: string;
11
+ ctaTempStyles?: ICtaTempStylesType;
10
12
  }
11
13
  declare const _default: React.NamedExoticComponent<IMultiCommodityDiroNewProps>;
12
14
  export default _default;
@@ -11,8 +11,9 @@ const index_module_less_1 = tslib_1.__importDefault(require("./index.module.less
11
11
  const hooks_1 = require("../../../../core/hooks");
12
12
  const MultiCommodityDiroNew = (_a) => {
13
13
  var _b, _c;
14
- var { content, style, bgImg, recData, onClick, bottom_image } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image"]);
14
+ var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles } = _a, props = tslib_1.__rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles"]);
15
15
  const { ctaEvent, setPopupDetailData, sxpParameter } = (0, hooks_1.useSxpDataSource)();
16
+ const { popupAni } = (0, hooks_1.useEditor)();
16
17
  const [products, setProducts] = (0, react_1.useState)((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
17
18
  const handleClick = (0, lodash_1.throttle)((item) => {
18
19
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
@@ -21,19 +22,11 @@ const MultiCommodityDiroNew = (_a) => {
21
22
  }, recData, item);
22
23
  setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
23
24
  onClick === null || onClick === void 0 ? void 0 : onClick();
24
- }, 1200);
25
+ }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
25
26
  return (react_1.default.createElement(Scroll_1.default, null, products === null || products === void 0 ? void 0 : products.map((item) => {
26
27
  var _a, _b, _c, _d, _e, _f;
27
- return (react_1.default.createElement(react_2.SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: (0, css_1.css)(Object.assign(Object.assign({}, style), { maxWidth: '260px', width: '100%', flexShrink: 0, padding: '4px', background: 'rgba(255,255,255,0.75)' })) }, props, { onClick: () => handleClick(item) }),
28
- react_1.default.createElement("div", { className: (0, css_1.css)({
29
- width: '78px',
30
- height: '78px',
31
- marginRight: '16px',
32
- borderRadius: '8px',
33
- overflow: 'hidden',
34
- flexShrink: 0,
35
- backgroundColor: '#f2f2f2'
36
- }) },
28
+ return (react_1.default.createElement(react_2.SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: (0, css_1.css)(Object.assign({ flexShrink: 0 }, style)), style: { display: 'flex' } }, props, { onClick: () => handleClick(item) }),
29
+ react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
37
30
  react_1.default.createElement(Img_1.default, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
38
31
  react_1.default.createElement("div", { className: (0, css_1.css)({
39
32
  color: '#fff',
@@ -44,18 +37,8 @@ const MultiCommodityDiroNew = (_a) => {
44
37
  overflow: 'hidden',
45
38
  lineHeight: '20px'
46
39
  }) },
47
- react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'] }, (_d = item === null || item === void 0 ? void 0 : item.title) !== null && _d !== void 0 ? _d : 'Product Name'),
48
- react_1.default.createElement("div", { className: (0, css_1.css)({
49
- fontSize: '13px',
50
- fontWeight: 'bold',
51
- textOverflow: 'ellipsis',
52
- overflow: 'hidden',
53
- width: 'fit-content',
54
- maxWidth: '100%',
55
- whiteSpace: 'nowrap',
56
- textDecoration: 'underline',
57
- color: '#000'
58
- }) }, (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop now'))));
40
+ react_1.default.createElement("div", { className: index_module_less_1.default['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title }, (_d = item === null || item === void 0 ? void 0 : item.title) !== null && _d !== void 0 ? _d : 'Product Name'),
41
+ react_1.default.createElement("div", { className: (0, css_1.css)(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop now'))));
59
42
  })));
60
43
  };
61
44
  exports.default = (0, react_1.memo)(MultiCommodityDiroNew);
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MultiCommodityDiroNew = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const settingRender_1 = tslib_1.__importDefault(require("../components/settingRender"));
5
6
  const interactionRender_1 = tslib_1.__importDefault(require("./interactionRender"));
6
7
  const _1 = tslib_1.__importDefault(require("."));
7
8
  const create_1 = require("../../../../core/create");
@@ -12,15 +13,40 @@ const MultiCommodityDiroNew = (0, create_1.createMaterial)(_1.default, {
12
13
  type: 'MultiCommodityDiroNew',
13
14
  related: {
14
15
  interactionRender: interactionRender_1.default,
15
- bindableProps: []
16
+ bindableProps: [],
17
+ settingRender: settingRender_1.default
16
18
  },
17
19
  defaulSetting: {
18
- props: {},
20
+ props: {
21
+ ctaTempStyles: {
22
+ img: {
23
+ borderRadius: 8,
24
+ width: 78,
25
+ height: 78,
26
+ marginRight: 16
27
+ },
28
+ title: {
29
+ fontSize: 12,
30
+ color: '#000',
31
+ textAlign: 'left'
32
+ },
33
+ ctaTitle: {
34
+ textDecoration: 'underline',
35
+ fontSize: 12,
36
+ fontWeight: 'bold',
37
+ color: '#000',
38
+ textAlign: 'left',
39
+ width: 150,
40
+ height: 20
41
+ }
42
+ }
43
+ },
19
44
  style: {
20
- padding: '7px',
21
- display: 'flex',
22
- background: '#fff',
23
- borderRadius: '3px'
45
+ borderRadius: 4,
46
+ width: 260,
47
+ height: 86,
48
+ padding: 4,
49
+ backgroundColor: 'rgba(255,255,255,0.75)'
24
50
  }
25
51
  },
26
52
  w: 100,
@@ -1,10 +1,11 @@
1
- import React from 'react';
1
+ import React, { CSSProperties } from 'react';
2
2
  import { RecItemType } from '../../../../core/components/SxpPageRender/typing';
3
3
  export interface IImgProps {
4
4
  rec?: RecItemType;
5
5
  children: any;
6
6
  className?: any;
7
7
  onClick?: any;
8
+ style?: CSSProperties;
8
9
  }
9
10
  declare const _default: React.NamedExoticComponent<IImgProps>;
10
11
  export default _default;
@@ -6,9 +6,10 @@ const lodash_1 = require("lodash");
6
6
  const useOnScreen_1 = tslib_1.__importDefault(require("../../../../core/hooks/useOnScreen"));
7
7
  const hooks_1 = require("../../../../core/hooks");
8
8
  const EventProvider = (_a) => {
9
- var { rec, children, className, onClick } = _a, props = tslib_1.__rest(_a, ["rec", "children", "className", "onClick"]);
9
+ var { rec, children, className, onClick, style } = _a, props = tslib_1.__rest(_a, ["rec", "children", "className", "onClick", "style"]);
10
10
  const ref = (0, react_1.useRef)(null);
11
11
  const isOnScreen = (0, useOnScreen_1.default)(ref);
12
+ const { popupAni } = (0, hooks_1.useEditor)();
12
13
  const { setPopupDetailData, ctaEvent } = (0, hooks_1.useSxpDataSource)();
13
14
  (0, react_1.useEffect)(() => {
14
15
  var _a, _b;
@@ -29,7 +30,7 @@ const EventProvider = (_a) => {
29
30
  }, rec, item);
30
31
  setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(rec);
31
32
  onClick === null || onClick === void 0 ? void 0 : onClick();
32
- }, 1200);
33
- return (react_1.default.createElement("div", { ref: ref, className: className, onClick: handleClick }, children));
33
+ }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
34
+ return (react_1.default.createElement("div", { ref: ref, className: className, style: style, onClick: handleClick }, children));
34
35
  };
35
36
  exports.default = (0, react_1.memo)(EventProvider);
@@ -0,0 +1,123 @@
1
+ declare const _default: ({
2
+ title: string;
3
+ child: ({
4
+ type: string;
5
+ label: string;
6
+ child: {
7
+ type: string;
8
+ name: string[];
9
+ addonAfter: string;
10
+ }[];
11
+ name?: undefined;
12
+ addonAfter?: undefined;
13
+ } | {
14
+ type: string;
15
+ label: string;
16
+ child: ({
17
+ type: string;
18
+ name: string[];
19
+ max: number;
20
+ addonAfter?: undefined;
21
+ } | {
22
+ type: string;
23
+ name: string[];
24
+ addonAfter: string;
25
+ max: number;
26
+ })[];
27
+ name?: undefined;
28
+ addonAfter?: undefined;
29
+ } | {
30
+ type: string;
31
+ label: string;
32
+ name: string[];
33
+ child?: undefined;
34
+ addonAfter?: undefined;
35
+ } | {
36
+ label: string;
37
+ type: string;
38
+ name: string[];
39
+ addonAfter: string;
40
+ child?: undefined;
41
+ })[];
42
+ type?: undefined;
43
+ } | {
44
+ title: string;
45
+ type: string;
46
+ child: ({
47
+ type: string;
48
+ label: string;
49
+ child: ({
50
+ type: string;
51
+ name: string[];
52
+ options?: undefined;
53
+ addonAfter?: undefined;
54
+ } | {
55
+ type: string;
56
+ options: {
57
+ label: string;
58
+ value: string;
59
+ }[];
60
+ name: string[];
61
+ addonAfter?: undefined;
62
+ } | {
63
+ type: string;
64
+ addonAfter: string;
65
+ name: string[];
66
+ options?: undefined;
67
+ })[];
68
+ name?: undefined;
69
+ } | {
70
+ label: string;
71
+ type: string;
72
+ name: string[];
73
+ child?: undefined;
74
+ })[];
75
+ } | {
76
+ title: string;
77
+ child: ({
78
+ type: string;
79
+ label: string;
80
+ child: ({
81
+ type: string;
82
+ name: string[];
83
+ max: number;
84
+ addonAfter?: undefined;
85
+ } | {
86
+ type: string;
87
+ name: string[];
88
+ addonAfter: string;
89
+ max: number;
90
+ })[];
91
+ name?: undefined;
92
+ } | {
93
+ type: string;
94
+ label: string;
95
+ name: string[];
96
+ child?: undefined;
97
+ } | {
98
+ type: string;
99
+ label: string;
100
+ child: ({
101
+ type: string;
102
+ name: string[];
103
+ options?: undefined;
104
+ addonAfter?: undefined;
105
+ } | {
106
+ type: string;
107
+ options: {
108
+ label: string;
109
+ value: string;
110
+ }[];
111
+ name: string[];
112
+ addonAfter?: undefined;
113
+ } | {
114
+ type: string;
115
+ addonAfter: string;
116
+ name: string[];
117
+ options?: undefined;
118
+ })[];
119
+ name?: undefined;
120
+ })[];
121
+ type?: undefined;
122
+ })[];
123
+ export default _default;
@@ -0,0 +1,217 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = [
4
+ {
5
+ title: '主题样式',
6
+ child: [
7
+ {
8
+ type: 'Group',
9
+ label: '尺寸',
10
+ child: [
11
+ {
12
+ type: 'Number',
13
+ name: ['style', 'width'],
14
+ addonAfter: 'W'
15
+ },
16
+ {
17
+ type: 'Number',
18
+ name: ['style', 'height'],
19
+ addonAfter: 'H'
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ type: 'Group',
25
+ label: '圆角',
26
+ child: [
27
+ {
28
+ type: 'Slider',
29
+ name: ['style', 'borderRadius'],
30
+ max: 100
31
+ },
32
+ {
33
+ type: 'Number',
34
+ name: ['style', 'borderRadius'],
35
+ addonAfter: 'px',
36
+ max: 100
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ type: 'Color',
42
+ label: '背景色',
43
+ name: ['style', 'backgroundColor']
44
+ },
45
+ {
46
+ label: '内边距',
47
+ type: 'Number',
48
+ name: ['style', 'padding'],
49
+ addonAfter: 'px'
50
+ },
51
+ {
52
+ label: '与Post描述边距',
53
+ type: 'Number',
54
+ name: ['style', 'marginBottom'],
55
+ addonAfter: 'px'
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ title: '商品图片',
61
+ child: [
62
+ {
63
+ type: 'Group',
64
+ label: '尺寸',
65
+ child: [
66
+ {
67
+ type: 'Number',
68
+ name: ['props', 'ctaTempStyles', 'img', 'width'],
69
+ addonAfter: 'W'
70
+ },
71
+ {
72
+ type: 'Number',
73
+ name: ['props', 'ctaTempStyles', 'img', 'height'],
74
+ addonAfter: 'H'
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ type: 'Group',
80
+ label: '圆角',
81
+ child: [
82
+ {
83
+ type: 'Slider',
84
+ name: ['props', 'ctaTempStyles', 'img', 'borderRadius'],
85
+ max: 100
86
+ },
87
+ {
88
+ type: 'Number',
89
+ name: ['props', 'ctaTempStyles', 'img', 'borderRadius'],
90
+ addonAfter: 'px',
91
+ max: 100
92
+ }
93
+ ]
94
+ },
95
+ {
96
+ type: 'Number',
97
+ label: '与右侧边距',
98
+ addonAfter: 'px',
99
+ name: ['props', 'ctaTempStyles', 'img', 'marginRight']
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ title: '商品标题文本',
105
+ type: 'commodityTitle',
106
+ child: [
107
+ {
108
+ type: 'Group',
109
+ label: '字体',
110
+ child: [
111
+ {
112
+ type: 'Color',
113
+ name: ['props', 'ctaTempStyles', 'title', 'color']
114
+ },
115
+ {
116
+ type: 'Select',
117
+ options: [{ label: '黑体', value: '黑体' }],
118
+ name: ['props', 'ctaTempStyles', 'title', 'fontFamily']
119
+ },
120
+ {
121
+ type: 'Number',
122
+ addonAfter: 'px',
123
+ name: ['props', 'ctaTempStyles', 'title', 'fontSize']
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ label: '样式',
129
+ type: 'TextStyle',
130
+ name: ['props', 'ctaTempStyles', 'title']
131
+ },
132
+ {
133
+ label: '对齐',
134
+ type: 'TextAlign',
135
+ name: ['props', 'ctaTempStyles', 'title']
136
+ },
137
+ {
138
+ label: '间距',
139
+ type: 'TextSpace',
140
+ name: ['props', 'ctaTempStyles', 'title']
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ title: 'CTA标题',
146
+ child: [
147
+ {
148
+ type: 'Group',
149
+ label: '尺寸',
150
+ child: [
151
+ {
152
+ type: 'Number',
153
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'width'],
154
+ addonAfter: 'W'
155
+ },
156
+ {
157
+ type: 'Number',
158
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'height'],
159
+ addonAfter: 'H'
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ type: 'Group',
165
+ label: '圆角',
166
+ child: [
167
+ {
168
+ type: 'Slider',
169
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'borderRadius'],
170
+ max: 100
171
+ },
172
+ {
173
+ type: 'Number',
174
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'borderRadius'],
175
+ addonAfter: 'px',
176
+ max: 100
177
+ }
178
+ ]
179
+ },
180
+ {
181
+ type: 'Color',
182
+ label: '背景色',
183
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'backgroundColor']
184
+ },
185
+ {
186
+ type: 'Group',
187
+ label: '字体',
188
+ child: [
189
+ {
190
+ type: 'Color',
191
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'color']
192
+ },
193
+ {
194
+ type: 'Select',
195
+ options: [{ label: '黑体', value: '黑体' }],
196
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'fontFamily']
197
+ },
198
+ {
199
+ type: 'Number',
200
+ addonAfter: 'px',
201
+ name: ['props', 'ctaTempStyles', 'ctaTitle', 'fontSize']
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ label: '样式',
207
+ type: 'TextStyle',
208
+ name: ['props', 'ctaTempStyles', 'ctaTitle']
209
+ },
210
+ {
211
+ label: '对齐',
212
+ type: 'TextAlign',
213
+ name: ['props', 'ctaTempStyles', 'ctaTitle']
214
+ }
215
+ ]
216
+ }
217
+ ];
@@ -0,0 +1,6 @@
1
+ import { CSSProperties } from 'react';
2
+ export type ICtaTempStylesType = {
3
+ img?: CSSProperties;
4
+ title?: CSSProperties;
5
+ ctaTitle?: CSSProperties;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.0.2",
3
+ "version": "1.0.3-alpha.2",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",