pds-dev-kit-web-test 2.7.229 → 2.7.234
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/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +11 -8
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +5 -5
- package/dist/src/sub/DynamicLayout/mocks.d.ts +3596 -1
- package/dist/src/sub/DynamicLayout/mocks.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +11 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +6 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +5 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +3 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +20 -21
- 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 +8 -8
- 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 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.js +679 -0
- 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 +6 -3
- package/package.json +1 -1
|
@@ -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];
|
|
@@ -31,6 +32,7 @@ var useFlexGridLayout = function (_a) {
|
|
|
31
32
|
return groups;
|
|
32
33
|
};
|
|
33
34
|
var componentGroups = getComponentsByPosition();
|
|
35
|
+
console.log('componentGroups', componentGroups);
|
|
34
36
|
var GAP = 8;
|
|
35
37
|
// 위치가 어느 방향인지 판단
|
|
36
38
|
var getPositionDirection = function (position) {
|
|
@@ -60,7 +62,7 @@ var useFlexGridLayout = function (_a) {
|
|
|
60
62
|
return directions[position];
|
|
61
63
|
};
|
|
62
64
|
// 위치에 따른 스타일 결정 (CCB 크기를 고려)
|
|
63
|
-
var getPositionStyle = function (position, ccbInset) {
|
|
65
|
+
var getPositionStyle = function (position, ccbInset, designType, size) {
|
|
64
66
|
var base = {
|
|
65
67
|
position: 'absolute',
|
|
66
68
|
display: 'flex',
|
|
@@ -81,7 +83,7 @@ var useFlexGridLayout = function (_a) {
|
|
|
81
83
|
OUTSET1: { top: -50, left: ccbLeft },
|
|
82
84
|
OUTSET2: { top: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
|
|
83
85
|
OUTSET3: { top: -50, right: ccbRight },
|
|
84
|
-
OUTSET4: { top: ccbTop,
|
|
86
|
+
OUTSET4: { top: ccbTop, left: 'calc(-100% + 50px)' },
|
|
85
87
|
OUTSET5: { top: "".concat(ccbCenterY, "px"), right: 50, transform: 'translateY(-50%)' },
|
|
86
88
|
OUTSET6: { bottom: ccbBottom, right: 50 },
|
|
87
89
|
OUTSET7: { bottom: -50, right: ccbRight },
|
|
@@ -103,7 +105,8 @@ var useFlexGridLayout = function (_a) {
|
|
|
103
105
|
INSET7: { bottom: ccbBottom + GAP, left: ccbLeft + GAP },
|
|
104
106
|
INSET8: { top: "".concat(ccbCenterY, "px"), left: ccbLeft + GAP, transform: 'translateY(-50%)' }
|
|
105
107
|
};
|
|
106
|
-
|
|
108
|
+
var pos = (0, elementPositions_1.getPosition)(position, designType, size);
|
|
109
|
+
return __assign(__assign({}, base), pos);
|
|
107
110
|
};
|
|
108
111
|
// 컴포넌트 그룹 레이아웃
|
|
109
112
|
var getComponentGroupLayout = function (components, position) {
|