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