pds-dev-kit-web-test 2.7.160 → 2.7.161
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.
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MOCK_SECTIONS = void 0;
|
|
4
4
|
var mock_contentsCarousel_1 = require("./mock_contentsCarousel");
|
|
5
5
|
require("./mock_contentsList");
|
|
6
|
-
require("./mock_slideBanner");
|
|
6
|
+
var mock_slideBanner_1 = require("./mock_slideBanner");
|
|
7
7
|
exports.MOCK_SECTIONS = [
|
|
8
8
|
{
|
|
9
9
|
administrativeTitle: 'Daily Pages',
|
|
@@ -11,8 +11,8 @@ exports.MOCK_SECTIONS = [
|
|
|
11
11
|
componentBlocks: [
|
|
12
12
|
// MOCK_VIDEO_CB,
|
|
13
13
|
// MOCK_VIDEO_CB_2,
|
|
14
|
-
mock_contentsCarousel_1.SAMPLE_CONTENTSCAROUSEL_CB
|
|
15
|
-
|
|
14
|
+
mock_contentsCarousel_1.SAMPLE_CONTENTSCAROUSEL_CB,
|
|
15
|
+
mock_slideBanner_1.SAMPLE_SLIDEBANNER_CB
|
|
16
16
|
// SAMPLE_LIST_CB
|
|
17
17
|
// ...MOCK_COMPONENT_BLOCKS
|
|
18
18
|
],
|
|
@@ -40,13 +40,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.CustomNavigationPrevBtn = void 0;
|
|
42
42
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
43
|
-
var react_1 = require("react");
|
|
44
43
|
var IconButton_1 = require("../../../../../../../../DynamicLayout/components/pdsOriginal/desktop/IconButton");
|
|
45
44
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
46
45
|
var navigationConfigs_1 = require("./navigationConfigs");
|
|
47
46
|
var CustomNavigationPrevBtn = function (_a) {
|
|
48
47
|
var isDisabled = _a.isDisabled, styles = _a.styles, hoverStyles = _a.hoverStyles, onClick = _a.onClick;
|
|
49
|
-
var _b = (0, react_1.useState)(false), isHovered = _b[0], setIsHovered = _b[1];
|
|
50
48
|
var prevButton = styles.prevBtnType === 'NONE'
|
|
51
49
|
? undefined
|
|
52
50
|
: navigationConfigs_1.prevButtonMappedIcons[styles.prevBtnType || 'DESIGN1'];
|
|
@@ -60,7 +58,7 @@ var CustomNavigationPrevBtn = function (_a) {
|
|
|
60
58
|
buttonSize = 'xxlarge';
|
|
61
59
|
iconSize = 48;
|
|
62
60
|
}
|
|
63
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: prevButton && ((0, jsx_runtime_1.jsx)(S_PrevButton, __assign({ className: "cb-slidebanner-prev-button", disabled: isDisabled
|
|
61
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: prevButton && ((0, jsx_runtime_1.jsx)(S_PrevButton, __assign({ className: "cb-slidebanner-prev-button", disabled: isDisabled }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: buttonSize, iconSize: iconSize, shapeType: prevButton.shapeType, borderColorKey: prevButton.borderColorKey, overrideBaseColorHex: styles.prevBtnPrimaryColor, overrideIconColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.prevBtnPrimaryColor, iconName: prevButton.iconName, iconFillType: "line", iconColorKey: prevButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideIconColorHex: styles.prevBtnSecondaryColor, overrideBaseColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.prevBtnPrimaryColor, shadow: prevButton.shadow, useDefaultActiveStyle: false, useDefaultHoverStyle: false, onClick: onClick }) }))) }));
|
|
64
62
|
};
|
|
65
63
|
exports.CustomNavigationPrevBtn = CustomNavigationPrevBtn;
|
|
66
64
|
var S_PrevButton = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n\n ", ";\n"], ["\n cursor: pointer;\n\n ", ";\n"])), function (_a) {
|