keski_lib_catalog 1.3.20 → 1.3.22
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 +103 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +104 -13
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import Carousel from 'react-material-ui-carousel';
|
|
3
|
-
import { Box, Slide, Card, Typography, Chip, Button, CardMedia, Grid as Grid$1, useTheme, useMediaQuery, CardContent, Container, Accordion, AccordionSummary, AccordionDetails } from '@mui/material';
|
|
3
|
+
import { Box, Slide, Card, Typography, Chip, Button, CardMedia, Grid as Grid$1, useTheme, useMediaQuery, CardContent, Container, Accordion, AccordionSummary, AccordionDetails, Link } from '@mui/material';
|
|
4
4
|
import Avatar from '@mui/material/Avatar';
|
|
5
5
|
import { styled } from '@mui/material/styles';
|
|
6
6
|
import Paper from '@mui/material/Paper';
|
|
@@ -892,7 +892,6 @@ function Item$2(props) {
|
|
|
892
892
|
__html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
|
|
893
893
|
},
|
|
894
894
|
sx: {
|
|
895
|
-
minHeight: '54px',
|
|
896
895
|
display: '-webkit-box',
|
|
897
896
|
WebkitLineClamp: 2,
|
|
898
897
|
WebkitBoxOrient: 'vertical',
|
|
@@ -1011,7 +1010,6 @@ function Item$2(props) {
|
|
|
1011
1010
|
__html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
|
|
1012
1011
|
},
|
|
1013
1012
|
sx: {
|
|
1014
|
-
minHeight: '54px',
|
|
1015
1013
|
display: '-webkit-box',
|
|
1016
1014
|
WebkitLineClamp: 2,
|
|
1017
1015
|
WebkitBoxOrient: 'vertical',
|
|
@@ -1132,10 +1130,10 @@ function Item$3(props) {
|
|
|
1132
1130
|
}
|
|
1133
1131
|
}, arrayFourElements.map(function (items, p) {
|
|
1134
1132
|
return /*#__PURE__*/React.createElement(Container, {
|
|
1135
|
-
maxWidth: "lg"
|
|
1133
|
+
maxWidth: "lg",
|
|
1134
|
+
key: p
|
|
1136
1135
|
}, /*#__PURE__*/React.createElement(Grid$1, {
|
|
1137
1136
|
container: true,
|
|
1138
|
-
key: p,
|
|
1139
1137
|
spacing: 0,
|
|
1140
1138
|
sx: {
|
|
1141
1139
|
margin: 'auto',
|
|
@@ -1294,9 +1292,8 @@ function Layout1$7(content) {
|
|
|
1294
1292
|
fontWeight: 'bold'
|
|
1295
1293
|
}
|
|
1296
1294
|
})), /*#__PURE__*/React.createElement(AccordionDetails, {
|
|
1297
|
-
disablePortal: true,
|
|
1298
1295
|
sx: {
|
|
1299
|
-
padding: "0px 10px
|
|
1296
|
+
padding: "0px 10px 24px 10px"
|
|
1300
1297
|
}
|
|
1301
1298
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
1302
1299
|
sx: {
|
|
@@ -1356,10 +1353,10 @@ function CanvasContainer(props) {
|
|
|
1356
1353
|
sm: '0px 0px',
|
|
1357
1354
|
xs: '0px 0px'
|
|
1358
1355
|
} : json.type === 6 ? {
|
|
1359
|
-
xl: '
|
|
1360
|
-
lg: '
|
|
1361
|
-
sm: '
|
|
1362
|
-
xs: '
|
|
1356
|
+
xl: '24px 24px',
|
|
1357
|
+
lg: '24px 24px',
|
|
1358
|
+
sm: '16px 0px',
|
|
1359
|
+
xs: '16px 0px'
|
|
1363
1360
|
} : {
|
|
1364
1361
|
xl: '64px 24px',
|
|
1365
1362
|
lg: '64px 24px',
|
|
@@ -1439,6 +1436,98 @@ function hexToRgb(hex) {
|
|
|
1439
1436
|
|
|
1440
1437
|
var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
|
|
1441
1438
|
|
|
1439
|
+
function Layout1$8(content) {
|
|
1440
|
+
var _content$component, _content$component$su;
|
|
1441
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
1442
|
+
sx: {
|
|
1443
|
+
width: {
|
|
1444
|
+
xs: '100%',
|
|
1445
|
+
md: '100%'
|
|
1446
|
+
},
|
|
1447
|
+
textAlign: content.component.justify_content
|
|
1448
|
+
}
|
|
1449
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
1450
|
+
component: 'h2',
|
|
1451
|
+
dangerouslySetInnerHTML: {
|
|
1452
|
+
__html: (_content$component = content.component) !== null && _content$component !== void 0 && _content$component.title ? content.component.title : ''
|
|
1453
|
+
},
|
|
1454
|
+
sx: {
|
|
1455
|
+
marginBottom: '45px',
|
|
1456
|
+
whiteSpace: 'pre-wrap',
|
|
1457
|
+
fontSize: {
|
|
1458
|
+
xs: '1.875em',
|
|
1459
|
+
sm: '2.25em',
|
|
1460
|
+
md: '3em',
|
|
1461
|
+
lg: '32px',
|
|
1462
|
+
xl: '32px'
|
|
1463
|
+
},
|
|
1464
|
+
fontWeight: 'bold'
|
|
1465
|
+
}
|
|
1466
|
+
}), /*#__PURE__*/React.createElement(Grid$1, {
|
|
1467
|
+
container: true,
|
|
1468
|
+
direction: "row",
|
|
1469
|
+
alignItems: "flex-start",
|
|
1470
|
+
sx: {
|
|
1471
|
+
gap: '0px 40px'
|
|
1472
|
+
}
|
|
1473
|
+
}, (_content$component$su = content.component.subcomponent) === null || _content$component$su === void 0 ? void 0 : _content$component$su.map(function (i, index) {
|
|
1474
|
+
return /*#__PURE__*/React.createElement(Grid$1, {
|
|
1475
|
+
item: true,
|
|
1476
|
+
xs: 12,
|
|
1477
|
+
sm: 5,
|
|
1478
|
+
md: 2,
|
|
1479
|
+
lg: 3.6,
|
|
1480
|
+
xl: 3.6,
|
|
1481
|
+
key: index,
|
|
1482
|
+
sx: {
|
|
1483
|
+
'&:hover': {
|
|
1484
|
+
borderBottom: '6px solid black'
|
|
1485
|
+
},
|
|
1486
|
+
borderBottom: '2px solid #343d3f'
|
|
1487
|
+
}
|
|
1488
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
1489
|
+
href: i !== null && i !== void 0 && i.button_action ? i === null || i === void 0 ? void 0 : i.button_action : '#',
|
|
1490
|
+
underline: "none",
|
|
1491
|
+
color: "#343d3f",
|
|
1492
|
+
target: (i === null || i === void 0 ? void 0 : i.link) == 4 ? '_blank' : '_self'
|
|
1493
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
1494
|
+
component: 'p',
|
|
1495
|
+
sx: {
|
|
1496
|
+
fontSize: {
|
|
1497
|
+
xs: '1.875em',
|
|
1498
|
+
sm: '2.25em',
|
|
1499
|
+
md: '3em',
|
|
1500
|
+
lg: '3em',
|
|
1501
|
+
xl: '3em'
|
|
1502
|
+
},
|
|
1503
|
+
whiteSpace: 'pre-wrap',
|
|
1504
|
+
width: '100%'
|
|
1505
|
+
},
|
|
1506
|
+
dangerouslySetInnerHTML: {
|
|
1507
|
+
__html: i.title ? i.title : ''
|
|
1508
|
+
}
|
|
1509
|
+
})));
|
|
1510
|
+
})));
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
var Categories = /*#__PURE__*/function (_AtomicElements) {
|
|
1514
|
+
_inheritsLoose(Categories, _AtomicElements);
|
|
1515
|
+
function Categories() {
|
|
1516
|
+
var _this;
|
|
1517
|
+
_this = _AtomicElements.call(this) || this;
|
|
1518
|
+
_this.layout = [Layout1$8];
|
|
1519
|
+
_this.layoutFootprint = ['gallery_layout_1.png'];
|
|
1520
|
+
_this.layoutFootprintReq = [{
|
|
1521
|
+
'type': 1,
|
|
1522
|
+
'title': 'Tittle',
|
|
1523
|
+
'button_action': 'Button action',
|
|
1524
|
+
'Link': 'Link'
|
|
1525
|
+
}];
|
|
1526
|
+
return _this;
|
|
1527
|
+
}
|
|
1528
|
+
return Categories;
|
|
1529
|
+
}(AtomicElements);
|
|
1530
|
+
|
|
1442
1531
|
var Section = /*#__PURE__*/function () {
|
|
1443
1532
|
function Section(AtomicElement, theme) {
|
|
1444
1533
|
this.child = AtomicElement;
|
|
@@ -1476,7 +1565,8 @@ var Sections = /*#__PURE__*/function () {
|
|
|
1476
1565
|
this.list = new Section(new List());
|
|
1477
1566
|
this.brands = new Section(new Brands());
|
|
1478
1567
|
this.faq = new Section(new FAQ());
|
|
1479
|
-
this.
|
|
1568
|
+
this.categories = new Section(new Categories());
|
|
1569
|
+
this.sections = [this.banner, this.textPlusImg, this.quotes, this.gallery, this.text, this.list, this.brands, this.faq, this.categories];
|
|
1480
1570
|
}
|
|
1481
1571
|
var _proto2 = Sections.prototype;
|
|
1482
1572
|
_proto2.getSectionList = function getSectionList() {
|
|
@@ -1488,7 +1578,8 @@ var Sections = /*#__PURE__*/function () {
|
|
|
1488
1578
|
'4': 'Texto',
|
|
1489
1579
|
'5': 'Lista',
|
|
1490
1580
|
'6': 'Marcas',
|
|
1491
|
-
'7': 'FAQ'
|
|
1581
|
+
'7': 'FAQ',
|
|
1582
|
+
'8': 'Categorias'
|
|
1492
1583
|
};
|
|
1493
1584
|
};
|
|
1494
1585
|
_proto2.getLayoutsFromSection = function getLayoutsFromSection(index) {
|