pb-sxp-ui 14.0.3 → 14.0.5

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 (78) hide show
  1. package/dist/index.cjs +470 -810
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +0 -89
  4. package/dist/index.js +470 -810
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +6 -6
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +6 -6
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +470 -810
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +6 -6
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/Consent/index.js +8 -2
  15. package/es/core/components/SxpPageRender/ConsentPopup.js +8 -8
  16. package/es/core/components/SxpPageRender/Navbar.js +1 -1
  17. package/es/core/components/SxpPageRender/WaterFall/preview.json +272 -207
  18. package/es/core/components/SxpPageRender/index.js +2 -5
  19. package/es/core/context/SxpDataSourceProvider.js +33 -53
  20. package/es/core/utils/materials.js +3 -5
  21. package/es/core/utils/tool.d.ts +2 -1
  22. package/es/core/utils/tool.js +38 -14
  23. package/es/materials/sxp/consentPopup/Display/index.d.ts +2 -2
  24. package/es/materials/sxp/consentPopup/Display/index.js +5 -7
  25. package/es/materials/sxp/consentPopup/index.d.ts +0 -2
  26. package/es/materials/sxp/consentPopup/index.js +0 -2
  27. package/es/materials/sxp/cta/AniLink/index.js +1 -1
  28. package/es/materials/sxp/cta/AniLinkPopup/index.js +1 -1
  29. package/es/materials/sxp/popup/ConsentDetail/index.d.ts +1 -2
  30. package/es/materials/sxp/popup/ConsentDetail/index.js +2 -2
  31. package/es/materials/sxp/popup/Iframe/index.d.ts +4 -0
  32. package/es/materials/sxp/popup/Iframe/index.js +5 -4
  33. package/es/materials/sxp/popup/Iframe/settingRender.js +15 -0
  34. package/lib/core/components/Consent/index.js +8 -2
  35. package/lib/core/components/SxpPageRender/ConsentPopup.js +7 -7
  36. package/lib/core/components/SxpPageRender/Navbar.js +1 -1
  37. package/lib/core/components/SxpPageRender/WaterFall/preview.json +272 -207
  38. package/lib/core/components/SxpPageRender/index.js +2 -5
  39. package/lib/core/context/SxpDataSourceProvider.js +32 -52
  40. package/lib/core/utils/materials.js +3 -5
  41. package/lib/core/utils/tool.d.ts +2 -1
  42. package/lib/core/utils/tool.js +39 -14
  43. package/lib/materials/sxp/consentPopup/Display/index.d.ts +2 -2
  44. package/lib/materials/sxp/consentPopup/Display/index.js +5 -7
  45. package/lib/materials/sxp/consentPopup/index.d.ts +0 -2
  46. package/lib/materials/sxp/consentPopup/index.js +0 -2
  47. package/lib/materials/sxp/cta/AniLink/index.js +1 -1
  48. package/lib/materials/sxp/cta/AniLinkPopup/index.js +1 -1
  49. package/lib/materials/sxp/popup/ConsentDetail/index.d.ts +1 -2
  50. package/lib/materials/sxp/popup/ConsentDetail/index.js +2 -2
  51. package/lib/materials/sxp/popup/Iframe/index.d.ts +4 -0
  52. package/lib/materials/sxp/popup/Iframe/index.js +5 -4
  53. package/lib/materials/sxp/popup/Iframe/settingRender.js +15 -0
  54. package/package.json +1 -1
  55. package/es/materials/sxp/consentPopup/Click/index.d.ts +0 -19
  56. package/es/materials/sxp/consentPopup/Click/index.js +0 -19
  57. package/es/materials/sxp/consentPopup/Click/material.d.ts +0 -2
  58. package/es/materials/sxp/consentPopup/Click/material.js +0 -48
  59. package/es/materials/sxp/consentPopup/Click/settingRender.d.ts +0 -63
  60. package/es/materials/sxp/consentPopup/Click/settingRender.js +0 -210
  61. package/es/materials/sxp/consentPopup/Swipe/index.d.ts +0 -12
  62. package/es/materials/sxp/consentPopup/Swipe/index.js +0 -44
  63. package/es/materials/sxp/consentPopup/Swipe/material.d.ts +0 -2
  64. package/es/materials/sxp/consentPopup/Swipe/material.js +0 -24
  65. package/es/materials/sxp/consentPopup/Swipe/settingRender.d.ts +0 -29
  66. package/es/materials/sxp/consentPopup/Swipe/settingRender.js +0 -43
  67. package/lib/materials/sxp/consentPopup/Click/index.d.ts +0 -19
  68. package/lib/materials/sxp/consentPopup/Click/index.js +0 -21
  69. package/lib/materials/sxp/consentPopup/Click/material.d.ts +0 -2
  70. package/lib/materials/sxp/consentPopup/Click/material.js +0 -52
  71. package/lib/materials/sxp/consentPopup/Click/settingRender.d.ts +0 -63
  72. package/lib/materials/sxp/consentPopup/Click/settingRender.js +0 -212
  73. package/lib/materials/sxp/consentPopup/Swipe/index.d.ts +0 -12
  74. package/lib/materials/sxp/consentPopup/Swipe/index.js +0 -46
  75. package/lib/materials/sxp/consentPopup/Swipe/material.d.ts +0 -2
  76. package/lib/materials/sxp/consentPopup/Swipe/material.js +0 -28
  77. package/lib/materials/sxp/consentPopup/Swipe/settingRender.d.ts +0 -29
  78. package/lib/materials/sxp/consentPopup/Swipe/settingRender.js +0 -45
@@ -1,48 +0,0 @@
1
- import settingRender from './settingRender';
2
- import ClickComponent from '.';
3
- import { createMaterial } from '../../../../core/create';
4
- const Click = createMaterial(ClickComponent, {
5
- displayName: 'Click Consent',
6
- icon: '',
7
- category: 'consentPopup',
8
- type: 'Click',
9
- related: {
10
- settingRender,
11
- bindableProps: []
12
- },
13
- defaulSetting: {
14
- props: {
15
- content: '<p><strong><span style="font-size:14px"><span style="line-height:3">Your Cookie Preferences</span></span></strong></p><p>We use cookie, including third-party cookies, to ensure the proper functioning and security of this site, to analyse its use, and to show you personalised content. You can authorise the use of all cookies by clicking on &quot;Accept all cookies&quot;. If you click on &quot;Reject all cookies&quot;, we will only use cookies necessary for the proper functioning and security of this site. To personalise on adjust your preferences at any time, click on &quot;Cookies Settings&quot; below or at the bottom of any Fendi.com webpage. For more information, read our Cookie Policy.</p><p></p>',
16
- acceptButton: {
17
- text: 'Accept all cookies',
18
- style: {
19
- backgroundColor: '#000',
20
- height: 45,
21
- color: '#fff',
22
- fontSize: 12,
23
- textAlign: 'center',
24
- marginTop: 5,
25
- marginBottom: 5
26
- }
27
- },
28
- rejectButton: {
29
- text: 'Reject all cookies',
30
- style: {
31
- backgroundColor: '#000',
32
- height: 45,
33
- color: '#fff',
34
- fontSize: 12,
35
- textAlign: 'center',
36
- marginTop: 5,
37
- marginBottom: 5
38
- }
39
- }
40
- },
41
- style: {
42
- backgroundColor: '#fff',
43
- padding: 18
44
- }
45
- },
46
- sort: 2
47
- });
48
- export { Click };
@@ -1,63 +0,0 @@
1
- declare const _default: ({
2
- title: string;
3
- child: {
4
- type: string;
5
- name: string[];
6
- }[];
7
- } | {
8
- title: string;
9
- child: ({
10
- type: string;
11
- label: string;
12
- name: string[];
13
- addonAfter?: undefined;
14
- child?: undefined;
15
- } | {
16
- type: string;
17
- label: string;
18
- name: string[];
19
- addonAfter: string;
20
- child?: undefined;
21
- } | {
22
- type: string;
23
- label: string;
24
- child: ({
25
- type: string;
26
- name: string[];
27
- max: number;
28
- addonAfter?: undefined;
29
- } | {
30
- type: string;
31
- name: string[];
32
- addonAfter: string;
33
- max: number;
34
- })[];
35
- name?: undefined;
36
- addonAfter?: undefined;
37
- } | {
38
- type: string;
39
- label: string;
40
- child: {
41
- type: string;
42
- name: string[];
43
- bottomText: string;
44
- }[];
45
- name?: undefined;
46
- addonAfter?: undefined;
47
- } | {
48
- type: string;
49
- label: string;
50
- child: ({
51
- type: string;
52
- name: string[];
53
- addonAfter?: undefined;
54
- } | {
55
- type: string;
56
- name: string[];
57
- addonAfter: string;
58
- })[];
59
- name?: undefined;
60
- addonAfter?: undefined;
61
- })[];
62
- })[];
63
- export default _default;
@@ -1,210 +0,0 @@
1
- export default [
2
- {
3
- title: '全局设置',
4
- child: [
5
- {
6
- type: 'Switch',
7
- label: '弹窗开关',
8
- name: ['props', 'open']
9
- },
10
- {
11
- type: 'Color',
12
- label: '背景色',
13
- name: ['style', 'backgroundColor']
14
- },
15
- {
16
- type: 'Number',
17
- label: '内边距',
18
- name: ['style', 'padding'],
19
- addonAfter: 'px'
20
- }
21
- ]
22
- },
23
- {
24
- title: '弹窗文本',
25
- child: [
26
- {
27
- type: 'RichText',
28
- name: ['props', 'content']
29
- }
30
- ]
31
- },
32
- {
33
- title: '接受按钮样式',
34
- child: [
35
- {
36
- type: 'Color',
37
- label: '背景色',
38
- name: ['props', 'acceptButton', 'style', 'backgroundColor']
39
- },
40
- {
41
- type: 'Number',
42
- label: '尺寸',
43
- name: ['props', 'acceptButton', 'style', 'height'],
44
- addonAfter: 'H'
45
- },
46
- {
47
- type: 'Group',
48
- label: '圆角',
49
- child: [
50
- {
51
- type: 'Slider',
52
- name: ['props', 'acceptButton', 'style', 'borderRadius'],
53
- max: 100
54
- },
55
- {
56
- type: 'Number',
57
- name: ['props', 'acceptButton', 'style', 'borderRadius'],
58
- addonAfter: 'px',
59
- max: 100
60
- }
61
- ]
62
- },
63
- {
64
- type: 'TextMargin',
65
- label: '边距',
66
- name: ['props', 'acceptButton', 'style']
67
- },
68
- {
69
- type: 'Group',
70
- label: '字体',
71
- child: [
72
- {
73
- type: 'Select',
74
- name: ['props', 'acceptButton', 'style', 'fontFamily-cn'],
75
- bottomText: '中文字体'
76
- },
77
- {
78
- type: 'Select',
79
- name: ['props', 'acceptButton', 'style', 'fontFamily-en'],
80
- bottomText: '英文/其他字体'
81
- }
82
- ]
83
- },
84
- {
85
- type: 'Group',
86
- label: '',
87
- child: [
88
- {
89
- type: 'Color',
90
- name: ['props', 'acceptButton', 'style', 'color']
91
- },
92
- {
93
- type: 'Number',
94
- name: ['props', 'acceptButton', 'style', 'fontSize'],
95
- addonAfter: 'px'
96
- }
97
- ]
98
- },
99
- {
100
- label: '样式',
101
- type: 'TextStyle',
102
- name: ['props', 'acceptButton', 'style']
103
- },
104
- {
105
- label: '对齐',
106
- type: 'TextAlign',
107
- name: ['props', 'acceptButton', 'style']
108
- },
109
- {
110
- label: '间距',
111
- type: 'TextSpace',
112
- name: ['props', 'acceptButton', 'style']
113
- },
114
- {
115
- label: '文本',
116
- type: 'TextArea',
117
- name: ['props', 'acceptButton', 'text']
118
- }
119
- ]
120
- },
121
- {
122
- title: '拒绝按钮样式',
123
- child: [
124
- {
125
- type: 'Color',
126
- label: '背景色',
127
- name: ['props', 'rejectButton', 'style', 'backgroundColor']
128
- },
129
- {
130
- type: 'Number',
131
- label: '尺寸',
132
- name: ['props', 'rejectButton', 'style', 'height'],
133
- addonAfter: 'H'
134
- },
135
- {
136
- type: 'Group',
137
- label: '圆角',
138
- child: [
139
- {
140
- type: 'Slider',
141
- name: ['props', 'rejectButton', 'style', 'borderRadius'],
142
- max: 100
143
- },
144
- {
145
- type: 'Number',
146
- name: ['props', 'rejectButton', 'style', 'borderRadius'],
147
- addonAfter: 'px',
148
- max: 100
149
- }
150
- ]
151
- },
152
- {
153
- type: 'TextMargin',
154
- label: '边距',
155
- name: ['props', 'acceptButton', 'style']
156
- },
157
- {
158
- type: 'Group',
159
- label: '字体',
160
- child: [
161
- {
162
- type: 'Select',
163
- name: ['props', 'rejectButton', 'style', 'fontFamily-cn'],
164
- bottomText: '中文字体'
165
- },
166
- {
167
- type: 'Select',
168
- name: ['props', 'rejectButton', 'style', 'fontFamily-en'],
169
- bottomText: '英文/其他字体'
170
- }
171
- ]
172
- },
173
- {
174
- type: 'Group',
175
- label: '',
176
- child: [
177
- {
178
- type: 'Color',
179
- name: ['props', 'rejectButton', 'style', 'color']
180
- },
181
- {
182
- type: 'Number',
183
- name: ['props', 'rejectButton', 'style', 'fontSize'],
184
- addonAfter: 'px'
185
- }
186
- ]
187
- },
188
- {
189
- label: '样式',
190
- type: 'TextStyle',
191
- name: ['props', 'rejectButton', 'style']
192
- },
193
- {
194
- label: '对齐',
195
- type: 'TextAlign',
196
- name: ['props', 'rejectButton', 'style']
197
- },
198
- {
199
- label: '间距',
200
- type: 'TextSpace',
201
- name: ['props', 'rejectButton', 'style']
202
- },
203
- {
204
- label: '文本',
205
- type: 'TextArea',
206
- name: ['props', 'rejectButton', 'text']
207
- }
208
- ]
209
- }
210
- ];
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface ISwipeProps {
4
- open?: boolean;
5
- content?: string;
6
- style?: Record<string, any>;
7
- isTel?: boolean;
8
- consentPopupCate?: string;
9
- swipeIcon?: string;
10
- }
11
- declare const _default: React.NamedExoticComponent<ISwipeProps>;
12
- export default _default;
@@ -1,44 +0,0 @@
1
- import { __rest } from "tslib";
2
- import React, { memo, useMemo, useRef } from 'react';
3
- import './index.less';
4
- import tel from './tel.png';
5
- import ConsentDetail from '../../popup/ConsentDetail';
6
- const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
7
- const Swipe = (_a) => {
8
- var { isTel, open, content, style, consentPopupCate, swipeIcon } = _a, props = __rest(_a, ["isTel", "open", "content", "style", "consentPopupCate", "swipeIcon"]);
9
- const touchInfo = useRef();
10
- const threshold = 50;
11
- const handleTouchStart = (event) => {
12
- const touch = event.touches[0];
13
- touchInfo.current = { y: touch.clientY, d: 0 };
14
- };
15
- const handleTouchMove = (event) => {
16
- var _a;
17
- if (!touchInfo.current)
18
- return;
19
- const touch = event.touches[0];
20
- const dy = touch.clientY - ((_a = touchInfo === null || touchInfo === void 0 ? void 0 : touchInfo.current) === null || _a === void 0 ? void 0 : _a.y);
21
- const currentDistance = Math.abs(dy);
22
- touchInfo.current = Object.assign(Object.assign({}, touchInfo.current), { d: currentDistance });
23
- };
24
- const handleTouchEnd = () => {
25
- if (!touchInfo.current)
26
- return;
27
- const { d } = touchInfo.current || {};
28
- if (d > threshold) {
29
- }
30
- touchInfo.current = {};
31
- };
32
- const handleClickReject = () => { };
33
- const visivle = useMemo(() => {
34
- return consentPopupCate || (open && style);
35
- }, [consentPopupCate, open]);
36
- return (React.createElement(React.Fragment, null, isTel ? (React.createElement("img", { src: tel, style: { objectFit: 'cover', width: '100%', height: '100%' } })) : (React.createElement(React.Fragment, null, visivle && (React.createElement("div", { className: 'consentPopupSwipe', onTouchStart: handleTouchStart, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd },
37
- React.createElement("div", { className: 'consentPopupSwipe-container', style: style },
38
- React.createElement(ConsentDetail, { content: content, style: { padding: 0 } }),
39
- React.createElement("button", { "aria-label": 'close', className: 'consentPopupSwipe-container-close', onClick: handleClickReject },
40
- React.createElement("img", { src: closeIcon, alt: 'close' })),
41
- swipeIcon && (React.createElement("div", { className: 'consentPopupSwipe-container-swipeIcon', onClick: handleClickReject },
42
- React.createElement("img", { src: swipeIcon, alt: 'Swipe Icon' }))))))))));
43
- };
44
- export default memo(Swipe);
@@ -1,2 +0,0 @@
1
- declare const Swipe: import("../../../../core/create").MaterialComponet<import(".").ISwipeProps>;
2
- export { Swipe };
@@ -1,24 +0,0 @@
1
- import settingRender from './settingRender';
2
- import SwipeComponent from '.';
3
- import { createMaterial } from '../../../../core/create';
4
- const Swipe = createMaterial(SwipeComponent, {
5
- displayName: 'Swipe Consent',
6
- icon: '',
7
- category: 'consentPopup',
8
- type: 'Swipe',
9
- related: {
10
- settingRender,
11
- bindableProps: []
12
- },
13
- defaulSetting: {
14
- props: {
15
- content: '<p><span style="font- size: 14px"><strong><span style="line - height: 3">Your Cookie Preferences</span></strong></span></p><p><span style="line- height: 1"><span style="font- size: 12px">We use cookie, including third-party cookies, to</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">ensure the proper functioning and security of</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">this site, to analyse its use, and to show you</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">personalised content.</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">You can authorise the use of all cookies by</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">clicking on &#x27;Accept all cookies&#x27;. If you click on</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">&#x27;Reject all cookies&#x27;, we will only use cookies</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">necessary for the proper functioning and </span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">security of this site. To personalise or adjust</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">your preferences at any time, click on &#x27;Cookies</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">Settings&#x27; below or at the bottom of any</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">Fendi.com webpage.</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">For more information, <u>read our Cookie Policy</u>.</span></span></p>'
16
- },
17
- style: {
18
- backgroundColor: '#fff',
19
- padding: 18
20
- }
21
- },
22
- sort: 3
23
- });
24
- export { Swipe };
@@ -1,29 +0,0 @@
1
- declare const _default: ({
2
- title: string;
3
- child: ({
4
- type: string;
5
- label: string;
6
- name: string[];
7
- addonAfter?: undefined;
8
- } | {
9
- type: string;
10
- label: string;
11
- name: string[];
12
- addonAfter: string;
13
- })[];
14
- } | {
15
- title: string;
16
- child: {
17
- type: string;
18
- name: string[];
19
- }[];
20
- } | {
21
- title: string;
22
- child: {
23
- type: string;
24
- label: string;
25
- name: string[];
26
- text: string;
27
- }[];
28
- })[];
29
- export default _default;
@@ -1,43 +0,0 @@
1
- export default [
2
- {
3
- title: '全局设置',
4
- child: [
5
- {
6
- type: 'Switch',
7
- label: '弹窗开关',
8
- name: ['props', 'open']
9
- },
10
- {
11
- type: 'Color',
12
- label: '背景色',
13
- name: ['style', 'backgroundColor']
14
- },
15
- {
16
- type: 'Number',
17
- label: '内边距',
18
- name: ['style', 'padding'],
19
- addonAfter: 'px'
20
- }
21
- ]
22
- },
23
- {
24
- title: '弹窗文本',
25
- child: [
26
- {
27
- type: 'RichText',
28
- name: ['props', 'content']
29
- }
30
- ]
31
- },
32
- {
33
- title: '滑动图标',
34
- child: [
35
- {
36
- type: 'Upload',
37
- label: '滑动图标',
38
- name: ['props', 'swipeIcon'],
39
- text: '建议尺寸:252 * 185'
40
- }
41
- ]
42
- }
43
- ];
@@ -1,19 +0,0 @@
1
- import React, { CSSProperties } from 'react';
2
- import './index.less';
3
- export interface IClickProps {
4
- open?: boolean;
5
- content?: string;
6
- style?: Record<string, any>;
7
- isTel?: boolean;
8
- acceptButton?: {
9
- text?: string;
10
- style?: CSSProperties;
11
- };
12
- rejectButton?: {
13
- text?: string;
14
- style?: CSSProperties;
15
- };
16
- consentPopupCate?: string;
17
- }
18
- declare const _default: React.NamedExoticComponent<IClickProps>;
19
- export default _default;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
5
- require("./index.less");
6
- const tel_png_1 = tslib_1.__importDefault(require("./tel.png"));
7
- const ConsentDetail_1 = tslib_1.__importDefault(require("../../popup/ConsentDetail"));
8
- const Click = (_a) => {
9
- var { isTel, open, content, style, consentPopupCate, acceptButton, rejectButton } = _a, props = tslib_1.__rest(_a, ["isTel", "open", "content", "style", "consentPopupCate", "acceptButton", "rejectButton"]);
10
- const visivle = (0, react_1.useMemo)(() => {
11
- return consentPopupCate || (open && style);
12
- }, [consentPopupCate, open]);
13
- const handleClickAccept = () => { };
14
- const handleClickReject = () => { };
15
- return (react_1.default.createElement(react_1.default.Fragment, null, isTel ? (react_1.default.createElement("img", { src: tel_png_1.default, style: { objectFit: 'cover', width: '100%', height: '100%' } })) : (react_1.default.createElement(react_1.default.Fragment, null, visivle && (react_1.default.createElement("div", { className: 'consentPopupClick' },
16
- react_1.default.createElement("div", { className: 'consentPopupClick-container', style: style },
17
- react_1.default.createElement(ConsentDetail_1.default, { content: content, style: { padding: 0 } }),
18
- react_1.default.createElement("button", { style: acceptButton === null || acceptButton === void 0 ? void 0 : acceptButton.style, onClick: handleClickAccept }, acceptButton === null || acceptButton === void 0 ? void 0 : acceptButton.text),
19
- react_1.default.createElement("button", { style: rejectButton === null || rejectButton === void 0 ? void 0 : rejectButton.style, onClick: handleClickReject }, rejectButton === null || rejectButton === void 0 ? void 0 : rejectButton.text))))))));
20
- };
21
- exports.default = (0, react_1.memo)(Click);
@@ -1,2 +0,0 @@
1
- declare const Click: import("../../../../core/create").MaterialComponet<import(".").IClickProps>;
2
- export { Click };
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Click = void 0;
4
- const tslib_1 = require("tslib");
5
- const settingRender_1 = tslib_1.__importDefault(require("./settingRender"));
6
- const _1 = tslib_1.__importDefault(require("."));
7
- const create_1 = require("../../../../core/create");
8
- const Click = (0, create_1.createMaterial)(_1.default, {
9
- displayName: 'Click Consent',
10
- icon: '',
11
- category: 'consentPopup',
12
- type: 'Click',
13
- related: {
14
- settingRender: settingRender_1.default,
15
- bindableProps: []
16
- },
17
- defaulSetting: {
18
- props: {
19
- content: '<p><strong><span style="font-size:14px"><span style="line-height:3">Your Cookie Preferences</span></span></strong></p><p>We use cookie, including third-party cookies, to ensure the proper functioning and security of this site, to analyse its use, and to show you personalised content. You can authorise the use of all cookies by clicking on &quot;Accept all cookies&quot;. If you click on &quot;Reject all cookies&quot;, we will only use cookies necessary for the proper functioning and security of this site. To personalise on adjust your preferences at any time, click on &quot;Cookies Settings&quot; below or at the bottom of any Fendi.com webpage. For more information, read our Cookie Policy.</p><p></p>',
20
- acceptButton: {
21
- text: 'Accept all cookies',
22
- style: {
23
- backgroundColor: '#000',
24
- height: 45,
25
- color: '#fff',
26
- fontSize: 12,
27
- textAlign: 'center',
28
- marginTop: 5,
29
- marginBottom: 5
30
- }
31
- },
32
- rejectButton: {
33
- text: 'Reject all cookies',
34
- style: {
35
- backgroundColor: '#000',
36
- height: 45,
37
- color: '#fff',
38
- fontSize: 12,
39
- textAlign: 'center',
40
- marginTop: 5,
41
- marginBottom: 5
42
- }
43
- }
44
- },
45
- style: {
46
- backgroundColor: '#fff',
47
- padding: 18
48
- }
49
- },
50
- sort: 2
51
- });
52
- exports.Click = Click;
@@ -1,63 +0,0 @@
1
- declare const _default: ({
2
- title: string;
3
- child: {
4
- type: string;
5
- name: string[];
6
- }[];
7
- } | {
8
- title: string;
9
- child: ({
10
- type: string;
11
- label: string;
12
- name: string[];
13
- addonAfter?: undefined;
14
- child?: undefined;
15
- } | {
16
- type: string;
17
- label: string;
18
- name: string[];
19
- addonAfter: string;
20
- child?: undefined;
21
- } | {
22
- type: string;
23
- label: string;
24
- child: ({
25
- type: string;
26
- name: string[];
27
- max: number;
28
- addonAfter?: undefined;
29
- } | {
30
- type: string;
31
- name: string[];
32
- addonAfter: string;
33
- max: number;
34
- })[];
35
- name?: undefined;
36
- addonAfter?: undefined;
37
- } | {
38
- type: string;
39
- label: string;
40
- child: {
41
- type: string;
42
- name: string[];
43
- bottomText: string;
44
- }[];
45
- name?: undefined;
46
- addonAfter?: undefined;
47
- } | {
48
- type: string;
49
- label: string;
50
- child: ({
51
- type: string;
52
- name: string[];
53
- addonAfter?: undefined;
54
- } | {
55
- type: string;
56
- name: string[];
57
- addonAfter: string;
58
- })[];
59
- name?: undefined;
60
- addonAfter?: undefined;
61
- })[];
62
- })[];
63
- export default _default;