pds-dev-kit-web-test 2.7.233 → 2.7.235
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.
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +10 -13
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.d.ts +4 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.js +203 -54
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +1 -2
- package/package.json +1 -1
|
@@ -4535,7 +4535,7 @@ exports.SAMPLE_SLIDEBANNER_CB = {
|
|
|
4535
4535
|
'CB_STYLE_PROP_SHADOW_SPEC_Y:MOBILE:HOVER': null
|
|
4536
4536
|
},
|
|
4537
4537
|
CB_STYLE_PROP_SLIDEBANNERBUTTON: {
|
|
4538
|
-
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNLOCATION: '
|
|
4538
|
+
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNLOCATION: 'OUTSET4',
|
|
4539
4539
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNLOCATION:MOBILE': null,
|
|
4540
4540
|
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNPRIMARYCOLOR: '#7CEC0DFC',
|
|
4541
4541
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNPRIMARYCOLOR:HOVER': null,
|
|
@@ -4545,11 +4545,11 @@ exports.SAMPLE_SLIDEBANNER_CB = {
|
|
|
4545
4545
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSECONDARYCOLOR:HOVER': null,
|
|
4546
4546
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSECONDARYCOLOR:MOBILE': null,
|
|
4547
4547
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSECONDARYCOLOR:MOBILE:HOVER': null,
|
|
4548
|
-
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSIZE: '
|
|
4548
|
+
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSIZE: 'SMALL',
|
|
4549
4549
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSIZE:MOBILE': null,
|
|
4550
4550
|
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSTYLE: 'DESIGN3',
|
|
4551
4551
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_NEXTBTNSTYLE:MOBILE': null,
|
|
4552
|
-
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNLOCATION: '
|
|
4552
|
+
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNLOCATION: 'OUTSET4',
|
|
4553
4553
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNLOCATION:MOBILE': null,
|
|
4554
4554
|
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNPRIMARYCOLOR: '#630FFFED',
|
|
4555
4555
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNPRIMARYCOLOR:HOVER': null,
|
|
@@ -4559,7 +4559,7 @@ exports.SAMPLE_SLIDEBANNER_CB = {
|
|
|
4559
4559
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSECONDARYCOLOR:HOVER': null,
|
|
4560
4560
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSECONDARYCOLOR:MOBILE': null,
|
|
4561
4561
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSECONDARYCOLOR:MOBILE:HOVER': null,
|
|
4562
|
-
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSIZE: '
|
|
4562
|
+
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSIZE: 'SMALL',
|
|
4563
4563
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSIZE:MOBILE': null,
|
|
4564
4564
|
CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSTYLE: 'DESIGN3',
|
|
4565
4565
|
'CB_STYLE_PROP_SLIDEBANNERBUTTON_SPEC_PREVBTNSTYLE:MOBILE': null
|
|
@@ -4569,7 +4569,7 @@ exports.SAMPLE_SLIDEBANNER_CB = {
|
|
|
4569
4569
|
'CB_STYLE_PROP_SLIDEBANNERDESIGN_SPEC_STYLE:MOBILE': null
|
|
4570
4570
|
},
|
|
4571
4571
|
CB_STYLE_PROP_SLIDEBANNERPAGINATION: {
|
|
4572
|
-
CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONLOCATION: '
|
|
4572
|
+
CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONLOCATION: 'OUTSET4',
|
|
4573
4573
|
'CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONLOCATION:MOBILE': null,
|
|
4574
4574
|
CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONPRIMARYCOLOR: '#A500CFF0',
|
|
4575
4575
|
'CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONPRIMARYCOLOR:MOBILE': null,
|
|
@@ -42,6 +42,7 @@ var CustomNavigationNextBtn_1 = require("./components/CustomNavigationNextBtn");
|
|
|
42
42
|
var CustomNavigationPrevBtn_1 = require("./components/CustomNavigationPrevBtn");
|
|
43
43
|
var CustomPagination_1 = require("./components/CustomPagination");
|
|
44
44
|
var CustomProgressbar_1 = require("./components/CustomProgressbar");
|
|
45
|
+
var elementPositions_1 = require("./hooks/elementPositions");
|
|
45
46
|
var useFlexGridLayout_1 = require("./hooks/useFlexGridLayout");
|
|
46
47
|
var useSwiper_1 = require("./hooks/useSwiper");
|
|
47
48
|
var SlideBannerCore_1 = __importDefault(require("./SlideBannerCore"));
|
|
@@ -113,21 +114,15 @@ function SlideBanner(props) {
|
|
|
113
114
|
{ type: 'PROGRESSBAR', position: 'INSET5' }
|
|
114
115
|
].filter(function (component) { return component !== undefined; });
|
|
115
116
|
var _k = (0, useFlexGridLayout_1.useFlexGridLayout)({ components: components }), layoutRef = _k.layoutRef, positionRefs = _k.positionRefs, ccbInset = _k.ccbInset, componentGroups = _k.componentGroups, getPositionStyle = _k.getPositionStyle, getComponentGroupLayout = _k.getComponentGroupLayout;
|
|
116
|
-
|
|
117
|
-
// top: '0px',
|
|
118
|
-
// right: '0px',
|
|
119
|
-
// bottom: '0px',
|
|
120
|
-
// left: '0px'
|
|
121
|
-
// };
|
|
122
|
-
var renderElements = function (component) {
|
|
117
|
+
var renderElements = function (component, positionStyle) {
|
|
123
118
|
var _a;
|
|
124
119
|
switch (component.type) {
|
|
125
120
|
case 'PREV':
|
|
126
|
-
return ((0, jsx_runtime_1.jsx)(CustomNavigationPrevBtn_1.CustomNavigationPrevBtn, { isDisabled: loop ? false : isBeginning, styles: customNavigationNormalStyle, hoverStyles: customNavigationHoverStyle, onClick: onClickPrevBtn }));
|
|
121
|
+
return ((0, jsx_runtime_1.jsx)(CustomNavigationPrevBtn_1.CustomNavigationPrevBtn, { isDisabled: loop ? false : isBeginning, styles: customNavigationNormalStyle, hoverStyles: customNavigationHoverStyle, onClick: onClickPrevBtn, style: positionStyle }));
|
|
127
122
|
case 'NEXT':
|
|
128
|
-
return ((0, jsx_runtime_1.jsx)(CustomNavigationNextBtn_1.CustomNavigationNextBtn, { isDisabled: loop ? false : isEnd, styles: customNavigationNormalStyle, hoverStyles: customNavigationHoverStyle, onClick: onClickNextBtn }));
|
|
123
|
+
return ((0, jsx_runtime_1.jsx)(CustomNavigationNextBtn_1.CustomNavigationNextBtn, { isDisabled: loop ? false : isEnd, styles: customNavigationNormalStyle, hoverStyles: customNavigationHoverStyle, onClick: onClickNextBtn, style: positionStyle }));
|
|
129
124
|
case 'PAGINATION':
|
|
130
|
-
return ((0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { styles: isHovered ? customPaginationHoverStyle : customPaginationNormalStyle, current: currentSlide, isPrevBtnDisabled: loop ? false : isBeginning, isNextBtnDisabled: loop ? false : isEnd, total: ((_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slides.length) || 0, onBulletClick: onClickBullet, onPrevBtnClick: onClickPrevBtn, onNextBtnClick: onClickNextBtn }));
|
|
125
|
+
return ((0, jsx_runtime_1.jsx)(CustomPagination_1.CustomPagination, { styles: isHovered ? customPaginationHoverStyle : customPaginationNormalStyle, current: currentSlide, isPrevBtnDisabled: loop ? false : isBeginning, isNextBtnDisabled: loop ? false : isEnd, total: ((_a = swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slides.length) || 0, onBulletClick: onClickBullet, onPrevBtnClick: onClickPrevBtn, onNextBtnClick: onClickNextBtn, style: positionStyle }));
|
|
131
126
|
case 'PROGRESSBAR':
|
|
132
127
|
return ((0, jsx_runtime_1.jsx)(CustomProgressbar_1.CustomProgressbar, { progressRef: progressRef, leftTimeMsRef: leftTimeMsRef, styles: isHovered ? customProgressbarHoverStyle : customProgressbarNormalStyle }));
|
|
133
128
|
default:
|
|
@@ -143,7 +138,7 @@ function SlideBanner(props) {
|
|
|
143
138
|
.map(function (item) {
|
|
144
139
|
return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
|
|
145
140
|
});
|
|
146
|
-
console.log(
|
|
141
|
+
console.log(componentGroups);
|
|
147
142
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [Object.entries(componentGroups).map(function (_a) {
|
|
148
143
|
var position = _a[0], groupComponents = _a[1];
|
|
149
144
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-slidebanner-button-group ccb-elements", ref: function (el) {
|
|
@@ -153,8 +148,10 @@ function SlideBanner(props) {
|
|
|
153
148
|
else {
|
|
154
149
|
delete positionRefs.current[position];
|
|
155
150
|
}
|
|
156
|
-
}, style: __assign(__assign({}, getPositionStyle(position, ccbInset,
|
|
157
|
-
|
|
151
|
+
}, style: __assign(__assign({}, getPositionStyle(position, ccbInset, 'GROUP', 'GROUP')), { zIndex: 3 }) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-slidebanner-button-layout-box", style: getComponentGroupLayout(groupComponents, position) }, { children: groupComponents.map(function (component) {
|
|
152
|
+
return renderElements(component, (0, elementPositions_1.getPosition)(position, component.designType, component.size, component.type));
|
|
153
|
+
}) })) }), position));
|
|
154
|
+
}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsxs)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box ccb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { overflow: 'hidden' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } }, { children: [(0, jsx_runtime_1.jsx)(S_CustomBackgroundWrapper, __assign({ ref: backgroundRef, style: __assign(__assign({}, effect), { background: style.background }) }, { children: isBgMedia && CB_STYLE_PROP_BGMEDIA && ((0, jsx_runtime_1.jsx)(CustomSectionBackgroundMedia_1.CustomSectionBackgroundMedia, { specs: CB_STYLE_PROP_BGMEDIA, componentStyle: style, playerId: index, mediaType: mediaType || 'NONE', device: isMobile ? 'MOBILE' : 'DESKTOP', backgroundRef: backgroundRef })) })), (0, jsx_runtime_1.jsx)(S_Overlay, { style: overlayStyle }), (0, jsx_runtime_1.jsx)(S_SwiperLayout, __assign({ className: "cb-slidebanner-layout-box", ref: layoutRef }, { children: (0, jsx_runtime_1.jsx)(S_SwiperWrapper, __assign({ className: "cb-slidebanner-wrapper", ccbInset: ccbInset, customStyle: isHovered ? slideBannerHoverStyle === null || slideBannerHoverStyle === void 0 ? void 0 : slideBannerHoverStyle.customStyle : slideBannerNormalStyle === null || slideBannerNormalStyle === void 0 ? void 0 : slideBannerNormalStyle.customStyle }, { children: (0, jsx_runtime_1.jsx)(SlideBannerCore_1.default, __assign({ ref: swiperRef, className: "cb-slidebanner", onSwiper: onSwiper, onSlideChangeTransitionEnd: onSlideChangeTransitionEnd, onAutoplayTimeLeft: onAutoplayTimeLeft, slidesPerView: 1, styles: isHovered ? slideBannerHoverStyle : slideBannerNormalStyle, effect: CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE.toLowerCase() }, { children: (0, createCompositions_1.createCompositions)({
|
|
158
155
|
valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
|
|
159
156
|
queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
|
|
160
157
|
limit: CB_CONTENT_PROP_SLIDEBANNER_SPEC_ITEMCOUNTS,
|
|
@@ -4,9 +4,10 @@ export interface CustomNavigationNextBtnProps {
|
|
|
4
4
|
isDisabled: boolean;
|
|
5
5
|
styles: CustomNavigationProps;
|
|
6
6
|
hoverStyles?: CustomNavigationProps;
|
|
7
|
+
style?: React.CSSProperties;
|
|
7
8
|
onClick?: () => void;
|
|
8
9
|
}
|
|
9
|
-
export declare const CustomNavigationNextBtn: ({ isDisabled, styles, hoverStyles, onClick }: CustomNavigationNextBtnProps) => JSX.Element;
|
|
10
|
+
export declare const CustomNavigationNextBtn: ({ isDisabled, styles, hoverStyles, style, onClick }: CustomNavigationNextBtnProps) => JSX.Element;
|
|
10
11
|
export interface FlexBoxProps {
|
|
11
12
|
direction?: 'row' | 'column';
|
|
12
13
|
justifyContent?: string;
|
|
@@ -44,7 +44,7 @@ var IconButton_1 = require("../../../../../../../../DynamicLayout/components/pds
|
|
|
44
44
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
45
45
|
var navigationConfigs_1 = require("./navigationConfigs");
|
|
46
46
|
var CustomNavigationNextBtn = function (_a) {
|
|
47
|
-
var isDisabled = _a.isDisabled, styles = _a.styles, hoverStyles = _a.hoverStyles, onClick = _a.onClick;
|
|
47
|
+
var isDisabled = _a.isDisabled, styles = _a.styles, hoverStyles = _a.hoverStyles, style = _a.style, onClick = _a.onClick;
|
|
48
48
|
var nextButton = styles.nextBtnType === 'NONE'
|
|
49
49
|
? undefined
|
|
50
50
|
: navigationConfigs_1.nextButtonMappedIcons[styles.nextBtnType || 'DESIGN1'];
|
|
@@ -58,10 +58,10 @@ var CustomNavigationNextBtn = function (_a) {
|
|
|
58
58
|
buttonSize = 80;
|
|
59
59
|
iconSize = 48;
|
|
60
60
|
}
|
|
61
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: nextButton && ((0, jsx_runtime_1.jsx)(S_NextButton, __assign({ className: "cb-slidebanner-next-button", disabled: isDisabled, "$size": styles.nextBtnSize }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: buttonSize, iconSize: iconSize, shapeType: nextButton.shapeType, borderColorKey: nextButton.borderColorKey, overrideBaseColorHex: styles.nextBtnPrimaryColor, overrideBaseColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.nextBtnPrimaryColor, iconName: nextButton.iconName, iconFillType: "line", iconColorKey: nextButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideIconColorHex: styles.nextBtnSecondaryColor, overrideIconColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.nextBtnSecondaryColor, shadow: nextButton.shadow, useDefaultActiveStyle: false, useDefaultHoverStyle: false, onClick: onClick }) }))) }));
|
|
61
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: nextButton && ((0, jsx_runtime_1.jsx)(S_NextButton, __assign({ className: "cb-slidebanner-next-button", disabled: isDisabled, "$size": styles.nextBtnSize, style: style }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: buttonSize, iconSize: iconSize, shapeType: nextButton.shapeType, borderColorKey: nextButton.borderColorKey, overrideBaseColorHex: styles.nextBtnPrimaryColor, overrideBaseColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.nextBtnPrimaryColor, iconName: nextButton.iconName, iconFillType: "line", iconColorKey: nextButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideIconColorHex: styles.nextBtnSecondaryColor, overrideIconColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.nextBtnSecondaryColor, shadow: nextButton.shadow, useDefaultActiveStyle: false, useDefaultHoverStyle: false, onClick: onClick }) }))) }));
|
|
62
62
|
};
|
|
63
63
|
exports.CustomNavigationNextBtn = CustomNavigationNextBtn;
|
|
64
|
-
var S_NextButton = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n\n ", ";\n"], ["\n cursor: pointer;\n\n ", ";\n"])), function (_a) {
|
|
64
|
+
var S_NextButton = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n position: relative;\n\n ", ";\n"], ["\n cursor: pointer;\n position: relative;\n\n ", ";\n"])), function (_a) {
|
|
65
65
|
var disabled = _a.disabled;
|
|
66
66
|
return disabled && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n "], ["\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n "])));
|
|
67
67
|
});
|
|
@@ -4,9 +4,10 @@ export interface CustomNavigationPrevBtnProps {
|
|
|
4
4
|
isDisabled: boolean;
|
|
5
5
|
styles: CustomNavigationProps;
|
|
6
6
|
hoverStyles?: CustomNavigationProps;
|
|
7
|
+
style?: React.CSSProperties;
|
|
7
8
|
onClick?: () => void;
|
|
8
9
|
}
|
|
9
|
-
export declare const CustomNavigationPrevBtn: ({ isDisabled, styles, hoverStyles, onClick }: CustomNavigationPrevBtnProps) => JSX.Element;
|
|
10
|
+
export declare const CustomNavigationPrevBtn: ({ isDisabled, styles, hoverStyles, style, onClick }: CustomNavigationPrevBtnProps) => JSX.Element;
|
|
10
11
|
export interface FlexBoxProps {
|
|
11
12
|
direction?: 'row' | 'column';
|
|
12
13
|
justifyContent?: string;
|
|
@@ -44,7 +44,7 @@ var IconButton_1 = require("../../../../../../../../DynamicLayout/components/pds
|
|
|
44
44
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
45
45
|
var navigationConfigs_1 = require("./navigationConfigs");
|
|
46
46
|
var CustomNavigationPrevBtn = function (_a) {
|
|
47
|
-
var isDisabled = _a.isDisabled, styles = _a.styles, hoverStyles = _a.hoverStyles, onClick = _a.onClick;
|
|
47
|
+
var isDisabled = _a.isDisabled, styles = _a.styles, hoverStyles = _a.hoverStyles, style = _a.style, onClick = _a.onClick;
|
|
48
48
|
var prevButton = styles.prevBtnType === 'NONE'
|
|
49
49
|
? undefined
|
|
50
50
|
: navigationConfigs_1.prevButtonMappedIcons[styles.prevBtnType || 'DESIGN1'];
|
|
@@ -58,10 +58,10 @@ var CustomNavigationPrevBtn = function (_a) {
|
|
|
58
58
|
buttonSize = 'xxlarge';
|
|
59
59
|
iconSize = 48;
|
|
60
60
|
}
|
|
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, overrideBaseColorHexHover: 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, overrideIconColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.prevBtnSecondaryColor, shadow: prevButton.shadow, useDefaultActiveStyle: false, useDefaultHoverStyle: false, onClick: onClick }) }))) }));
|
|
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, style: style }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: buttonSize, iconSize: iconSize, shapeType: prevButton.shapeType, borderColorKey: prevButton.borderColorKey, overrideBaseColorHex: styles.prevBtnPrimaryColor, overrideBaseColorHexHover: 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, overrideIconColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.prevBtnSecondaryColor, shadow: prevButton.shadow, useDefaultActiveStyle: false, useDefaultHoverStyle: false, onClick: onClick }) }))) }));
|
|
62
62
|
};
|
|
63
63
|
exports.CustomNavigationPrevBtn = CustomNavigationPrevBtn;
|
|
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) {
|
|
64
|
+
var S_PrevButton = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n cursor: pointer;\n position: relative;\n\n ", ";\n"], ["\n cursor: pointer;\n position: relative;\n\n ", ";\n"])), function (_a) {
|
|
65
65
|
var disabled = _a.disabled;
|
|
66
66
|
return disabled && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n "], ["\n cursor: auto;\n opacity: 0.35;\n pointer-events: none;\n "])));
|
|
67
67
|
});
|
|
@@ -6,11 +6,12 @@ interface Props {
|
|
|
6
6
|
isPrevBtnDisabled: boolean;
|
|
7
7
|
isNextBtnDisabled: boolean;
|
|
8
8
|
styles: CustomPaginationProps;
|
|
9
|
+
style: React.CSSProperties;
|
|
9
10
|
onBulletClick: (index: number) => void;
|
|
10
11
|
onPrevBtnClick: () => void;
|
|
11
12
|
onNextBtnClick: () => void;
|
|
12
13
|
}
|
|
13
|
-
export declare const CustomPagination: ({ current, total, isNextBtnDisabled, isPrevBtnDisabled, styles, onBulletClick, onNextBtnClick, onPrevBtnClick }: Props) => JSX.Element;
|
|
14
|
+
export declare const CustomPagination: ({ current, total, isNextBtnDisabled, isPrevBtnDisabled, styles, style, onBulletClick, onNextBtnClick, onPrevBtnClick }: Props) => JSX.Element;
|
|
14
15
|
export interface FlexBoxProps {
|
|
15
16
|
direction?: 'row' | 'column';
|
|
16
17
|
justifyContent?: string;
|
|
@@ -43,9 +43,9 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
43
43
|
var components_1 = require("../../../../../../../../DynamicLayout/components");
|
|
44
44
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
45
45
|
var CustomPagination = function (_a) {
|
|
46
|
-
var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, isNextBtnDisabled = _a.isNextBtnDisabled, isPrevBtnDisabled = _a.isPrevBtnDisabled, styles = _a.styles, onBulletClick = _a.onBulletClick, onNextBtnClick = _a.onNextBtnClick, onPrevBtnClick = _a.onPrevBtnClick;
|
|
46
|
+
var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, isNextBtnDisabled = _a.isNextBtnDisabled, isPrevBtnDisabled = _a.isPrevBtnDisabled, styles = _a.styles, style = _a.style, onBulletClick = _a.onBulletClick, onNextBtnClick = _a.onNextBtnClick, onPrevBtnClick = _a.onPrevBtnClick;
|
|
47
47
|
var bullets = Array.from({ length: total }, function (_, i) { return i; });
|
|
48
|
-
return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current) }, { children: (function () {
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current), style: style }, { children: (function () {
|
|
49
49
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
50
50
|
switch (styles.type) {
|
|
51
51
|
case 'NONE':
|
|
@@ -284,7 +284,7 @@ var FlexBox = styled_components_1.default.div(templateObject_1 || (templateObjec
|
|
|
284
284
|
var _b = _a.justifyContent, justifyContent = _b === void 0 ? 'center' : _b;
|
|
285
285
|
return justifyContent;
|
|
286
286
|
});
|
|
287
|
-
var S_Pagination = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n /* max-width: 120px; */\n padding: 5px;\n"], ["\n /* max-width: 120px; */\n padding: 5px;\n"])));
|
|
287
|
+
var S_Pagination = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n /* max-width: 120px; */\n padding: 5px;\n position: relative;\n"], ["\n /* max-width: 120px; */\n padding: 5px;\n position: relative;\n"])));
|
|
288
288
|
// const sysTextWhite = css`
|
|
289
289
|
// color: ${({ theme }) => theme.ui_cpnt_textlabel_sys_white};
|
|
290
290
|
// `;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { SlideBannerElementsProps } from '../SlideBanner';
|
|
1
2
|
import type { CSSProperties } from 'styled-components';
|
|
2
|
-
export declare function getPosition(position: string, designType: string, size: string): CSSProperties;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare function getPosition(position: string, designType: string, size: string, elementType: SlideBannerElementsProps['type'] | 'GROUP'): CSSProperties;
|
|
4
|
+
export declare const POS_OUTSET_PAGINATION: Record<string, Record<string, Record<string, CSSProperties>>>;
|
|
4
5
|
export declare const POS_INSET: Record<string, Record<string, CSSProperties>>;
|
|
6
|
+
export declare const POS_OUTSET_NAVIGATION: Record<string, Record<string, CSSProperties>>;
|
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.POS_INSET = exports.
|
|
3
|
+
exports.POS_OUTSET_NAVIGATION = exports.POS_INSET = exports.POS_OUTSET_PAGINATION = exports.getPosition = void 0;
|
|
4
4
|
var GAP = 8;
|
|
5
|
-
function getPosition(position, designType, size) {
|
|
6
|
-
var _a, _b
|
|
5
|
+
function getPosition(position, designType, size, elementType) {
|
|
6
|
+
var _a, _b;
|
|
7
7
|
if (position.startsWith('OUTSET')) {
|
|
8
|
-
|
|
8
|
+
if (elementType === 'GROUP') {
|
|
9
|
+
return POS_OUTSET_GROUP[position];
|
|
10
|
+
}
|
|
11
|
+
if (elementType === 'PROGRESSBAR') {
|
|
12
|
+
return (_a = exports.POS_INSET[position]) === null || _a === void 0 ? void 0 : _a.LARGE;
|
|
13
|
+
}
|
|
14
|
+
if (elementType === 'NEXT' || elementType === 'PREV') {
|
|
15
|
+
return exports.POS_OUTSET_NAVIGATION[position][size];
|
|
16
|
+
}
|
|
17
|
+
return exports.POS_OUTSET_PAGINATION[position][designType][size];
|
|
9
18
|
}
|
|
10
|
-
return (
|
|
19
|
+
return (_b = exports.POS_INSET[position]) === null || _b === void 0 ? void 0 : _b.LARGE;
|
|
11
20
|
}
|
|
12
21
|
exports.getPosition = getPosition;
|
|
13
|
-
exports.
|
|
22
|
+
exports.POS_OUTSET_PAGINATION = {
|
|
14
23
|
//--------------------------------------------------
|
|
15
24
|
// OUTSET 1 (left 0px 공통)
|
|
16
25
|
//--------------------------------------------------
|
|
@@ -61,44 +70,44 @@ exports.POS_OUTSET = {
|
|
|
61
70
|
//--------------------------------------------------
|
|
62
71
|
OUTSET2: {
|
|
63
72
|
DESIGN1: {
|
|
64
|
-
LARGE: { top: -50
|
|
65
|
-
MEDIUM: { top: -45
|
|
66
|
-
SMALL: { top: -40
|
|
73
|
+
LARGE: { top: -50 },
|
|
74
|
+
MEDIUM: { top: -45 },
|
|
75
|
+
SMALL: { top: -40 }
|
|
67
76
|
},
|
|
68
77
|
DESIGN2: {
|
|
69
|
-
LARGE: { top: -50
|
|
70
|
-
MEDIUM: { top: -45
|
|
71
|
-
SMALL: { top: -40
|
|
78
|
+
LARGE: { top: -50 },
|
|
79
|
+
MEDIUM: { top: -45 },
|
|
80
|
+
SMALL: { top: -40 }
|
|
72
81
|
},
|
|
73
82
|
DESIGN3: {
|
|
74
|
-
LARGE: { top: -50
|
|
75
|
-
MEDIUM: { top: -45
|
|
76
|
-
SMALL: { top: -40
|
|
83
|
+
LARGE: { top: -50 },
|
|
84
|
+
MEDIUM: { top: -45 },
|
|
85
|
+
SMALL: { top: -40 }
|
|
77
86
|
},
|
|
78
87
|
DESIGN4: {
|
|
79
|
-
LARGE: { top: -50
|
|
80
|
-
MEDIUM: { top: -45
|
|
81
|
-
SMALL: { top: -40
|
|
88
|
+
LARGE: { top: -50 },
|
|
89
|
+
MEDIUM: { top: -45 },
|
|
90
|
+
SMALL: { top: -40 }
|
|
82
91
|
},
|
|
83
92
|
DESIGN5: {
|
|
84
|
-
LARGE: { top: -85
|
|
85
|
-
MEDIUM: { top: -80
|
|
86
|
-
SMALL: { top: -75
|
|
93
|
+
LARGE: { top: -85 },
|
|
94
|
+
MEDIUM: { top: -80 },
|
|
95
|
+
SMALL: { top: -75 }
|
|
87
96
|
},
|
|
88
97
|
DESIGN6: {
|
|
89
|
-
LARGE: { top: -35
|
|
90
|
-
MEDIUM: { top: -30
|
|
91
|
-
SMALL: { top: -25
|
|
98
|
+
LARGE: { top: -35 },
|
|
99
|
+
MEDIUM: { top: -30 },
|
|
100
|
+
SMALL: { top: -25 }
|
|
92
101
|
},
|
|
93
102
|
DESIGN7: {
|
|
94
|
-
LARGE: { top: -85
|
|
95
|
-
MEDIUM: { top: -80
|
|
96
|
-
SMALL: { top: -75
|
|
103
|
+
LARGE: { top: -85 },
|
|
104
|
+
MEDIUM: { top: -80 },
|
|
105
|
+
SMALL: { top: -75 }
|
|
97
106
|
},
|
|
98
107
|
DESIGN8: {
|
|
99
|
-
LARGE: { top: -25
|
|
100
|
-
MEDIUM: { top: -25
|
|
101
|
-
SMALL: { top: -20
|
|
108
|
+
LARGE: { top: -25 },
|
|
109
|
+
MEDIUM: { top: -25 },
|
|
110
|
+
SMALL: { top: -20 }
|
|
102
111
|
}
|
|
103
112
|
},
|
|
104
113
|
//--------------------------------------------------
|
|
@@ -106,44 +115,44 @@ exports.POS_OUTSET = {
|
|
|
106
115
|
//--------------------------------------------------
|
|
107
116
|
OUTSET3: {
|
|
108
117
|
DESIGN1: {
|
|
109
|
-
LARGE: { top: -50
|
|
110
|
-
MEDIUM: { top: -45
|
|
111
|
-
SMALL: { top: -40
|
|
118
|
+
LARGE: { top: -50 },
|
|
119
|
+
MEDIUM: { top: -45 },
|
|
120
|
+
SMALL: { top: -40 }
|
|
112
121
|
},
|
|
113
122
|
DESIGN2: {
|
|
114
|
-
LARGE: { top: -50
|
|
115
|
-
MEDIUM: { top: -45
|
|
116
|
-
SMALL: { top: -40
|
|
123
|
+
LARGE: { top: -50 },
|
|
124
|
+
MEDIUM: { top: -45 },
|
|
125
|
+
SMALL: { top: -40 }
|
|
117
126
|
},
|
|
118
127
|
DESIGN3: {
|
|
119
|
-
LARGE: { top: -50
|
|
120
|
-
MEDIUM: { top: -45
|
|
121
|
-
SMALL: { top: -40
|
|
128
|
+
LARGE: { top: -50 },
|
|
129
|
+
MEDIUM: { top: -45 },
|
|
130
|
+
SMALL: { top: -40 }
|
|
122
131
|
},
|
|
123
132
|
DESIGN4: {
|
|
124
|
-
LARGE: { top: -50
|
|
125
|
-
MEDIUM: { top: -45
|
|
126
|
-
SMALL: { top: -40
|
|
133
|
+
LARGE: { top: -50 },
|
|
134
|
+
MEDIUM: { top: -45 },
|
|
135
|
+
SMALL: { top: -40 }
|
|
127
136
|
},
|
|
128
137
|
DESIGN5: {
|
|
129
|
-
LARGE: { top: -85
|
|
130
|
-
MEDIUM: { top: -80
|
|
131
|
-
SMALL: { top: -75
|
|
138
|
+
LARGE: { top: -85 },
|
|
139
|
+
MEDIUM: { top: -80 },
|
|
140
|
+
SMALL: { top: -75 }
|
|
132
141
|
},
|
|
133
142
|
DESIGN6: {
|
|
134
|
-
LARGE: { top: -35
|
|
135
|
-
MEDIUM: { top: -30
|
|
136
|
-
SMALL: { top: -25
|
|
143
|
+
LARGE: { top: -35 },
|
|
144
|
+
MEDIUM: { top: -30 },
|
|
145
|
+
SMALL: { top: -25 }
|
|
137
146
|
},
|
|
138
147
|
DESIGN7: {
|
|
139
|
-
LARGE: { top: -85
|
|
140
|
-
MEDIUM: { top: -80
|
|
141
|
-
SMALL: { top: -75
|
|
148
|
+
LARGE: { top: -85 },
|
|
149
|
+
MEDIUM: { top: -80 },
|
|
150
|
+
SMALL: { top: -75 }
|
|
142
151
|
},
|
|
143
152
|
DESIGN8: {
|
|
144
|
-
LARGE: { top: -25
|
|
145
|
-
MEDIUM: { top: -25
|
|
146
|
-
SMALL: { top: -20
|
|
153
|
+
LARGE: { top: -25 },
|
|
154
|
+
MEDIUM: { top: -25 },
|
|
155
|
+
SMALL: { top: -20 }
|
|
147
156
|
}
|
|
148
157
|
},
|
|
149
158
|
//--------------------------------------------------
|
|
@@ -195,6 +204,13 @@ exports.POS_OUTSET = {
|
|
|
195
204
|
// OUTSET 5 (top center 공통, transform 추출)
|
|
196
205
|
//--------------------------------------------------
|
|
197
206
|
OUTSET5: {
|
|
207
|
+
GROUP: {
|
|
208
|
+
GROUP: {
|
|
209
|
+
top: 'center',
|
|
210
|
+
height: 0,
|
|
211
|
+
right: 0
|
|
212
|
+
}
|
|
213
|
+
},
|
|
198
214
|
DESIGN1: {
|
|
199
215
|
LARGE: { top: 'center', right: -65, transform: 'translateY(-50%)' },
|
|
200
216
|
MEDIUM: { top: 'center', right: -60, transform: 'translateY(-50%)' },
|
|
@@ -594,3 +610,136 @@ exports.POS_INSET = {
|
|
|
594
610
|
SMALL: { top: 'center', left: GAP, transform: 'translateY(-50%)' }
|
|
595
611
|
}
|
|
596
612
|
};
|
|
613
|
+
exports.POS_OUTSET_NAVIGATION = {
|
|
614
|
+
OUTSET1: {
|
|
615
|
+
LARGE: { top: -95, left: 0 },
|
|
616
|
+
MEDIUM: { top: -60, left: 0 },
|
|
617
|
+
SMALL: { top: -50, left: 0 }
|
|
618
|
+
},
|
|
619
|
+
OUTSET2: {
|
|
620
|
+
LARGE: { top: -95, left: 'center', transform: 'translateX(-50%)' },
|
|
621
|
+
MEDIUM: { top: -60, left: 'center', transform: 'translateX(-50%)' },
|
|
622
|
+
SMALL: { top: -50, left: 'center', transform: 'translateX(-50%)' }
|
|
623
|
+
},
|
|
624
|
+
OUTSET3: {
|
|
625
|
+
LARGE: { top: -95, right: 0 },
|
|
626
|
+
MEDIUM: { top: -60, right: 0 },
|
|
627
|
+
SMALL: { top: -50, right: 0 }
|
|
628
|
+
},
|
|
629
|
+
OUTSET4: {
|
|
630
|
+
LARGE: { top: 0, right: -95 },
|
|
631
|
+
MEDIUM: { top: 0, right: -60 },
|
|
632
|
+
SMALL: { top: 0, right: -50 }
|
|
633
|
+
},
|
|
634
|
+
OUTSET5: {
|
|
635
|
+
LARGE: { top: 'center', right: -95, transform: 'translateY(-50%)' },
|
|
636
|
+
MEDIUM: { top: 'center', right: -60, transform: 'translateY(-50%)' },
|
|
637
|
+
SMALL: { top: 'center', right: -50, transform: 'translateY(-50%)' }
|
|
638
|
+
},
|
|
639
|
+
OUTSET6: {
|
|
640
|
+
LARGE: { bottom: 0, right: -95 },
|
|
641
|
+
MEDIUM: { bottom: 0, right: -60 },
|
|
642
|
+
SMALL: { bottom: 0, right: -50 }
|
|
643
|
+
},
|
|
644
|
+
OUTSET7: {
|
|
645
|
+
LARGE: { bottom: -95, right: 0 },
|
|
646
|
+
MEDIUM: { bottom: -60, right: 0 },
|
|
647
|
+
SMALL: { bottom: -50, right: 0 }
|
|
648
|
+
},
|
|
649
|
+
OUTSET8: {
|
|
650
|
+
LARGE: { bottom: -95, left: 'center', transform: 'translateX(-50%)' },
|
|
651
|
+
MEDIUM: { bottom: -60, left: 'center', transform: 'translateX(-50%)' },
|
|
652
|
+
SMALL: { bottom: -50, left: 'center', transform: 'translateX(-50%)' }
|
|
653
|
+
},
|
|
654
|
+
OUTSET9: {
|
|
655
|
+
LARGE: { bottom: -95, left: 0 },
|
|
656
|
+
MEDIUM: { bottom: -60, left: 0 },
|
|
657
|
+
SMALL: { bottom: -50, left: 0 }
|
|
658
|
+
},
|
|
659
|
+
OUTSET10: {
|
|
660
|
+
LARGE: { bottom: 0, left: -95 },
|
|
661
|
+
MEDIUM: { bottom: 0, left: -60 },
|
|
662
|
+
SMALL: { bottom: 0, left: -50 }
|
|
663
|
+
},
|
|
664
|
+
OUTSET11: {
|
|
665
|
+
LARGE: { top: 'center', left: -95, transform: 'translateY(-50%)' },
|
|
666
|
+
MEDIUM: { top: 'center', left: -60, transform: 'translateY(-50%)' },
|
|
667
|
+
SMALL: { top: 'center', left: -50, transform: 'translateY(-50%)' }
|
|
668
|
+
},
|
|
669
|
+
OUTSET12: {
|
|
670
|
+
LARGE: { top: 0, left: -95 },
|
|
671
|
+
MEDIUM: { top: 0, left: -60 },
|
|
672
|
+
SMALL: { top: 0, left: -50 }
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
var POS_OUTSET_GROUP = {
|
|
676
|
+
OUTSET1: {
|
|
677
|
+
bottom: '100%',
|
|
678
|
+
height: 0
|
|
679
|
+
},
|
|
680
|
+
OUTSET2: {
|
|
681
|
+
bottom: '100%',
|
|
682
|
+
height: 0,
|
|
683
|
+
left: '50%',
|
|
684
|
+
transform: 'translateX(-50%)'
|
|
685
|
+
},
|
|
686
|
+
OUTSET3: {
|
|
687
|
+
bottom: '100%',
|
|
688
|
+
height: 0,
|
|
689
|
+
right: 0
|
|
690
|
+
},
|
|
691
|
+
OUTSET4: {
|
|
692
|
+
top: 0,
|
|
693
|
+
width: 0,
|
|
694
|
+
right: 0
|
|
695
|
+
},
|
|
696
|
+
OUTSET5: {
|
|
697
|
+
top: '50%',
|
|
698
|
+
height: 0,
|
|
699
|
+
right: 0,
|
|
700
|
+
transform: 'translateY(-50%)'
|
|
701
|
+
},
|
|
702
|
+
OUTSET6: {
|
|
703
|
+
bottom: 0,
|
|
704
|
+
height: 0,
|
|
705
|
+
right: 0
|
|
706
|
+
},
|
|
707
|
+
OUTSET7: {
|
|
708
|
+
bottom: 0,
|
|
709
|
+
height: 0,
|
|
710
|
+
right: 0
|
|
711
|
+
},
|
|
712
|
+
OUTSET8: {
|
|
713
|
+
bottom: 0,
|
|
714
|
+
height: 0,
|
|
715
|
+
left: '50%',
|
|
716
|
+
transform: 'translateX(-50%)'
|
|
717
|
+
},
|
|
718
|
+
OUTSET9: {
|
|
719
|
+
bottom: 0,
|
|
720
|
+
height: 0,
|
|
721
|
+
left: 0
|
|
722
|
+
},
|
|
723
|
+
OUTSET10: {
|
|
724
|
+
bottom: 0,
|
|
725
|
+
height: 0,
|
|
726
|
+
left: 0
|
|
727
|
+
},
|
|
728
|
+
OUTSET11: {
|
|
729
|
+
top: '50%',
|
|
730
|
+
height: 0,
|
|
731
|
+
left: 0,
|
|
732
|
+
transform: 'translateY(-50%)'
|
|
733
|
+
},
|
|
734
|
+
OUTSET12: {
|
|
735
|
+
top: 0,
|
|
736
|
+
height: 0,
|
|
737
|
+
left: 0
|
|
738
|
+
}
|
|
739
|
+
};
|
|
740
|
+
// export const POS_OUTSET = {
|
|
741
|
+
// PAGINATION: POS_OUTSET_PAGINATION,
|
|
742
|
+
// PREV: POS_OUTSET_NAVIGATION,
|
|
743
|
+
// NEXT: POS_OUTSET_NAVIGATION,
|
|
744
|
+
// GROUP: POS_OUTSET_GROUP
|
|
745
|
+
// };
|
|
@@ -13,6 +13,6 @@ export declare const useFlexGridLayout: ({ components }: {
|
|
|
13
13
|
left: string;
|
|
14
14
|
};
|
|
15
15
|
componentGroups: Record<string, SlideBannerElementsProps[]>;
|
|
16
|
-
getPositionStyle: (position: string, ccbInset: Record<string, string>, designType: string, size: 'LARGE' | 'MEDIUM' | 'SMALL') => CSSProperties;
|
|
16
|
+
getPositionStyle: (position: string, ccbInset: Record<string, string>, designType: string, size: 'LARGE' | 'MEDIUM' | 'SMALL' | 'GROUP') => CSSProperties;
|
|
17
17
|
getComponentGroupLayout: (components: SlideBannerElementsProps[], position: string) => CSSProperties;
|
|
18
18
|
};
|
|
@@ -104,8 +104,7 @@ var useFlexGridLayout = function (_a) {
|
|
|
104
104
|
INSET7: { bottom: ccbBottom + GAP, left: ccbLeft + GAP },
|
|
105
105
|
INSET8: { top: "".concat(ccbCenterY, "px"), left: ccbLeft + GAP, transform: 'translateY(-50%)' }
|
|
106
106
|
};
|
|
107
|
-
var pos = (0, elementPositions_1.getPosition)(position, designType, size);
|
|
108
|
-
console.log('pos', position, designType, size, pos);
|
|
107
|
+
var pos = (0, elementPositions_1.getPosition)(position, designType, size, 'GROUP');
|
|
109
108
|
return __assign(__assign({}, base), pos);
|
|
110
109
|
};
|
|
111
110
|
// 컴포넌트 그룹 레이아웃
|