pds-dev-kit-web-test 2.5.470 → 2.5.471
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/CompositionEditor/CompositionEditor.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/CompositionEditor/CompositionEditor.js +49 -49
- package/dist/src/sub/DynamicLayout/DynamicLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/DynamicLayout.js +3 -2
- package/dist/src/sub/DynamicLayout/components/Section/components/CustomSectionBackgroundMedia.js +24 -2
- package/dist/src/sub/DynamicLayout/components/Section/util/parseSectionBackgroundMediaData.js +3 -1
- package/dist/src/sub/DynamicLayout/mock_componentBlocks.d.ts +776 -0
- package/dist/src/sub/DynamicLayout/mock_componentBlocks.js +4236 -0
- package/dist/src/sub/DynamicLayout/mock_composition.js +6 -5
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +5 -17
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +2 -2
- package/dist/src/sub/DynamicLayout/mock_slideBanner.d.ts +63 -63
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +65 -65
- package/dist/src/sub/DynamicLayout/mocks.js +13 -8477
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +3 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +76 -192
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.d.ts +2 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarouselCore.js +8 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.d.ts +4 -18
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomProgressbar.js +19 -49
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/progressConfigs.js +16 -16
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.d.ts +19 -20
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/contentsCarouselUtils.js +131 -696
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +229 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.d.ts +14 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useSwiper.js +46 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/types.d.ts +36 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +54 -20
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +6 -25
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +21 -51
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.d.ts +8 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/contentsListUtils.js +42 -294
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +229 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +12 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +6 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +82 -146
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.d.ts +2 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBannerCore.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.d.ts +15 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationPrevBtn.js +69 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.d.ts +9 -22
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +25 -35
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.d.ts +4 -18
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomProgressbar.js +19 -49
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/progressConfigs.js +8 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +18 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +229 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.d.ts +16 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useSwiper.js +63 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.d.ts +22 -24
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/slideBannerUtils.js +155 -925
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/types.d.ts +46 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.d.ts +6 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +10 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/types.d.ts +17 -3
- package/package.json +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.d.ts +0 -35
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigation.js +0 -118
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.d.ts +0 -32
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomPagination.js +0 -183
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.d.ts +0 -35
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigation.js +0 -118
|
@@ -14,36 +14,16 @@ var __assign = (this && this.__assign) || function () {
|
|
|
14
14
|
};
|
|
15
15
|
return __assign.apply(this, arguments);
|
|
16
16
|
};
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
-
}) : function(o, v) {
|
|
31
|
-
o["default"] = v;
|
|
32
|
-
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
-
if (mod && mod.__esModule) return mod;
|
|
35
|
-
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
-
__setModuleDefault(result, mod);
|
|
38
|
-
return result;
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
19
|
};
|
|
40
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
21
|
exports.CustomPagination = void 0;
|
|
42
22
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
43
|
-
var styled_components_1 =
|
|
23
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
44
24
|
var paginationConfigs_1 = require("./paginationConfigs");
|
|
45
25
|
var CustomPagination = function (_a) {
|
|
46
|
-
var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c,
|
|
26
|
+
var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, styles = _a.styles, onPageClick = _a.onPageClick;
|
|
47
27
|
var getPageGroupStart = function (page) {
|
|
48
28
|
return Math.floor((page - 1) / 5) * 5 + 1;
|
|
49
29
|
};
|
|
@@ -64,52 +44,42 @@ var CustomPagination = function (_a) {
|
|
|
64
44
|
onPageClick(pageNumber);
|
|
65
45
|
};
|
|
66
46
|
var renderPagination = function () {
|
|
67
|
-
switch (type) {
|
|
47
|
+
switch (styles.type) {
|
|
68
48
|
case 'NONE':
|
|
69
49
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
70
50
|
case 'DESIGN1':
|
|
71
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design1, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
51
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design1, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
72
52
|
case 'DESIGN2':
|
|
73
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design2, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
53
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design2, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
74
54
|
case 'DESIGN3':
|
|
75
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design3, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
55
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design3, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
76
56
|
case 'DESIGN4':
|
|
77
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design4, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
57
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design4, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
78
58
|
case 'DESIGN5':
|
|
79
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design5, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
59
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design5, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
80
60
|
case 'DESIGN6':
|
|
81
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design6, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
61
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design6, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
82
62
|
case 'DESIGN7':
|
|
83
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design7, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
63
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design7, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
84
64
|
case 'DESIGN8':
|
|
85
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design8, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
65
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design8, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
86
66
|
case 'DESIGN9':
|
|
87
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design9, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
67
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design9, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
88
68
|
case 'DESIGN10':
|
|
89
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design10, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
69
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design10, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
90
70
|
case 'DESIGN11':
|
|
91
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design11, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
71
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design11, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
92
72
|
case 'DESIGN12':
|
|
93
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design12, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
73
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design12, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
94
74
|
case 'DESIGN13':
|
|
95
|
-
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design13, { total: total, current: current, primaryColor: primaryColor, secondaryColor: secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
75
|
+
return ((0, jsx_runtime_1.jsx)(paginationConfigs_1.Design13, { total: total, current: current, primaryColor: styles.primaryColor, secondaryColor: styles.secondaryColor, pages: pageNumbers, onNext: handleNext, onPrevious: handlePrevious, onPageChange: handlePageClick }));
|
|
96
76
|
default:
|
|
97
77
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
98
78
|
}
|
|
99
79
|
};
|
|
100
|
-
return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current)
|
|
80
|
+
return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current) }, { children: renderPagination() })));
|
|
101
81
|
};
|
|
102
82
|
exports.CustomPagination = CustomPagination;
|
|
103
|
-
var S_Pagination = styled_components_1.default.div(
|
|
104
|
-
var $offset = _a.$offset;
|
|
105
|
-
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n ", "\n ", "\n ", "\n "], ["\n ", "\n ", "\n ", "\n ", "\n "])), $offset.top !== undefined ? "top: ".concat($offset.top, ";") : '', $offset.bottom !== undefined ? "bottom: ".concat($offset.bottom, ";") : '', $offset.left !== undefined ? "left: ".concat($offset.left, ";") : '', $offset.right !== undefined ? "right: ".concat($offset.right, ";") : '');
|
|
106
|
-
}, function (_a) {
|
|
107
|
-
var _b, _c;
|
|
108
|
-
var $size = _a.$size, $offset = _a.$offset;
|
|
109
|
-
return "scale(".concat($size, ") translate(").concat((_b = $offset.translateX) !== null && _b !== void 0 ? _b : 0, "%, ").concat((_c = $offset.translateY) !== null && _c !== void 0 ? _c : 0, "%)");
|
|
110
|
-
}, function (_a) {
|
|
111
|
-
var $offset = _a.$offset;
|
|
112
|
-
return $offset.transformOrigin || 'center center';
|
|
113
|
-
});
|
|
83
|
+
var S_Pagination = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 8px;\n"], ["\n padding: 8px;\n"])));
|
|
114
84
|
exports.default = exports.CustomPagination;
|
|
115
|
-
var templateObject_1
|
|
85
|
+
var templateObject_1;
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { FlattenSimpleInterpolation } from 'styled-components';
|
|
2
2
|
import type { CB_CONTENT_PROP_CONTENTSLIST } from '../types';
|
|
3
|
-
import type { CustomPaginationProps } from './
|
|
4
|
-
import type { CB_STYLE_PROP_CONTENTSLIST_SPECS, ContentsListPropsKeys } from './types';
|
|
3
|
+
import type { CB_STYLE_PROP_CONTENTSLIST_SPECS, ContentsListPropsKeys, CustomPaginationProps } from './types';
|
|
5
4
|
import type { Device } from '../../../../../../../DynamicLayout/sections/CustomSection/util/types';
|
|
6
|
-
type
|
|
5
|
+
type ParseContentsListStyleToCarouselCoreProps = {
|
|
7
6
|
props: CB_STYLE_PROP_CONTENTSLIST_SPECS;
|
|
8
7
|
device: Device;
|
|
9
8
|
};
|
|
10
|
-
type
|
|
9
|
+
type ParseContentsListContentToCarouselCoreProps = {
|
|
11
10
|
props: CB_CONTENT_PROP_CONTENTSLIST;
|
|
12
11
|
};
|
|
13
|
-
type
|
|
12
|
+
type ParseContentsListStyleToCustomPaginationProps = {
|
|
14
13
|
props: CB_STYLE_PROP_CONTENTSLIST_SPECS;
|
|
15
14
|
device: Device;
|
|
16
15
|
};
|
|
17
16
|
type CssFragment = FlattenSimpleInterpolation;
|
|
18
|
-
export declare function parseGridStyleProp({ props, device }:
|
|
17
|
+
export declare function parseGridStyleProp({ props, device }: ParseContentsListStyleToCarouselCoreProps): {
|
|
19
18
|
stylePropCss: CssFragment;
|
|
20
19
|
hoverStylePropCss: CssFragment;
|
|
21
20
|
};
|
|
22
|
-
export declare function parseGridContentProp({ props }:
|
|
21
|
+
export declare function parseGridContentProp({ props }: ParseContentsListContentToCarouselCoreProps): {
|
|
23
22
|
contentPropCss: CssFragment;
|
|
24
23
|
};
|
|
25
|
-
export declare function parsePaginationStyleProp({ props, device }:
|
|
24
|
+
export declare function parsePaginationStyleProp({ props, device }: ParseContentsListStyleToCustomPaginationProps): {
|
|
26
25
|
normalStyle: CustomPaginationProps;
|
|
27
26
|
hoverStyle: CustomPaginationProps;
|
|
28
27
|
};
|
|
29
|
-
export declare function getCustomPaginationPropKey(key: ContentsListPropsKeys):
|
|
28
|
+
export declare function getCustomPaginationPropKey(key: ContentsListPropsKeys): keyof CustomPaginationProps | null;
|
|
30
29
|
export {};
|
|
@@ -3,60 +3,33 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
7
|
exports.getCustomPaginationPropKey = exports.parsePaginationStyleProp = exports.parseGridContentProp = exports.parseGridStyleProp = void 0;
|
|
19
8
|
var styled_components_1 = require("styled-components");
|
|
20
|
-
function getStyleTypePropStyleValues(value) {
|
|
21
|
-
switch (value) {
|
|
22
|
-
case 'DESIGN1': {
|
|
23
|
-
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
|
|
24
|
-
}
|
|
25
|
-
case 'DESIGN2': {
|
|
26
|
-
var overlayEffect = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: rgba(255, 255, 255, 0.7);\n content: '';\n height: 100%;\n position: absolute;\n top: 0; /* \uD22C\uBA85\uB3C4 \uC870\uC808 (0 = \uC644\uC804 \uD22C\uBA85, 1 = \uBD88\uD22C\uBA85) */\n width: 20%;\n z-index: 2;\n "], ["\n background: rgba(255, 255, 255, 0.7);\n content: '';\n height: 100%;\n position: absolute;\n top: 0; /* \uD22C\uBA85\uB3C4 \uC870\uC808 (0 = \uC644\uC804 \uD22C\uBA85, 1 = \uBD88\uD22C\uBA85) */\n width: 20%;\n z-index: 2;\n "])));
|
|
27
|
-
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "], ["\n overflow: hidden;\n position: relative;\n\n &::before {\n ", "\n left: 0;\n }\n\n &::after {\n ", "\n right: 0;\n }\n "])), overlayEffect, overlayEffect);
|
|
28
|
-
}
|
|
29
|
-
default: {
|
|
30
|
-
return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n width: 100%;\n "], ["\n height: 100%;\n width: 100%;\n "])));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
9
|
function getItemSpacingPropStyleValues(value) {
|
|
35
10
|
switch (value) {
|
|
36
11
|
case 'NARROW': {
|
|
37
|
-
return (0, styled_components_1.css)(
|
|
12
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n grid-column-gap: 8px;\n "], ["\n grid-column-gap: 8px;\n "])));
|
|
38
13
|
}
|
|
39
14
|
case 'NORMAL': {
|
|
40
|
-
return (0, styled_components_1.css)(
|
|
15
|
+
return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n grid-column-gap: 24px;\n "], ["\n grid-column-gap: 24px;\n "])));
|
|
41
16
|
}
|
|
42
17
|
case 'WIDE': {
|
|
43
|
-
return (0, styled_components_1.css)(
|
|
18
|
+
return (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n grid-column-gap: 36px;\n "], ["\n grid-column-gap: 36px;\n "])));
|
|
44
19
|
}
|
|
45
20
|
default: {
|
|
46
|
-
return (0, styled_components_1.css)(
|
|
21
|
+
return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n grid-column-gap: 24px;\n "], ["\n grid-column-gap: 24px;\n "])));
|
|
47
22
|
}
|
|
48
23
|
}
|
|
49
24
|
}
|
|
50
25
|
function getItemLineHeightPropStyleValues(value) {
|
|
51
|
-
return (0, styled_components_1.css)(
|
|
26
|
+
return (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n grid-row-gap: ", "px;\n "], ["\n grid-row-gap: ", "px;\n "])), value);
|
|
52
27
|
}
|
|
53
28
|
function getItemHeightFitContentPropStyleValues(value) {
|
|
54
|
-
return (0, styled_components_1.css)(
|
|
29
|
+
return (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n overflow-y: ", ";\n "], ["\n overflow-y: ", ";\n "])), value ? 'visible' : 'auto');
|
|
55
30
|
}
|
|
56
31
|
function parseStylePropertyStyles(key, value) {
|
|
57
32
|
switch (key) {
|
|
58
|
-
case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_STYLE':
|
|
59
|
-
return getStyleTypePropStyleValues(value);
|
|
60
33
|
case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING':
|
|
61
34
|
return getItemSpacingPropStyleValues(value);
|
|
62
35
|
case 'CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT':
|
|
@@ -69,7 +42,7 @@ function parseStylePropertyStyles(key, value) {
|
|
|
69
42
|
return undefined;
|
|
70
43
|
}
|
|
71
44
|
function getColumnsPropStyleValues(value, rows) {
|
|
72
|
-
return (0, styled_components_1.css)(
|
|
45
|
+
return (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", 1fr);\n "], ["\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", 1fr);\n "])), value, rows);
|
|
73
46
|
}
|
|
74
47
|
function parseContentPropertyStyles(key, value, rows) {
|
|
75
48
|
switch (key) {
|
|
@@ -89,12 +62,12 @@ function parseGridStyleProp(_a) {
|
|
|
89
62
|
var styles = parseStylePropertyStyles(currentKey, value);
|
|
90
63
|
var hoverStyles = parseStylePropertyStyles(currentKey, hoverValue !== null && hoverValue !== void 0 ? hoverValue : value);
|
|
91
64
|
return {
|
|
92
|
-
stylePropCss: (0, styled_components_1.css)(
|
|
93
|
-
hoverStylePropCss: (0, styled_components_1.css)(
|
|
65
|
+
stylePropCss: (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.stylePropCss, styles),
|
|
66
|
+
hoverStylePropCss: (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.hoverStylePropCss, hoverStyles)
|
|
94
67
|
};
|
|
95
68
|
}, {
|
|
96
|
-
stylePropCss: (0, styled_components_1.css)(
|
|
97
|
-
hoverStylePropCss: (0, styled_components_1.css)(
|
|
69
|
+
stylePropCss: (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject([""], [""]))),
|
|
70
|
+
hoverStylePropCss: (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject([""], [""])))
|
|
98
71
|
});
|
|
99
72
|
}
|
|
100
73
|
exports.parseGridStyleProp = parseGridStyleProp;
|
|
@@ -108,273 +81,48 @@ function parseGridContentProp(_a) {
|
|
|
108
81
|
var value = props[currentKey];
|
|
109
82
|
var styles = parseContentPropertyStyles(currentKey, value, rows);
|
|
110
83
|
return {
|
|
111
|
-
contentPropCss: (0, styled_components_1.css)(
|
|
84
|
+
contentPropCss: (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n ", "\n ", "\n "], ["\n ", "\n ", "\n "])), acc.contentPropCss, styles)
|
|
112
85
|
};
|
|
113
86
|
}, {
|
|
114
|
-
contentPropCss: (0, styled_components_1.css)(
|
|
87
|
+
contentPropCss: (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])))
|
|
115
88
|
});
|
|
116
89
|
}
|
|
117
90
|
exports.parseGridContentProp = parseGridContentProp;
|
|
118
91
|
function parsePaginationStyleProp(_a) {
|
|
119
92
|
var props = _a.props, device = _a.device;
|
|
120
|
-
var
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
var
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
var
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
var hoverValue = props[keyWithHover];
|
|
136
|
-
return {
|
|
137
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { offset: getCustomPaginationOffset(value) }),
|
|
138
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { offset: getCustomPaginationOffset(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
if (customPaginationPropertyKey === 'size') {
|
|
142
|
-
var value = props[keyWithDevice];
|
|
143
|
-
var hoverValue = props[keyWithHover];
|
|
144
|
-
return {
|
|
145
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { size: getCustomPaginationSize(value) }),
|
|
146
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { size: getCustomPaginationSize(hoverValue !== null && hoverValue !== void 0 ? hoverValue : value) })
|
|
147
|
-
};
|
|
93
|
+
var normalStyle = {};
|
|
94
|
+
var hoverStyle = {};
|
|
95
|
+
var baseKeys = Object.keys(props).filter(function (key) { return !key.includes(':HOVER') && !key.includes(':MOBILE'); });
|
|
96
|
+
baseKeys.forEach(function (baseKey) {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
var customNavKey = getCustomPaginationPropKey(baseKey);
|
|
99
|
+
if (customNavKey) {
|
|
100
|
+
var deviceKey = device === 'DESKTOP' ? baseKey : "".concat(baseKey, ":MOBILE");
|
|
101
|
+
var hoverKey = "".concat(deviceKey, ":HOVER");
|
|
102
|
+
var normalValue = props[deviceKey];
|
|
103
|
+
var hoverValue = props[hoverKey];
|
|
104
|
+
if (normalValue !== undefined) {
|
|
105
|
+
Object.assign(normalStyle, (_a = {}, _a[customNavKey] = normalValue, _a));
|
|
106
|
+
}
|
|
107
|
+
Object.assign(hoverStyle, (_b = {}, _b[customNavKey] = hoverValue !== null && hoverValue !== void 0 ? hoverValue : normalValue, _b));
|
|
148
108
|
}
|
|
149
|
-
if (customPaginationPropertyKey === 'primaryColor') {
|
|
150
|
-
var value = props[keyWithDevice];
|
|
151
|
-
var hoverValue = props[keyWithHover];
|
|
152
|
-
return {
|
|
153
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { primaryColor: value }),
|
|
154
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { primaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
if (customPaginationPropertyKey === 'secondaryColor') {
|
|
158
|
-
var value = props[keyWithDevice];
|
|
159
|
-
var hoverValue = props[keyWithHover];
|
|
160
|
-
return {
|
|
161
|
-
normalStyle: __assign(__assign({}, acc.normalStyle), { secondaryColor: value }),
|
|
162
|
-
hoverStyle: __assign(__assign({}, acc.hoverStyle), { secondaryColor: hoverValue !== null && hoverValue !== void 0 ? hoverValue : value })
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
return {
|
|
166
|
-
normalStyle: __assign({}, acc.normalStyle),
|
|
167
|
-
hoverStyle: __assign({}, acc.hoverStyle)
|
|
168
|
-
};
|
|
169
|
-
}, {
|
|
170
|
-
normalStyle: {},
|
|
171
|
-
hoverStyle: {}
|
|
172
109
|
});
|
|
110
|
+
return {
|
|
111
|
+
normalStyle: normalStyle,
|
|
112
|
+
hoverStyle: hoverStyle
|
|
113
|
+
};
|
|
173
114
|
}
|
|
174
115
|
exports.parsePaginationStyleProp = parsePaginationStyleProp;
|
|
175
116
|
function getCustomPaginationPropKey(key) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:HOVER":
|
|
184
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE":
|
|
185
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION:MOBILE:HOVER":
|
|
186
|
-
return 'offset';
|
|
187
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE":
|
|
188
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:HOVER":
|
|
189
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE":
|
|
190
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE:MOBILE:HOVER":
|
|
191
|
-
return 'size';
|
|
192
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR":
|
|
193
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR:HOVER":
|
|
194
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR:MOBILE":
|
|
195
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR:MOBILE:HOVER":
|
|
196
|
-
return 'primaryColor';
|
|
197
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSECONDARYCOLOR":
|
|
198
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSECONDARYCOLOR:HOVER":
|
|
199
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSECONDARYCOLOR:MOBILE":
|
|
200
|
-
case "CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSECONDARYCOLOR:MOBILE:HOVER":
|
|
201
|
-
return 'secondaryColor';
|
|
202
|
-
default:
|
|
203
|
-
return '';
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
exports.getCustomPaginationPropKey = getCustomPaginationPropKey;
|
|
207
|
-
function getCustomPaginationOffset(value) {
|
|
208
|
-
var OUTSET1 = {
|
|
209
|
-
top: '0px',
|
|
210
|
-
left: '0px',
|
|
211
|
-
translateX: 0,
|
|
212
|
-
translateY: -100,
|
|
213
|
-
transformOrigin: 'top left'
|
|
117
|
+
var baseKey = key.split(':')[0];
|
|
118
|
+
var keyMapping = {
|
|
119
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE: 'type',
|
|
120
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE: 'size',
|
|
121
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION: 'location',
|
|
122
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR: 'primaryColor',
|
|
123
|
+
CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSECONDARYCOLOR: 'secondaryColor'
|
|
214
124
|
};
|
|
215
|
-
|
|
216
|
-
case 'OUTSET1':
|
|
217
|
-
return OUTSET1;
|
|
218
|
-
case 'OUTSET2':
|
|
219
|
-
return {
|
|
220
|
-
top: '0px',
|
|
221
|
-
left: '50%',
|
|
222
|
-
translateX: -50,
|
|
223
|
-
translateY: -100,
|
|
224
|
-
transformOrigin: 'top left'
|
|
225
|
-
};
|
|
226
|
-
case 'OUTSET3':
|
|
227
|
-
return {
|
|
228
|
-
top: '0px',
|
|
229
|
-
left: '100%',
|
|
230
|
-
translateX: -100,
|
|
231
|
-
translateY: -100,
|
|
232
|
-
transformOrigin: 'top left'
|
|
233
|
-
};
|
|
234
|
-
case 'OUTSET4':
|
|
235
|
-
return {
|
|
236
|
-
top: '0px',
|
|
237
|
-
left: '100%',
|
|
238
|
-
translateX: 0,
|
|
239
|
-
translateY: 0,
|
|
240
|
-
transformOrigin: 'left top'
|
|
241
|
-
};
|
|
242
|
-
case 'OUTSET5':
|
|
243
|
-
return {
|
|
244
|
-
top: '50%',
|
|
245
|
-
left: '100%',
|
|
246
|
-
translateX: 0,
|
|
247
|
-
translateY: -50,
|
|
248
|
-
transformOrigin: 'left top'
|
|
249
|
-
};
|
|
250
|
-
case 'OUTSET6':
|
|
251
|
-
return {
|
|
252
|
-
top: '100%',
|
|
253
|
-
left: '100%',
|
|
254
|
-
translateX: 0,
|
|
255
|
-
translateY: -100,
|
|
256
|
-
transformOrigin: 'left top'
|
|
257
|
-
};
|
|
258
|
-
case 'OUTSET7':
|
|
259
|
-
return {
|
|
260
|
-
top: '100%',
|
|
261
|
-
left: '100%',
|
|
262
|
-
translateX: -100,
|
|
263
|
-
translateY: 0,
|
|
264
|
-
transformOrigin: 'top left'
|
|
265
|
-
};
|
|
266
|
-
case 'OUTSET8':
|
|
267
|
-
return {
|
|
268
|
-
top: '100%',
|
|
269
|
-
left: '50%',
|
|
270
|
-
translateX: -50,
|
|
271
|
-
translateY: 0,
|
|
272
|
-
transformOrigin: 'top left'
|
|
273
|
-
};
|
|
274
|
-
case 'OUTSET9':
|
|
275
|
-
return {
|
|
276
|
-
top: '100%',
|
|
277
|
-
left: '0px',
|
|
278
|
-
translateX: 0,
|
|
279
|
-
translateY: 0,
|
|
280
|
-
transformOrigin: 'top left'
|
|
281
|
-
};
|
|
282
|
-
case 'OUTSET10':
|
|
283
|
-
return {
|
|
284
|
-
top: '100%',
|
|
285
|
-
left: '0px',
|
|
286
|
-
translateX: -100,
|
|
287
|
-
translateY: -100,
|
|
288
|
-
transformOrigin: 'right top'
|
|
289
|
-
};
|
|
290
|
-
case 'OUTSET11':
|
|
291
|
-
return {
|
|
292
|
-
top: '50%',
|
|
293
|
-
left: '0px',
|
|
294
|
-
translateX: -100,
|
|
295
|
-
translateY: -50,
|
|
296
|
-
transformOrigin: 'right top'
|
|
297
|
-
};
|
|
298
|
-
case 'OUTSET12':
|
|
299
|
-
return {
|
|
300
|
-
top: '0px',
|
|
301
|
-
left: '0px',
|
|
302
|
-
translateX: -100,
|
|
303
|
-
translateY: 0,
|
|
304
|
-
transformOrigin: 'right top'
|
|
305
|
-
};
|
|
306
|
-
case 'INSET1':
|
|
307
|
-
return { top: '0px', left: '0px', translateX: 0, translateY: 0, transformOrigin: 'left top' };
|
|
308
|
-
case 'INSET2':
|
|
309
|
-
return {
|
|
310
|
-
top: '0px',
|
|
311
|
-
left: '50%',
|
|
312
|
-
translateX: -50,
|
|
313
|
-
translateY: 0,
|
|
314
|
-
transformOrigin: 'left top'
|
|
315
|
-
};
|
|
316
|
-
case 'INSET3':
|
|
317
|
-
return {
|
|
318
|
-
top: '0px',
|
|
319
|
-
left: '100%',
|
|
320
|
-
translateX: -100,
|
|
321
|
-
translateY: 0,
|
|
322
|
-
transformOrigin: 'left top'
|
|
323
|
-
};
|
|
324
|
-
case 'INSET4':
|
|
325
|
-
return {
|
|
326
|
-
top: '50%',
|
|
327
|
-
left: '100%',
|
|
328
|
-
translateX: -100,
|
|
329
|
-
translateY: -50,
|
|
330
|
-
transformOrigin: 'left top'
|
|
331
|
-
};
|
|
332
|
-
case 'INSET5':
|
|
333
|
-
return {
|
|
334
|
-
top: '100%',
|
|
335
|
-
left: '100%',
|
|
336
|
-
translateX: -100,
|
|
337
|
-
translateY: -100,
|
|
338
|
-
transformOrigin: 'left top'
|
|
339
|
-
};
|
|
340
|
-
case 'INSET6':
|
|
341
|
-
return {
|
|
342
|
-
top: '100%',
|
|
343
|
-
left: '50%',
|
|
344
|
-
translateX: -50,
|
|
345
|
-
translateY: -100,
|
|
346
|
-
transformOrigin: 'left top'
|
|
347
|
-
};
|
|
348
|
-
case 'INSET7':
|
|
349
|
-
return {
|
|
350
|
-
top: '100%',
|
|
351
|
-
left: '0px',
|
|
352
|
-
translateX: 0,
|
|
353
|
-
translateY: -100,
|
|
354
|
-
transformOrigin: 'top left'
|
|
355
|
-
};
|
|
356
|
-
case 'INSET8':
|
|
357
|
-
return {
|
|
358
|
-
top: '50%',
|
|
359
|
-
left: '0px',
|
|
360
|
-
translateX: 0,
|
|
361
|
-
translateY: -50,
|
|
362
|
-
transformOrigin: 'top left'
|
|
363
|
-
};
|
|
364
|
-
default:
|
|
365
|
-
return OUTSET1;
|
|
366
|
-
}
|
|
125
|
+
return keyMapping[baseKey] || null;
|
|
367
126
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
case 'SMALL':
|
|
371
|
-
return 1;
|
|
372
|
-
case 'MEDIUM':
|
|
373
|
-
return 1.5;
|
|
374
|
-
case 'LARGE':
|
|
375
|
-
return 2;
|
|
376
|
-
default:
|
|
377
|
-
return 1;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17;
|
|
127
|
+
exports.getCustomPaginationPropKey = getCustomPaginationPropKey;
|
|
128
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ContentsListElementsProps } from '../ContentsList';
|
|
3
|
+
import type { CSSProperties } from 'styled-components';
|
|
4
|
+
export declare const useFlexGridLayout: ({ components }: {
|
|
5
|
+
components: ContentsListElementsProps[];
|
|
6
|
+
}) => {
|
|
7
|
+
layoutRef: import("react").MutableRefObject<HTMLDivElement | null>;
|
|
8
|
+
positionRefs: import("react").MutableRefObject<Record<string, HTMLDivElement | null>>;
|
|
9
|
+
ccbInset: {
|
|
10
|
+
top: string;
|
|
11
|
+
right: string;
|
|
12
|
+
bottom: string;
|
|
13
|
+
left: string;
|
|
14
|
+
};
|
|
15
|
+
componentGroups: Record<string, ContentsListElementsProps[]>;
|
|
16
|
+
getPositionStyle: (position: string, ccbInset: Record<string, string>) => CSSProperties;
|
|
17
|
+
getComponentGroupLayout: (components: ContentsListElementsProps[], position: string) => CSSProperties;
|
|
18
|
+
};
|