pds-dev-kit-web-test 2.7.220 → 2.7.222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +3307 -106
- package/dist/src/sub/DynamicLayout/mocks.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +9 -18
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +6 -10
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +366 -55
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MOCK_SECTIONS = void 0;
|
|
4
|
-
|
|
4
|
+
require("./mock_contentsCarousel");
|
|
5
5
|
var mock_contentsList_1 = require("./mock_contentsList");
|
|
6
|
-
|
|
6
|
+
require("./mock_slideBanner");
|
|
7
7
|
exports.MOCK_SECTIONS = [
|
|
8
8
|
{
|
|
9
9
|
administrativeTitle: 'Daily Pages',
|
|
@@ -11,8 +11,8 @@ exports.MOCK_SECTIONS = [
|
|
|
11
11
|
componentBlocks: [
|
|
12
12
|
// MOCK_VIDEO_CB,
|
|
13
13
|
// MOCK_VIDEO_CB_2,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// SAMPLE_CONTENTSCAROUSEL_CB,
|
|
15
|
+
// SAMPLE_SLIDEBANNER_CB,
|
|
16
16
|
mock_contentsList_1.SAMPLE_LIST_CB
|
|
17
17
|
// ...MOCK_COMPONENT_BLOCKS
|
|
18
18
|
],
|
|
@@ -54,35 +54,26 @@ var CustomPagination = function (_a) {
|
|
|
54
54
|
buttonSize = 'xxlarge';
|
|
55
55
|
iconSize = 32;
|
|
56
56
|
}
|
|
57
|
+
var size = styles.size || 'MEDIUM';
|
|
57
58
|
switch (styles.type) {
|
|
58
59
|
case 'NONE':
|
|
59
60
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
60
61
|
case 'DESIGN1':
|
|
61
|
-
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, buttonSize: buttonSize, iconSize: iconSize }));
|
|
62
|
+
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, size: size, buttonSize: buttonSize, iconSize: iconSize }));
|
|
62
63
|
case 'DESIGN2':
|
|
63
|
-
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, buttonSize: buttonSize, iconSize: iconSize }));
|
|
64
|
+
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, buttonSize: buttonSize, iconSize: iconSize, size: size }));
|
|
64
65
|
case 'DESIGN3':
|
|
65
|
-
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, buttonSize: buttonSize, iconSize: iconSize }));
|
|
66
|
+
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, buttonSize: buttonSize, iconSize: iconSize, size: size }));
|
|
66
67
|
case 'DESIGN4':
|
|
67
|
-
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, ellipsis: true, maxVisiblePages: 3, buttonSize: buttonSize, iconSize: iconSize }));
|
|
68
|
+
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, ellipsis: true, maxVisiblePages: 3, buttonSize: buttonSize, iconSize: iconSize, size: size }));
|
|
68
69
|
case 'DESIGN5':
|
|
69
|
-
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, ellipsis: true, maxVisiblePages: 3, buttonSize: buttonSize, iconSize: iconSize }));
|
|
70
|
+
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, ellipsis: true, maxVisiblePages: 3, buttonSize: buttonSize, iconSize: iconSize, size: size }));
|
|
70
71
|
case 'DESIGN6':
|
|
71
|
-
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, ellipsis: true, maxVisiblePages: 3, buttonSize: buttonSize, iconSize: iconSize }));
|
|
72
|
+
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, ellipsis: true, maxVisiblePages: 3, buttonSize: buttonSize, iconSize: iconSize, size: size }));
|
|
72
73
|
case 'DESIGN7':
|
|
73
|
-
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, buttonSize: buttonSize, iconSize: iconSize }));
|
|
74
|
+
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, buttonSize: buttonSize, iconSize: iconSize, size: size }));
|
|
74
75
|
case 'DESIGN8':
|
|
75
|
-
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, buttonSize: buttonSize, iconSize: iconSize }));
|
|
76
|
-
case 'DESIGN9':
|
|
77
|
-
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, buttonSize: buttonSize, iconSize: iconSize }));
|
|
78
|
-
case 'DESIGN10':
|
|
79
|
-
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, buttonSize: buttonSize, iconSize: iconSize }));
|
|
80
|
-
case 'DESIGN11':
|
|
81
|
-
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, buttonSize: buttonSize, iconSize: iconSize }));
|
|
82
|
-
case 'DESIGN12':
|
|
83
|
-
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, buttonSize: buttonSize, iconSize: iconSize }));
|
|
84
|
-
case 'DESIGN13':
|
|
85
|
-
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, buttonSize: buttonSize, iconSize: iconSize }));
|
|
76
|
+
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, buttonSize: buttonSize, iconSize: iconSize, size: size }));
|
|
86
77
|
default:
|
|
87
78
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
88
79
|
}
|
|
@@ -13,15 +13,11 @@ type Props = {
|
|
|
13
13
|
maxVisiblePages?: number;
|
|
14
14
|
buttonSize?: IconButtonProps['baseSize'];
|
|
15
15
|
iconSize: IconButtonProps['iconSize'];
|
|
16
|
+
size: 'SMALL' | 'MEDIUM' | 'LARGE';
|
|
16
17
|
};
|
|
17
|
-
export declare function Design1({ total, current, pages, primaryColor, secondaryColor, ellipsis, maxVisiblePages, buttonSize,
|
|
18
|
-
export declare function Design2({ total, current, primaryColor, secondaryColor, ellipsis, maxVisiblePages, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
19
|
-
export declare function Design3({ total, current, pages, primaryColor, secondaryColor, ellipsis, maxVisiblePages, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
20
|
-
export declare function Design7({ total, current, pages, primaryColor, secondaryColor,
|
|
21
|
-
export declare function Design8({ total, current, pages, primaryColor, secondaryColor, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
22
|
-
export declare function Design9({ total, current, pages, primaryColor, secondaryColor, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
23
|
-
export declare function Design10({ total, current, primaryColor, secondaryColor, iconSize, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
24
|
-
export declare function Design11({ total, current, primaryColor, secondaryColor, iconSize, onNext, onPrevious }: Props): JSX.Element;
|
|
25
|
-
export declare function Design12({ total, current, primaryColor, secondaryColor, iconSize, onNext, onPrevious }: Props): JSX.Element;
|
|
26
|
-
export declare function Design13({ total, current, primaryColor, secondaryColor, onNext, onPrevious }: Props): JSX.Element;
|
|
18
|
+
export declare function Design1({ total, current, pages, primaryColor, secondaryColor, ellipsis, maxVisiblePages, buttonSize, size, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
19
|
+
export declare function Design2({ total, current, primaryColor, secondaryColor, ellipsis, maxVisiblePages, iconSize, size, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
20
|
+
export declare function Design3({ total, current, pages, primaryColor, secondaryColor, ellipsis, maxVisiblePages, iconSize, size, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
21
|
+
export declare function Design7({ total, current, pages, primaryColor, secondaryColor, size, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
22
|
+
export declare function Design8({ total, current, pages, primaryColor, secondaryColor, iconSize, size, onPageChange, onNext, onPrevious }: Props): JSX.Element;
|
|
27
23
|
export {};
|
|
@@ -38,93 +38,236 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
38
38
|
return result;
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.
|
|
41
|
+
exports.Design8 = exports.Design7 = exports.Design3 = exports.Design2 = exports.Design1 = void 0;
|
|
42
42
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
43
43
|
/* eslint-disable react/no-unused-prop-types */
|
|
44
44
|
var components_1 = require("../../../../../../../../DynamicLayout/components");
|
|
45
45
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
46
46
|
var usePagination_1 = require("../hooks/usePagination");
|
|
47
47
|
function Design1(_a) {
|
|
48
|
-
var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, ellipsis = _a.ellipsis, _b = _a.maxVisiblePages, maxVisiblePages = _b === void 0 ? 5 : _b, buttonSize = _a.buttonSize,
|
|
48
|
+
var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, ellipsis = _a.ellipsis, _b = _a.maxVisiblePages, maxVisiblePages = _b === void 0 ? 5 : _b, buttonSize = _a.buttonSize,
|
|
49
|
+
// iconSize = 24,
|
|
50
|
+
size = _a.size, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
49
51
|
// ellipsis prop에 따라 렌더링할 페이지 목록 결정
|
|
50
52
|
var pagesToRender = ellipsis
|
|
51
53
|
? (0, usePagination_1.getPaginationItems)(total, current, maxVisiblePages)
|
|
52
54
|
: Array.from({ length: total }, function (_, i) { return i + 1; });
|
|
53
|
-
|
|
55
|
+
var sizeConfig = LIST_PAGINATION_SIZES.DESIGN1[size];
|
|
56
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { 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: sizeConfig.ICON_SIZE, baseSize: sizeConfig.BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) })), pagesToRender.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "rectangle", backgroundColor: "transparent", activeBackgroundColor: secondaryColor, textColor: primaryColor, activeTextColor: primaryColor,
|
|
54
57
|
// '...'인 경우 버튼 비활성화 및 클릭 방지
|
|
55
|
-
isActive: pageNumber === current, disabled: pageNumber === '...', onClick: function () { return pageNumber !== '...' && onPageChange && onPageChange(pageNumber); }, size:
|
|
58
|
+
isActive: pageNumber === current, disabled: pageNumber === '...', onClick: function () { return pageNumber !== '...' && onPageChange && onPageChange(pageNumber); }, size: sizeConfig.SELECTION_BACKGROUND_SIZE, fontSize: sizeConfig.FONT_SIZE }, { children: pageNumber }), pageNumber)); }), (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: sizeConfig.ICON_SIZE, baseSize: sizeConfig.BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) }))] })));
|
|
56
59
|
}
|
|
57
60
|
exports.Design1 = Design1;
|
|
58
61
|
function Design2(_a) {
|
|
59
|
-
var total = _a.total, current = _a.current, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, ellipsis = _a.ellipsis, _b = _a.maxVisiblePages, maxVisiblePages = _b === void 0 ? 5 : _b, _c = _a.iconSize, iconSize = _c === void 0 ? 24 : _c, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
62
|
+
var total = _a.total, current = _a.current, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, ellipsis = _a.ellipsis, _b = _a.maxVisiblePages, maxVisiblePages = _b === void 0 ? 5 : _b, _c = _a.iconSize, iconSize = _c === void 0 ? 24 : _c, size = _a.size, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
60
63
|
var pagesToRender = ellipsis
|
|
61
64
|
? (0, usePagination_1.getPaginationItems)(total, current, maxVisiblePages)
|
|
62
65
|
: Array.from({ length: total }, function (_, i) { return i + 1; });
|
|
63
|
-
|
|
66
|
+
var sizeConfig = LIST_PAGINATION_SIZES.DESIGN2[size];
|
|
67
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { 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: sizeConfig.ICON_SIZE, baseSize: sizeConfig.BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) })), pagesToRender.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", fontSize: sizeConfig.FONT_SIZE, shape: "round", backgroundColor: "transparent", activeBackgroundColor: secondaryColor, textColor: primaryColor, activeTextColor: primaryColor, radius: 8,
|
|
64
68
|
// '...'인 경우 버튼 비활성화 및 클릭 방지
|
|
65
|
-
isActive: pageNumber === current, size: iconSize, disabled: pageNumber === '...', onClick: function () { return pageNumber !== '...' && onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.
|
|
69
|
+
isActive: pageNumber === current, size: iconSize, disabled: pageNumber === '...', onClick: function () { return pageNumber !== '...' && onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (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: sizeConfig.ICON_SIZE, baseSize: sizeConfig.BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) }))] })));
|
|
66
70
|
}
|
|
67
71
|
exports.Design2 = Design2;
|
|
68
72
|
function Design3(_a) {
|
|
69
|
-
var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, ellipsis = _a.ellipsis, _b = _a.maxVisiblePages, maxVisiblePages = _b === void 0 ? 5 : _b, _c = _a.iconSize, iconSize = _c === void 0 ? 24 : _c, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
73
|
+
var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, ellipsis = _a.ellipsis, _b = _a.maxVisiblePages, maxVisiblePages = _b === void 0 ? 5 : _b, _c = _a.iconSize, iconSize = _c === void 0 ? 24 : _c, size = _a.size, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
70
74
|
var pagesToRender = ellipsis
|
|
71
75
|
? (0, usePagination_1.getPaginationItems)(total, current, maxVisiblePages)
|
|
72
76
|
: Array.from({ length: total }, function (_, i) { return i + 1; });
|
|
73
|
-
|
|
77
|
+
var sizeConfig = LIST_PAGINATION_SIZES.DESIGN3[size];
|
|
78
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px" }, { 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: sizeConfig.ICON_SIZE, baseSize: sizeConfig.BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) })), pagesToRender.map(function (pageNumber) { return ((0, jsx_runtime_1.jsx)(S_Page, __assign({ type: "button", shape: "round", backgroundColor: "transparent", activeBackgroundColor: secondaryColor, textColor: primaryColor, radius: 16, activeTextColor: primaryColor,
|
|
74
79
|
// '...'인 경우 버튼 비활성화 및 클릭 방지
|
|
75
|
-
size: iconSize, isActive: pageNumber === current, disabled: pageNumber === '...', onClick: function () { return pageNumber !== '...' && onPageChange && onPageChange(pageNumber); } }, { children: pageNumber }), pageNumber)); }), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNext, disabled: current === total }, { children: (0, jsx_runtime_1.jsx)(components_1.
|
|
80
|
+
size: iconSize, isActive: pageNumber === current, disabled: pageNumber === '...', onClick: function () { return pageNumber !== '...' && onPageChange && onPageChange(pageNumber); }, fontSize: sizeConfig.FONT_SIZE }, { children: pageNumber }), pageNumber)); }), (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: sizeConfig.ICON_SIZE, baseSize: sizeConfig.BUTTON_SIZE, iconColorKey: "ui_cpnt_icon_sys_dark", overrideIconColorHex: primaryColor, baseColorKey: "ui_cpnt_button_fill_base_transparent" }) }))] })));
|
|
76
81
|
}
|
|
77
82
|
exports.Design3 = Design3;
|
|
78
83
|
function Design7(_a) {
|
|
79
|
-
var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor,
|
|
80
|
-
|
|
84
|
+
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;
|
|
85
|
+
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;
|
|
86
|
+
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: {
|
|
81
87
|
marginLeft: '8px'
|
|
82
|
-
}, colorTheme: "sysTextBlack", styleTheme:
|
|
88
|
+
}, colorTheme: "sysTextBlack", styleTheme: SELECTED_TEXT_STYLE_THEME }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '4px', opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME, colorTheme: "sysTextBlack" }, { children: "/ ".concat(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" }) }))] })));
|
|
83
89
|
}
|
|
84
90
|
exports.Design7 = Design7;
|
|
85
91
|
function Design8(_a) {
|
|
86
|
-
var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, _b = _a.iconSize, iconSize = _b === void 0 ? 24 : _b, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
87
|
-
|
|
92
|
+
var total = _a.total, current = _a.current, pages = _a.pages, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, _b = _a.iconSize, iconSize = _b === void 0 ? 24 : _b, size = _a.size, onPageChange = _a.onPageChange, onNext = _a.onNext, onPrevious = _a.onPrevious;
|
|
93
|
+
var _c = LIST_PAGINATION_SIZES.DESIGN8[size], BUTTON_SIZE = _c.BUTTON_SIZE, SELECTED_TEXT_STYLE_THEME = _c.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _c.UNSELECTED_TEXT_STYLE_THEME, ICON_SIZE = _c.ICON_SIZE;
|
|
94
|
+
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: {
|
|
88
95
|
marginLeft: '8px'
|
|
89
|
-
}, colorTheme: "sysTextBlack", styleTheme:
|
|
96
|
+
}, colorTheme: "sysTextBlack", styleTheme: SELECTED_TEXT_STYLE_THEME }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', marginLeft: '8px', opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME, colorTheme: "sysTextBlack" }, { children: "|" })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { marginRight: '8px', opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME, colorTheme: "sysTextBlack" }, { 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" }) }))] })));
|
|
90
97
|
}
|
|
91
98
|
exports.Design8 = Design8;
|
|
92
99
|
// NOTE: 이 밑은 NOT IN USE
|
|
93
|
-
function Design9(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
100
|
+
// export function Design9({
|
|
101
|
+
// total,
|
|
102
|
+
// current,
|
|
103
|
+
// pages,
|
|
104
|
+
// primaryColor,
|
|
105
|
+
// secondaryColor,
|
|
106
|
+
// iconSize = 24,
|
|
107
|
+
// size,
|
|
108
|
+
// onPageChange,
|
|
109
|
+
// onNext,
|
|
110
|
+
// onPrevious
|
|
111
|
+
// }: Props) {
|
|
112
|
+
// const sizeConfig = LIST_PAGINATION_SIZES.DESIGN2[size];
|
|
113
|
+
// return (
|
|
114
|
+
// <FlexBox gap="4px">
|
|
115
|
+
// <S_Pointer onClick={onPrevious} disabled={current === 1}>
|
|
116
|
+
// <Icon iconName="ic_arrow_left" size={iconSize} colorKey="ui_cpnt_icon_sys_dark" />
|
|
117
|
+
// </S_Pointer>
|
|
118
|
+
// {pages?.map((pageNumber) => (
|
|
119
|
+
// <S_Page
|
|
120
|
+
// type="button"
|
|
121
|
+
// key={pageNumber}
|
|
122
|
+
// shape="round"
|
|
123
|
+
// radius={8}
|
|
124
|
+
// backgroundColor={primaryColor}
|
|
125
|
+
// activeBackgroundColor={secondaryColor}
|
|
126
|
+
// textColor={secondaryColor}
|
|
127
|
+
// activeTextColor={primaryColor}
|
|
128
|
+
// isActive={pageNumber === current}
|
|
129
|
+
// onClick={() => onPageChange && onPageChange(pageNumber)}
|
|
130
|
+
// size={iconSize}
|
|
131
|
+
// fontSize={sizeConfig.FONT_SIZE}
|
|
132
|
+
// >
|
|
133
|
+
// {pageNumber}
|
|
134
|
+
// </S_Page>
|
|
135
|
+
// ))}
|
|
136
|
+
// <S_Pointer onClick={onNext} disabled={current === total}>
|
|
137
|
+
// <Icon iconName="ic_arrow_right" size={iconSize} colorKey="ui_cpnt_icon_sys_dark" />
|
|
138
|
+
// </S_Pointer>
|
|
139
|
+
// </FlexBox>
|
|
140
|
+
// );
|
|
141
|
+
// }
|
|
142
|
+
// export function Design10({
|
|
143
|
+
// total,
|
|
144
|
+
// current,
|
|
145
|
+
// primaryColor,
|
|
146
|
+
// secondaryColor,
|
|
147
|
+
// iconSize = 24,
|
|
148
|
+
// size,
|
|
149
|
+
// onPageChange,
|
|
150
|
+
// onNext,
|
|
151
|
+
// onPrevious
|
|
152
|
+
// }: Props) {
|
|
153
|
+
// const paginationPages = generatePaginationPages(total, current);
|
|
154
|
+
// const sizeConfig = LIST_PAGINATION_SIZES.DESIGN2[size];
|
|
155
|
+
// return (
|
|
156
|
+
// <FlexBox gap="4px">
|
|
157
|
+
// <S_Pointer onClick={onPrevious} disabled={current === 1}>
|
|
158
|
+
// <Icon iconName="ic_arrow_left" size={iconSize} colorKey="ui_cpnt_icon_sys_dark" />
|
|
159
|
+
// </S_Pointer>
|
|
160
|
+
// {paginationPages?.map((pageNumber) => {
|
|
161
|
+
// if (typeof pageNumber === 'string') {
|
|
162
|
+
// return (
|
|
163
|
+
// <S_Page
|
|
164
|
+
// fontSize={sizeConfig.FONT_SIZE}
|
|
165
|
+
// type="button"
|
|
166
|
+
// key={pageNumber}
|
|
167
|
+
// shape="rectangle"
|
|
168
|
+
// backgroundColor="transparent"
|
|
169
|
+
// activeBackgroundColor={primaryColor}
|
|
170
|
+
// textColor={primaryColor}
|
|
171
|
+
// activeTextColor={secondaryColor}
|
|
172
|
+
// isActive={false}
|
|
173
|
+
// size={iconSize}
|
|
174
|
+
// disabled
|
|
175
|
+
// >
|
|
176
|
+
// {pageNumber}
|
|
177
|
+
// </S_Page>
|
|
178
|
+
// );
|
|
179
|
+
// }
|
|
180
|
+
// return (
|
|
181
|
+
// <S_Page
|
|
182
|
+
// type="button"
|
|
183
|
+
// fontSize={sizeConfig.FONT_SIZE}
|
|
184
|
+
// key={pageNumber}
|
|
185
|
+
// shape="rectangle"
|
|
186
|
+
// backgroundColor="transparent"
|
|
187
|
+
// activeBackgroundColor={primaryColor}
|
|
188
|
+
// textColor={primaryColor}
|
|
189
|
+
// activeTextColor={secondaryColor}
|
|
190
|
+
// size={iconSize}
|
|
191
|
+
// isActive={pageNumber === current}
|
|
192
|
+
// onClick={() => onPageChange && onPageChange(pageNumber)}
|
|
193
|
+
// >
|
|
194
|
+
// {pageNumber}
|
|
195
|
+
// </S_Page>
|
|
196
|
+
// );
|
|
197
|
+
// })}
|
|
198
|
+
// <S_Pointer onClick={onNext} disabled={current === total}>
|
|
199
|
+
// <Icon iconName="ic_arrow_right" size={iconSize} colorKey="ui_cpnt_icon_sys_dark" />
|
|
200
|
+
// </S_Pointer>
|
|
201
|
+
// </FlexBox>
|
|
202
|
+
// );
|
|
203
|
+
// }
|
|
204
|
+
// export function Design11({
|
|
205
|
+
// total,
|
|
206
|
+
// current,
|
|
207
|
+
// primaryColor,
|
|
208
|
+
// secondaryColor,
|
|
209
|
+
// iconSize = 24,
|
|
210
|
+
// onNext,
|
|
211
|
+
// onPrevious
|
|
212
|
+
// }: Props) {
|
|
213
|
+
// return (
|
|
214
|
+
// <FlexBox gap="4px">
|
|
215
|
+
// <S_Pointer onClick={onPrevious} disabled={current === 1}>
|
|
216
|
+
// <Icon iconName="ic_arrow_left" size={iconSize} colorKey="ui_cpnt_icon_sys_dark" />
|
|
217
|
+
// </S_Pointer>
|
|
218
|
+
// <S_Text $color={secondaryColor}>{current}</S_Text>
|
|
219
|
+
// <S_Text $color={primaryColor}>/</S_Text>
|
|
220
|
+
// <S_Text $color={primaryColor}>{total}</S_Text>
|
|
221
|
+
// <S_Pointer onClick={onNext} disabled={current === total}>
|
|
222
|
+
// <Icon iconName="ic_arrow_right" size={iconSize} colorKey="ui_cpnt_icon_sys_dark" />
|
|
223
|
+
// </S_Pointer>
|
|
224
|
+
// </FlexBox>
|
|
225
|
+
// );
|
|
226
|
+
// }
|
|
227
|
+
// export function Design12({
|
|
228
|
+
// total,
|
|
229
|
+
// current,
|
|
230
|
+
// primaryColor,
|
|
231
|
+
// secondaryColor,
|
|
232
|
+
// iconSize = 24,
|
|
233
|
+
// onNext,
|
|
234
|
+
// onPrevious
|
|
235
|
+
// }: Props) {
|
|
236
|
+
// return (
|
|
237
|
+
// <FlexBox gap="4px">
|
|
238
|
+
// <S_Text $color={secondaryColor}>{current}</S_Text>
|
|
239
|
+
// <S_Text $color={primaryColor}>/</S_Text>
|
|
240
|
+
// <S_Text $color={primaryColor}>{total}</S_Text>
|
|
241
|
+
// <S_Pointer onClick={onPrevious} disabled={current === 1}>
|
|
242
|
+
// <Icon iconName="ic_arrow_left" size={iconSize} colorKey="ui_cpnt_icon_sys_dark" />
|
|
243
|
+
// </S_Pointer>
|
|
244
|
+
// <S_Pointer onClick={onNext} disabled={current === total}>
|
|
245
|
+
// <Icon iconName="ic_arrow_right" size={16} colorKey="ui_cpnt_icon_sys_dark" />
|
|
246
|
+
// </S_Pointer>
|
|
247
|
+
// </FlexBox>
|
|
248
|
+
// );
|
|
249
|
+
// }
|
|
250
|
+
// export function Design13({
|
|
251
|
+
// total,
|
|
252
|
+
// current,
|
|
253
|
+
// // eslint-disable-next-line
|
|
254
|
+
// primaryColor,
|
|
255
|
+
// // eslint-disable-next-line
|
|
256
|
+
// secondaryColor,
|
|
257
|
+
// onNext,
|
|
258
|
+
// onPrevious
|
|
259
|
+
// }: Props) {
|
|
260
|
+
// return (
|
|
261
|
+
// <FlexBox gap="4px">
|
|
262
|
+
// <S_Pointer onClick={onPrevious} disabled={current === 1}>
|
|
263
|
+
// <Icon iconName="ic_arrow_left" size={16} colorKey="ui_cpnt_icon_sys_dark" />
|
|
264
|
+
// </S_Pointer>
|
|
265
|
+
// <S_Pointer onClick={onNext} disabled={current === total}>
|
|
266
|
+
// <Icon iconName="ic_arrow_right" size={16} colorKey="ui_cpnt_icon_sys_dark" />
|
|
267
|
+
// </S_Pointer>
|
|
268
|
+
// </FlexBox>
|
|
269
|
+
// );
|
|
270
|
+
// }
|
|
128
271
|
var FlexBox = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n align-items: ", ";\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n justify-content: ", ";\n"], ["\n align-items: ", ";\n display: flex;\n flex-direction: ", ";\n gap: ", ";\n justify-content: ", ";\n"])), function (_a) {
|
|
129
272
|
var _b = _a.alignItems, alignItems = _b === void 0 ? 'center' : _b;
|
|
130
273
|
return alignItems;
|
|
@@ -157,8 +300,8 @@ var S_Page = styled_components_1.default.button(templateObject_3 || (templateObj
|
|
|
157
300
|
var isActive = _a.isActive, textColor = _a.textColor, activeTextColor = _a.activeTextColor;
|
|
158
301
|
return (isActive ? activeTextColor : textColor);
|
|
159
302
|
}, function (_a) {
|
|
160
|
-
var
|
|
161
|
-
return
|
|
303
|
+
var fontSize = _a.fontSize;
|
|
304
|
+
return "".concat(fontSize, "px");
|
|
162
305
|
}, function (_a) {
|
|
163
306
|
var theme = _a.theme, isActive = _a.isActive;
|
|
164
307
|
return isActive ? theme.fontWeight.bold : theme.fontWeight.normal;
|
|
@@ -181,7 +324,13 @@ var S_TextLabel = styled_components_1.default.div(templateObject_5 || (templateO
|
|
|
181
324
|
return styleTheme &&
|
|
182
325
|
{
|
|
183
326
|
body2Bold: body2Bold,
|
|
184
|
-
body2Regular: body2Regular
|
|
327
|
+
body2Regular: body2Regular,
|
|
328
|
+
body1Bold: body1Bold,
|
|
329
|
+
body1Regular: body1Regular,
|
|
330
|
+
caption1Bold: caption1Bold,
|
|
331
|
+
caption1Regular: caption1Regular,
|
|
332
|
+
caption2Bold: caption2Bold,
|
|
333
|
+
caption2Regular: caption2Regular
|
|
185
334
|
}[styleTheme];
|
|
186
335
|
}, function (_a) {
|
|
187
336
|
var colorTheme = _a.colorTheme;
|
|
@@ -215,6 +364,66 @@ var body2Regular = (0, styled_components_1.css)(templateObject_9 || (templateObj
|
|
|
215
364
|
var theme = _a.theme;
|
|
216
365
|
return theme.desktopLineHeight.body2;
|
|
217
366
|
});
|
|
367
|
+
var body1Bold = (0, styled_components_1.css)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
368
|
+
var theme = _a.theme;
|
|
369
|
+
return theme.desktopFontSize.body1;
|
|
370
|
+
}, function (_a) {
|
|
371
|
+
var theme = _a.theme;
|
|
372
|
+
return theme.fontWeight.bold;
|
|
373
|
+
}, function (_a) {
|
|
374
|
+
var theme = _a.theme;
|
|
375
|
+
return theme.desktopLineHeight.body1;
|
|
376
|
+
});
|
|
377
|
+
var body1Regular = (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
378
|
+
var theme = _a.theme;
|
|
379
|
+
return theme.desktopFontSize.body1;
|
|
380
|
+
}, function (_a) {
|
|
381
|
+
var theme = _a.theme;
|
|
382
|
+
return theme.fontWeight.normal;
|
|
383
|
+
}, function (_a) {
|
|
384
|
+
var theme = _a.theme;
|
|
385
|
+
return theme.desktopLineHeight.body1;
|
|
386
|
+
});
|
|
387
|
+
var caption1Bold = (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
388
|
+
var theme = _a.theme;
|
|
389
|
+
return theme.desktopFontSize.caption1;
|
|
390
|
+
}, function (_a) {
|
|
391
|
+
var theme = _a.theme;
|
|
392
|
+
return theme.fontWeight.bold;
|
|
393
|
+
}, function (_a) {
|
|
394
|
+
var theme = _a.theme;
|
|
395
|
+
return theme.desktopLineHeight.caption1;
|
|
396
|
+
});
|
|
397
|
+
var caption1Regular = (0, styled_components_1.css)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
398
|
+
var theme = _a.theme;
|
|
399
|
+
return theme.desktopFontSize.caption1;
|
|
400
|
+
}, function (_a) {
|
|
401
|
+
var theme = _a.theme;
|
|
402
|
+
return theme.fontWeight.normal;
|
|
403
|
+
}, function (_a) {
|
|
404
|
+
var theme = _a.theme;
|
|
405
|
+
return theme.desktopLineHeight.caption1;
|
|
406
|
+
});
|
|
407
|
+
var caption2Bold = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
408
|
+
var theme = _a.theme;
|
|
409
|
+
return theme.desktopFontSize.caption2;
|
|
410
|
+
}, function (_a) {
|
|
411
|
+
var theme = _a.theme;
|
|
412
|
+
return theme.fontWeight.bold;
|
|
413
|
+
}, function (_a) {
|
|
414
|
+
var theme = _a.theme;
|
|
415
|
+
return theme.desktopLineHeight.caption2;
|
|
416
|
+
});
|
|
417
|
+
var caption2Regular = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
418
|
+
var theme = _a.theme;
|
|
419
|
+
return theme.desktopFontSize.caption2;
|
|
420
|
+
}, function (_a) {
|
|
421
|
+
var theme = _a.theme;
|
|
422
|
+
return theme.fontWeight.normal;
|
|
423
|
+
}, function (_a) {
|
|
424
|
+
var theme = _a.theme;
|
|
425
|
+
return theme.desktopLineHeight.caption2;
|
|
426
|
+
});
|
|
218
427
|
function generatePaginationPages(total, current) {
|
|
219
428
|
// 총 페이지가 10개 이하면 모든 페이지 표시
|
|
220
429
|
if (total <= 10) {
|
|
@@ -253,4 +462,106 @@ function generatePaginationPages(total, current) {
|
|
|
253
462
|
}
|
|
254
463
|
return pages;
|
|
255
464
|
}
|
|
256
|
-
var
|
|
465
|
+
var LIST_PAGINATION_SIZES = {
|
|
466
|
+
DESIGN1: {
|
|
467
|
+
SMALL: {
|
|
468
|
+
SELECTION_BACKGROUND_SIZE: 24,
|
|
469
|
+
ICON_SIZE: 12,
|
|
470
|
+
BUTTON_SIZE: 'xsmall',
|
|
471
|
+
FONT_SIZE: 13
|
|
472
|
+
},
|
|
473
|
+
MEDIUM: {
|
|
474
|
+
SELECTION_BACKGROUND_SIZE: 32,
|
|
475
|
+
ICON_SIZE: 16,
|
|
476
|
+
BUTTON_SIZE: 'small',
|
|
477
|
+
FONT_SIZE: 14
|
|
478
|
+
},
|
|
479
|
+
LARGE: {
|
|
480
|
+
SELECTION_BACKGROUND_SIZE: 40,
|
|
481
|
+
ICON_SIZE: 20,
|
|
482
|
+
BUTTON_SIZE: 'medium',
|
|
483
|
+
FONT_SIZE: 16
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
DESIGN2: {
|
|
487
|
+
SMALL: {
|
|
488
|
+
SELECTION_BACKGROUND_SIZE: 24,
|
|
489
|
+
ICON_SIZE: 12,
|
|
490
|
+
BUTTON_SIZE: 'xsmall',
|
|
491
|
+
FONT_SIZE: 13
|
|
492
|
+
},
|
|
493
|
+
MEDIUM: {
|
|
494
|
+
SELECTION_BACKGROUND_SIZE: 32,
|
|
495
|
+
ICON_SIZE: 16,
|
|
496
|
+
BUTTON_SIZE: 'small',
|
|
497
|
+
FONT_SIZE: 14
|
|
498
|
+
},
|
|
499
|
+
LARGE: {
|
|
500
|
+
SELECTION_BACKGROUND_SIZE: 40,
|
|
501
|
+
ICON_SIZE: 20,
|
|
502
|
+
BUTTON_SIZE: 'medium',
|
|
503
|
+
FONT_SIZE: 16
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
DESIGN3: {
|
|
507
|
+
SMALL: {
|
|
508
|
+
SELECTION_BACKGROUND_SIZE: 24,
|
|
509
|
+
ICON_SIZE: 12,
|
|
510
|
+
BUTTON_SIZE: 'xsmall',
|
|
511
|
+
FONT_SIZE: 13
|
|
512
|
+
},
|
|
513
|
+
MEDIUM: {
|
|
514
|
+
SELECTION_BACKGROUND_SIZE: 32,
|
|
515
|
+
ICON_SIZE: 16,
|
|
516
|
+
BUTTON_SIZE: 'small',
|
|
517
|
+
FONT_SIZE: 14
|
|
518
|
+
},
|
|
519
|
+
LARGE: {
|
|
520
|
+
SELECTION_BACKGROUND_SIZE: 40,
|
|
521
|
+
ICON_SIZE: 20,
|
|
522
|
+
BUTTON_SIZE: 'medium',
|
|
523
|
+
FONT_SIZE: 16
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
DESIGN7: {
|
|
527
|
+
SMALL: {
|
|
528
|
+
ICON_SIZE: 12,
|
|
529
|
+
BUTTON_SIZE: 'xsmall',
|
|
530
|
+
SELECTED_TEXT_STYLE_THEME: 'caption1Bold',
|
|
531
|
+
UNSELECTED_TEXT_STYLE_THEME: 'caption1Regular'
|
|
532
|
+
},
|
|
533
|
+
MEDIUM: {
|
|
534
|
+
ICON_SIZE: 16,
|
|
535
|
+
BUTTON_SIZE: 'small',
|
|
536
|
+
SELECTED_TEXT_STYLE_THEME: 'body2Bold',
|
|
537
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body2Regular'
|
|
538
|
+
},
|
|
539
|
+
LARGE: {
|
|
540
|
+
ICON_SIZE: 16,
|
|
541
|
+
BUTTON_SIZE: 'medium',
|
|
542
|
+
SELECTED_TEXT_STYLE_THEME: 'body1Bold',
|
|
543
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body1Regular'
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
DESIGN8: {
|
|
547
|
+
SMALL: {
|
|
548
|
+
ICON_SIZE: 12,
|
|
549
|
+
BUTTON_SIZE: 'xsmall',
|
|
550
|
+
SELECTED_TEXT_STYLE_THEME: 'caption1Bold',
|
|
551
|
+
UNSELECTED_TEXT_STYLE_THEME: 'caption1Regular'
|
|
552
|
+
},
|
|
553
|
+
MEDIUM: {
|
|
554
|
+
ICON_SIZE: 16,
|
|
555
|
+
BUTTON_SIZE: 'small',
|
|
556
|
+
SELECTED_TEXT_STYLE_THEME: 'body2Bold',
|
|
557
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body2Regular'
|
|
558
|
+
},
|
|
559
|
+
LARGE: {
|
|
560
|
+
ICON_SIZE: 16,
|
|
561
|
+
BUTTON_SIZE: 'medium',
|
|
562
|
+
SELECTED_TEXT_STYLE_THEME: 'body1Bold',
|
|
563
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body1Regular'
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
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;
|