pds-dev-kit-web-test 2.7.216 → 2.7.217
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.
|
@@ -307,7 +307,7 @@ exports.SAMPLE_CONTENTSCAROUSEL_CB = {
|
|
|
307
307
|
'CB_STYLE_PROP_CONTENTSCAROUSELPLAYBACKMETHOD_SPEC_INFINITESCROLL:MOBILE': null
|
|
308
308
|
},
|
|
309
309
|
CB_STYLE_PROP_CONTENTSCAROUSELPROGRESSBAR: {
|
|
310
|
-
CB_STYLE_PROP_CONTENTSCAROUSELPROGRESSBAR_SPEC_PROGRESSBAR: '
|
|
310
|
+
CB_STYLE_PROP_CONTENTSCAROUSELPROGRESSBAR_SPEC_PROGRESSBAR: 'DESIGN2',
|
|
311
311
|
'CB_STYLE_PROP_CONTENTSCAROUSELPROGRESSBAR_SPEC_PROGRESSBAR:MOBILE': null,
|
|
312
312
|
CB_STYLE_PROP_CONTENTSCAROUSELPROGRESSBAR_SPEC_PROGRESSBARPRIMARYCOLOR: 'rgba(239, 69, 69, 1)',
|
|
313
313
|
'CB_STYLE_PROP_CONTENTSCAROUSELPROGRESSBAR_SPEC_PROGRESSBARPRIMARYCOLOR:MOBILE': null,
|
|
@@ -56,28 +56,57 @@ var CustomProgressbar = function (_a) {
|
|
|
56
56
|
return function () { return cancelAnimationFrame(animationId); };
|
|
57
57
|
}, []);
|
|
58
58
|
var renderProgressByType = function () {
|
|
59
|
-
var _a, _b, _c, _d, _e
|
|
59
|
+
var _a, _b, _c, _d, _e;
|
|
60
60
|
switch (styles.type) {
|
|
61
61
|
case 'NONE':
|
|
62
62
|
return null;
|
|
63
63
|
case 'DESIGN1':
|
|
64
64
|
return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { size: (_a = styles.size) !== null && _a !== void 0 ? _a : 'MEDIUM', progress: progress, leftTimeSec: leftTimeSec, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
|
|
65
|
+
// case 'DESIGN2':
|
|
66
|
+
// return (
|
|
67
|
+
// <ProgressDesign2
|
|
68
|
+
// size={styles.size ?? 'MEDIUM'}
|
|
69
|
+
// progress={progress}
|
|
70
|
+
// leftTimeSec={leftTimeSec}
|
|
71
|
+
// progressColor={styles.primaryColor}
|
|
72
|
+
// bufferColor={styles.secondaryColor}
|
|
73
|
+
// />
|
|
74
|
+
// );
|
|
75
|
+
// case 'DESIGN3':
|
|
76
|
+
// return (
|
|
77
|
+
// <ProgressDesign3
|
|
78
|
+
// size={styles.size ?? 'MEDIUM'}
|
|
79
|
+
// progress={progress}
|
|
80
|
+
// progressColor={styles.primaryColor}
|
|
81
|
+
// bufferColor={styles.secondaryColor}
|
|
82
|
+
// />
|
|
83
|
+
// );
|
|
65
84
|
case 'DESIGN2':
|
|
66
|
-
return ((0, jsx_runtime_1.jsx)(progressConfigs_1.
|
|
85
|
+
return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign4, { size: (_b = styles.size) !== null && _b !== void 0 ? _b : 'MEDIUM', progress: progress, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
|
|
86
|
+
// case 'DESIGN5':
|
|
87
|
+
// return (
|
|
88
|
+
// <ProgressDesign5
|
|
89
|
+
// size={styles.size ?? 'MEDIUM'}
|
|
90
|
+
// progress={progress}
|
|
91
|
+
// progressColor={styles.primaryColor}
|
|
92
|
+
// bufferColor={styles.secondaryColor}
|
|
93
|
+
// />
|
|
94
|
+
// );
|
|
67
95
|
case 'DESIGN3':
|
|
68
|
-
return ((0, jsx_runtime_1.jsx)(progressConfigs_1.
|
|
96
|
+
return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign6, { size: (_c = styles.size) !== null && _c !== void 0 ? _c : 'MEDIUM', progress: progress, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
|
|
69
97
|
case 'DESIGN4':
|
|
70
|
-
return ((0, jsx_runtime_1.jsx)(progressConfigs_1.
|
|
71
|
-
case '
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
98
|
+
return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign7, { size: (_d = styles.size) !== null && _d !== void 0 ? _d : 'MEDIUM', progress: progress, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
|
|
99
|
+
// case 'DESIGN8':
|
|
100
|
+
// return (
|
|
101
|
+
// <ProgressDesign8
|
|
102
|
+
// size={styles.size ?? 'MEDIUM'}
|
|
103
|
+
// progress={progress}
|
|
104
|
+
// progressColor={styles.primaryColor}
|
|
105
|
+
// bufferColor={styles.secondaryColor}
|
|
106
|
+
// />
|
|
107
|
+
// );
|
|
79
108
|
default:
|
|
80
|
-
return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { size: (
|
|
109
|
+
return ((0, jsx_runtime_1.jsx)(progressConfigs_1.ProgressDesign1, { size: (_e = styles.size) !== null && _e !== void 0 ? _e : 'MEDIUM', progress: progress, leftTimeSec: leftTimeSec, progressColor: styles.primaryColor, bufferColor: styles.secondaryColor }));
|
|
81
110
|
}
|
|
82
111
|
};
|
|
83
112
|
return ((0, jsx_runtime_1.jsx)(S_ProgressWrapper, __assign({ className: "cb-contentscarousel-progressbar-wrapper", "$size": styles.size }, { children: renderProgressByType() })));
|