pds-dev-kit-web-test 2.7.222 → 2.7.224
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 +1 -1
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +2 -2
- 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/ContentsList/components/CustomPagination.js +8 -18
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.d.ts +4 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/paginationConfigs.js +7 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomPagination.js +427 -78
- package/package.json +1 -1
|
@@ -45,68 +45,226 @@ var styled_components_1 = __importStar(require("styled-components"));
|
|
|
45
45
|
var CustomPagination = function (_a) {
|
|
46
46
|
var _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.total, total = _c === void 0 ? 1 : _c, isNextBtnDisabled = _a.isNextBtnDisabled, isPrevBtnDisabled = _a.isPrevBtnDisabled, styles = _a.styles, onBulletClick = _a.onBulletClick, onNextBtnClick = _a.onNextBtnClick, onPrevBtnClick = _a.onPrevBtnClick;
|
|
47
47
|
var bullets = Array.from({ length: total }, function (_, i) { return i; });
|
|
48
|
-
var size = 24; // Medium
|
|
49
|
-
var iconSize = 24;
|
|
50
|
-
if (styles.size === 'SMALL') {
|
|
51
|
-
size = 16;
|
|
52
|
-
iconSize = 16;
|
|
53
|
-
}
|
|
54
|
-
if (styles.size === 'LARGE') {
|
|
55
|
-
size = 32;
|
|
56
|
-
iconSize = 32;
|
|
57
|
-
}
|
|
58
48
|
return ((0, jsx_runtime_1.jsx)(S_Pagination, __assign({ className: "custom-pagination_".concat(current) }, { children: (function () {
|
|
49
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
59
50
|
switch (styles.type) {
|
|
60
51
|
case 'NONE':
|
|
61
52
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
62
|
-
case 'DESIGN1':
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
case '
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
53
|
+
case 'DESIGN1': {
|
|
54
|
+
var _j = SLIDE_BANNER_PAGINATION_SIZES.DESIGN1[(_a = styles.size) !== null && _a !== void 0 ? _a : 'MEDIUM'], SELECTED_TEXT_STYLE_THEME = _j.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _j.UNSELECTED_TEXT_STYLE_THEME;
|
|
55
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "4px", style: { color: styles.secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: SELECTED_TEXT_STYLE_THEME, style: { color: styles.primaryColor || 'inherit' } }, { children: current })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: "/ ".concat(total) }))] })));
|
|
56
|
+
}
|
|
57
|
+
// case 'DESIGN2': {
|
|
58
|
+
// return (
|
|
59
|
+
// <FlexBox gap="4px" style={{ color: styles.secondaryColor || 'inherit' }}>
|
|
60
|
+
// <S_TextLabel
|
|
61
|
+
// styleTheme="body2Bold"
|
|
62
|
+
// style={{ color: styles.primaryColor || 'inherit' }}
|
|
63
|
+
// >
|
|
64
|
+
// {current}
|
|
65
|
+
// </S_TextLabel>
|
|
66
|
+
// <S_TextLabel
|
|
67
|
+
// style={{ opacity: 0.6 }}
|
|
68
|
+
// styleTheme="body2Regular"
|
|
69
|
+
// >{`/ ${total}`}</S_TextLabel>
|
|
70
|
+
// </FlexBox>
|
|
71
|
+
// );
|
|
72
|
+
// }
|
|
73
|
+
case 'DESIGN3': {
|
|
74
|
+
var _k = SLIDE_BANNER_PAGINATION_SIZES.DESIGN3[(_b = styles.size) !== null && _b !== void 0 ? _b : 'MEDIUM'], SELECTED_TEXT_STYLE_THEME = _k.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _k.UNSELECTED_TEXT_STYLE_THEME;
|
|
75
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px", style: { color: styles.secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: SELECTED_TEXT_STYLE_THEME, style: { color: styles.primaryColor || 'inherit' } }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: styles.secondaryColor }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: total }))] })));
|
|
76
|
+
}
|
|
77
|
+
// case 'DESIGN4':
|
|
78
|
+
// return (
|
|
79
|
+
// <FlexBox gap="8px" style={{ color: styles.secondaryColor || 'inherit' }}>
|
|
80
|
+
// <S_TextLabel
|
|
81
|
+
// size={size}
|
|
82
|
+
// styleTheme="body2Bold"
|
|
83
|
+
// style={{ color: styles.primaryColor || 'inherit' }}
|
|
84
|
+
// >
|
|
85
|
+
// {current}
|
|
86
|
+
// </S_TextLabel>
|
|
87
|
+
// <S_Divider type="VERTICAL" color={styles.secondaryColor} style={{ height: size }} />
|
|
88
|
+
// <S_TextLabel size={size} style={{ opacity: 0.6 }} styleTheme="body2Regular">
|
|
89
|
+
// {total}
|
|
90
|
+
// </S_TextLabel>
|
|
91
|
+
// </FlexBox>
|
|
92
|
+
// );
|
|
93
|
+
case 'DESIGN5': {
|
|
94
|
+
var _l = SLIDE_BANNER_PAGINATION_SIZES.DESIGN5[(_c = styles.size) !== null && _c !== void 0 ? _c : 'MEDIUM'], ICON_SIZE = _l.ICON_SIZE, SELECTED_TEXT_STYLE_THEME = _l.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _l.UNSELECTED_TEXT_STYLE_THEME;
|
|
95
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ style: { color: styles.secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: isPrevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { overrideColorHex: styles.primaryColor, iconName: "ic_arrow_left", size: ICON_SIZE, colorKey: "ui_cpnt_icon_sys_dark" }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: {
|
|
78
96
|
marginLeft: '8px',
|
|
79
97
|
marginRight: '4px',
|
|
80
98
|
color: styles.primaryColor || 'inherit'
|
|
81
|
-
}, styleTheme:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
99
|
+
}, 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 }, { children: "/ ".concat(total) })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: isNextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { overrideColorHex: styles.primaryColor, iconName: "ic_arrow_right", size: ICON_SIZE, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
100
|
+
}
|
|
101
|
+
// case 'DESIGN6':
|
|
102
|
+
// return (
|
|
103
|
+
// <FlexBox style={{ color: styles.secondaryColor || 'inherit' }}>
|
|
104
|
+
// <S_Pointer onClick={onPrevBtnClick} disabled={isPrevBtnDisabled}>
|
|
105
|
+
// <Icon
|
|
106
|
+
// overrideColorHex={styles.primaryColor}
|
|
107
|
+
// iconName="ic_arrow_left"
|
|
108
|
+
// size={iconSize}
|
|
109
|
+
// />
|
|
110
|
+
// </S_Pointer>
|
|
111
|
+
// <S_TextLabel
|
|
112
|
+
// size={size}
|
|
113
|
+
// style={{
|
|
114
|
+
// marginLeft: '8px',
|
|
115
|
+
// marginRight: '4px',
|
|
116
|
+
// color: styles.primaryColor || 'inherit'
|
|
117
|
+
// }}
|
|
118
|
+
// styleTheme="body2Bold"
|
|
119
|
+
// >
|
|
120
|
+
// {current}
|
|
121
|
+
// </S_TextLabel>
|
|
122
|
+
// <S_TextLabel
|
|
123
|
+
// size={size}
|
|
124
|
+
// style={{ marginRight: '8px', marginLeft: '4px', opacity: 0.6 }}
|
|
125
|
+
// styleTheme="body2Regular"
|
|
126
|
+
// >
|
|
127
|
+
// {`/ ${total}`}
|
|
128
|
+
// </S_TextLabel>
|
|
129
|
+
// <S_Pointer onClick={onNextBtnClick} disabled={isNextBtnDisabled}>
|
|
130
|
+
// <Icon
|
|
131
|
+
// overrideColorHex={styles.primaryColor}
|
|
132
|
+
// iconName="ic_arrow_right"
|
|
133
|
+
// size={iconSize}
|
|
134
|
+
// />
|
|
135
|
+
// </S_Pointer>
|
|
136
|
+
// </FlexBox>
|
|
137
|
+
// );
|
|
138
|
+
case 'DESIGN7': {
|
|
139
|
+
var _m = SLIDE_BANNER_PAGINATION_SIZES.DESIGN7[(_d = styles.size) !== null && _d !== void 0 ? _d : 'MEDIUM'], ICON_SIZE = _m.ICON_SIZE, SELECTED_TEXT_STYLE_THEME = _m.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _m.UNSELECTED_TEXT_STYLE_THEME;
|
|
140
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ gap: "8px", style: { color: styles.secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onPrevBtnClick, disabled: isPrevBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { overrideColorHex: styles.primaryColor, iconName: "ic_arrow_left", size: ICON_SIZE, colorKey: "ui_cpnt_icon_sys_dark" }) })), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ styleTheme: SELECTED_TEXT_STYLE_THEME, style: { color: styles.primaryColor || 'inherit' } }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "VERTICAL", color: styles.secondaryColor }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME }, { children: total })), (0, jsx_runtime_1.jsx)(S_Pointer, __assign({ onClick: onNextBtnClick, disabled: isNextBtnDisabled }, { children: (0, jsx_runtime_1.jsx)(components_1.Icon, { overrideColorHex: styles.primaryColor, iconName: "ic_arrow_right", size: ICON_SIZE, colorKey: "ui_cpnt_icon_sys_dark" }) }))] })));
|
|
141
|
+
}
|
|
142
|
+
// case 'DESIGN8':
|
|
143
|
+
// return (
|
|
144
|
+
// <FlexBox gap="8px" style={{ color: styles.secondaryColor || 'inherit' }}>
|
|
145
|
+
// <S_Pointer onClick={onPrevBtnClick} disabled={isPrevBtnDisabled}>
|
|
146
|
+
// <Icon
|
|
147
|
+
// overrideColorHex={styles.primaryColor}
|
|
148
|
+
// iconName="ic_arrow_left"
|
|
149
|
+
// size={size === 16 ? 16 : 32}
|
|
150
|
+
// />
|
|
151
|
+
// </S_Pointer>
|
|
152
|
+
// <S_TextLabel
|
|
153
|
+
// size={size}
|
|
154
|
+
// styleTheme="body2Bold"
|
|
155
|
+
// style={{ color: styles.primaryColor || 'inherit' }}
|
|
156
|
+
// >
|
|
157
|
+
// {current}
|
|
158
|
+
// </S_TextLabel>
|
|
159
|
+
// <S_Divider type="VERTICAL" color={styles.secondaryColor} />
|
|
160
|
+
// <S_TextLabel size={size} style={{ opacity: 0.6 }} styleTheme="body2Regular">
|
|
161
|
+
// {total}
|
|
162
|
+
// </S_TextLabel>
|
|
163
|
+
// <S_Pointer onClick={onNextBtnClick} disabled={isNextBtnDisabled}>
|
|
164
|
+
// <Icon
|
|
165
|
+
// overrideColorHex={styles.primaryColor}
|
|
166
|
+
// iconName="ic_arrow_right"
|
|
167
|
+
// size={iconSize}
|
|
168
|
+
// />
|
|
169
|
+
// </S_Pointer>
|
|
170
|
+
// </FlexBox>
|
|
171
|
+
// );
|
|
172
|
+
case 'DESIGN9': {
|
|
173
|
+
var _o = SLIDE_BANNER_PAGINATION_SIZES.DESIGN9[(_e = styles.size) !== null && _e !== void 0 ? _e : 'MEDIUM'], SELECTED_TEXT_STYLE_THEME = _o.SELECTED_TEXT_STYLE_THEME, UNSELECTED_TEXT_STYLE_THEME = _o.UNSELECTED_TEXT_STYLE_THEME;
|
|
174
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox, __assign({ direction: "column", gap: "8px", style: { color: styles.secondaryColor || 'inherit' } }, { children: [(0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: {
|
|
94
175
|
paddingLeft: '8px',
|
|
95
176
|
paddingRight: '8px',
|
|
96
177
|
color: styles.primaryColor || 'inherit'
|
|
97
|
-
}, styleTheme: "
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
178
|
+
}, styleTheme: SELECTED_TEXT_STYLE_THEME, colorTheme: "sysTextBlack" }, { children: current })), (0, jsx_runtime_1.jsx)(S_Divider, { type: "HORIZONTAL", color: styles.secondaryColor }), (0, jsx_runtime_1.jsx)(S_TextLabel, __assign({ style: { opacity: 0.6 }, styleTheme: UNSELECTED_TEXT_STYLE_THEME, colorTheme: "sysTextBlack" }, { children: total }))] })));
|
|
179
|
+
}
|
|
180
|
+
// case 'DESIGN10':
|
|
181
|
+
// return (
|
|
182
|
+
// <FlexBox
|
|
183
|
+
// direction="column"
|
|
184
|
+
// gap="8px"
|
|
185
|
+
// style={{ color: styles.secondaryColor || 'inherit' }}
|
|
186
|
+
// >
|
|
187
|
+
// <S_TextLabel
|
|
188
|
+
// size={size}
|
|
189
|
+
// style={{
|
|
190
|
+
// paddingLeft: '8px',
|
|
191
|
+
// paddingRight: '8px',
|
|
192
|
+
// color: styles.primaryColor || 'inherit'
|
|
193
|
+
// }}
|
|
194
|
+
// styleTheme="body2Bold"
|
|
195
|
+
// // colorTheme="sysTextWhite"
|
|
196
|
+
// >
|
|
197
|
+
// {current}
|
|
198
|
+
// </S_TextLabel>
|
|
199
|
+
// <S_Divider type="HORIZONTAL" color={styles.secondaryColor} />
|
|
200
|
+
// <S_TextLabel
|
|
201
|
+
// size={size}
|
|
202
|
+
// style={{ opacity: 0.6 }}
|
|
203
|
+
// styleTheme="body2Regular"
|
|
204
|
+
// // colorTheme="sysTextWhite"
|
|
205
|
+
// >
|
|
206
|
+
// {total}
|
|
207
|
+
// </S_TextLabel>
|
|
208
|
+
// </FlexBox>
|
|
209
|
+
// );
|
|
210
|
+
case 'DESIGN11': {
|
|
211
|
+
var DOT_SIZE_1 = SLIDE_BANNER_PAGINATION_SIZES.DESIGN11[(_f = styles.size) !== null && _f !== void 0 ? _f : 'MEDIUM'].DOT_SIZE;
|
|
212
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px", style: { color: styles.secondaryColor || 'inherit' } }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { size: DOT_SIZE_1, color: index + 1 === current ? styles.primaryColor : styles.secondaryColor, isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
|
|
213
|
+
}
|
|
214
|
+
// case 'DESIGN12':
|
|
215
|
+
// return (
|
|
216
|
+
// <FlexBox gap="8px" style={{ color: styles.secondaryColor || 'inherit' }}>
|
|
217
|
+
// {bullets.map((_, index) => (
|
|
218
|
+
// <S_Dot
|
|
219
|
+
// size={size}
|
|
220
|
+
// key={index}
|
|
221
|
+
// color={index + 1 === current ? styles.primaryColor : styles.secondaryColor}
|
|
222
|
+
// isActive={index + 1 === current}
|
|
223
|
+
// onClick={() => onBulletClick(index)}
|
|
224
|
+
// />
|
|
225
|
+
// ))}
|
|
226
|
+
// </FlexBox>
|
|
227
|
+
// );
|
|
228
|
+
case 'DESIGN13': {
|
|
229
|
+
var DOT_SIZE_2 = SLIDE_BANNER_PAGINATION_SIZES.DESIGN13[(_g = styles.size) !== null && _g !== void 0 ? _g : 'MEDIUM'].DOT_SIZE;
|
|
230
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ direction: "column", gap: "12px", style: { color: styles.secondaryColor || 'inherit' } }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Dot, { size: DOT_SIZE_2, color: index + 1 === current ? styles.primaryColor : styles.secondaryColor, isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
|
|
231
|
+
}
|
|
232
|
+
// case 'DESIGN14':
|
|
233
|
+
// return (
|
|
234
|
+
// <FlexBox
|
|
235
|
+
// direction="column"
|
|
236
|
+
// gap="12px"
|
|
237
|
+
// style={{ color: styles.secondaryColor || 'inherit' }}
|
|
238
|
+
// >
|
|
239
|
+
// {bullets.map((_, index) => (
|
|
240
|
+
// <S_Dot
|
|
241
|
+
// size={size}
|
|
242
|
+
// key={index}
|
|
243
|
+
// color={index + 1 === current ? styles.primaryColor : styles.secondaryColor}
|
|
244
|
+
// isActive={index + 1 === current}
|
|
245
|
+
// onClick={() => onBulletClick(index)}
|
|
246
|
+
// />
|
|
247
|
+
// ))}
|
|
248
|
+
// </FlexBox>
|
|
249
|
+
// );
|
|
250
|
+
case 'DESIGN15': {
|
|
251
|
+
var _p = SLIDE_BANNER_PAGINATION_SIZES.DESIGN15[(_h = styles.size) !== null && _h !== void 0 ? _h : 'MEDIUM'], BAR_WIDTH_1 = _p.BAR_WIDTH, BAR_HEIGHT_1 = _p.BAR_HEIGHT;
|
|
252
|
+
return ((0, jsx_runtime_1.jsx)(FlexBox, __assign({ gap: "8px", style: { color: styles.secondaryColor || 'inherit' } }, { children: bullets.map(function (_, index) { return ((0, jsx_runtime_1.jsx)(S_Bar, { height: BAR_HEIGHT_1, width: BAR_WIDTH_1, color: index + 1 === current ? styles.primaryColor : styles.secondaryColor, isActive: index + 1 === current, onClick: function () { return onBulletClick(index); } }, index)); }) })));
|
|
253
|
+
}
|
|
254
|
+
// case 'DESIGN16':
|
|
255
|
+
// return (
|
|
256
|
+
// <FlexBox gap="8px" style={{ color: styles.secondaryColor || 'inherit' }}>
|
|
257
|
+
// {bullets.map((_, index) => (
|
|
258
|
+
// <S_Bar
|
|
259
|
+
// size={size}
|
|
260
|
+
// key={index}
|
|
261
|
+
// color={index + 1 === current ? styles.primaryColor : styles.secondaryColor}
|
|
262
|
+
// isActive={index + 1 === current}
|
|
263
|
+
// onClick={() => onBulletClick(index)}
|
|
264
|
+
// />
|
|
265
|
+
// ))}
|
|
266
|
+
// </FlexBox>
|
|
267
|
+
// );
|
|
110
268
|
default:
|
|
111
269
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
112
270
|
}
|
|
@@ -127,7 +285,38 @@ var FlexBox = styled_components_1.default.div(templateObject_1 || (templateObjec
|
|
|
127
285
|
return justifyContent;
|
|
128
286
|
});
|
|
129
287
|
var S_Pagination = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n /* max-width: 120px; */\n padding: 5px;\n"], ["\n /* max-width: 120px; */\n padding: 5px;\n"])));
|
|
130
|
-
|
|
288
|
+
// const sysTextWhite = css`
|
|
289
|
+
// color: ${({ theme }) => theme.ui_cpnt_textlabel_sys_white};
|
|
290
|
+
// `;
|
|
291
|
+
// const sysTextBlack = css`
|
|
292
|
+
// color: ${({ theme }) => theme.ui_cpnt_textlabel_sys_black};
|
|
293
|
+
// `;
|
|
294
|
+
var S_TextLabel = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n ", ";\n"], ["\n ", ";\n ", ";\n"])), function (_a) {
|
|
295
|
+
var styleTheme = _a.styleTheme;
|
|
296
|
+
return styleTheme &&
|
|
297
|
+
{
|
|
298
|
+
body2Bold: body2Bold,
|
|
299
|
+
body2Regular: body2Regular,
|
|
300
|
+
body1Bold: body1Bold,
|
|
301
|
+
body1Regular: body1Regular,
|
|
302
|
+
caption1Bold: caption1Bold,
|
|
303
|
+
caption1Regular: caption1Regular,
|
|
304
|
+
caption2Bold: caption2Bold,
|
|
305
|
+
caption2Regular: caption2Regular
|
|
306
|
+
}[styleTheme];
|
|
307
|
+
}, function (_a) {
|
|
308
|
+
var colorTheme = _a.colorTheme;
|
|
309
|
+
return colorTheme && { sysTextWhite: sysTextWhite, sysTextBlack: sysTextBlack }[colorTheme];
|
|
310
|
+
});
|
|
311
|
+
var sysTextWhite = (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
312
|
+
var theme = _a.theme;
|
|
313
|
+
return theme.ui_cpnt_textlabel_sys_white;
|
|
314
|
+
});
|
|
315
|
+
var sysTextBlack = (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
316
|
+
var theme = _a.theme;
|
|
317
|
+
return theme.ui_cpnt_textlabel_sys_black;
|
|
318
|
+
});
|
|
319
|
+
var body2Bold = (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
131
320
|
var theme = _a.theme;
|
|
132
321
|
return theme.desktopFontSize.body2;
|
|
133
322
|
}, function (_a) {
|
|
@@ -137,7 +326,7 @@ var body2Bold = (0, styled_components_1.css)(templateObject_3 || (templateObject
|
|
|
137
326
|
var theme = _a.theme;
|
|
138
327
|
return theme.desktopLineHeight.body2;
|
|
139
328
|
});
|
|
140
|
-
var body2Regular = (0, styled_components_1.css)(
|
|
329
|
+
var body2Regular = (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
141
330
|
var theme = _a.theme;
|
|
142
331
|
return theme.desktopFontSize.body2;
|
|
143
332
|
}, function (_a) {
|
|
@@ -147,33 +336,76 @@ var body2Regular = (0, styled_components_1.css)(templateObject_4 || (templateObj
|
|
|
147
336
|
var theme = _a.theme;
|
|
148
337
|
return theme.desktopLineHeight.body2;
|
|
149
338
|
});
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
// const sysTextBlack = css`
|
|
154
|
-
// color: ${({ theme }) => theme.ui_cpnt_textlabel_sys_black};
|
|
155
|
-
// `;
|
|
156
|
-
var S_TextLabel = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", ";\n font-size: ", "px;\n"], ["\n ", ";\n font-size: ", "px;\n"])), function (_a) {
|
|
157
|
-
var styleTheme = _a.styleTheme;
|
|
158
|
-
return styleTheme &&
|
|
159
|
-
{
|
|
160
|
-
body2Bold: body2Bold,
|
|
161
|
-
body2Regular: body2Regular
|
|
162
|
-
}[styleTheme];
|
|
339
|
+
var body1Bold = (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
340
|
+
var theme = _a.theme;
|
|
341
|
+
return theme.desktopFontSize.body1;
|
|
163
342
|
}, function (_a) {
|
|
164
|
-
var
|
|
165
|
-
return
|
|
343
|
+
var theme = _a.theme;
|
|
344
|
+
return theme.fontWeight.bold;
|
|
345
|
+
}, function (_a) {
|
|
346
|
+
var theme = _a.theme;
|
|
347
|
+
return theme.desktopLineHeight.body1;
|
|
166
348
|
});
|
|
167
|
-
var
|
|
168
|
-
var
|
|
169
|
-
|
|
349
|
+
var body1Regular = (0, styled_components_1.css)(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
350
|
+
var theme = _a.theme;
|
|
351
|
+
return theme.desktopFontSize.body1;
|
|
352
|
+
}, function (_a) {
|
|
353
|
+
var theme = _a.theme;
|
|
354
|
+
return theme.fontWeight.normal;
|
|
355
|
+
}, function (_a) {
|
|
356
|
+
var theme = _a.theme;
|
|
357
|
+
return theme.desktopLineHeight.body1;
|
|
358
|
+
});
|
|
359
|
+
var caption1Bold = (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) {
|
|
360
|
+
var theme = _a.theme;
|
|
361
|
+
return theme.desktopFontSize.caption1;
|
|
362
|
+
}, function (_a) {
|
|
363
|
+
var theme = _a.theme;
|
|
364
|
+
return theme.fontWeight.bold;
|
|
365
|
+
}, function (_a) {
|
|
366
|
+
var theme = _a.theme;
|
|
367
|
+
return theme.desktopLineHeight.caption1;
|
|
368
|
+
});
|
|
369
|
+
var caption1Regular = (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) {
|
|
370
|
+
var theme = _a.theme;
|
|
371
|
+
return theme.desktopFontSize.caption1;
|
|
372
|
+
}, function (_a) {
|
|
373
|
+
var theme = _a.theme;
|
|
374
|
+
return theme.fontWeight.normal;
|
|
375
|
+
}, function (_a) {
|
|
376
|
+
var theme = _a.theme;
|
|
377
|
+
return theme.desktopLineHeight.caption1;
|
|
378
|
+
});
|
|
379
|
+
var caption2Bold = (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) {
|
|
380
|
+
var theme = _a.theme;
|
|
381
|
+
return theme.desktopFontSize.caption2;
|
|
382
|
+
}, function (_a) {
|
|
383
|
+
var theme = _a.theme;
|
|
384
|
+
return theme.fontWeight.bold;
|
|
385
|
+
}, function (_a) {
|
|
386
|
+
var theme = _a.theme;
|
|
387
|
+
return theme.desktopLineHeight.caption2;
|
|
388
|
+
});
|
|
389
|
+
var caption2Regular = (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) {
|
|
390
|
+
var theme = _a.theme;
|
|
391
|
+
return theme.desktopFontSize.caption2;
|
|
392
|
+
}, function (_a) {
|
|
393
|
+
var theme = _a.theme;
|
|
394
|
+
return theme.fontWeight.normal;
|
|
395
|
+
}, function (_a) {
|
|
396
|
+
var theme = _a.theme;
|
|
397
|
+
return theme.desktopLineHeight.caption2;
|
|
398
|
+
});
|
|
399
|
+
var verticalDivider = (0, styled_components_1.css)(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n height: 16px;\n width: 1px;\n"], ["\n height: 16px;\n width: 1px;\n"])));
|
|
400
|
+
var horizontalDivider = (0, styled_components_1.css)(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n height: 1px;\n width: 100%;\n"], ["\n height: 1px;\n width: 100%;\n"])));
|
|
401
|
+
var S_Divider = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background-color: ", ";\n opacity: 0.6;\n ", ";\n"], ["\n background-color: ", ";\n opacity: 0.6;\n ", ";\n"])), function (_a) {
|
|
170
402
|
var color = _a.color;
|
|
171
403
|
return color;
|
|
172
404
|
}, function (_a) {
|
|
173
405
|
var type = _a.type;
|
|
174
406
|
return (type === 'VERTICAL' ? verticalDivider : horizontalDivider);
|
|
175
407
|
});
|
|
176
|
-
var S_Dot = styled_components_1.default.div(
|
|
408
|
+
var S_Dot = styled_components_1.default.div(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: 50%;\n cursor: pointer;\n height: ", "px;\n width: ", "px;\n"], ["\n background-color: ", ";\n border-radius: 50%;\n cursor: pointer;\n height: ", "px;\n width: ", "px;\n"])), function (_a) {
|
|
177
409
|
var color = _a.color;
|
|
178
410
|
return color;
|
|
179
411
|
}, function (_a) {
|
|
@@ -183,14 +415,17 @@ var S_Dot = styled_components_1.default.div(templateObject_9 || (templateObject_
|
|
|
183
415
|
var size = _a.size;
|
|
184
416
|
return size;
|
|
185
417
|
});
|
|
186
|
-
var S_Bar = styled_components_1.default.div(
|
|
418
|
+
var S_Bar = styled_components_1.default.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background-color: ", ";\n cursor: pointer;\n height: ", "px;\n width: ", "px;\n"], ["\n background-color: ", ";\n cursor: pointer;\n height: ", "px;\n width: ", "px;\n"])), function (_a) {
|
|
187
419
|
var color = _a.color;
|
|
188
420
|
return color;
|
|
189
421
|
}, function (_a) {
|
|
190
|
-
var
|
|
191
|
-
return
|
|
422
|
+
var height = _a.height;
|
|
423
|
+
return height;
|
|
424
|
+
}, function (_a) {
|
|
425
|
+
var width = _a.width;
|
|
426
|
+
return width;
|
|
192
427
|
});
|
|
193
|
-
var S_Pointer = styled_components_1.default.div(
|
|
428
|
+
var S_Pointer = styled_components_1.default.div(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n align-items: center;\n cursor: ", ";\n display: flex;\n justify-content: center;\n opacity: ", ";\n"], ["\n align-items: center;\n cursor: ", ";\n display: flex;\n justify-content: center;\n opacity: ", ";\n"])), function (_a) {
|
|
194
429
|
var disabled = _a.disabled;
|
|
195
430
|
return (disabled ? 'not-allowed' : 'pointer');
|
|
196
431
|
}, function (_a) {
|
|
@@ -198,4 +433,118 @@ var S_Pointer = styled_components_1.default.div(templateObject_11 || (templateOb
|
|
|
198
433
|
return (disabled ? 0.4 : 1);
|
|
199
434
|
});
|
|
200
435
|
exports.default = exports.CustomPagination;
|
|
201
|
-
var
|
|
436
|
+
var SLIDE_BANNER_PAGINATION_SIZES = {
|
|
437
|
+
DESIGN1: {
|
|
438
|
+
SMALL: {
|
|
439
|
+
SELECTED_TEXT_STYLE_THEME: 'caption1Bold',
|
|
440
|
+
UNSELECTED_TEXT_STYLE_THEME: 'caption1Regular'
|
|
441
|
+
},
|
|
442
|
+
MEDIUM: {
|
|
443
|
+
SELECTED_TEXT_STYLE_THEME: 'body2Bold',
|
|
444
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body2Regular'
|
|
445
|
+
},
|
|
446
|
+
LARGE: {
|
|
447
|
+
SELECTED_TEXT_STYLE_THEME: 'body1Bold',
|
|
448
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body1Regular'
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
DESIGN3: {
|
|
452
|
+
SMALL: {
|
|
453
|
+
SELECTED_TEXT_STYLE_THEME: 'caption1Bold',
|
|
454
|
+
UNSELECTED_TEXT_STYLE_THEME: 'caption1Regular'
|
|
455
|
+
},
|
|
456
|
+
MEDIUM: {
|
|
457
|
+
SELECTED_TEXT_STYLE_THEME: 'body2Bold',
|
|
458
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body2Regular'
|
|
459
|
+
},
|
|
460
|
+
LARGE: {
|
|
461
|
+
SELECTED_TEXT_STYLE_THEME: 'body1Bold',
|
|
462
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body1Regular'
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
DESIGN5: {
|
|
466
|
+
SMALL: {
|
|
467
|
+
ICON_SIZE: 12,
|
|
468
|
+
SELECTED_TEXT_STYLE_THEME: 'caption1Bold',
|
|
469
|
+
UNSELECTED_TEXT_STYLE_THEME: 'caption1Regular'
|
|
470
|
+
},
|
|
471
|
+
MEDIUM: {
|
|
472
|
+
ICON_SIZE: 16,
|
|
473
|
+
SELECTED_TEXT_STYLE_THEME: 'body2Bold',
|
|
474
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body2Regular'
|
|
475
|
+
},
|
|
476
|
+
LARGE: {
|
|
477
|
+
ICON_SIZE: 16,
|
|
478
|
+
SELECTED_TEXT_STYLE_THEME: 'body1Bold',
|
|
479
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body1Regular'
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
DESIGN7: {
|
|
483
|
+
SMALL: {
|
|
484
|
+
ICON_SIZE: 12,
|
|
485
|
+
SELECTED_TEXT_STYLE_THEME: 'caption1Bold',
|
|
486
|
+
UNSELECTED_TEXT_STYLE_THEME: 'caption1Regular'
|
|
487
|
+
},
|
|
488
|
+
MEDIUM: {
|
|
489
|
+
ICON_SIZE: 16,
|
|
490
|
+
SELECTED_TEXT_STYLE_THEME: 'body2Bold',
|
|
491
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body2Regular'
|
|
492
|
+
},
|
|
493
|
+
LARGE: {
|
|
494
|
+
ICON_SIZE: 16,
|
|
495
|
+
SELECTED_TEXT_STYLE_THEME: 'body1Bold',
|
|
496
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body1Regular'
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
DESIGN9: {
|
|
500
|
+
SMALL: {
|
|
501
|
+
SELECTED_TEXT_STYLE_THEME: 'caption1Bold',
|
|
502
|
+
UNSELECTED_TEXT_STYLE_THEME: 'caption1Regular'
|
|
503
|
+
},
|
|
504
|
+
MEDIUM: {
|
|
505
|
+
SELECTED_TEXT_STYLE_THEME: 'body2Bold',
|
|
506
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body2Regular'
|
|
507
|
+
},
|
|
508
|
+
LARGE: {
|
|
509
|
+
SELECTED_TEXT_STYLE_THEME: 'body1Bold',
|
|
510
|
+
UNSELECTED_TEXT_STYLE_THEME: 'body1Regular'
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
DESIGN11: {
|
|
514
|
+
SMALL: {
|
|
515
|
+
DOT_SIZE: 6
|
|
516
|
+
},
|
|
517
|
+
MEDIUM: {
|
|
518
|
+
DOT_SIZE: 10
|
|
519
|
+
},
|
|
520
|
+
LARGE: {
|
|
521
|
+
DOT_SIZE: 14
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
DESIGN13: {
|
|
525
|
+
SMALL: {
|
|
526
|
+
DOT_SIZE: 6
|
|
527
|
+
},
|
|
528
|
+
MEDIUM: {
|
|
529
|
+
DOT_SIZE: 10
|
|
530
|
+
},
|
|
531
|
+
LARGE: {
|
|
532
|
+
DOT_SIZE: 14
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
DESIGN15: {
|
|
536
|
+
SMALL: {
|
|
537
|
+
BAR_WIDTH: 32,
|
|
538
|
+
BAR_HEIGHT: 2
|
|
539
|
+
},
|
|
540
|
+
MEDIUM: {
|
|
541
|
+
BAR_WIDTH: 40,
|
|
542
|
+
BAR_HEIGHT: 2
|
|
543
|
+
},
|
|
544
|
+
LARGE: {
|
|
545
|
+
BAR_WIDTH: 48,
|
|
546
|
+
BAR_HEIGHT: 4
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
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, templateObject_18, templateObject_19;
|