pds-dev-kit-web-test 2.7.229 → 2.7.233
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.d.ts +2 -2
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/desktop/IconButton/IconButton.js +11 -8
- package/dist/src/sub/DynamicLayout/components/pdsOriginal/hybrid/Icon/Icon.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/mock_slideBanner.js +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/ContentsCarousel/ContentsCarousel.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +11 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +6 -6
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +5 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.d.ts +3 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/SlideBanner.js +19 -16
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/components/CustomNavigationNextBtn.js +5 -5
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.js +596 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +6 -3
- package/package.json +1 -1
|
@@ -0,0 +1,596 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.POS_INSET = exports.POS_OUTSET = exports.getPosition = void 0;
|
|
4
|
+
var GAP = 8;
|
|
5
|
+
function getPosition(position, designType, size) {
|
|
6
|
+
var _a, _b, _c;
|
|
7
|
+
if (position.startsWith('OUTSET')) {
|
|
8
|
+
return (_b = (_a = exports.POS_OUTSET[position]) === null || _a === void 0 ? void 0 : _a[designType]) === null || _b === void 0 ? void 0 : _b[size];
|
|
9
|
+
}
|
|
10
|
+
return (_c = exports.POS_INSET[position]) === null || _c === void 0 ? void 0 : _c[size];
|
|
11
|
+
}
|
|
12
|
+
exports.getPosition = getPosition;
|
|
13
|
+
exports.POS_OUTSET = {
|
|
14
|
+
//--------------------------------------------------
|
|
15
|
+
// OUTSET 1 (left 0px 공통)
|
|
16
|
+
//--------------------------------------------------
|
|
17
|
+
OUTSET1: {
|
|
18
|
+
DESIGN1: {
|
|
19
|
+
LARGE: { top: -50, left: 0 },
|
|
20
|
+
MEDIUM: { top: -45, left: 0 },
|
|
21
|
+
SMALL: { top: -40, left: 0 }
|
|
22
|
+
},
|
|
23
|
+
DESIGN2: {
|
|
24
|
+
LARGE: { top: -50, left: 0 },
|
|
25
|
+
MEDIUM: { top: -45, left: 0 },
|
|
26
|
+
SMALL: { top: -40, left: 0 }
|
|
27
|
+
},
|
|
28
|
+
DESIGN3: {
|
|
29
|
+
LARGE: { top: -50, left: 0 },
|
|
30
|
+
MEDIUM: { top: -45, left: 0 },
|
|
31
|
+
SMALL: { top: -40, left: 0 }
|
|
32
|
+
},
|
|
33
|
+
DESIGN4: {
|
|
34
|
+
LARGE: { top: -50, left: 0 },
|
|
35
|
+
MEDIUM: { top: -45, left: 0 },
|
|
36
|
+
SMALL: { top: -40, left: 0 }
|
|
37
|
+
},
|
|
38
|
+
DESIGN5: {
|
|
39
|
+
LARGE: { top: -85, left: 0 },
|
|
40
|
+
MEDIUM: { top: -80, left: 0 },
|
|
41
|
+
SMALL: { top: -75, left: 0 }
|
|
42
|
+
},
|
|
43
|
+
DESIGN6: {
|
|
44
|
+
LARGE: { top: -35, left: 0 },
|
|
45
|
+
MEDIUM: { top: -30, left: 0 },
|
|
46
|
+
SMALL: { top: -25, left: 0 }
|
|
47
|
+
},
|
|
48
|
+
DESIGN7: {
|
|
49
|
+
LARGE: { top: -85, left: 0 },
|
|
50
|
+
MEDIUM: { top: -80, left: 0 },
|
|
51
|
+
SMALL: { top: -75, left: 0 }
|
|
52
|
+
},
|
|
53
|
+
DESIGN8: {
|
|
54
|
+
LARGE: { top: -25, left: 0 },
|
|
55
|
+
MEDIUM: { top: -25, left: 0 },
|
|
56
|
+
SMALL: { top: -20, left: 0 }
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
//--------------------------------------------------
|
|
60
|
+
// OUTSET 2 (left center 공통, transform 추출)
|
|
61
|
+
//--------------------------------------------------
|
|
62
|
+
OUTSET2: {
|
|
63
|
+
DESIGN1: {
|
|
64
|
+
LARGE: { top: -50, left: 'center', transform: 'translateX(-50%)' },
|
|
65
|
+
MEDIUM: { top: -45, left: 'center', transform: 'translateX(-50%)' },
|
|
66
|
+
SMALL: { top: -40, left: 'center', transform: 'translateX(-50%)' }
|
|
67
|
+
},
|
|
68
|
+
DESIGN2: {
|
|
69
|
+
LARGE: { top: -50, left: 'center' },
|
|
70
|
+
MEDIUM: { top: -45, left: 'center' },
|
|
71
|
+
SMALL: { top: -40, left: 'center' }
|
|
72
|
+
},
|
|
73
|
+
DESIGN3: {
|
|
74
|
+
LARGE: { top: -50, left: 'center' },
|
|
75
|
+
MEDIUM: { top: -45, left: 'center' },
|
|
76
|
+
SMALL: { top: -40, left: 'center' }
|
|
77
|
+
},
|
|
78
|
+
DESIGN4: {
|
|
79
|
+
LARGE: { top: -50, left: 'center' },
|
|
80
|
+
MEDIUM: { top: -45, left: 'center' },
|
|
81
|
+
SMALL: { top: -40, left: 'center' }
|
|
82
|
+
},
|
|
83
|
+
DESIGN5: {
|
|
84
|
+
LARGE: { top: -85, left: 'center' },
|
|
85
|
+
MEDIUM: { top: -80, left: 'center' },
|
|
86
|
+
SMALL: { top: -75, left: 'center' }
|
|
87
|
+
},
|
|
88
|
+
DESIGN6: {
|
|
89
|
+
LARGE: { top: -35, left: 'center' },
|
|
90
|
+
MEDIUM: { top: -30, left: 'center' },
|
|
91
|
+
SMALL: { top: -25, left: 'center' }
|
|
92
|
+
},
|
|
93
|
+
DESIGN7: {
|
|
94
|
+
LARGE: { top: -85, left: 'center' },
|
|
95
|
+
MEDIUM: { top: -80, left: 'center' },
|
|
96
|
+
SMALL: { top: -75, left: 'center' }
|
|
97
|
+
},
|
|
98
|
+
DESIGN8: {
|
|
99
|
+
LARGE: { top: -25, left: 'center' },
|
|
100
|
+
MEDIUM: { top: -25, left: 'center' },
|
|
101
|
+
SMALL: { top: -20, left: 'center' }
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
//--------------------------------------------------
|
|
105
|
+
// OUTSET 3 (right 0px 공통)
|
|
106
|
+
//--------------------------------------------------
|
|
107
|
+
OUTSET3: {
|
|
108
|
+
DESIGN1: {
|
|
109
|
+
LARGE: { top: -50, right: 0 },
|
|
110
|
+
MEDIUM: { top: -45, right: 0 },
|
|
111
|
+
SMALL: { top: -40, right: 0 }
|
|
112
|
+
},
|
|
113
|
+
DESIGN2: {
|
|
114
|
+
LARGE: { top: -50, right: 0 },
|
|
115
|
+
MEDIUM: { top: -45, right: 0 },
|
|
116
|
+
SMALL: { top: -40, right: 0 }
|
|
117
|
+
},
|
|
118
|
+
DESIGN3: {
|
|
119
|
+
LARGE: { top: -50, right: 0 },
|
|
120
|
+
MEDIUM: { top: -45, right: 0 },
|
|
121
|
+
SMALL: { top: -40, right: 0 }
|
|
122
|
+
},
|
|
123
|
+
DESIGN4: {
|
|
124
|
+
LARGE: { top: -50, right: 0 },
|
|
125
|
+
MEDIUM: { top: -45, right: 0 },
|
|
126
|
+
SMALL: { top: -40, right: 0 }
|
|
127
|
+
},
|
|
128
|
+
DESIGN5: {
|
|
129
|
+
LARGE: { top: -85, right: 0 },
|
|
130
|
+
MEDIUM: { top: -80, right: 0 },
|
|
131
|
+
SMALL: { top: -75, right: 0 }
|
|
132
|
+
},
|
|
133
|
+
DESIGN6: {
|
|
134
|
+
LARGE: { top: -35, right: 0 },
|
|
135
|
+
MEDIUM: { top: -30, right: 0 },
|
|
136
|
+
SMALL: { top: -25, right: 0 }
|
|
137
|
+
},
|
|
138
|
+
DESIGN7: {
|
|
139
|
+
LARGE: { top: -85, right: 0 },
|
|
140
|
+
MEDIUM: { top: -80, right: 0 },
|
|
141
|
+
SMALL: { top: -75, right: 0 }
|
|
142
|
+
},
|
|
143
|
+
DESIGN8: {
|
|
144
|
+
LARGE: { top: -25, right: 0 },
|
|
145
|
+
MEDIUM: { top: -25, right: 0 },
|
|
146
|
+
SMALL: { top: -20, right: 0 }
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
//--------------------------------------------------
|
|
150
|
+
// OUTSET 4 (top 0px 공통)
|
|
151
|
+
//--------------------------------------------------
|
|
152
|
+
OUTSET4: {
|
|
153
|
+
DESIGN1: {
|
|
154
|
+
LARGE: { top: 0, right: -65 },
|
|
155
|
+
MEDIUM: { top: 0, right: -60 },
|
|
156
|
+
SMALL: { top: 0, right: -60 }
|
|
157
|
+
},
|
|
158
|
+
DESIGN2: {
|
|
159
|
+
LARGE: { top: 0, right: -65 },
|
|
160
|
+
MEDIUM: { top: 0, right: -60 },
|
|
161
|
+
SMALL: { top: 0, right: -60 }
|
|
162
|
+
},
|
|
163
|
+
DESIGN3: {
|
|
164
|
+
LARGE: { top: 0, right: -115 },
|
|
165
|
+
MEDIUM: { top: 0, right: -110 },
|
|
166
|
+
SMALL: { top: 0, right: -95 }
|
|
167
|
+
},
|
|
168
|
+
DESIGN4: {
|
|
169
|
+
LARGE: { top: 0, right: -115 },
|
|
170
|
+
MEDIUM: { top: 0, right: -110 },
|
|
171
|
+
SMALL: { top: 0, right: -95 }
|
|
172
|
+
},
|
|
173
|
+
DESIGN5: {
|
|
174
|
+
LARGE: { top: 0, right: -45 },
|
|
175
|
+
MEDIUM: { top: 0, right: -45 },
|
|
176
|
+
SMALL: { top: 0, right: -45 }
|
|
177
|
+
},
|
|
178
|
+
DESIGN6: {
|
|
179
|
+
LARGE: { top: 0, left: 'calc(100% + 20px)' },
|
|
180
|
+
MEDIUM: { top: 0, left: 'calc(100% + 12px)' },
|
|
181
|
+
SMALL: { top: 0, left: 'calc(100% + 12px)' }
|
|
182
|
+
},
|
|
183
|
+
DESIGN7: {
|
|
184
|
+
LARGE: { top: 0, right: -40 },
|
|
185
|
+
MEDIUM: { top: 0, right: -30 },
|
|
186
|
+
SMALL: { top: 0, right: -25 }
|
|
187
|
+
},
|
|
188
|
+
DESIGN8: {
|
|
189
|
+
LARGE: { top: 0, left: 'calc(100% + 20px)' },
|
|
190
|
+
MEDIUM: { top: 0, left: 'calc(100% + 12px)' },
|
|
191
|
+
SMALL: { top: 0, left: 'calc(100% + 12px)' }
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
//--------------------------------------------------
|
|
195
|
+
// OUTSET 5 (top center 공통, transform 추출)
|
|
196
|
+
//--------------------------------------------------
|
|
197
|
+
OUTSET5: {
|
|
198
|
+
DESIGN1: {
|
|
199
|
+
LARGE: { top: 'center', right: -65, transform: 'translateY(-50%)' },
|
|
200
|
+
MEDIUM: { top: 'center', right: -60, transform: 'translateY(-50%)' },
|
|
201
|
+
SMALL: { top: 'center', right: -60, transform: 'translateY(-50%)' }
|
|
202
|
+
},
|
|
203
|
+
DESIGN2: {
|
|
204
|
+
LARGE: { top: 'center', right: -65, transform: 'translateY(-50%)' },
|
|
205
|
+
MEDIUM: { top: 'center', right: -60, transform: 'translateY(-50%)' },
|
|
206
|
+
SMALL: { top: 'center', right: -60, transform: 'translateY(-50%)' }
|
|
207
|
+
},
|
|
208
|
+
DESIGN3: {
|
|
209
|
+
LARGE: { top: 'center', right: -115, transform: 'translateY(-50%)' },
|
|
210
|
+
MEDIUM: { top: 'center', right: -110, transform: 'translateY(-50%)' },
|
|
211
|
+
SMALL: { top: 'center', right: -95, transform: 'translateY(-50%)' }
|
|
212
|
+
},
|
|
213
|
+
DESIGN4: {
|
|
214
|
+
LARGE: { top: 'center', right: -115, transform: 'translateY(-50%)' },
|
|
215
|
+
MEDIUM: { top: 'center', right: -110, transform: 'translateY(-50%)' },
|
|
216
|
+
SMALL: { top: 'center', right: -95, transform: 'translateY(-50%)' }
|
|
217
|
+
},
|
|
218
|
+
DESIGN5: {
|
|
219
|
+
LARGE: { top: 'center', right: -45, transform: 'translateY(-50%)' },
|
|
220
|
+
MEDIUM: { top: 'center', right: -45, transform: 'translateY(-50%)' },
|
|
221
|
+
SMALL: { top: 'center', right: -45, transform: 'translateY(-50%)' }
|
|
222
|
+
},
|
|
223
|
+
DESIGN6: {
|
|
224
|
+
LARGE: { top: 'center', left: 'calc(100% + 20px)', transform: 'translateY(-50%)' },
|
|
225
|
+
MEDIUM: { top: 'center', left: 'calc(100% + 12px)', transform: 'translateY(-50%)' },
|
|
226
|
+
SMALL: { top: 'center', left: 'calc(100% + 12px)', transform: 'translateY(-50%)' }
|
|
227
|
+
},
|
|
228
|
+
DESIGN7: {
|
|
229
|
+
LARGE: { top: 'center', right: -40, transform: 'translateY(-50%)' },
|
|
230
|
+
MEDIUM: { top: 'center', right: -30, transform: 'translateY(-50%)' },
|
|
231
|
+
SMALL: { top: 'center', right: -25, transform: 'translateY(-50%)' }
|
|
232
|
+
},
|
|
233
|
+
DESIGN8: {
|
|
234
|
+
LARGE: { top: 'center', left: 'calc(100% + 20px)', transform: 'translateY(-50%)' },
|
|
235
|
+
MEDIUM: { top: 'center', left: 'calc(100% + 12px)', transform: 'translateY(-50%)' },
|
|
236
|
+
SMALL: { top: 'center', left: 'calc(100% + 12px)', transform: 'translateY(-50%)' }
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
//--------------------------------------------------
|
|
240
|
+
// OUTSET 6 (bottom 0px 공통)
|
|
241
|
+
//--------------------------------------------------
|
|
242
|
+
OUTSET6: {
|
|
243
|
+
DESIGN1: {
|
|
244
|
+
LARGE: { bottom: 0, right: -65 },
|
|
245
|
+
MEDIUM: { bottom: 0, right: -60 },
|
|
246
|
+
SMALL: { bottom: 0, right: -60 }
|
|
247
|
+
},
|
|
248
|
+
DESIGN2: {
|
|
249
|
+
LARGE: { bottom: 0, right: -65 },
|
|
250
|
+
MEDIUM: { bottom: 0, right: -60 },
|
|
251
|
+
SMALL: { bottom: 0, right: -60 }
|
|
252
|
+
},
|
|
253
|
+
DESIGN3: {
|
|
254
|
+
LARGE: { bottom: 0, right: -115 },
|
|
255
|
+
MEDIUM: { bottom: 0, right: -110 },
|
|
256
|
+
SMALL: { bottom: 0, right: -95 }
|
|
257
|
+
},
|
|
258
|
+
DESIGN4: {
|
|
259
|
+
LARGE: { bottom: 0, right: -115 },
|
|
260
|
+
MEDIUM: { bottom: 0, right: -110 },
|
|
261
|
+
SMALL: { bottom: 0, right: -95 }
|
|
262
|
+
},
|
|
263
|
+
DESIGN5: {
|
|
264
|
+
LARGE: { bottom: 0, right: -45 },
|
|
265
|
+
MEDIUM: { bottom: 0, right: -45 },
|
|
266
|
+
SMALL: { bottom: 0, right: -45 }
|
|
267
|
+
},
|
|
268
|
+
DESIGN6: {
|
|
269
|
+
LARGE: { bottom: 0, left: 'calc(100% + 20px)' },
|
|
270
|
+
MEDIUM: { bottom: 0, left: 'calc(100% + 12px)' },
|
|
271
|
+
SMALL: { bottom: 0, left: 'calc(100% + 12px)' }
|
|
272
|
+
},
|
|
273
|
+
DESIGN7: {
|
|
274
|
+
LARGE: { bottom: 0, right: -40 },
|
|
275
|
+
MEDIUM: { bottom: 0, right: -30 },
|
|
276
|
+
SMALL: { bottom: 0, right: -25 }
|
|
277
|
+
},
|
|
278
|
+
DESIGN8: {
|
|
279
|
+
LARGE: { bottom: 0, left: 'calc(100% + 20px)' },
|
|
280
|
+
MEDIUM: { bottom: 0, left: 'calc(100% + 12px)' },
|
|
281
|
+
SMALL: { bottom: 0, left: 'calc(100% + 12px)' }
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
//--------------------------------------------------
|
|
285
|
+
// OUTSET 7 (right 0px 공통)
|
|
286
|
+
//--------------------------------------------------
|
|
287
|
+
OUTSET7: {
|
|
288
|
+
DESIGN1: {
|
|
289
|
+
LARGE: { bottom: -50, right: 0 },
|
|
290
|
+
MEDIUM: { bottom: -45, right: 0 },
|
|
291
|
+
SMALL: { bottom: -40, right: 0 }
|
|
292
|
+
},
|
|
293
|
+
DESIGN2: {
|
|
294
|
+
LARGE: { bottom: -50, right: 0 },
|
|
295
|
+
MEDIUM: { bottom: -45, right: 0 },
|
|
296
|
+
SMALL: { bottom: -40, right: 0 }
|
|
297
|
+
},
|
|
298
|
+
DESIGN3: {
|
|
299
|
+
LARGE: { bottom: -50, right: 0 },
|
|
300
|
+
MEDIUM: { bottom: -45, right: 0 },
|
|
301
|
+
SMALL: { bottom: -40, right: 0 }
|
|
302
|
+
},
|
|
303
|
+
DESIGN4: {
|
|
304
|
+
LARGE: { bottom: -50, right: 0 },
|
|
305
|
+
MEDIUM: { bottom: -45, right: 0 },
|
|
306
|
+
SMALL: { bottom: -40, right: 0 }
|
|
307
|
+
},
|
|
308
|
+
DESIGN5: {
|
|
309
|
+
LARGE: { bottom: -85, right: 0 },
|
|
310
|
+
MEDIUM: { bottom: -80, right: 0 },
|
|
311
|
+
SMALL: { bottom: -75, right: 0 }
|
|
312
|
+
},
|
|
313
|
+
DESIGN6: {
|
|
314
|
+
LARGE: { bottom: -35, right: 0 },
|
|
315
|
+
MEDIUM: { bottom: -30, right: 0 },
|
|
316
|
+
SMALL: { bottom: -25, right: 0 }
|
|
317
|
+
},
|
|
318
|
+
DESIGN7: {
|
|
319
|
+
LARGE: { bottom: -85, right: 0 },
|
|
320
|
+
MEDIUM: { bottom: -80, right: 0 },
|
|
321
|
+
SMALL: { bottom: -75, right: 0 }
|
|
322
|
+
},
|
|
323
|
+
DESIGN8: {
|
|
324
|
+
LARGE: { bottom: -25, right: 0 },
|
|
325
|
+
MEDIUM: { bottom: -25, right: 0 },
|
|
326
|
+
SMALL: { bottom: -20, right: 0 }
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
//--------------------------------------------------
|
|
330
|
+
// OUTSET 8 (left center 공통, transform 추출)
|
|
331
|
+
//--------------------------------------------------
|
|
332
|
+
OUTSET8: {
|
|
333
|
+
DESIGN1: {
|
|
334
|
+
LARGE: { bottom: -50, left: 'center', transform: 'translateX(-50%)' },
|
|
335
|
+
MEDIUM: { bottom: -45, left: 'center', transform: 'translateX(-50%)' },
|
|
336
|
+
SMALL: { bottom: -40, left: 'center', transform: 'translateX(-50%)' }
|
|
337
|
+
},
|
|
338
|
+
DESIGN2: {
|
|
339
|
+
LARGE: { bottom: -50, left: 'center', transform: 'translateX(-50%)' },
|
|
340
|
+
MEDIUM: { bottom: -45, left: 'center', transform: 'translateX(-50%)' },
|
|
341
|
+
SMALL: { bottom: -40, left: 'center', transform: 'translateX(-50%)' }
|
|
342
|
+
},
|
|
343
|
+
DESIGN3: {
|
|
344
|
+
LARGE: { bottom: -50, left: 'center', transform: 'translateX(-50%)' },
|
|
345
|
+
MEDIUM: { bottom: -45, left: 'center', transform: 'translateX(-50%)' },
|
|
346
|
+
SMALL: { bottom: -40, left: 'center', transform: 'translateX(-50%)' }
|
|
347
|
+
},
|
|
348
|
+
DESIGN4: {
|
|
349
|
+
LARGE: { bottom: -50, left: 'center', transform: 'translateX(-50%)' },
|
|
350
|
+
MEDIUM: { bottom: -45, left: 'center', transform: 'translateX(-50%)' },
|
|
351
|
+
SMALL: { bottom: -40, left: 'center', transform: 'translateX(-50%)' }
|
|
352
|
+
},
|
|
353
|
+
DESIGN5: {
|
|
354
|
+
LARGE: { bottom: -85, left: 'center', transform: 'translateX(-50%)' },
|
|
355
|
+
MEDIUM: { bottom: -80, left: 'center', transform: 'translateX(-50%)' },
|
|
356
|
+
SMALL: { bottom: -75, left: 'center', transform: 'translateX(-50%)' }
|
|
357
|
+
},
|
|
358
|
+
DESIGN6: {
|
|
359
|
+
LARGE: { bottom: -35, left: 'center', transform: 'translateX(-50%)' },
|
|
360
|
+
MEDIUM: { bottom: -30, left: 'center', transform: 'translateX(-50%)' },
|
|
361
|
+
SMALL: { bottom: -25, left: 'center', transform: 'translateX(-50%)' }
|
|
362
|
+
},
|
|
363
|
+
DESIGN7: {
|
|
364
|
+
LARGE: { bottom: -85, left: 'center', transform: 'translateX(-50%)' },
|
|
365
|
+
MEDIUM: { bottom: -80, left: 'center', transform: 'translateX(-50%)' },
|
|
366
|
+
SMALL: { bottom: -75, left: 'center', transform: 'translateX(-50%)' }
|
|
367
|
+
},
|
|
368
|
+
DESIGN8: {
|
|
369
|
+
LARGE: { bottom: -25, left: 'center', transform: 'translateX(-50%)' },
|
|
370
|
+
MEDIUM: { bottom: -25, left: 'center', transform: 'translateX(-50%)' },
|
|
371
|
+
SMALL: { bottom: -20, left: 'center', transform: 'translateX(-50%)' }
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
//--------------------------------------------------
|
|
375
|
+
// OUTSET 9 (left 0px 공통)
|
|
376
|
+
//--------------------------------------------------
|
|
377
|
+
OUTSET9: {
|
|
378
|
+
DESIGN1: {
|
|
379
|
+
LARGE: { bottom: -50, left: 0 },
|
|
380
|
+
MEDIUM: { bottom: -45, left: 0 },
|
|
381
|
+
SMALL: { bottom: -40, left: 0 }
|
|
382
|
+
},
|
|
383
|
+
DESIGN2: {
|
|
384
|
+
LARGE: { bottom: -50, left: 0 },
|
|
385
|
+
MEDIUM: { bottom: -45, left: 0 },
|
|
386
|
+
SMALL: { bottom: -40, left: 0 }
|
|
387
|
+
},
|
|
388
|
+
DESIGN3: {
|
|
389
|
+
LARGE: { bottom: -50, left: 0 },
|
|
390
|
+
MEDIUM: { bottom: -45, left: 0 },
|
|
391
|
+
SMALL: { bottom: -40, left: 0 }
|
|
392
|
+
},
|
|
393
|
+
DESIGN4: {
|
|
394
|
+
LARGE: { bottom: -50, left: 0 },
|
|
395
|
+
MEDIUM: { bottom: -45, left: 0 },
|
|
396
|
+
SMALL: { bottom: -40, left: 0 }
|
|
397
|
+
},
|
|
398
|
+
DESIGN5: {
|
|
399
|
+
LARGE: { bottom: -85, left: 0 },
|
|
400
|
+
MEDIUM: { bottom: -80, left: 0 },
|
|
401
|
+
SMALL: { bottom: -75, left: 0 }
|
|
402
|
+
},
|
|
403
|
+
DESIGN6: {
|
|
404
|
+
LARGE: { bottom: -35, left: 0 },
|
|
405
|
+
MEDIUM: { bottom: -30, left: 0 },
|
|
406
|
+
SMALL: { bottom: -25, left: 0 }
|
|
407
|
+
},
|
|
408
|
+
DESIGN7: {
|
|
409
|
+
LARGE: { bottom: -85, left: 0 },
|
|
410
|
+
MEDIUM: { bottom: -80, left: 0 },
|
|
411
|
+
SMALL: { bottom: -75, left: 0 }
|
|
412
|
+
},
|
|
413
|
+
DESIGN8: {
|
|
414
|
+
LARGE: { bottom: -25, left: 0 },
|
|
415
|
+
MEDIUM: { bottom: -25, left: 0 },
|
|
416
|
+
SMALL: { bottom: -20, left: 0 }
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
//--------------------------------------------------
|
|
420
|
+
// OUTSET 10 (bottom 0px 공통)
|
|
421
|
+
//--------------------------------------------------
|
|
422
|
+
OUTSET10: {
|
|
423
|
+
DESIGN1: {
|
|
424
|
+
LARGE: { bottom: 0, left: -65 },
|
|
425
|
+
MEDIUM: { bottom: 0, left: -60 },
|
|
426
|
+
SMALL: { bottom: 0, left: -60 }
|
|
427
|
+
},
|
|
428
|
+
DESIGN2: {
|
|
429
|
+
LARGE: { bottom: 0, left: -65 },
|
|
430
|
+
MEDIUM: { bottom: 0, left: -60 },
|
|
431
|
+
SMALL: { bottom: 0, left: -60 }
|
|
432
|
+
},
|
|
433
|
+
DESIGN3: {
|
|
434
|
+
LARGE: { bottom: 0, left: -115 },
|
|
435
|
+
MEDIUM: { bottom: 0, left: -110 },
|
|
436
|
+
SMALL: { bottom: 0, left: -95 }
|
|
437
|
+
},
|
|
438
|
+
DESIGN4: {
|
|
439
|
+
LARGE: { bottom: 0, left: -115 },
|
|
440
|
+
MEDIUM: { bottom: 0, left: -110 },
|
|
441
|
+
SMALL: { bottom: 0, left: -95 }
|
|
442
|
+
},
|
|
443
|
+
DESIGN5: {
|
|
444
|
+
LARGE: { bottom: 0, left: -45 },
|
|
445
|
+
MEDIUM: { bottom: 0, left: -45 },
|
|
446
|
+
SMALL: { bottom: 0, left: -45 }
|
|
447
|
+
},
|
|
448
|
+
DESIGN6: {
|
|
449
|
+
LARGE: { bottom: 0, right: 'calc(100% + 20px)' },
|
|
450
|
+
MEDIUM: { bottom: 0, right: 'calc(100% + 12px)' },
|
|
451
|
+
SMALL: { bottom: 0, right: 'calc(100% + 12px)' }
|
|
452
|
+
},
|
|
453
|
+
DESIGN7: {
|
|
454
|
+
LARGE: { bottom: 0, left: -40 },
|
|
455
|
+
MEDIUM: { bottom: 0, left: -30 },
|
|
456
|
+
SMALL: { bottom: 0, left: -25 }
|
|
457
|
+
},
|
|
458
|
+
DESIGN8: {
|
|
459
|
+
LARGE: { bottom: 0, right: 'calc(100% + 20px)' },
|
|
460
|
+
MEDIUM: { bottom: 0, right: 'calc(100% + 12px)' },
|
|
461
|
+
SMALL: { bottom: 0, right: 'calc(100% + 12px)' }
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
//--------------------------------------------------
|
|
465
|
+
// OUTSET 11 (top center 공통, transform 추출)
|
|
466
|
+
//--------------------------------------------------
|
|
467
|
+
OUTSET11: {
|
|
468
|
+
DESIGN1: {
|
|
469
|
+
LARGE: { top: 'center', transform: 'translateY(-50%)', left: -65 },
|
|
470
|
+
MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -60 },
|
|
471
|
+
SMALL: { top: 'center', transform: 'translateY(-50%)', left: -60 }
|
|
472
|
+
},
|
|
473
|
+
DESIGN2: {
|
|
474
|
+
LARGE: { top: 'center', transform: 'translateY(-50%)', left: -65 },
|
|
475
|
+
MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -60 },
|
|
476
|
+
SMALL: { top: 'center', transform: 'translateY(-50%)', left: -60 }
|
|
477
|
+
},
|
|
478
|
+
DESIGN3: {
|
|
479
|
+
LARGE: { top: 'center', transform: 'translateY(-50%)', left: -115 },
|
|
480
|
+
MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -110 },
|
|
481
|
+
SMALL: { top: 'center', transform: 'translateY(-50%)', left: -95 }
|
|
482
|
+
},
|
|
483
|
+
DESIGN4: {
|
|
484
|
+
LARGE: { top: 'center', transform: 'translateY(-50%)', left: -115 },
|
|
485
|
+
MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -110 },
|
|
486
|
+
SMALL: { top: 'center', transform: 'translateY(-50%)', left: -95 }
|
|
487
|
+
},
|
|
488
|
+
DESIGN5: {
|
|
489
|
+
LARGE: { top: 'center', transform: 'translateY(-50%)', left: -45 },
|
|
490
|
+
MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -45 },
|
|
491
|
+
SMALL: { top: 'center', transform: 'translateY(-50%)', left: -45 }
|
|
492
|
+
},
|
|
493
|
+
DESIGN6: {
|
|
494
|
+
LARGE: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 20px)' },
|
|
495
|
+
MEDIUM: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 12px)' },
|
|
496
|
+
SMALL: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 12px)' }
|
|
497
|
+
},
|
|
498
|
+
DESIGN7: {
|
|
499
|
+
LARGE: { top: 'center', transform: 'translateY(-50%)', left: -40 },
|
|
500
|
+
MEDIUM: { top: 'center', transform: 'translateY(-50%)', left: -30 },
|
|
501
|
+
SMALL: { top: 'center', transform: 'translateY(-50%)', left: -25 }
|
|
502
|
+
},
|
|
503
|
+
DESIGN8: {
|
|
504
|
+
LARGE: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 20px)' },
|
|
505
|
+
MEDIUM: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 12px)' },
|
|
506
|
+
SMALL: { top: 'center', transform: 'translateY(-50%)', right: 'calc(100% + 12px)' }
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
//--------------------------------------------------
|
|
510
|
+
// OUTSET 12 (top 0px 공통)
|
|
511
|
+
//--------------------------------------------------
|
|
512
|
+
OUTSET12: {
|
|
513
|
+
DESIGN1: {
|
|
514
|
+
LARGE: { top: 0, left: -65 },
|
|
515
|
+
MEDIUM: { top: 0, left: -60 },
|
|
516
|
+
SMALL: { top: 0, left: -60 }
|
|
517
|
+
},
|
|
518
|
+
DESIGN2: {
|
|
519
|
+
LARGE: { top: 0, left: -65 },
|
|
520
|
+
MEDIUM: { top: 0, left: -60 },
|
|
521
|
+
SMALL: { top: 0, left: -60 }
|
|
522
|
+
},
|
|
523
|
+
DESIGN3: {
|
|
524
|
+
LARGE: { top: 0, left: -115 },
|
|
525
|
+
MEDIUM: { top: 0, left: -110 },
|
|
526
|
+
SMALL: { top: 0, left: -95 }
|
|
527
|
+
},
|
|
528
|
+
DESIGN4: {
|
|
529
|
+
LARGE: { top: 0, left: -115 },
|
|
530
|
+
MEDIUM: { top: 0, left: -110 },
|
|
531
|
+
SMALL: { top: 0, left: -95 }
|
|
532
|
+
},
|
|
533
|
+
DESIGN5: {
|
|
534
|
+
LARGE: { top: 0, left: -45 },
|
|
535
|
+
MEDIUM: { top: 0, left: -45 },
|
|
536
|
+
SMALL: { top: 0, left: -45 }
|
|
537
|
+
},
|
|
538
|
+
DESIGN6: {
|
|
539
|
+
LARGE: { top: 0, right: 'calc(100% + 20px)' },
|
|
540
|
+
MEDIUM: { top: 0, left: -105 },
|
|
541
|
+
SMALL: { top: 0, left: -85 }
|
|
542
|
+
},
|
|
543
|
+
DESIGN7: {
|
|
544
|
+
LARGE: { top: 0, left: -40 },
|
|
545
|
+
MEDIUM: { top: 0, left: -30 },
|
|
546
|
+
SMALL: { top: 0, left: -25 }
|
|
547
|
+
},
|
|
548
|
+
DESIGN8: {
|
|
549
|
+
LARGE: { top: 0, right: 'calc(100% + 20px)' },
|
|
550
|
+
MEDIUM: { top: 0, left: -105 },
|
|
551
|
+
SMALL: { top: 0, left: -85 }
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
exports.POS_INSET = {
|
|
556
|
+
INSET1: {
|
|
557
|
+
LARGE: { top: GAP, left: GAP },
|
|
558
|
+
MEDIUM: { top: GAP, left: GAP },
|
|
559
|
+
SMALL: { top: GAP, left: GAP }
|
|
560
|
+
},
|
|
561
|
+
INSET2: {
|
|
562
|
+
LARGE: { top: GAP, left: 'center' },
|
|
563
|
+
MEDIUM: { top: GAP, left: 'center' },
|
|
564
|
+
SMALL: { top: GAP, left: 'center' }
|
|
565
|
+
},
|
|
566
|
+
INSET3: {
|
|
567
|
+
LARGE: { top: GAP, right: GAP },
|
|
568
|
+
MEDIUM: { top: GAP, right: GAP },
|
|
569
|
+
SMALL: { top: GAP, right: GAP }
|
|
570
|
+
},
|
|
571
|
+
INSET4: {
|
|
572
|
+
LARGE: { top: 'center', right: GAP, transform: 'translateY(-50%)' },
|
|
573
|
+
MEDIUM: { top: 'center', right: GAP, transform: 'translateY(-50%)' },
|
|
574
|
+
SMALL: { top: 'center', right: GAP, transform: 'translateY(-50%)' }
|
|
575
|
+
},
|
|
576
|
+
INSET5: {
|
|
577
|
+
LARGE: { bottom: GAP, right: GAP },
|
|
578
|
+
MEDIUM: { bottom: GAP, right: GAP },
|
|
579
|
+
SMALL: { bottom: GAP, right: GAP }
|
|
580
|
+
},
|
|
581
|
+
INSET6: {
|
|
582
|
+
LARGE: { bottom: GAP, left: 'center', transform: 'translateX(-50%)' },
|
|
583
|
+
MEDIUM: { bottom: GAP, left: 'center', transform: 'translateX(-50%)' },
|
|
584
|
+
SMALL: { bottom: GAP, left: 'center', transform: 'translateX(-50%)' }
|
|
585
|
+
},
|
|
586
|
+
INSET7: {
|
|
587
|
+
LARGE: { bottom: GAP, left: GAP },
|
|
588
|
+
MEDIUM: { bottom: GAP, left: GAP },
|
|
589
|
+
SMALL: { bottom: GAP, left: GAP }
|
|
590
|
+
},
|
|
591
|
+
INSET8: {
|
|
592
|
+
LARGE: { top: 'center', left: GAP, transform: 'translateY(-50%)' },
|
|
593
|
+
MEDIUM: { top: 'center', left: GAP, transform: 'translateY(-50%)' },
|
|
594
|
+
SMALL: { top: 'center', left: GAP, transform: 'translateY(-50%)' }
|
|
595
|
+
}
|
|
596
|
+
};
|
|
@@ -13,6 +13,6 @@ export declare const useFlexGridLayout: ({ components }: {
|
|
|
13
13
|
left: string;
|
|
14
14
|
};
|
|
15
15
|
componentGroups: Record<string, SlideBannerElementsProps[]>;
|
|
16
|
-
getPositionStyle: (position: string, ccbInset: Record<string, string
|
|
16
|
+
getPositionStyle: (position: string, ccbInset: Record<string, string>, designType: string, size: 'LARGE' | 'MEDIUM' | 'SMALL') => CSSProperties;
|
|
17
17
|
getComponentGroupLayout: (components: SlideBannerElementsProps[], position: string) => CSSProperties;
|
|
18
18
|
};
|
|
@@ -13,6 +13,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.useFlexGridLayout = void 0;
|
|
15
15
|
var react_1 = require("react");
|
|
16
|
+
var elementPositions_1 = require("./elementPositions");
|
|
16
17
|
var useFlexGridLayout = function (_a) {
|
|
17
18
|
var components = _a.components;
|
|
18
19
|
var _b = (0, react_1.useState)({ top: 0, right: 0, bottom: 0, left: 0 }), groupSizes = _b[0], setGroupSizes = _b[1];
|
|
@@ -60,7 +61,7 @@ var useFlexGridLayout = function (_a) {
|
|
|
60
61
|
return directions[position];
|
|
61
62
|
};
|
|
62
63
|
// 위치에 따른 스타일 결정 (CCB 크기를 고려)
|
|
63
|
-
var getPositionStyle = function (position, ccbInset) {
|
|
64
|
+
var getPositionStyle = function (position, ccbInset, designType, size) {
|
|
64
65
|
var base = {
|
|
65
66
|
position: 'absolute',
|
|
66
67
|
display: 'flex',
|
|
@@ -81,7 +82,7 @@ var useFlexGridLayout = function (_a) {
|
|
|
81
82
|
OUTSET1: { top: -50, left: ccbLeft },
|
|
82
83
|
OUTSET2: { top: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
|
|
83
84
|
OUTSET3: { top: -50, right: ccbRight },
|
|
84
|
-
OUTSET4: { top: ccbTop,
|
|
85
|
+
OUTSET4: { top: ccbTop, left: 'calc(-100% + 50px)' },
|
|
85
86
|
OUTSET5: { top: "".concat(ccbCenterY, "px"), right: 50, transform: 'translateY(-50%)' },
|
|
86
87
|
OUTSET6: { bottom: ccbBottom, right: 50 },
|
|
87
88
|
OUTSET7: { bottom: -50, right: ccbRight },
|
|
@@ -103,7 +104,9 @@ var useFlexGridLayout = function (_a) {
|
|
|
103
104
|
INSET7: { bottom: ccbBottom + GAP, left: ccbLeft + GAP },
|
|
104
105
|
INSET8: { top: "".concat(ccbCenterY, "px"), left: ccbLeft + GAP, transform: 'translateY(-50%)' }
|
|
105
106
|
};
|
|
106
|
-
|
|
107
|
+
var pos = (0, elementPositions_1.getPosition)(position, designType, size);
|
|
108
|
+
console.log('pos', position, designType, size, pos);
|
|
109
|
+
return __assign(__assign({}, base), pos);
|
|
107
110
|
};
|
|
108
111
|
// 컴포넌트 그룹 레이아웃
|
|
109
112
|
var getComponentGroupLayout = function (components, position) {
|