keski_lib_catalog 1.0.34 → 1.0.35
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/index.js +246 -46
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +209 -10
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
2
2
|
|
|
3
|
-
var React =
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var React__default = _interopDefault(React);
|
|
4
5
|
var Carousel = _interopDefault(require('react-material-ui-carousel'));
|
|
5
6
|
var material = require('@mui/material');
|
|
6
7
|
var Grow = _interopDefault(require('@mui/material/Grow'));
|
|
@@ -58,7 +59,7 @@ var AtomicElements = /*#__PURE__*/function () {
|
|
|
58
59
|
}();
|
|
59
60
|
|
|
60
61
|
function Layout1(content) {
|
|
61
|
-
return /*#__PURE__*/
|
|
62
|
+
return /*#__PURE__*/React__default.createElement(Carousel, {
|
|
62
63
|
indicators: true,
|
|
63
64
|
navButtonsAlwaysInvisible: true,
|
|
64
65
|
sx: {
|
|
@@ -66,7 +67,7 @@ function Layout1(content) {
|
|
|
66
67
|
height: '100%'
|
|
67
68
|
}
|
|
68
69
|
}, content.component.subcomponent.map(function (item, i) {
|
|
69
|
-
return /*#__PURE__*/
|
|
70
|
+
return /*#__PURE__*/React__default.createElement(Item, {
|
|
70
71
|
key: i,
|
|
71
72
|
content: item,
|
|
72
73
|
side: content.component.justify_content
|
|
@@ -95,7 +96,7 @@ function Item(props) {
|
|
|
95
96
|
return 'auto';
|
|
96
97
|
}
|
|
97
98
|
};
|
|
98
|
-
return /*#__PURE__*/
|
|
99
|
+
return /*#__PURE__*/React__default.createElement(material.Box, {
|
|
99
100
|
sx: {
|
|
100
101
|
display: 'flex',
|
|
101
102
|
width: {
|
|
@@ -107,17 +108,17 @@ function Item(props) {
|
|
|
107
108
|
textAlign: side,
|
|
108
109
|
height: '100%'
|
|
109
110
|
}
|
|
110
|
-
}, /*#__PURE__*/
|
|
111
|
+
}, /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
111
112
|
direction: "left",
|
|
112
113
|
"in": visible
|
|
113
|
-
}, /*#__PURE__*/
|
|
114
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
114
115
|
sx: {
|
|
115
116
|
display: 'flex',
|
|
116
117
|
flexDirection: 'column',
|
|
117
118
|
color: content.text_color,
|
|
118
119
|
alignItems: getSideRender(side)
|
|
119
120
|
}
|
|
120
|
-
}, /*#__PURE__*/
|
|
121
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
121
122
|
component: "img",
|
|
122
123
|
src: content.image ? content.image.url : "https://cdn-icons-png.flaticon.com/512/6596/6596121.png",
|
|
123
124
|
sx: {
|
|
@@ -126,12 +127,16 @@ function Item(props) {
|
|
|
126
127
|
marginBottom: '16px',
|
|
127
128
|
borderRadius: '50%'
|
|
128
129
|
}
|
|
129
|
-
}), /*#__PURE__*/
|
|
130
|
+
}), /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
130
131
|
className: "xmiddle",
|
|
131
132
|
sx: {
|
|
132
|
-
marginBottom: '16px'
|
|
133
|
+
marginBottom: '16px',
|
|
134
|
+
minHeight: {
|
|
135
|
+
xs: '270px',
|
|
136
|
+
md: '90px'
|
|
137
|
+
}
|
|
133
138
|
}
|
|
134
|
-
}, content.description ? content.description : 'Agregue descripción'), /*#__PURE__*/
|
|
139
|
+
}, content.description ? content.description : 'Agregue descripción'), /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
135
140
|
className: "small",
|
|
136
141
|
sx: {
|
|
137
142
|
marginBottom: '16px',
|
|
@@ -151,7 +156,7 @@ var Quotes = /*#__PURE__*/function (_AtomicElements) {
|
|
|
151
156
|
'type': 1,
|
|
152
157
|
'subtitle': 'Subtitle',
|
|
153
158
|
'description': 'Description',
|
|
154
|
-
'image': '
|
|
159
|
+
'image': 'sqr'
|
|
155
160
|
}];
|
|
156
161
|
return _this;
|
|
157
162
|
}
|
|
@@ -161,10 +166,10 @@ var Quotes = /*#__PURE__*/function (_AtomicElements) {
|
|
|
161
166
|
function Layout1$1(content) {
|
|
162
167
|
var _content$component$su, _content$component$su2, _content$component$su3, _content$component$su4, _content$component$su5, _content$component$su6, _content$component$su7, _content$component$su8;
|
|
163
168
|
var visible = true;
|
|
164
|
-
return /*#__PURE__*/
|
|
169
|
+
return /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
165
170
|
direction: "left",
|
|
166
171
|
"in": visible
|
|
167
|
-
}, /*#__PURE__*/
|
|
172
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
168
173
|
sx: {
|
|
169
174
|
display: 'flex',
|
|
170
175
|
flexDirection: 'column',
|
|
@@ -179,17 +184,17 @@ function Layout1$1(content) {
|
|
|
179
184
|
justifyContent: 'center',
|
|
180
185
|
color: (_content$component$su = content.component.subcomponent[0]) === null || _content$component$su === void 0 ? void 0 : _content$component$su.text_color
|
|
181
186
|
}
|
|
182
|
-
}, /*#__PURE__*/
|
|
187
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
183
188
|
className: "title-xxlarge",
|
|
184
189
|
sx: {
|
|
185
190
|
marginBottom: '16px'
|
|
186
191
|
}
|
|
187
|
-
}, (_content$component$su2 = content.component.subcomponent[0]) !== null && _content$component$su2 !== void 0 && _content$component$su2.title ? (_content$component$su3 = content.component.subcomponent[0]) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.title : 'Agregue título'), /*#__PURE__*/
|
|
192
|
+
}, (_content$component$su2 = content.component.subcomponent[0]) !== null && _content$component$su2 !== void 0 && _content$component$su2.title ? (_content$component$su3 = content.component.subcomponent[0]) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.title : 'Agregue título'), /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
188
193
|
className: "xmiddle",
|
|
189
194
|
sx: {
|
|
190
195
|
marginBottom: '16px'
|
|
191
196
|
}
|
|
192
|
-
}, (_content$component$su4 = content.component.subcomponent[0]) !== null && _content$component$su4 !== void 0 && _content$component$su4.description ? (_content$component$su5 = content.component.subcomponent[0]) === null || _content$component$su5 === void 0 ? void 0 : _content$component$su5.description : 'Agregue descripción'), /*#__PURE__*/
|
|
197
|
+
}, (_content$component$su4 = content.component.subcomponent[0]) !== null && _content$component$su4 !== void 0 && _content$component$su4.description ? (_content$component$su5 = content.component.subcomponent[0]) === null || _content$component$su5 === void 0 ? void 0 : _content$component$su5.description : 'Agregue descripción'), /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Button, {
|
|
193
198
|
variant: "contained",
|
|
194
199
|
href: (_content$component$su6 = content.component.subcomponent[0]) === null || _content$component$su6 === void 0 ? void 0 : _content$component$su6.button_action,
|
|
195
200
|
sx: {
|
|
@@ -212,6 +217,7 @@ var Banner = /*#__PURE__*/function (_AtomicElements) {
|
|
|
212
217
|
'description': 'Description',
|
|
213
218
|
'button_title': 'Button Title',
|
|
214
219
|
'button_action': 'Button action',
|
|
220
|
+
'image': 'background',
|
|
215
221
|
'text_color': 'Text color',
|
|
216
222
|
'link': 'Link'
|
|
217
223
|
}];
|
|
@@ -223,7 +229,7 @@ var Banner = /*#__PURE__*/function (_AtomicElements) {
|
|
|
223
229
|
function Layout1$2(content) {
|
|
224
230
|
var _content$component$su, _content$component$su2, _content$component$su3, _content$component$su4, _content$component$su5, _content$component$su6, _content$component$su7, _content$component$su8, _content$component$su9, _content$component$su10;
|
|
225
231
|
var visible = true;
|
|
226
|
-
return /*#__PURE__*/
|
|
232
|
+
return /*#__PURE__*/React__default.createElement(material.Box, {
|
|
227
233
|
sx: {
|
|
228
234
|
display: 'flex',
|
|
229
235
|
flexDirection: {
|
|
@@ -234,10 +240,10 @@ function Layout1$2(content) {
|
|
|
234
240
|
alignItems: 'center'
|
|
235
241
|
},
|
|
236
242
|
color: (_content$component$su = content.component.subcomponent[0]) === null || _content$component$su === void 0 ? void 0 : _content$component$su.text_color
|
|
237
|
-
}, /*#__PURE__*/
|
|
243
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
238
244
|
direction: "right",
|
|
239
245
|
"in": visible
|
|
240
|
-
}, /*#__PURE__*/
|
|
246
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
241
247
|
sx: {
|
|
242
248
|
width: {
|
|
243
249
|
xs: '100%',
|
|
@@ -250,31 +256,31 @@ function Layout1$2(content) {
|
|
|
250
256
|
},
|
|
251
257
|
maxWidth: '100vw'
|
|
252
258
|
}
|
|
253
|
-
}, /*#__PURE__*/
|
|
259
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
254
260
|
width: "100%",
|
|
255
261
|
height: "100%",
|
|
256
262
|
src: (_content$component$su2 = content.component.subcomponent[0]) !== null && _content$component$su2 !== void 0 && _content$component$su2.image ? (_content$component$su3 = content.component.subcomponent[0]) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.image.url : 'https://wozapps-develop.s3.us-east-2.amazonaws.com/gerry/resources/landing/bbb84144-02cd-4cf8-a1be-21ba47e7c4fa.jpeg'
|
|
257
|
-
})))), /*#__PURE__*/
|
|
263
|
+
})))), /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(Grow, _extends({
|
|
258
264
|
"in": visible,
|
|
259
265
|
style: {
|
|
260
266
|
transformOrigin: '0 0 0'
|
|
261
267
|
}
|
|
262
268
|
}, {
|
|
263
269
|
timeout: 1000
|
|
264
|
-
} ), /*#__PURE__*/
|
|
270
|
+
} ), /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
265
271
|
sx: {
|
|
266
272
|
marginBottom: '16px'
|
|
267
273
|
}
|
|
268
|
-
}, /*#__PURE__*/
|
|
274
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
269
275
|
className: "title-xlarge"
|
|
270
|
-
}, (_content$component$su4 = content.component.subcomponent[0]) !== null && _content$component$su4 !== void 0 && _content$component$su4.title ? (_content$component$su5 = content.component.subcomponent[0]) === null || _content$component$su5 === void 0 ? void 0 : _content$component$su5.title : 'Agregue título')), /*#__PURE__*/
|
|
276
|
+
}, (_content$component$su4 = content.component.subcomponent[0]) !== null && _content$component$su4 !== void 0 && _content$component$su4.title ? (_content$component$su5 = content.component.subcomponent[0]) === null || _content$component$su5 === void 0 ? void 0 : _content$component$su5.title : 'Agregue título')), /*#__PURE__*/React__default.createElement(material.Box, {
|
|
271
277
|
sx: {
|
|
272
278
|
marginBottom: '16px',
|
|
273
279
|
color: '#767676'
|
|
274
280
|
}
|
|
275
|
-
}, /*#__PURE__*/
|
|
281
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
276
282
|
className: "middle"
|
|
277
|
-
}, (_content$component$su6 = content.component.subcomponent[0]) !== null && _content$component$su6 !== void 0 && _content$component$su6.description ? (_content$component$su7 = content.component.subcomponent[0]) === null || _content$component$su7 === void 0 ? void 0 : _content$component$su7.description : 'Agregue descripción')), /*#__PURE__*/
|
|
283
|
+
}, (_content$component$su6 = content.component.subcomponent[0]) !== null && _content$component$su6 !== void 0 && _content$component$su6.description ? (_content$component$su7 = content.component.subcomponent[0]) === null || _content$component$su7 === void 0 ? void 0 : _content$component$su7.description : 'Agregue descripción')), /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Button, {
|
|
278
284
|
variant: "contained",
|
|
279
285
|
href: (_content$component$su8 = content.component.subcomponent[0]) === null || _content$component$su8 === void 0 ? void 0 : _content$component$su8.button_action,
|
|
280
286
|
sx: {
|
|
@@ -304,7 +310,7 @@ var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
|
|
|
304
310
|
'description': 'Text',
|
|
305
311
|
'button_title': 'Button Title',
|
|
306
312
|
'button_action': 'Button Action',
|
|
307
|
-
'image': '
|
|
313
|
+
'image': 'req_hor'
|
|
308
314
|
}];
|
|
309
315
|
return _this;
|
|
310
316
|
}
|
|
@@ -314,27 +320,27 @@ var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
|
|
|
314
320
|
function Layout1$3(content) {
|
|
315
321
|
var _content$component$su;
|
|
316
322
|
var visible = true;
|
|
317
|
-
return /*#__PURE__*/
|
|
323
|
+
return /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
318
324
|
direction: "left",
|
|
319
325
|
"in": visible
|
|
320
|
-
}, /*#__PURE__*/
|
|
326
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
321
327
|
sx: {
|
|
322
328
|
width: '100%'
|
|
323
329
|
}
|
|
324
|
-
}, /*#__PURE__*/
|
|
330
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
325
331
|
className: "title-xlarge",
|
|
326
332
|
sx: {
|
|
327
333
|
margin: '16px auto'
|
|
328
334
|
}
|
|
329
|
-
}, content.component.title), /*#__PURE__*/
|
|
335
|
+
}, content.component.title ? content.component.title : 'Agregue un título'), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
330
336
|
container: true
|
|
331
337
|
}, (_content$component$su = content.component.subcomponent) === null || _content$component$su === void 0 ? void 0 : _content$component$su.map(function (img, index) {
|
|
332
|
-
return /*#__PURE__*/
|
|
338
|
+
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
333
339
|
key: index,
|
|
334
340
|
item: true,
|
|
335
341
|
xs: 12,
|
|
336
342
|
md: 4
|
|
337
|
-
}, /*#__PURE__*/
|
|
343
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
338
344
|
component: "img",
|
|
339
345
|
src: img.image.url ? img.image.url : 'https://wozapps-develop.s3.us-east-2.amazonaws.com/gerry/resources/landing/bbb84144-02cd-4cf8-a1be-21ba47e7c4fa.jpeg',
|
|
340
346
|
sx: {
|
|
@@ -359,7 +365,7 @@ var Gallery = /*#__PURE__*/function (_AtomicElements) {
|
|
|
359
365
|
_this.layoutFootprintReq = [{
|
|
360
366
|
'type': 1,
|
|
361
367
|
'title': 'Tittle',
|
|
362
|
-
'image': '
|
|
368
|
+
'image': 'req_hor'
|
|
363
369
|
}];
|
|
364
370
|
return _this;
|
|
365
371
|
}
|
|
@@ -369,21 +375,24 @@ var Gallery = /*#__PURE__*/function (_AtomicElements) {
|
|
|
369
375
|
function Layout1$4(content) {
|
|
370
376
|
var _content$component$su, _content$component$su2, _content$component$su3, _content$component$su4, _content$component$su5;
|
|
371
377
|
var visible = true;
|
|
372
|
-
return /*#__PURE__*/
|
|
378
|
+
return /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
373
379
|
direction: "left",
|
|
374
380
|
"in": visible
|
|
375
|
-
}, /*#__PURE__*/
|
|
381
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
376
382
|
sx: {
|
|
377
|
-
width:
|
|
383
|
+
width: {
|
|
384
|
+
xs: '100%',
|
|
385
|
+
md: '70%'
|
|
386
|
+
},
|
|
378
387
|
color: (_content$component$su = content.component.subcomponent[0]) === null || _content$component$su === void 0 ? void 0 : _content$component$su.text_color,
|
|
379
388
|
textAlign: content.component.justify_content
|
|
380
389
|
}
|
|
381
|
-
}, /*#__PURE__*/
|
|
390
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
382
391
|
className: "title-xlarge",
|
|
383
392
|
sx: {
|
|
384
393
|
marginBottom: '16px'
|
|
385
394
|
}
|
|
386
|
-
}, (_content$component$su2 = content.component.subcomponent[0]) !== null && _content$component$su2 !== void 0 && _content$component$su2.title ? (_content$component$su3 = content.component.subcomponent[0]) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.title : 'Agregue título'), /*#__PURE__*/
|
|
395
|
+
}, (_content$component$su2 = content.component.subcomponent[0]) !== null && _content$component$su2 !== void 0 && _content$component$su2.title ? (_content$component$su3 = content.component.subcomponent[0]) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.title : 'Agregue título'), /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
387
396
|
className: "middle",
|
|
388
397
|
sx: {
|
|
389
398
|
marginBottom: '16px',
|
|
@@ -409,12 +418,201 @@ var Text = /*#__PURE__*/function (_AtomicElements) {
|
|
|
409
418
|
return Text;
|
|
410
419
|
}(AtomicElements);
|
|
411
420
|
|
|
421
|
+
function Layout1$5(content) {
|
|
422
|
+
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
423
|
+
container: true
|
|
424
|
+
}, /*#__PURE__*/React__default.createElement(Item$1, {
|
|
425
|
+
content: content.component.subcomponent,
|
|
426
|
+
side: content.component.justify_content
|
|
427
|
+
}));
|
|
428
|
+
}
|
|
429
|
+
function Item$1(props) {
|
|
430
|
+
var content = props.content;
|
|
431
|
+
var _useState = React.useState([]),
|
|
432
|
+
arrayFourElements = _useState[0],
|
|
433
|
+
setArrayFourElements = _useState[1];
|
|
434
|
+
var visible = true;
|
|
435
|
+
var theme = material.useTheme();
|
|
436
|
+
var isXsScreen = material.useMediaQuery(theme.breakpoints.down('sm'));
|
|
437
|
+
var isSmScreen = material.useMediaQuery(theme.breakpoints.between('sm', 'md'));
|
|
438
|
+
var isMdScreen = material.useMediaQuery(theme.breakpoints.between('md', 'lg'));
|
|
439
|
+
var isLgScreen = material.useMediaQuery(theme.breakpoints.up('lg'));
|
|
440
|
+
function divideArreglo(arreglo, tamanoMaximo) {
|
|
441
|
+
var subarreglos = [];
|
|
442
|
+
var subarregloActual = [];
|
|
443
|
+
for (var i = 0; i < arreglo.length; i++) {
|
|
444
|
+
subarregloActual.push(arreglo[i]);
|
|
445
|
+
if (subarregloActual.length === tamanoMaximo || i === arreglo.length - 1) {
|
|
446
|
+
subarreglos.push(subarregloActual);
|
|
447
|
+
subarregloActual = [];
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
return subarreglos;
|
|
451
|
+
}
|
|
452
|
+
React.useEffect(function () {
|
|
453
|
+
var tamanoMaximo;
|
|
454
|
+
if (isSmScreen) {
|
|
455
|
+
tamanoMaximo = 2;
|
|
456
|
+
} else if (isMdScreen) {
|
|
457
|
+
tamanoMaximo = 3;
|
|
458
|
+
} else if (isLgScreen) {
|
|
459
|
+
tamanoMaximo = 4;
|
|
460
|
+
} else if (isXsScreen) {
|
|
461
|
+
tamanoMaximo = 1;
|
|
462
|
+
}
|
|
463
|
+
setArrayFourElements(divideArreglo(content, tamanoMaximo));
|
|
464
|
+
}, [isXsScreen, isSmScreen, isMdScreen, isLgScreen, content]);
|
|
465
|
+
if (!arrayFourElements) {
|
|
466
|
+
return null;
|
|
467
|
+
} else {
|
|
468
|
+
return content.length > 4 ? /*#__PURE__*/React__default.createElement(Carousel, {
|
|
469
|
+
autoPlay: true,
|
|
470
|
+
indicators: true,
|
|
471
|
+
navButtonsAlwaysVisible: true,
|
|
472
|
+
sx: {
|
|
473
|
+
width: '100%',
|
|
474
|
+
height: '100%'
|
|
475
|
+
}
|
|
476
|
+
}, arrayFourElements.map(function (items, i) {
|
|
477
|
+
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
478
|
+
container: true,
|
|
479
|
+
key: i,
|
|
480
|
+
spacing: 3
|
|
481
|
+
}, items.map(function (item, j) {
|
|
482
|
+
var _ref;
|
|
483
|
+
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
484
|
+
item: true,
|
|
485
|
+
key: j,
|
|
486
|
+
sm: 6,
|
|
487
|
+
md: 4,
|
|
488
|
+
lg: 3
|
|
489
|
+
}, /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
490
|
+
direction: "left",
|
|
491
|
+
"in": visible
|
|
492
|
+
}, /*#__PURE__*/React__default.createElement(material.Card, {
|
|
493
|
+
sx: (_ref = {
|
|
494
|
+
width: '300px',
|
|
495
|
+
maxWidth: 512,
|
|
496
|
+
boxShadow: 'none',
|
|
497
|
+
borderRadius: 0,
|
|
498
|
+
border: '1px solid #e5e5e5'
|
|
499
|
+
}, _ref["borderRadius"] = '10px', _ref)
|
|
500
|
+
}, /*#__PURE__*/React__default.createElement(material.CardMedia, {
|
|
501
|
+
component: "img",
|
|
502
|
+
height: "300px",
|
|
503
|
+
width: "300px",
|
|
504
|
+
image: "https://images.unsplash.com/reserve/Af0sF2OS5S5gatqrKzVP_Silhoutte.jpg?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8Mnx8fGVufDB8fHx8fA%3D%3D&w=1000&q=80",
|
|
505
|
+
sx: {
|
|
506
|
+
aspectRatio: '1/1'
|
|
507
|
+
}
|
|
508
|
+
}), /*#__PURE__*/React__default.createElement(material.CardContent, {
|
|
509
|
+
sx: {
|
|
510
|
+
padding: '8px 16px',
|
|
511
|
+
'&.MuiCardContent-root:last-child': {
|
|
512
|
+
paddingBottom: '8px'
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
516
|
+
component: "div",
|
|
517
|
+
sx: {
|
|
518
|
+
display: 'flex',
|
|
519
|
+
justifyContent: 'space-between',
|
|
520
|
+
alignItems: 'center'
|
|
521
|
+
}
|
|
522
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
523
|
+
sx: {
|
|
524
|
+
maxWidth: '80%',
|
|
525
|
+
display: '-webkit-box',
|
|
526
|
+
WebkitLineClamp: 2,
|
|
527
|
+
WebkitBoxOrient: 'vertical',
|
|
528
|
+
overflow: 'hidden',
|
|
529
|
+
textOverflow: 'ellipsis'
|
|
530
|
+
}
|
|
531
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
532
|
+
className: "simple"
|
|
533
|
+
}, "Pan de muertos de masa madre real madrid"))), /*#__PURE__*/React__default.createElement(material.Typography, null, "$4000")))));
|
|
534
|
+
}));
|
|
535
|
+
})) : content.map(function (item, i) {
|
|
536
|
+
var _ref2;
|
|
537
|
+
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
538
|
+
item: true,
|
|
539
|
+
key: i,
|
|
540
|
+
sm: 6,
|
|
541
|
+
md: 4,
|
|
542
|
+
lg: 3
|
|
543
|
+
}, /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
544
|
+
direction: "left",
|
|
545
|
+
"in": visible
|
|
546
|
+
}, /*#__PURE__*/React__default.createElement(material.Card, {
|
|
547
|
+
sx: (_ref2 = {
|
|
548
|
+
width: '300px',
|
|
549
|
+
maxWidth: 512,
|
|
550
|
+
boxShadow: 'none',
|
|
551
|
+
borderRadius: 0,
|
|
552
|
+
border: '1px solid #e5e5e5'
|
|
553
|
+
}, _ref2["borderRadius"] = '10px', _ref2)
|
|
554
|
+
}, /*#__PURE__*/React__default.createElement(material.CardMedia, {
|
|
555
|
+
component: "img",
|
|
556
|
+
height: "300px",
|
|
557
|
+
width: "300px",
|
|
558
|
+
image: "https://images.unsplash.com/reserve/Af0sF2OS5S5gatqrKzVP_Silhoutte.jpg?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxleHBsb3JlLWZlZWR8Mnx8fGVufDB8fHx8fA%3D%3D&w=1000&q=80",
|
|
559
|
+
sx: {
|
|
560
|
+
aspectRatio: '1/1'
|
|
561
|
+
}
|
|
562
|
+
}), /*#__PURE__*/React__default.createElement(material.CardContent, {
|
|
563
|
+
sx: {
|
|
564
|
+
padding: '8px 16px',
|
|
565
|
+
'&.MuiCardContent-root:last-child': {
|
|
566
|
+
paddingBottom: '8px'
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
570
|
+
component: "div",
|
|
571
|
+
sx: {
|
|
572
|
+
display: 'flex',
|
|
573
|
+
justifyContent: 'space-between',
|
|
574
|
+
alignItems: 'center'
|
|
575
|
+
}
|
|
576
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
577
|
+
sx: {
|
|
578
|
+
maxWidth: '80%',
|
|
579
|
+
display: '-webkit-box',
|
|
580
|
+
WebkitLineClamp: 2,
|
|
581
|
+
WebkitBoxOrient: 'vertical',
|
|
582
|
+
overflow: 'hidden',
|
|
583
|
+
textOverflow: 'ellipsis'
|
|
584
|
+
}
|
|
585
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
586
|
+
className: "simple"
|
|
587
|
+
}, "Pan de muertos de masa madre real madrid"))), /*#__PURE__*/React__default.createElement(material.Typography, null, "$4000")))));
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
var List = /*#__PURE__*/function (_AtomicElements) {
|
|
593
|
+
_inheritsLoose(List, _AtomicElements);
|
|
594
|
+
function List() {
|
|
595
|
+
var _this;
|
|
596
|
+
_this = _AtomicElements.call(this) || this;
|
|
597
|
+
_this.layout = [Layout1$5];
|
|
598
|
+
_this.layoutFootprint = ['list_layout_1.png'];
|
|
599
|
+
_this.layoutFootprintReq = [{
|
|
600
|
+
'type': 1,
|
|
601
|
+
'subtitle': 'Subtitle',
|
|
602
|
+
'description': 'Description',
|
|
603
|
+
'image': 'Image'
|
|
604
|
+
}];
|
|
605
|
+
return _this;
|
|
606
|
+
}
|
|
607
|
+
return List;
|
|
608
|
+
}(AtomicElements);
|
|
609
|
+
|
|
412
610
|
function CanvasContainer(props) {
|
|
413
611
|
var _json$component$bg_im;
|
|
414
612
|
var json = props.json,
|
|
415
613
|
children = props.children;
|
|
416
614
|
var rgbColor = hexToRgb(json.component.bg_image_overlay_color);
|
|
417
|
-
return /*#__PURE__*/
|
|
615
|
+
return /*#__PURE__*/React__default.createElement(material.Box, {
|
|
418
616
|
sx: {
|
|
419
617
|
display: 'flex',
|
|
420
618
|
alignItems: 'center',
|
|
@@ -424,13 +622,13 @@ function CanvasContainer(props) {
|
|
|
424
622
|
backgroundSize: 'cover',
|
|
425
623
|
backgroundRepeat: 'no-repeat'
|
|
426
624
|
}
|
|
427
|
-
}, /*#__PURE__*/
|
|
625
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
428
626
|
sx: {
|
|
429
627
|
bgcolor: "" + (json.component.bg_image_overlay && json.component.bg_type === 3 ? "rgba(" + rgbColor.r + ", " + rgbColor.g + ", " + rgbColor.b + ", " + json.component.bg_image_overlay_alpha_css + ")" : undefined),
|
|
430
628
|
padding: '64px 24px',
|
|
431
629
|
width: '100%'
|
|
432
630
|
}
|
|
433
|
-
}, /*#__PURE__*/
|
|
631
|
+
}, /*#__PURE__*/React__default.createElement(material.Container, {
|
|
434
632
|
maxWidth: "xl",
|
|
435
633
|
sx: {
|
|
436
634
|
padding: '0px',
|
|
@@ -445,7 +643,7 @@ function CanvasContainer(props) {
|
|
|
445
643
|
}
|
|
446
644
|
}
|
|
447
645
|
}
|
|
448
|
-
}, /*#__PURE__*/
|
|
646
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
449
647
|
sx: {
|
|
450
648
|
minWidth: {
|
|
451
649
|
xs: '100%',
|
|
@@ -488,7 +686,7 @@ var Section = /*#__PURE__*/function () {
|
|
|
488
686
|
var _proto = Section.prototype;
|
|
489
687
|
_proto.component = function component(json) {
|
|
490
688
|
console.log('json', json);
|
|
491
|
-
return /*#__PURE__*/
|
|
689
|
+
return /*#__PURE__*/React__default.createElement(CanvasContainer, {
|
|
492
690
|
json: json
|
|
493
691
|
}, this.child.build(json, json.component.layout));
|
|
494
692
|
};
|
|
@@ -512,7 +710,8 @@ var Sections = /*#__PURE__*/function () {
|
|
|
512
710
|
this.textPlusImg = new Section(new TextPlusImg());
|
|
513
711
|
this.gallery = new Section(new Gallery());
|
|
514
712
|
this.text = new Section(new Text());
|
|
515
|
-
this.
|
|
713
|
+
this.list = new Section(new List());
|
|
714
|
+
this.sections = [this.banner, this.textPlusImg, this.quotes, this.gallery, this.text, this.list];
|
|
516
715
|
}
|
|
517
716
|
var _proto2 = Sections.prototype;
|
|
518
717
|
_proto2.getSectionList = function getSectionList() {
|
|
@@ -521,7 +720,8 @@ var Sections = /*#__PURE__*/function () {
|
|
|
521
720
|
'1': 'Texto + Imágenes',
|
|
522
721
|
'2': 'Citas/Testimonios',
|
|
523
722
|
'3': 'Galeria',
|
|
524
|
-
'4': 'Texto'
|
|
723
|
+
'4': 'Texto',
|
|
724
|
+
'5': 'Lista'
|
|
525
725
|
};
|
|
526
726
|
};
|
|
527
727
|
_proto2.getLayoutsFromSection = function getLayoutsFromSection(index) {
|