keski_lib_catalog 1.4.1 → 1.4.3

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, Link } from '@mui/material';
3
+ import { Box, Typography, Slide, Card, 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';
@@ -61,7 +61,28 @@ var AtomicElements = /*#__PURE__*/function () {
61
61
  }();
62
62
 
63
63
  function Layout1(content) {
64
- return /*#__PURE__*/React.createElement(Carousel, {
64
+ return /*#__PURE__*/React.createElement(Box, {
65
+ sx: {
66
+ width: '100%',
67
+ height: '100%'
68
+ }
69
+ }, /*#__PURE__*/React.createElement(Typography, {
70
+ component: 'h2',
71
+ dangerouslySetInnerHTML: {
72
+ __html: content.component.title ? content.component.title : ' '
73
+ },
74
+ sx: {
75
+ whiteSpace: 'pre-wrap',
76
+ fontSize: {
77
+ xs: "1.875em",
78
+ sm: "2.25em",
79
+ md: "3em",
80
+ lg: "3em",
81
+ xl: "3em"
82
+ },
83
+ paddingBottom: "32px"
84
+ }
85
+ }), /*#__PURE__*/React.createElement(Carousel, {
65
86
  indicators: true,
66
87
  navButtonsAlwaysInvisible: true,
67
88
  sx: {
@@ -74,7 +95,7 @@ function Layout1(content) {
74
95
  content: item,
75
96
  side: content.component.justify_content
76
97
  });
77
- }));
98
+ })));
78
99
  }
79
100
  function Item(props) {
80
101
  var content = props.content,
@@ -132,7 +153,7 @@ function Item(props) {
132
153
  borderRadius: '100%'
133
154
  }
134
155
  }, /*#__PURE__*/React.createElement(Avatar, {
135
- src: content.image.url ? content.image.url : '',
156
+ src: content.image ? content.image.url ? content.image.url : 'none' : 'none',
136
157
  alt: content.title ? content.title : '',
137
158
  sx: {
138
159
  width: '120px',
@@ -587,7 +608,7 @@ function Layout1$3(content) {
587
608
  }, /*#__PURE__*/React.createElement(CardMedia, {
588
609
  component: "img",
589
610
  alt: img.description ? img.description : "",
590
- image: img.image.url ? img.image.url : "none",
611
+ image: img.image ? img.image.url ? img.image.url : 'none' : 'none',
591
612
  sx: {
592
613
  width: "100%",
593
614
  height: "100%",
@@ -854,7 +875,7 @@ function Item$2(props) {
854
875
  alt: item.title ? item.title : '',
855
876
  height: "305px",
856
877
  width: "305px",
857
- image: item.image.url ? item.image.url : 'none',
878
+ image: item.image ? item.image.url ? item.image.url : 'none' : 'none',
858
879
  sx: {
859
880
  aspectRatio: '1/1',
860
881
  transform: "translate(\n " + item.image_transform_x + "%\n ,\n " + item.image_transform_y + "%)" + ("scale(" + (item.image_scale ? item.image_scale : "1") + ")")
@@ -1200,7 +1221,7 @@ function Item$3(props) {
1200
1221
  }
1201
1222
  }, /*#__PURE__*/React.createElement(CardMedia, {
1202
1223
  component: "img",
1203
- image: item.image.url ? item.image.url : 'none',
1224
+ image: item.image ? item.image.url ? item.image.url : 'none' : 'none',
1204
1225
  alt: item.title ? item.title : 'none',
1205
1226
  sx: {
1206
1227
  width: '100%',
@@ -3250,7 +3271,7 @@ var Sections = /*#__PURE__*/function () {
3250
3271
  '0': 'Banner',
3251
3272
  '1': 'Texto + Imágenes',
3252
3273
  '2': 'Citas/Testimonios',
3253
- '3': 'Galeria',
3274
+ '3': 'Galería',
3254
3275
  '4': 'Texto',
3255
3276
  '5': 'Lista',
3256
3277
  '6': 'Marcas',