keski_lib_catalog 1.3.21 → 1.3.23

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.
@@ -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';
@@ -1130,10 +1130,10 @@ function Item$3(props) {
1130
1130
  }
1131
1131
  }, arrayFourElements.map(function (items, p) {
1132
1132
  return /*#__PURE__*/React.createElement(Container, {
1133
- maxWidth: "lg"
1133
+ maxWidth: "lg",
1134
+ key: p
1134
1135
  }, /*#__PURE__*/React.createElement(Grid$1, {
1135
1136
  container: true,
1136
- key: p,
1137
1137
  spacing: 0,
1138
1138
  sx: {
1139
1139
  margin: 'auto',
@@ -1292,7 +1292,6 @@ function Layout1$7(content) {
1292
1292
  fontWeight: 'bold'
1293
1293
  }
1294
1294
  })), /*#__PURE__*/React.createElement(AccordionDetails, {
1295
- disablePortal: true,
1296
1295
  sx: {
1297
1296
  padding: "0px 10px 24px 10px"
1298
1297
  }
@@ -1437,6 +1436,98 @@ function hexToRgb(hex) {
1437
1436
 
1438
1437
  var JK_RESOURCES = 'https://jk-clients.s3.us-east-2.amazonaws.com/jk-resources/';
1439
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.button_title ? i.button_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
+ 'button_title': 'Button title',
1523
+ 'button_action': 'Button action',
1524
+ 'Link': 'Link'
1525
+ }];
1526
+ return _this;
1527
+ }
1528
+ return Categories;
1529
+ }(AtomicElements);
1530
+
1440
1531
  var Section = /*#__PURE__*/function () {
1441
1532
  function Section(AtomicElement, theme) {
1442
1533
  this.child = AtomicElement;
@@ -1474,7 +1565,8 @@ var Sections = /*#__PURE__*/function () {
1474
1565
  this.list = new Section(new List());
1475
1566
  this.brands = new Section(new Brands());
1476
1567
  this.faq = new Section(new FAQ());
1477
- this.sections = [this.banner, this.textPlusImg, this.quotes, this.gallery, this.text, this.list, this.brands, this.faq];
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];
1478
1570
  }
1479
1571
  var _proto2 = Sections.prototype;
1480
1572
  _proto2.getSectionList = function getSectionList() {
@@ -1486,7 +1578,8 @@ var Sections = /*#__PURE__*/function () {
1486
1578
  '4': 'Texto',
1487
1579
  '5': 'Lista',
1488
1580
  '6': 'Marcas',
1489
- '7': 'FAQ'
1581
+ '7': 'FAQ',
1582
+ '8': 'Categorias'
1490
1583
  };
1491
1584
  };
1492
1585
  _proto2.getLayoutsFromSection = function getLayoutsFromSection(index) {