pds-dev-kit-web-test 2.7.228 → 2.7.233

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 (23) hide show
  1. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +2 -2
  2. package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +11 -8
  3. package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +1 -1
  4. package/dist/src/sub/DynamicLayout/mock_contentsList.js +3 -3
  5. package/dist/src/sub/DynamicLayout/mock_slideBanner.js +2 -2
  6. package/dist/src/sub/DynamicLayout/mocks.js +1 -1
  7. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +2 -1
  8. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +11 -5
  9. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +6 -6
  10. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +4 -4
  11. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +2 -1
  12. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +5 -4
  13. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +4 -4
  14. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +2 -1
  15. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +2 -1
  16. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +3 -1
  17. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +19 -16
  18. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +5 -5
  19. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.d.ts +4 -0
  20. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.js +596 -0
  21. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +1 -1
  22. package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +6 -3
  23. package/package.json +1 -1
@@ -3,12 +3,12 @@ import type { PDSIconType, UiColors } from '../../common';
3
3
  export type IconButtonProps = {
4
4
  fillType?: 'fill' | 'line';
5
5
  shapeType?: 'circular' | 'rectangle';
6
- baseSize?: 'xxlarge' | 'large' | 'medium' | 'small' | 'xsmall';
6
+ baseSize?: 'xxlarge' | 'large' | 'medium' | 'small' | 'xsmall' | number;
7
7
  baseColorKey?: UiColors;
8
8
  overrideBaseColorHex?: string;
9
9
  overrideBaseColorHexHover?: string;
10
10
  borderColorKey?: UiColors;
11
- iconSize?: 12 | 16 | 20 | 24 | 48 | 72;
11
+ iconSize?: 12 | 16 | 20 | 24 | 40 | 48 | 72;
12
12
  iconFillType?: 'fill' | 'line';
13
13
  iconName: PDSIconType;
14
14
  iconColorKey?: UiColors;
@@ -171,14 +171,17 @@ var iconButtonStyle = (0, styled_components_1.css)(templateObject_12 || (templat
171
171
  }[fillType];
172
172
  }, function (_a) {
173
173
  var baseSize = _a.baseSize;
174
- return baseSize &&
175
- {
176
- xxlarge: xxlarge,
177
- large: large,
178
- medium: medium,
179
- small: small,
180
- xsmall: xsmall
181
- }[baseSize];
174
+ return typeof baseSize === 'number'
175
+ ? "height: ".concat(baseSize, "px; width: ").concat(baseSize, "px;")
176
+ : typeof baseSize === 'string'
177
+ ? {
178
+ xxlarge: xxlarge,
179
+ large: large,
180
+ medium: medium,
181
+ small: small,
182
+ xsmall: xsmall
183
+ }[baseSize]
184
+ : null;
182
185
  });
183
186
  var S_IconButton = styled_components_1.default.button(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), iconButtonStyle);
184
187
  exports.default = IconButton;
@@ -2,7 +2,7 @@
2
2
  import type { PDSIconType, UiColors } from '../../common';
3
3
  export type IconProps = {
4
4
  iconName?: PDSIconType;
5
- size?: 12 | 16 | 20 | 24 | 32 | 48 | 56 | 64 | 72;
5
+ size?: 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72;
6
6
  colorKey?: UiColors;
7
7
  overrideColorHex?: string;
8
8
  fillType?: 'line' | 'fill';
@@ -5574,13 +5574,13 @@ exports.SAMPLE_LIST_CB = {
5574
5574
  CB_STYLE_PROP_CONTENTSLISTPAGINATION: {
5575
5575
  CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONLOCATION: 'OUTSET1',
5576
5576
  'CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONLOCATION:MOBILE': null,
5577
- CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONPRIMARYCOLOR: '#1E1E20FF',
5577
+ CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONPRIMARYCOLOR: '#ff1e00ff',
5578
5578
  'CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONPRIMARYCOLOR:MOBILE': null,
5579
- CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONSECONDARYCOLOR: '#FFFFFF99',
5579
+ CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONSECONDARYCOLOR: '#0022fdff',
5580
5580
  'CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONSECONDARYCOLOR:MOBILE': null,
5581
5581
  CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONSIZE: 'LARGE',
5582
5582
  'CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONSIZE:MOBILE': null,
5583
- CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONSTYLE: 'DESIGN1',
5583
+ CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONSTYLE: 'DESIGN7',
5584
5584
  'CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONSTYLE:MOBILE': null
5585
5585
  },
5586
5586
  CB_STYLE_PROP_OPACITY: {
@@ -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: 'OUTSET1',
4572
+ CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONLOCATION: 'OUTSET2',
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,
@@ -4577,7 +4577,7 @@ exports.SAMPLE_SLIDEBANNER_CB = {
4577
4577
  'CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONSECONDARYCOLOR:MOBILE': null,
4578
4578
  CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONSIZE: 'LARGE',
4579
4579
  'CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONSIZE:MOBILE': null,
4580
- CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONSTYLE: 'DESIGN3',
4580
+ CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONSTYLE: 'DESIGN1',
4581
4581
  'CB_STYLE_PROP_SLIDEBANNERPAGINATION_SPEC_PAGINATIONSTYLE:MOBILE': null
4582
4582
  },
4583
4583
  CB_STYLE_PROP_SLIDEBANNERPLAYBACKMETHOD: {
@@ -13,7 +13,7 @@ exports.MOCK_SECTIONS = [
13
13
  // MOCK_VIDEO_CB_2,
14
14
  // SAMPLE_CONTENTSCAROUSEL_CB,
15
15
  mock_slideBanner_1.SAMPLE_SLIDEBANNER_CB
16
- // SAMPLE_LIST_CB,
16
+ // SAMPLE_LIST_CB
17
17
  // ...MOCK_COMPONENT_BLOCKS
18
18
  ],
19
19
  display: true,
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { INSET_POSTIION, OUTSET_POSTIION } from './types';
2
+ import type { CB_STYLE_PROP_CONTENTSCAROUSELBUTTON_SPEC_PREVBTNSTYLE_TYPE, INSET_POSTIION, OUTSET_POSTIION } from './types';
3
3
  import type { CB_CONTENTSCAROUSEL } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
4
4
  import type { CB_CONTENTSCAROUSEL_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
5
5
  type Props = CB_CONTENTSCAROUSEL_PROPERTIES_TYPE & IndexForIntersection & {
@@ -9,6 +9,7 @@ type ComponentType = 'PREV' | 'NEXT' | 'PROGRESSBAR';
9
9
  export type ContentsCarouselElementsProps = {
10
10
  type: ComponentType;
11
11
  position: OUTSET_POSTIION | INSET_POSTIION;
12
+ designType: CB_STYLE_PROP_CONTENTSCAROUSELBUTTON_SPEC_PREVBTNSTYLE_TYPE;
12
13
  };
13
14
  declare function ContentsCarousel(props: Props): JSX.Element;
14
15
  export default ContentsCarousel;
@@ -45,7 +45,8 @@ var ContentsCarouselCore_1 = __importDefault(require("./ContentsCarouselCore"));
45
45
  var contentsCarouselUtils_1 = require("./contentsCarouselUtils");
46
46
  var useFlexGridLayout_1 = require("./hooks/useFlexGridLayout");
47
47
  var useSwiper_1 = require("./hooks/useSwiper");
48
- var createComponent = function (type, getDesignType, getLocation) {
48
+ var createComponent = function (type, getDesignType, getLocation, designType) {
49
+ if (designType === void 0) { designType = 'NONE'; }
49
50
  return function (normalStyle, hoverStyle, isHovered) {
50
51
  var normalDesign = getDesignType(normalStyle);
51
52
  var hoverDesign = getDesignType(hoverStyle);
@@ -55,7 +56,8 @@ var createComponent = function (type, getDesignType, getLocation) {
55
56
  return undefined;
56
57
  return {
57
58
  type: type,
58
- position: isHovered ? getLocation(hoverStyle) : getLocation(normalStyle)
59
+ position: isHovered ? getLocation(hoverStyle) : getLocation(normalStyle),
60
+ designType: designType
59
61
  };
60
62
  };
61
63
  };
@@ -96,12 +98,16 @@ function ContentsCarousel(props) {
96
98
  : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
97
99
  var hasEffect = !isNoneEffectType;
98
100
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
99
- var createPrevButton = createComponent('PREV', function (style) { return style.prevBtnType || 'NONE'; }, function (style) { return style.prevBtnLocation || 'OUTSET1'; });
100
- var createNextButton = createComponent('NEXT', function (style) { return style.nextBtnType || 'NONE'; }, function (style) { return style.nextBtnLocation || 'OUTSET1'; });
101
+ var createPrevButton = createComponent('PREV', function (style) { return style.prevBtnType || 'NONE'; }, function (style) { return style.prevBtnLocation || 'OUTSET1'; }, customNavigationNormalStyle.prevBtnType || 'NONE');
102
+ var createNextButton = createComponent('NEXT', function (style) { return style.nextBtnType || 'NONE'; }, function (style) { return style.nextBtnLocation || 'OUTSET1'; }, customNavigationNormalStyle.nextBtnType || 'NONE');
101
103
  var components = [
102
104
  createPrevButton(customNavigationNormalStyle, customNavigationHoverStyle, isHovered),
103
105
  createNextButton(customNavigationNormalStyle, customNavigationHoverStyle, isHovered),
104
- { type: 'PROGRESSBAR', position: 'INSET5' }
106
+ {
107
+ type: 'PROGRESSBAR',
108
+ position: 'INSET5',
109
+ designType: customProgressbarNormalStyle.type || 'NONE'
110
+ }
105
111
  ].filter(function (component) { return component !== undefined; });
106
112
  var _k = (0, useFlexGridLayout_1.useFlexGridLayout)({ components: components }), layoutRef = _k.layoutRef, positionRefs = _k.positionRefs,
107
113
  // ccbInset,
@@ -50,13 +50,13 @@ var CustomNavigationNextBtn = function (_a) {
50
50
  : navigationConfigs_1.nextButtonMappedIcons[styles.nextBtnType || 'DESIGN1'];
51
51
  var buttonSize = 'large';
52
52
  var iconSize = 24;
53
- if (styles.nextBtnSize === 'SMALL') {
54
- buttonSize = 'small';
55
- iconSize = 16;
53
+ if (styles.prevBtnSize === 'SMALL') {
54
+ buttonSize = 40;
55
+ iconSize = 20;
56
56
  }
57
- if (styles.nextBtnSize === 'LARGE') {
58
- buttonSize = 'xxlarge';
59
- iconSize = 48;
57
+ if (styles.prevBtnSize === 'LARGE') {
58
+ buttonSize = 72;
59
+ iconSize = 40;
60
60
  }
61
61
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: nextButton && ((0, jsx_runtime_1.jsx)(S_NextButton, __assign({ className: "cb-contentscarousel-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.nextBtnPrimaryColor, iconName: nextButton.iconName, iconFillType: "line", iconColorKey: nextButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideIconColorHex: styles.nextBtnSecondaryColor, overrideIconColorHexHover: hoverStyles.nextBtnSecondaryColor, shadow: nextButton.shadow, useDefaultActiveStyle: false, useDefaultHoverStyle: false, onClick: onClick }) }))) }));
62
62
  };
@@ -51,12 +51,12 @@ var CustomNavigationPrevBtn = function (_a) {
51
51
  var buttonSize = 'large';
52
52
  var iconSize = 24;
53
53
  if (styles.prevBtnSize === 'SMALL') {
54
- buttonSize = 'small';
55
- iconSize = 16;
54
+ buttonSize = 40;
55
+ iconSize = 20;
56
56
  }
57
57
  if (styles.prevBtnSize === 'LARGE') {
58
- buttonSize = 'xxlarge';
59
- iconSize = 48;
58
+ buttonSize = 72;
59
+ iconSize = 40;
60
60
  }
61
61
  return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: prevButton && ((0, jsx_runtime_1.jsx)(S_PrevButton, __assign({ className: "cb-contentscarousel-prev-button", disabled: isDisabled, "$size": styles.prevBtnSize }, { children: (0, jsx_runtime_1.jsx)(IconButton_1.IconButton, { fillType: "fill", baseSize: buttonSize, iconSize: iconSize, shapeType: prevButton.shapeType, borderColorKey: prevButton.borderColorKey, iconName: prevButton.iconName, iconFillType: "line", iconColorKey: prevButton.iconColorKey || 'ui_cpnt_icon_sys_black', overrideBaseColorHex: styles.prevBtnPrimaryColor, overrideBaseColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.prevBtnPrimaryColor, overrideIconColorHex: styles.prevBtnSecondaryColor, overrideIconColorHexHover: hoverStyles === null || hoverStyles === void 0 ? void 0 : hoverStyles.prevBtnSecondaryColor, shadow: prevButton.shadow, onClick: onClick, useDefaultActiveStyle: false, useDefaultHoverStyle: false }) }))) }));
62
62
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { OUTSET_POSTIION, INSET_POSTIION } from './types';
2
+ import type { OUTSET_POSTIION, INSET_POSTIION, CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE } from './types';
3
3
  import type { CB_LIST } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
4
4
  import type { CB_LIST_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
5
5
  type Props = CB_LIST_PROPERTIES_TYPE & IndexForIntersection & {
@@ -9,6 +9,7 @@ type ComponentType = 'PAGINATION';
9
9
  export type ContentsListElementsProps = {
10
10
  type: ComponentType;
11
11
  position: OUTSET_POSTIION | INSET_POSTIION;
12
+ designType: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
12
13
  };
13
14
  declare function ContentsList(props: Props): JSX.Element;
14
15
  export default ContentsList;
@@ -42,7 +42,7 @@ var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
42
42
  var CustomPagination_1 = require("./components/CustomPagination");
43
43
  var contentsListUtils_1 = require("./contentsListUtils");
44
44
  var useFlexGridLayout_1 = require("./hooks/useFlexGridLayout");
45
- var createComponent = function (type, getDesignType, getLocation) {
45
+ var createComponent = function (type, getDesignType, getLocation, designType) {
46
46
  return function (normalStyle, hoverStyle, isHovered) {
47
47
  var normalDesign = getDesignType(normalStyle);
48
48
  var hoverDesign = getDesignType(hoverStyle);
@@ -52,7 +52,8 @@ var createComponent = function (type, getDesignType, getLocation) {
52
52
  return undefined;
53
53
  return {
54
54
  type: type,
55
- position: isHovered ? getLocation(hoverStyle) : getLocation(normalStyle)
55
+ position: isHovered ? getLocation(hoverStyle) : getLocation(normalStyle),
56
+ designType: designType
56
57
  };
57
58
  };
58
59
  };
@@ -130,7 +131,7 @@ function ContentsList(props) {
130
131
  var listMinHeight = oneCompositionMinHeight * numberOfRows +
131
132
  (numberOfRows - 1) * rowGap +
132
133
  paddingTB;
133
- var createPagination = createComponent('PAGINATION', function (style) { return style.type || 'NONE'; }, function (style) { return style.location || 'OUTSET1'; });
134
+ var createPagination = createComponent('PAGINATION', function (style) { return style.type || 'NONE'; }, function (style) { return style.location || 'OUTSET1'; }, paginationNormalStyle.type || 'NONE');
134
135
  var components = [
135
136
  createPagination(paginationNormalStyle, paginationHoverStyle, isHovered)
136
137
  ].filter(function (component) { return component !== undefined; });
@@ -169,7 +170,7 @@ function ContentsList(props) {
169
170
  else {
170
171
  delete positionRefs.current[position];
171
172
  }
172
- }, style: __assign(__assign({}, getPositionStyle(position, ccbInset)), { zIndex: 3 }) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-contentslist-button-layout-box", style: getComponentGroupLayout(groupComponents, position) }, { children: groupComponents.map(function (component) { return renderElements(component); }) })) }), position));
173
+ }, style: __assign(__assign({}, getPositionStyle(position, ccbInset, groupComponents[0].designType)), { zIndex: 3 }) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-contentslist-button-layout-box", style: getComponentGroupLayout(groupComponents, position) }, { children: groupComponents.map(function (component) { return renderElements(component); }) })) }), position));
173
174
  }), (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({ id: "contentslist-box", 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); }, "data-number-of-items": CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS.length, "data-number-of-columns": Math.min(CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS.length), "data-row-gap": rowGap, "data-column-gap": columnGap, "data-cols": Math.min(CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_MANUALITEMS.length), "data-min-width": listMinWidth, "data-min-height": listMinHeight, "data-inset-top": parseFloat(ccbInset.top), "data-inset-bottom": parseFloat(ccbInset.bottom) }, { 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_ContentsListLayout, __assign({ className: "cb-contentslist-layout-box", ref: layoutRef, style: {
174
175
  display: layout.display,
175
176
  flexDirection: layout.flexDirection,
@@ -81,19 +81,19 @@ exports.Design3 = Design3;
81
81
  function Design7(_a) {
82
82
  var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, size = _a.size, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
83
83
  var _b = LIST_PAGINATION_SIZES.DESIGN7[size], BUTTON_SIZE = _b.BUTTON_SIZE, SELECTED_TEXT_STYLE_THEME = _b.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _b.UNSELECTED_TEXT_STYLE_THEME, ICON_SIZE = _b.ICON_SIZE;
84
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ style: { color: secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.D_IconButton, { iconName: "ic_arrow_left", iconSize: ICON_SIZE, baseSize: BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: {
84
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ style: { color: secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.D_IconButton, { iconName: "ic_arrow_left", iconSize: ICON_SIZE, baseSize: BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent", overrideIconColorHexHover: primaryColor }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: {
85
85
  marginLeft: '8px',
86
86
  color: primaryColor
87
- }, styleTheme: SELECTED_TEXT_STYLE_THEME }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '4px', opacity: 0.6, color: primaryColor }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: "/" })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', opacity: 0.6, color: primaryColor }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.D_IconButton, { iconName: "ic_arrow_right", iconSize: ICON_SIZE, baseSize: BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) }))] })));
87
+ }, styleTheme: SELECTED_TEXT_STYLE_THEME }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginLeft: '4px', marginRight: '4px', opacity: 0.6, color: primaryColor }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: "/" })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', opacity: 0.6, color: primaryColor }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.D_IconButton, { iconName: "ic_arrow_right", iconSize: ICON_SIZE, baseSize: BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent", overrideIconColorHexHover: primaryColor }) }))] })));
88
88
  }
89
89
  exports.Design7 = Design7;
90
90
  function Design8(_a) {
91
91
  var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, size = _a.size, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
92
92
  var _b = LIST_PAGINATION_SIZES.DESIGN8[size], BUTTON_SIZE = _b.BUTTON_SIZE, SELECTED_TEXT_STYLE_THEME = _b.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _b.UNSELECTED_TEXT_STYLE_THEME, ICON_SIZE = _b.ICON_SIZE;
93
- return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ style: { color: secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.D_IconButton, { iconName: "ic_arrow_left", iconSize: ICON_SIZE, baseSize: BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: {
93
+ return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ style: { color: secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevious, disabled: current === 1 }, { children: (0, jsx_runtime_1.jsx)(components_1.D_IconButton, { iconName: "ic_arrow_left", iconSize: ICON_SIZE, baseSize: BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent", overrideIconColorHexHover: primaryColor }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: {
94
94
  marginLeft: '8px',
95
95
  color: primaryColor
96
- }, styleTheme: SELECTED_TEXT_STYLE_THEME }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '8px', opacity: 0.6, color: primaryColor }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: "|" })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', opacity: 0.6, color: primaryColor }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.D_IconButton, { iconName: "ic_arrow_right", iconSize: ICON_SIZE, baseSize: BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) }))] })));
96
+ }, styleTheme: SELECTED_TEXT_STYLE_THEME }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '8px', opacity: 0.6, color: primaryColor }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: "|" })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', opacity: 0.6, color: primaryColor }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.D_IconButton, { iconName: "ic_arrow_right", iconSize: ICON_SIZE, baseSize: BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent", overrideIconColorHexHover: primaryColor }) }))] })));
97
97
  }
98
98
  exports.Design8 = Design8;
99
99
  // NOTE: 이 밑은 NOT IN USE
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { ContentsListElementsProps } from '../ContentsList';
3
+ import type { CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE } from '../types';
3
4
  import type { CSSProperties } from 'styled-components';
4
5
  export declare const useFlexGridLayout: ({ components }: {
5
6
  components: ContentsListElementsProps[];
@@ -13,6 +14,6 @@ export declare const useFlexGridLayout: ({ components }: {
13
14
  left: string;
14
15
  };
15
16
  componentGroups: Record<string, ContentsListElementsProps[]>;
16
- getPositionStyle: (position: string, ccbInset: Record<string, string>) => CSSProperties;
17
+ getPositionStyle: (position: string, ccbInset: Record<string, string>, designType: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE) => CSSProperties;
17
18
  getComponentGroupLayout: (components: ContentsListElementsProps[], position: string) => CSSProperties;
18
19
  };
@@ -19,6 +19,7 @@ var useFlexGridLayout = function (_a) {
19
19
  var _c = (0, react_1.useState)({ width: 0, height: 0 }), layoutSize = _c[0], setLayoutSize = _c[1];
20
20
  var layoutRef = (0, react_1.useRef)(null);
21
21
  var positionRefs = (0, react_1.useRef)({});
22
+ console.log('useFlexGridLayout components:', components);
22
23
  // 위치별로 컴포넌트 그룹화
23
24
  var getComponentsByPosition = function () {
24
25
  var groups = {};
@@ -60,7 +61,7 @@ var useFlexGridLayout = function (_a) {
60
61
  return directions[position];
61
62
  };
62
63
  // 위치에 따른 스타일 결정 (CCB 크기를 고려)
63
- var getPositionStyle = function (position, ccbInset) {
64
+ var getPositionStyle = function (position, ccbInset, designType) {
64
65
  var base = {
65
66
  position: 'absolute',
66
67
  display: 'flex',
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { INSET_POSTIION, OUTSET_POSTIION } from './types';
2
+ import type { CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE_TYPE, INSET_POSTIION, OUTSET_POSTIION } from './types';
3
3
  import type { CB_SLIDEBANNER } from '../../../../../../../DynamicLayout/sections/CustomSection/types';
4
4
  import type { CB_SLIDEBANNER_PROPERTIES_TYPE, IndexForIntersection } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
5
5
  type Props = CB_SLIDEBANNER_PROPERTIES_TYPE & IndexForIntersection & {
@@ -9,6 +9,8 @@ type ComponentType = 'PREV' | 'NEXT' | 'PAGINATION' | 'PROGRESSBAR';
9
9
  export type SlideBannerElementsProps = {
10
10
  type: ComponentType;
11
11
  position: OUTSET_POSTIION | INSET_POSTIION;
12
+ designType: CB_STYLE_PROP_SLIDEBANNER_SPEC_PREVBTNSTYLE_TYPE;
13
+ size: 'LARGE' | 'MEDIUM' | 'SMALL';
12
14
  };
13
15
  declare function SlideBanner(props: Props): JSX.Element;
14
16
  export default SlideBanner;
@@ -46,8 +46,10 @@ var useFlexGridLayout_1 = require("./hooks/useFlexGridLayout");
46
46
  var useSwiper_1 = require("./hooks/useSwiper");
47
47
  var SlideBannerCore_1 = __importDefault(require("./SlideBannerCore"));
48
48
  var slideBannerUtils_1 = require("./slideBannerUtils");
49
- var createComponent = function (type, getDesignType, getLocation) {
50
- return function (normalStyle, hoverStyle, isHovered) {
49
+ var createComponent = function (type, getDesignType, getLocation, designType, size) {
50
+ if (size === void 0) { size = 'MEDIUM'; }
51
+ return function (normalStyle, hoverStyle, isHovered, size) {
52
+ if (size === void 0) { size = 'MEDIUM'; }
51
53
  var normalDesign = getDesignType(normalStyle);
52
54
  var hoverDesign = getDesignType(hoverStyle);
53
55
  if (isHovered && hoverDesign === 'NONE')
@@ -56,7 +58,9 @@ var createComponent = function (type, getDesignType, getLocation) {
56
58
  return undefined;
57
59
  return {
58
60
  type: type,
59
- position: isHovered ? getLocation(hoverStyle) : getLocation(normalStyle)
61
+ position: isHovered ? getLocation(hoverStyle) : getLocation(normalStyle),
62
+ designType: designType,
63
+ size: size
60
64
  };
61
65
  };
62
66
  };
@@ -99,24 +103,22 @@ function SlideBanner(props) {
99
103
  : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
100
104
  var hasEffect = !isNoneEffectType;
101
105
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
102
- var createPrevButton = createComponent('PREV', function (style) { return style.prevBtnType || 'NONE'; }, function (style) { return style.prevBtnLocation || 'OUTSET1'; });
103
- var createNextButton = createComponent('NEXT', function (style) { return style.nextBtnType || 'NONE'; }, function (style) { return style.nextBtnLocation || 'OUTSET1'; });
104
- var createPagination = createComponent('PAGINATION', function (style) { return style.type || 'NONE'; }, function (style) { return style.location || 'OUTSET1'; });
106
+ var createPrevButton = createComponent('PREV', function (style) { return style.prevBtnType || 'NONE'; }, function (style) { return style.prevBtnLocation || 'OUTSET1'; }, customNavigationNormalStyle.prevBtnType || 'NONE', customNavigationNormalStyle.prevBtnSize || 'MEDIUM');
107
+ var createNextButton = createComponent('NEXT', function (style) { return style.nextBtnType || 'NONE'; }, function (style) { return style.nextBtnLocation || 'OUTSET1'; }, customNavigationNormalStyle.nextBtnType || 'NONE', customNavigationNormalStyle.nextBtnSize || 'MEDIUM');
108
+ var createPagination = createComponent('PAGINATION', function (style) { return style.type || 'NONE'; }, function (style) { return style.location || 'OUTSET1'; }, customPaginationNormalStyle.type || 'NONE', customPaginationNormalStyle.size || 'MEDIUM');
105
109
  var components = [
106
110
  createPrevButton(customNavigationNormalStyle, customNavigationHoverStyle, isHovered),
107
111
  createNextButton(customNavigationNormalStyle, customNavigationHoverStyle, isHovered),
108
112
  createPagination(customPaginationNormalStyle, customPaginationHoverStyle, isHovered),
109
113
  { type: 'PROGRESSBAR', position: 'INSET5' }
110
114
  ].filter(function (component) { return component !== undefined; });
111
- var _k = (0, useFlexGridLayout_1.useFlexGridLayout)({ components: components }), layoutRef = _k.layoutRef, positionRefs = _k.positionRefs,
112
- // ccbInset,
113
- componentGroups = _k.componentGroups, getPositionStyle = _k.getPositionStyle, getComponentGroupLayout = _k.getComponentGroupLayout;
114
- var ccbInset = {
115
- top: '0px',
116
- right: '0px',
117
- bottom: '0px',
118
- left: '0px'
119
- };
115
+ 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
+ // const ccbInset = {
117
+ // top: '0px',
118
+ // right: '0px',
119
+ // bottom: '0px',
120
+ // left: '0px'
121
+ // };
120
122
  var renderElements = function (component) {
121
123
  var _a;
122
124
  switch (component.type) {
@@ -141,6 +143,7 @@ function SlideBanner(props) {
141
143
  .map(function (item) {
142
144
  return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
143
145
  });
146
+ console.log('entries', Object.entries(componentGroups));
144
147
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [Object.entries(componentGroups).map(function (_a) {
145
148
  var position = _a[0], groupComponents = _a[1];
146
149
  return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-slidebanner-button-group ccb-elements", ref: function (el) {
@@ -150,7 +153,7 @@ function SlideBanner(props) {
150
153
  else {
151
154
  delete positionRefs.current[position];
152
155
  }
153
- }, style: __assign(__assign({}, getPositionStyle(position, ccbInset)), { 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) { return renderElements(component); }) })) }), position));
156
+ }, style: __assign(__assign({}, getPositionStyle(position, ccbInset, groupComponents[0].designType, groupComponents[0].size)), { 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) { return renderElements(component); }) })) }), position));
154
157
  }), (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 === null || CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE === void 0 ? void 0 : CB_EFFECT_PROP_SLIDEBANNER_SPEC_TRANSITIONTYPE.toLowerCase() }, { children: (0, createCompositions_1.createCompositions)({
155
158
  valueType: CB_CONTENT_PROP_SLIDEBANNER_SPEC_VALUETYPE,
156
159
  queryPath: CB_CONTENT_PROP_SLIDEBANNER_SPEC_CONNECTDATA,
@@ -48,14 +48,14 @@ var CustomNavigationNextBtn = function (_a) {
48
48
  var nextButton = styles.nextBtnType === 'NONE'
49
49
  ? undefined
50
50
  : navigationConfigs_1.nextButtonMappedIcons[styles.nextBtnType || 'DESIGN1'];
51
- var buttonSize = 'large';
52
- var iconSize = 24;
51
+ var buttonSize = 48;
52
+ var iconSize = 20;
53
53
  if (styles.nextBtnSize === 'SMALL') {
54
- buttonSize = 'small';
55
- iconSize = 16;
54
+ buttonSize = 40;
55
+ iconSize = 24;
56
56
  }
57
57
  if (styles.nextBtnSize === 'LARGE') {
58
- buttonSize = 'xxlarge';
58
+ buttonSize = 80;
59
59
  iconSize = 48;
60
60
  }
61
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 }) }))) }));
@@ -0,0 +1,4 @@
1
+ import type { CSSProperties } from 'styled-components';
2
+ export declare function getPosition(position: string, designType: string, size: string): CSSProperties;
3
+ export declare const POS_OUTSET: Record<string, Record<string, Record<string, CSSProperties>>>;
4
+ export declare const POS_INSET: Record<string, Record<string, CSSProperties>>;
@@ -0,0 +1,596 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POS_INSET = exports.POS_OUTSET = exports.getPosition = void 0;
4
+ var GAP = 8;
5
+ function getPosition(position, designType, size) {
6
+ var _a, _b, _c;
7
+ if (position.startsWith('OUTSET')) {
8
+ return (_b = (_a = exports.POS_OUTSET[position]) === null || _a === void 0 ? void 0 : _a[designType]) === null || _b === void 0 ? void 0 : _b[size];
9
+ }
10
+ return (_c = exports.POS_INSET[position]) === null || _c === void 0 ? void 0 : _c[size];
11
+ }
12
+ exports.getPosition = getPosition;
13
+ exports.POS_OUTSET = {
14
+ //--------------------------------------------------
15
+ // OUTSET 1 (left 0px 공통)
16
+ //--------------------------------------------------
17
+ OUTSET1: {
18
+ DESIGN1: {
19
+ LARGE: { top: -50, left: 0 },
20
+ MEDIUM: { top: -45, left: 0 },
21
+ SMALL: { top: -40, left: 0 }
22
+ },
23
+ DESIGN2: {
24
+ LARGE: { top: -50, left: 0 },
25
+ MEDIUM: { top: -45, left: 0 },
26
+ SMALL: { top: -40, left: 0 }
27
+ },
28
+ DESIGN3: {
29
+ LARGE: { top: -50, left: 0 },
30
+ MEDIUM: { top: -45, left: 0 },
31
+ SMALL: { top: -40, left: 0 }
32
+ },
33
+ DESIGN4: {
34
+ LARGE: { top: -50, left: 0 },
35
+ MEDIUM: { top: -45, left: 0 },
36
+ SMALL: { top: -40, left: 0 }
37
+ },
38
+ DESIGN5: {
39
+ LARGE: { top: -85, left: 0 },
40
+ MEDIUM: { top: -80, left: 0 },
41
+ SMALL: { top: -75, left: 0 }
42
+ },
43
+ DESIGN6: {
44
+ LARGE: { top: -35, left: 0 },
45
+ MEDIUM: { top: -30, left: 0 },
46
+ SMALL: { top: -25, left: 0 }
47
+ },
48
+ DESIGN7: {
49
+ LARGE: { top: -85, left: 0 },
50
+ MEDIUM: { top: -80, left: 0 },
51
+ SMALL: { top: -75, left: 0 }
52
+ },
53
+ DESIGN8: {
54
+ LARGE: { top: -25, left: 0 },
55
+ MEDIUM: { top: -25, left: 0 },
56
+ SMALL: { top: -20, left: 0 }
57
+ }
58
+ },
59
+ //--------------------------------------------------
60
+ // OUTSET 2 (left center 공통, transform 추출)
61
+ //--------------------------------------------------
62
+ OUTSET2: {
63
+ DESIGN1: {
64
+ LARGE: { top: -50, left: 'center', transform: 'translateX(-50%)' },
65
+ MEDIUM: { top: -45, left: 'center', transform: 'translateX(-50%)' },
66
+ SMALL: { top: -40, left: 'center', transform: 'translateX(-50%)' }
67
+ },
68
+ DESIGN2: {
69
+ LARGE: { top: -50, left: 'center' },
70
+ MEDIUM: { top: -45, left: 'center' },
71
+ SMALL: { top: -40, left: 'center' }
72
+ },
73
+ DESIGN3: {
74
+ LARGE: { top: -50, left: 'center' },
75
+ MEDIUM: { top: -45, left: 'center' },
76
+ SMALL: { top: -40, left: 'center' }
77
+ },
78
+ DESIGN4: {
79
+ LARGE: { top: -50, left: 'center' },
80
+ MEDIUM: { top: -45, left: 'center' },
81
+ SMALL: { top: -40, left: 'center' }
82
+ },
83
+ DESIGN5: {
84
+ LARGE: { top: -85, left: 'center' },
85
+ MEDIUM: { top: -80, left: 'center' },
86
+ SMALL: { top: -75, left: 'center' }
87
+ },
88
+ DESIGN6: {
89
+ LARGE: { top: -35, left: 'center' },
90
+ MEDIUM: { top: -30, left: 'center' },
91
+ SMALL: { top: -25, left: 'center' }
92
+ },
93
+ DESIGN7: {
94
+ LARGE: { top: -85, left: 'center' },
95
+ MEDIUM: { top: -80, left: 'center' },
96
+ SMALL: { top: -75, left: 'center' }
97
+ },
98
+ DESIGN8: {
99
+ LARGE: { top: -25, left: 'center' },
100
+ MEDIUM: { top: -25, left: 'center' },
101
+ SMALL: { top: -20, left: 'center' }
102
+ }
103
+ },
104
+ //--------------------------------------------------
105
+ // OUTSET 3 (right 0px 공통)
106
+ //--------------------------------------------------
107
+ OUTSET3: {
108
+ DESIGN1: {
109
+ LARGE: { top: -50, right: 0 },
110
+ MEDIUM: { top: -45, right: 0 },
111
+ SMALL: { top: -40, right: 0 }
112
+ },
113
+ DESIGN2: {
114
+ LARGE: { top: -50, right: 0 },
115
+ MEDIUM: { top: -45, right: 0 },
116
+ SMALL: { top: -40, right: 0 }
117
+ },
118
+ DESIGN3: {
119
+ LARGE: { top: -50, right: 0 },
120
+ MEDIUM: { top: -45, right: 0 },
121
+ SMALL: { top: -40, right: 0 }
122
+ },
123
+ DESIGN4: {
124
+ LARGE: { top: -50, right: 0 },
125
+ MEDIUM: { top: -45, right: 0 },
126
+ SMALL: { top: -40, right: 0 }
127
+ },
128
+ DESIGN5: {
129
+ LARGE: { top: -85, right: 0 },
130
+ MEDIUM: { top: -80, right: 0 },
131
+ SMALL: { top: -75, right: 0 }
132
+ },
133
+ DESIGN6: {
134
+ LARGE: { top: -35, right: 0 },
135
+ MEDIUM: { top: -30, right: 0 },
136
+ SMALL: { top: -25, right: 0 }
137
+ },
138
+ DESIGN7: {
139
+ LARGE: { top: -85, right: 0 },
140
+ MEDIUM: { top: -80, right: 0 },
141
+ SMALL: { top: -75, right: 0 }
142
+ },
143
+ DESIGN8: {
144
+ LARGE: { top: -25, right: 0 },
145
+ MEDIUM: { top: -25, right: 0 },
146
+ SMALL: { top: -20, right: 0 }
147
+ }
148
+ },
149
+ //--------------------------------------------------
150
+ // OUTSET 4 (top 0px 공통)
151
+ //--------------------------------------------------
152
+ OUTSET4: {
153
+ DESIGN1: {
154
+ LARGE: { top: 0, right: -65 },
155
+ MEDIUM: { top: 0, right: -60 },
156
+ SMALL: { top: 0, right: -60 }
157
+ },
158
+ DESIGN2: {
159
+ LARGE: { top: 0, right: -65 },
160
+ MEDIUM: { top: 0, right: -60 },
161
+ SMALL: { top: 0, right: -60 }
162
+ },
163
+ DESIGN3: {
164
+ LARGE: { top: 0, right: -115 },
165
+ MEDIUM: { top: 0, right: -110 },
166
+ SMALL: { top: 0, right: -95 }
167
+ },
168
+ DESIGN4: {
169
+ LARGE: { top: 0, right: -115 },
170
+ MEDIUM: { top: 0, right: -110 },
171
+ SMALL: { top: 0, right: -95 }
172
+ },
173
+ DESIGN5: {
174
+ LARGE: { top: 0, right: -45 },
175
+ MEDIUM: { top: 0, right: -45 },
176
+ SMALL: { top: 0, right: -45 }
177
+ },
178
+ DESIGN6: {
179
+ LARGE: { top: 0, left: 'calc(100% + 20px)' },
180
+ MEDIUM: { top: 0, left: 'calc(100% + 12px)' },
181
+ SMALL: { top: 0, left: 'calc(100% + 12px)' }
182
+ },
183
+ DESIGN7: {
184
+ LARGE: { top: 0, right: -40 },
185
+ MEDIUM: { top: 0, right: -30 },
186
+ SMALL: { top: 0, right: -25 }
187
+ },
188
+ DESIGN8: {
189
+ LARGE: { top: 0, left: 'calc(100% + 20px)' },
190
+ MEDIUM: { top: 0, left: 'calc(100% + 12px)' },
191
+ SMALL: { top: 0, left: 'calc(100% + 12px)' }
192
+ }
193
+ },
194
+ //--------------------------------------------------
195
+ // OUTSET 5 (top center 공통, transform 추출)
196
+ //--------------------------------------------------
197
+ OUTSET5: {
198
+ DESIGN1: {
199
+ LARGE: { top: 'center', right: -65, transform: 'translateY(-50%)' },
200
+ MEDIUM: { top: 'center', right: -60, transform: 'translateY(-50%)' },
201
+ SMALL: { top: 'center', right: -60, transform: 'translateY(-50%)' }
202
+ },
203
+ DESIGN2: {
204
+ LARGE: { top: 'center', right: -65, transform: 'translateY(-50%)' },
205
+ MEDIUM: { top: 'center', right: -60, transform: 'translateY(-50%)' },
206
+ SMALL: { top: 'center', right: -60, transform: 'translateY(-50%)' }
207
+ },
208
+ DESIGN3: {
209
+ LARGE: { top: 'center', right: -115, transform: 'translateY(-50%)' },
210
+ MEDIUM: { top: 'center', right: -110, transform: 'translateY(-50%)' },
211
+ SMALL: { top: 'center', right: -95, transform: 'translateY(-50%)' }
212
+ },
213
+ DESIGN4: {
214
+ LARGE: { top: 'center', right: -115, transform: 'translateY(-50%)' },
215
+ MEDIUM: { top: 'center', right: -110, transform: 'translateY(-50%)' },
216
+ SMALL: { top: 'center', right: -95, transform: 'translateY(-50%)' }
217
+ },
218
+ DESIGN5: {
219
+ LARGE: { top: 'center', right: -45, transform: 'translateY(-50%)' },
220
+ MEDIUM: { top: 'center', right: -45, transform: 'translateY(-50%)' },
221
+ SMALL: { top: 'center', right: -45, transform: 'translateY(-50%)' }
222
+ },
223
+ DESIGN6: {
224
+ LARGE: { top: 'center', left: 'calc(100% + 20px)', transform: 'translateY(-50%)' },
225
+ MEDIUM: { top: 'center', left: 'calc(100% + 12px)', transform: 'translateY(-50%)' },
226
+ SMALL: { top: 'center', left: 'calc(100% + 12px)', transform: 'translateY(-50%)' }
227
+ },
228
+ DESIGN7: {
229
+ LARGE: { top: 'center', right: -40, transform: 'translateY(-50%)' },
230
+ MEDIUM: { top: 'center', right: -30, transform: 'translateY(-50%)' },
231
+ SMALL: { top: 'center', right: -25, transform: 'translateY(-50%)' }
232
+ },
233
+ DESIGN8: {
234
+ LARGE: { top: 'center', left: 'calc(100% + 20px)', transform: 'translateY(-50%)' },
235
+ MEDIUM: { top: 'center', left: 'calc(100% + 12px)', transform: 'translateY(-50%)' },
236
+ SMALL: { top: 'center', left: 'calc(100% + 12px)', transform: 'translateY(-50%)' }
237
+ }
238
+ },
239
+ //--------------------------------------------------
240
+ // OUTSET 6 (bottom 0px 공통)
241
+ //--------------------------------------------------
242
+ OUTSET6: {
243
+ DESIGN1: {
244
+ LARGE: { bottom: 0, right: -65 },
245
+ MEDIUM: { bottom: 0, right: -60 },
246
+ SMALL: { bottom: 0, right: -60 }
247
+ },
248
+ DESIGN2: {
249
+ LARGE: { bottom: 0, right: -65 },
250
+ MEDIUM: { bottom: 0, right: -60 },
251
+ SMALL: { bottom: 0, right: -60 }
252
+ },
253
+ DESIGN3: {
254
+ LARGE: { bottom: 0, right: -115 },
255
+ MEDIUM: { bottom: 0, right: -110 },
256
+ SMALL: { bottom: 0, right: -95 }
257
+ },
258
+ DESIGN4: {
259
+ LARGE: { bottom: 0, right: -115 },
260
+ MEDIUM: { bottom: 0, right: -110 },
261
+ SMALL: { bottom: 0, right: -95 }
262
+ },
263
+ DESIGN5: {
264
+ LARGE: { bottom: 0, right: -45 },
265
+ MEDIUM: { bottom: 0, right: -45 },
266
+ SMALL: { bottom: 0, right: -45 }
267
+ },
268
+ DESIGN6: {
269
+ LARGE: { bottom: 0, left: 'calc(100% + 20px)' },
270
+ MEDIUM: { bottom: 0, left: 'calc(100% + 12px)' },
271
+ SMALL: { bottom: 0, left: 'calc(100% + 12px)' }
272
+ },
273
+ DESIGN7: {
274
+ LARGE: { bottom: 0, right: -40 },
275
+ MEDIUM: { bottom: 0, right: -30 },
276
+ SMALL: { bottom: 0, right: -25 }
277
+ },
278
+ DESIGN8: {
279
+ LARGE: { bottom: 0, left: 'calc(100% + 20px)' },
280
+ MEDIUM: { bottom: 0, left: 'calc(100% + 12px)' },
281
+ SMALL: { bottom: 0, left: 'calc(100% + 12px)' }
282
+ }
283
+ },
284
+ //--------------------------------------------------
285
+ // OUTSET 7 (right 0px 공통)
286
+ //--------------------------------------------------
287
+ OUTSET7: {
288
+ DESIGN1: {
289
+ LARGE: { bottom: -50, right: 0 },
290
+ MEDIUM: { bottom: -45, right: 0 },
291
+ SMALL: { bottom: -40, right: 0 }
292
+ },
293
+ DESIGN2: {
294
+ LARGE: { bottom: -50, right: 0 },
295
+ MEDIUM: { bottom: -45, right: 0 },
296
+ SMALL: { bottom: -40, right: 0 }
297
+ },
298
+ DESIGN3: {
299
+ LARGE: { bottom: -50, right: 0 },
300
+ MEDIUM: { bottom: -45, right: 0 },
301
+ SMALL: { bottom: -40, right: 0 }
302
+ },
303
+ DESIGN4: {
304
+ LARGE: { bottom: -50, right: 0 },
305
+ MEDIUM: { bottom: -45, right: 0 },
306
+ SMALL: { bottom: -40, right: 0 }
307
+ },
308
+ DESIGN5: {
309
+ LARGE: { bottom: -85, right: 0 },
310
+ MEDIUM: { bottom: -80, right: 0 },
311
+ SMALL: { bottom: -75, right: 0 }
312
+ },
313
+ DESIGN6: {
314
+ LARGE: { bottom: -35, right: 0 },
315
+ MEDIUM: { bottom: -30, right: 0 },
316
+ SMALL: { bottom: -25, right: 0 }
317
+ },
318
+ DESIGN7: {
319
+ LARGE: { bottom: -85, right: 0 },
320
+ MEDIUM: { bottom: -80, right: 0 },
321
+ SMALL: { bottom: -75, right: 0 }
322
+ },
323
+ DESIGN8: {
324
+ LARGE: { bottom: -25, right: 0 },
325
+ MEDIUM: { bottom: -25, right: 0 },
326
+ SMALL: { bottom: -20, right: 0 }
327
+ }
328
+ },
329
+ //--------------------------------------------------
330
+ // OUTSET 8 (left center 공통, transform 추출)
331
+ //--------------------------------------------------
332
+ OUTSET8: {
333
+ DESIGN1: {
334
+ LARGE: { bottom: -50, left: 'center', transform: 'translateX(-50%)' },
335
+ MEDIUM: { bottom: -45, left: 'center', transform: 'translateX(-50%)' },
336
+ SMALL: { bottom: -40, left: 'center', transform: 'translateX(-50%)' }
337
+ },
338
+ DESIGN2: {
339
+ LARGE: { bottom: -50, left: 'center', transform: 'translateX(-50%)' },
340
+ MEDIUM: { bottom: -45, left: 'center', transform: 'translateX(-50%)' },
341
+ SMALL: { bottom: -40, left: 'center', transform: 'translateX(-50%)' }
342
+ },
343
+ DESIGN3: {
344
+ LARGE: { bottom: -50, left: 'center', transform: 'translateX(-50%)' },
345
+ MEDIUM: { bottom: -45, left: 'center', transform: 'translateX(-50%)' },
346
+ SMALL: { bottom: -40, left: 'center', transform: 'translateX(-50%)' }
347
+ },
348
+ DESIGN4: {
349
+ LARGE: { bottom: -50, left: 'center', transform: 'translateX(-50%)' },
350
+ MEDIUM: { bottom: -45, left: 'center', transform: 'translateX(-50%)' },
351
+ SMALL: { bottom: -40, left: 'center', transform: 'translateX(-50%)' }
352
+ },
353
+ DESIGN5: {
354
+ LARGE: { bottom: -85, left: 'center', transform: 'translateX(-50%)' },
355
+ MEDIUM: { bottom: -80, left: 'center', transform: 'translateX(-50%)' },
356
+ SMALL: { bottom: -75, left: 'center', transform: 'translateX(-50%)' }
357
+ },
358
+ DESIGN6: {
359
+ LARGE: { bottom: -35, left: 'center', transform: 'translateX(-50%)' },
360
+ MEDIUM: { bottom: -30, left: 'center', transform: 'translateX(-50%)' },
361
+ SMALL: { bottom: -25, left: 'center', transform: 'translateX(-50%)' }
362
+ },
363
+ DESIGN7: {
364
+ LARGE: { bottom: -85, left: 'center', transform: 'translateX(-50%)' },
365
+ MEDIUM: { bottom: -80, left: 'center', transform: 'translateX(-50%)' },
366
+ SMALL: { bottom: -75, left: 'center', transform: 'translateX(-50%)' }
367
+ },
368
+ DESIGN8: {
369
+ LARGE: { bottom: -25, left: 'center', transform: 'translateX(-50%)' },
370
+ MEDIUM: { bottom: -25, left: 'center', transform: 'translateX(-50%)' },
371
+ SMALL: { bottom: -20, left: 'center', transform: 'translateX(-50%)' }
372
+ }
373
+ },
374
+ //--------------------------------------------------
375
+ // OUTSET 9 (left 0px 공통)
376
+ //--------------------------------------------------
377
+ OUTSET9: {
378
+ DESIGN1: {
379
+ LARGE: { bottom: -50, left: 0 },
380
+ MEDIUM: { bottom: -45, left: 0 },
381
+ SMALL: { bottom: -40, left: 0 }
382
+ },
383
+ DESIGN2: {
384
+ LARGE: { bottom: -50, left: 0 },
385
+ MEDIUM: { bottom: -45, left: 0 },
386
+ SMALL: { bottom: -40, left: 0 }
387
+ },
388
+ DESIGN3: {
389
+ LARGE: { bottom: -50, left: 0 },
390
+ MEDIUM: { bottom: -45, left: 0 },
391
+ SMALL: { bottom: -40, left: 0 }
392
+ },
393
+ DESIGN4: {
394
+ LARGE: { bottom: -50, left: 0 },
395
+ MEDIUM: { bottom: -45, left: 0 },
396
+ SMALL: { bottom: -40, left: 0 }
397
+ },
398
+ DESIGN5: {
399
+ LARGE: { bottom: -85, left: 0 },
400
+ MEDIUM: { bottom: -80, left: 0 },
401
+ SMALL: { bottom: -75, left: 0 }
402
+ },
403
+ DESIGN6: {
404
+ LARGE: { bottom: -35, left: 0 },
405
+ MEDIUM: { bottom: -30, left: 0 },
406
+ SMALL: { bottom: -25, left: 0 }
407
+ },
408
+ DESIGN7: {
409
+ LARGE: { bottom: -85, left: 0 },
410
+ MEDIUM: { bottom: -80, left: 0 },
411
+ SMALL: { bottom: -75, left: 0 }
412
+ },
413
+ DESIGN8: {
414
+ LARGE: { bottom: -25, left: 0 },
415
+ MEDIUM: { bottom: -25, left: 0 },
416
+ SMALL: { bottom: -20, left: 0 }
417
+ }
418
+ },
419
+ //--------------------------------------------------
420
+ // OUTSET 10 (bottom 0px 공통)
421
+ //--------------------------------------------------
422
+ OUTSET10: {
423
+ DESIGN1: {
424
+ LARGE: { bottom: 0, left: -65 },
425
+ MEDIUM: { bottom: 0, left: -60 },
426
+ SMALL: { bottom: 0, left: -60 }
427
+ },
428
+ DESIGN2: {
429
+ LARGE: { bottom: 0, left: -65 },
430
+ MEDIUM: { bottom: 0, left: -60 },
431
+ SMALL: { bottom: 0, left: -60 }
432
+ },
433
+ DESIGN3: {
434
+ LARGE: { bottom: 0, left: -115 },
435
+ MEDIUM: { bottom: 0, left: -110 },
436
+ SMALL: { bottom: 0, left: -95 }
437
+ },
438
+ DESIGN4: {
439
+ LARGE: { bottom: 0, left: -115 },
440
+ MEDIUM: { bottom: 0, left: -110 },
441
+ SMALL: { bottom: 0, left: -95 }
442
+ },
443
+ DESIGN5: {
444
+ LARGE: { bottom: 0, left: -45 },
445
+ MEDIUM: { bottom: 0, left: -45 },
446
+ SMALL: { bottom: 0, left: -45 }
447
+ },
448
+ DESIGN6: {
449
+ LARGE: { bottom: 0, right: 'calc(100% + 20px)' },
450
+ MEDIUM: { bottom: 0, right: 'calc(100% + 12px)' },
451
+ SMALL: { bottom: 0, right: 'calc(100% + 12px)' }
452
+ },
453
+ DESIGN7: {
454
+ LARGE: { bottom: 0, left: -40 },
455
+ MEDIUM: { bottom: 0, left: -30 },
456
+ SMALL: { bottom: 0, left: -25 }
457
+ },
458
+ DESIGN8: {
459
+ LARGE: { bottom: 0, right: 'calc(100% + 20px)' },
460
+ MEDIUM: { bottom: 0, right: 'calc(100% + 12px)' },
461
+ SMALL: { bottom: 0, right: 'calc(100% + 12px)' }
462
+ }
463
+ },
464
+ //--------------------------------------------------
465
+ // OUTSET 11 (top center 공통, transform 추출)
466
+ //--------------------------------------------------
467
+ OUTSET11: {
468
+ DESIGN1: {
469
+ LARGE: { top: 'center', transform: 'translateY(-50%)', left: -65 },
470
+ MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -60 },
471
+ SMALL: { top: 'center', transform: 'translateY(-50%)', left: -60 }
472
+ },
473
+ DESIGN2: {
474
+ LARGE: { top: 'center', transform: 'translateY(-50%)', left: -65 },
475
+ MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -60 },
476
+ SMALL: { top: 'center', transform: 'translateY(-50%)', left: -60 }
477
+ },
478
+ DESIGN3: {
479
+ LARGE: { top: 'center', transform: 'translateY(-50%)', left: -115 },
480
+ MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -110 },
481
+ SMALL: { top: 'center', transform: 'translateY(-50%)', left: -95 }
482
+ },
483
+ DESIGN4: {
484
+ LARGE: { top: 'center', transform: 'translateY(-50%)', left: -115 },
485
+ MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -110 },
486
+ SMALL: { top: 'center', transform: 'translateY(-50%)', left: -95 }
487
+ },
488
+ DESIGN5: {
489
+ LARGE: { top: 'center', transform: 'translateY(-50%)', left: -45 },
490
+ MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -45 },
491
+ SMALL: { top: 'center', transform: 'translateY(-50%)', left: -45 }
492
+ },
493
+ DESIGN6: {
494
+ LARGE: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 20px)' },
495
+ MEDIUM: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 12px)' },
496
+ SMALL: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 12px)' }
497
+ },
498
+ DESIGN7: {
499
+ LARGE: { top: 'center', transform: 'translateY(-50%)', left: -40 },
500
+ MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -30 },
501
+ SMALL: { top: 'center', transform: 'translateY(-50%)', left: -25 }
502
+ },
503
+ DESIGN8: {
504
+ LARGE: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 20px)' },
505
+ MEDIUM: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 12px)' },
506
+ SMALL: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 12px)' }
507
+ }
508
+ },
509
+ //--------------------------------------------------
510
+ // OUTSET 12 (top 0px 공통)
511
+ //--------------------------------------------------
512
+ OUTSET12: {
513
+ DESIGN1: {
514
+ LARGE: { top: 0, left: -65 },
515
+ MEDIUM: { top: 0, left: -60 },
516
+ SMALL: { top: 0, left: -60 }
517
+ },
518
+ DESIGN2: {
519
+ LARGE: { top: 0, left: -65 },
520
+ MEDIUM: { top: 0, left: -60 },
521
+ SMALL: { top: 0, left: -60 }
522
+ },
523
+ DESIGN3: {
524
+ LARGE: { top: 0, left: -115 },
525
+ MEDIUM: { top: 0, left: -110 },
526
+ SMALL: { top: 0, left: -95 }
527
+ },
528
+ DESIGN4: {
529
+ LARGE: { top: 0, left: -115 },
530
+ MEDIUM: { top: 0, left: -110 },
531
+ SMALL: { top: 0, left: -95 }
532
+ },
533
+ DESIGN5: {
534
+ LARGE: { top: 0, left: -45 },
535
+ MEDIUM: { top: 0, left: -45 },
536
+ SMALL: { top: 0, left: -45 }
537
+ },
538
+ DESIGN6: {
539
+ LARGE: { top: 0, right: 'calc(100% + 20px)' },
540
+ MEDIUM: { top: 0, left: -105 },
541
+ SMALL: { top: 0, left: -85 }
542
+ },
543
+ DESIGN7: {
544
+ LARGE: { top: 0, left: -40 },
545
+ MEDIUM: { top: 0, left: -30 },
546
+ SMALL: { top: 0, left: -25 }
547
+ },
548
+ DESIGN8: {
549
+ LARGE: { top: 0, right: 'calc(100% + 20px)' },
550
+ MEDIUM: { top: 0, left: -105 },
551
+ SMALL: { top: 0, left: -85 }
552
+ }
553
+ }
554
+ };
555
+ exports.POS_INSET = {
556
+ INSET1: {
557
+ LARGE: { top: GAP, left: GAP },
558
+ MEDIUM: { top: GAP, left: GAP },
559
+ SMALL: { top: GAP, left: GAP }
560
+ },
561
+ INSET2: {
562
+ LARGE: { top: GAP, left: 'center' },
563
+ MEDIUM: { top: GAP, left: 'center' },
564
+ SMALL: { top: GAP, left: 'center' }
565
+ },
566
+ INSET3: {
567
+ LARGE: { top: GAP, right: GAP },
568
+ MEDIUM: { top: GAP, right: GAP },
569
+ SMALL: { top: GAP, right: GAP }
570
+ },
571
+ INSET4: {
572
+ LARGE: { top: 'center', right: GAP, transform: 'translateY(-50%)' },
573
+ MEDIUM: { top: 'center', right: GAP, transform: 'translateY(-50%)' },
574
+ SMALL: { top: 'center', right: GAP, transform: 'translateY(-50%)' }
575
+ },
576
+ INSET5: {
577
+ LARGE: { bottom: GAP, right: GAP },
578
+ MEDIUM: { bottom: GAP, right: GAP },
579
+ SMALL: { bottom: GAP, right: GAP }
580
+ },
581
+ INSET6: {
582
+ LARGE: { bottom: GAP, left: 'center', transform: 'translateX(-50%)' },
583
+ MEDIUM: { bottom: GAP, left: 'center', transform: 'translateX(-50%)' },
584
+ SMALL: { bottom: GAP, left: 'center', transform: 'translateX(-50%)' }
585
+ },
586
+ INSET7: {
587
+ LARGE: { bottom: GAP, left: GAP },
588
+ MEDIUM: { bottom: GAP, left: GAP },
589
+ SMALL: { bottom: GAP, left: GAP }
590
+ },
591
+ INSET8: {
592
+ LARGE: { top: 'center', left: GAP, transform: 'translateY(-50%)' },
593
+ MEDIUM: { top: 'center', left: GAP, transform: 'translateY(-50%)' },
594
+ SMALL: { top: 'center', left: GAP, transform: 'translateY(-50%)' }
595
+ }
596
+ };
@@ -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>) => CSSProperties;
16
+ getPositionStyle: (position: string, ccbInset: Record<string, string>, designType: string, size: 'LARGE' | 'MEDIUM' | 'SMALL') => CSSProperties;
17
17
  getComponentGroupLayout: (components: SlideBannerElementsProps[], position: string) => CSSProperties;
18
18
  };
@@ -13,6 +13,7 @@ var __assign = (this && this.__assign) || function () {
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.useFlexGridLayout = void 0;
15
15
  var react_1 = require("react");
16
+ var elementPositions_1 = require("./elementPositions");
16
17
  var useFlexGridLayout = function (_a) {
17
18
  var components = _a.components;
18
19
  var _b = (0, react_1.useState)({ top: 0, right: 0, bottom: 0, left: 0 }), groupSizes = _b[0], setGroupSizes = _b[1];
@@ -60,7 +61,7 @@ var useFlexGridLayout = function (_a) {
60
61
  return directions[position];
61
62
  };
62
63
  // 위치에 따른 스타일 결정 (CCB 크기를 고려)
63
- var getPositionStyle = function (position, ccbInset) {
64
+ var getPositionStyle = function (position, ccbInset, designType, size) {
64
65
  var base = {
65
66
  position: 'absolute',
66
67
  display: 'flex',
@@ -81,7 +82,7 @@ var useFlexGridLayout = function (_a) {
81
82
  OUTSET1: { top: -50, left: ccbLeft },
82
83
  OUTSET2: { top: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
83
84
  OUTSET3: { top: -50, right: ccbRight },
84
- OUTSET4: { top: ccbTop, right: 50 },
85
+ OUTSET4: { top: ccbTop, left: 'calc(-100% + 50px)' },
85
86
  OUTSET5: { top: "".concat(ccbCenterY, "px"), right: 50, transform: 'translateY(-50%)' },
86
87
  OUTSET6: { bottom: ccbBottom, right: 50 },
87
88
  OUTSET7: { bottom: -50, right: ccbRight },
@@ -103,7 +104,9 @@ var useFlexGridLayout = function (_a) {
103
104
  INSET7: { bottom: ccbBottom + GAP, left: ccbLeft + GAP },
104
105
  INSET8: { top: "".concat(ccbCenterY, "px"), left: ccbLeft + GAP, transform: 'translateY(-50%)' }
105
106
  };
106
- return __assign(__assign({}, base), positions[position]);
107
+ var pos = (0, elementPositions_1.getPosition)(position, designType, size);
108
+ console.log('pos', position, designType, size, pos);
109
+ return __assign(__assign({}, base), pos);
107
110
  };
108
111
  // 컴포넌트 그룹 레이아웃
109
112
  var getComponentGroupLayout = function (components, position) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.228",
3
+ "version": "2.7.233",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",