keski_lib_catalog 1.4.2 → 1.4.4

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,
@@ -137,16 +158,16 @@ function Item(props) {
137
158
  sx: {
138
159
  width: '120px',
139
160
  height: '120px',
140
- transform: "translate(\n " + content.image_transform_x + "%\n ,\n " + content.image_transform_y + "%)" + ("scale(" + (content.image_scale ? content.image_scale : "1") + ")")
161
+ transform: "translate(\n " + content.image_transform_x + "%\n ,\n " + content.image_transform_y + "%)" + ("scale(" + (content.image_scale ? content.image_scale : '1') + ")")
141
162
  }
142
163
  }))), /*#__PURE__*/React.createElement(Box, {
143
164
  sx: {
144
165
  width: {
145
- xs: "100%",
146
- xl: "72%",
147
- lg: "72%"
166
+ xs: '100%',
167
+ xl: '72%',
168
+ lg: '72%'
148
169
  },
149
- height: "100%",
170
+ height: '100%',
150
171
  overflow: 'hidden',
151
172
  textOverflow: 'ellipsis',
152
173
  display: '-webkit-box',
@@ -233,8 +254,8 @@ function Layout1$1(content) {
233
254
  },
234
255
  height: {
235
256
  xs: '80vh',
236
- sm: "80vh",
237
- md: "80vh"
257
+ sm: '80vh',
258
+ md: '80vh'
238
259
  },
239
260
  backgroundSize: 'cover',
240
261
  backgroundPosition: 'center',
@@ -256,21 +277,21 @@ function Layout1$1(content) {
256
277
  },
257
278
  justifyContent: 'center',
258
279
  paddingLeft: (_content$component$su = content.component.subcomponent[0]) !== null && _content$component$su !== void 0 && _content$component$su.image ? {
259
- lg: "24px",
260
- md: "24px",
261
- sm: "16px",
262
- xs: "16px"
280
+ lg: '24px',
281
+ md: '24px',
282
+ sm: '16px',
283
+ xs: '16px'
263
284
  } : {
264
- lg: "0px",
265
- md: "24px",
266
- sm: "16px",
267
- xs: "16px"
285
+ lg: '0px',
286
+ md: '24px',
287
+ sm: '16px',
288
+ xs: '16px'
268
289
  },
269
290
  paddingRight: {
270
- lg: "24px",
271
- md: "24px",
272
- sm: "16px",
273
- xs: "16px"
291
+ lg: '24px',
292
+ md: '24px',
293
+ sm: '16px',
294
+ xs: '16px'
274
295
  }
275
296
  }
276
297
  }, ((_content$component$su2 = content.component.subcomponent[0]) === null || _content$component$su2 === void 0 ? void 0 : _content$component$su2.label_active) && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Chip, {
@@ -292,13 +313,13 @@ function Layout1$1(content) {
292
313
  marginBottom: '16px',
293
314
  whiteSpace: 'pre-wrap',
294
315
  fontSize: {
295
- xs: "2em",
296
- sm: "2em",
297
- md: "3.75em",
298
- lg: "3.75em",
299
- xl: "3.75em"
316
+ xs: '2em',
317
+ sm: '2em',
318
+ md: '3.75em',
319
+ lg: '3.75em',
320
+ xl: '3.75em'
300
321
  },
301
- fontWeight: "bold"
322
+ fontWeight: 'bold'
302
323
  }
303
324
  }), /*#__PURE__*/React.createElement(Typography, {
304
325
  component: 'p',
@@ -309,11 +330,11 @@ function Layout1$1(content) {
309
330
  marginBottom: '16px',
310
331
  whiteSpace: 'pre-wrap',
311
332
  fontSize: {
312
- xs: "1.125em",
313
- sm: "1.125em",
314
- md: "1.125em",
315
- lg: "1.125em",
316
- xl: "1.125em"
333
+ xs: '1.125em',
334
+ sm: '1.125em',
335
+ md: '1.125em',
336
+ lg: '1.125em',
337
+ xl: '1.125em'
317
338
  }
318
339
  }
319
340
  }), ((_content$component$su10 = content.component.subcomponent[0]) === null || _content$component$su10 === void 0 ? void 0 : _content$component$su10.button_active) && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Button, {
@@ -549,13 +570,13 @@ function Layout1$3(content) {
549
570
  sx: {
550
571
  whiteSpace: 'pre-wrap',
551
572
  fontSize: {
552
- xs: "1.875em",
553
- sm: "2.25em",
554
- md: "3em",
555
- lg: "3em",
556
- xl: "3em"
573
+ xs: '1.875em',
574
+ sm: '2.25em',
575
+ md: '3em',
576
+ lg: '3em',
577
+ xl: '3em'
557
578
  },
558
- paddingBottom: "32px"
579
+ paddingBottom: '32px'
559
580
  }
560
581
  }), /*#__PURE__*/React.createElement(Grid$1, {
561
582
  container: true,
@@ -575,7 +596,7 @@ function Layout1$3(content) {
575
596
  elevation: 0,
576
597
  sx: {
577
598
  borderRadius: '24px',
578
- width: "100%",
599
+ width: '100%',
579
600
  height: {
580
601
  xl: 350,
581
602
  lg: 350,
@@ -586,12 +607,12 @@ function Layout1$3(content) {
586
607
  }
587
608
  }, /*#__PURE__*/React.createElement(CardMedia, {
588
609
  component: "img",
589
- alt: img.description ? img.description : "",
610
+ alt: img.description ? img.description : '',
590
611
  image: img.image ? img.image.url ? img.image.url : 'none' : 'none',
591
612
  sx: {
592
- width: "100%",
593
- height: "100%",
594
- transform: "translate(\n " + img.image_transform_x + "%\n ,\n " + img.image_transform_y + "%)" + ("scale(" + (img.image_scale ? img.image_scale : "1") + ")")
613
+ width: '100%',
614
+ height: '100%',
615
+ transform: "translate(\n " + img.image_transform_x + "%\n ,\n " + img.image_transform_y + "%)" + ("scale(" + (img.image_scale ? img.image_scale : '1') + ")")
595
616
  }
596
617
  })));
597
618
  }))));
@@ -773,13 +794,13 @@ function Item$2(props) {
773
794
  width: '100%',
774
795
  height: '520px',
775
796
  paddingTop: '70px',
776
- "& .css-hn784z": {
797
+ '& .css-hn784z': {
777
798
  left: {
778
799
  xs: 'calc(100% - 120px)'
779
800
  },
780
801
  height: 'auto'
781
802
  },
782
- "& .css-1abc02a": {
803
+ '& .css-1abc02a': {
783
804
  height: 'auto'
784
805
  }
785
806
  }
@@ -857,7 +878,7 @@ function Item$2(props) {
857
878
  image: item.image ? item.image.url ? item.image.url : 'none' : 'none',
858
879
  sx: {
859
880
  aspectRatio: '1/1',
860
- transform: "translate(\n " + item.image_transform_x + "%\n ,\n " + item.image_transform_y + "%)" + ("scale(" + (item.image_scale ? item.image_scale : "1") + ")")
881
+ transform: "translate(\n " + item.image_transform_x + "%\n ,\n " + item.image_transform_y + "%)" + ("scale(" + (item.image_scale ? item.image_scale : '1') + ")")
861
882
  }
862
883
  })), /*#__PURE__*/React.createElement(CardContent, {
863
884
  sx: {
@@ -977,7 +998,7 @@ function Item$2(props) {
977
998
  image: item.image.url ? item.image.url : 'https://via.placeholder.com/300x300.png?text=No+Image',
978
999
  sx: {
979
1000
  aspectRatio: '1/1',
980
- transform: "translate(\n " + item.image_transform_x + "%\n ,\n " + item.image_transform_y + "%)" + ("scale(" + (item.image_scale ? item.image_scale : "1") + ")")
1001
+ transform: "translate(\n " + item.image_transform_x + "%\n ,\n " + item.image_transform_y + "%)" + ("scale(" + (item.image_scale ? item.image_scale : '1') + ")")
981
1002
  }
982
1003
  }), /*#__PURE__*/React.createElement(CardContent, {
983
1004
  sx: {
@@ -1144,18 +1165,24 @@ function Item$3(props) {
1144
1165
  sx: {
1145
1166
  position: 'absolute',
1146
1167
  top: {
1147
- xs: '-40px',
1168
+ xs: '-70px',
1148
1169
  sm: '-70px'
1149
1170
  },
1150
- zIndex: 1
1171
+ zIndex: 1,
1172
+ width: '100%',
1173
+ display: 'flex'
1151
1174
  }
1152
- }, " ", /*#__PURE__*/React.createElement(Typography, {
1175
+ }, ' ', /*#__PURE__*/React.createElement(Typography, {
1153
1176
  component: 'h2',
1154
1177
  dangerouslySetInnerHTML: {
1155
1178
  __html: title ? title : ''
1156
1179
  },
1157
1180
  sx: {
1158
1181
  height: '100%',
1182
+ textAlign: {
1183
+ xs: 'center',
1184
+ sm: 'left'
1185
+ },
1159
1186
  fontSize: {
1160
1187
  xl: '3em',
1161
1188
  lg: '3em',
@@ -1205,6 +1232,7 @@ function Item$3(props) {
1205
1232
  sx: {
1206
1233
  width: '100%',
1207
1234
  height: '140px',
1235
+ marginTop: '10px',
1208
1236
  transform: "translate(" + item.image_transform_x + "%, " + item.image_transform_y + "%) scale(" + (item.image_scale ? item.image_scale : '1') + ")"
1209
1237
  }
1210
1238
  }))));
@@ -3059,39 +3087,39 @@ function Layout(content) {
3059
3087
  preserveAspectRatio: 'xMidYMid slice'
3060
3088
  }
3061
3089
  };
3062
- var callToAction = "Ingresa a Keski Creator desde tu panel administrativo para editar esta vista.";
3090
+ var callToAction = 'Ingresa a Keski Creator desde tu panel administrativo para editar esta vista.';
3063
3091
  var infoLoadingMap = {
3064
3092
  'landing/content/1': {
3065
- title: "Página de inicio",
3066
- description: "Esta página es muy importante, aquí es la primera impresión de tus clientes. Agrega las secciones necesarias para que tu cliente te conozca, utiliza un diseño agradable y atractivo para captar su atención desde el primer momento. Personaliza el contenido para reflejar la esencia de tu marca y los valores de tu negocio."
3093
+ title: 'Página de inicio',
3094
+ description: 'Esta página es muy importante, aquí es la primera impresión de tus clientes. Agrega las secciones necesarias para que tu cliente te conozca, utiliza un diseño agradable y atractivo para captar su atención desde el primer momento. Personaliza el contenido para reflejar la esencia de tu marca y los valores de tu negocio.'
3067
3095
  },
3068
3096
  'landing/content/2': {
3069
- title: "Productos",
3070
- description: "En esta sección puedes detallar los productos que ofreces. Organiza tu catálogo y facilita la navegación."
3097
+ title: 'Productos',
3098
+ description: 'En esta sección puedes detallar los productos que ofreces. Organiza tu catálogo y facilita la navegación.'
3071
3099
  },
3072
3100
  'landing/content/3': {
3073
- title: "Nosotros",
3074
- description: "Aquí puedes contar la historia de tu empresa, presentar a tu equipo y destacar tus valores y misión. Es una excelente oportunidad para generar confianza y credibilidad. Usa esta sección para humanizar tu marca y conectar emocionalmente con tus visitantes."
3101
+ title: 'Nosotros',
3102
+ description: 'Aquí puedes contar la historia de tu empresa, presentar a tu equipo y destacar tus valores y misión. Es una excelente oportunidad para generar confianza y credibilidad. Usa esta sección para humanizar tu marca y conectar emocionalmente con tus visitantes.'
3075
3103
  },
3076
3104
  'landing/content/4': {
3077
- title: "Catálogo",
3078
- description: "Muestra una lista detallada de todos los productos o servicios que ofreces. Organiza tu catálogo de manera que sea fácil de navegar y busca resaltar tus productos más populares o nuevos lanzamientos. Puedes incluir filtros y categorías para mejorar la experiencia del usuario."
3105
+ title: 'Catálogo',
3106
+ description: 'Muestra una lista detallada de todos los productos o servicios que ofreces. Organiza tu catálogo de manera que sea fácil de navegar y busca resaltar tus productos más populares o nuevos lanzamientos. Puedes incluir filtros y categorías para mejorar la experiencia del usuario.'
3079
3107
  },
3080
3108
  'landing/content/5': {
3081
- title: "Servicios",
3082
- description: "En esta página puedes detallar los diferentes servicios que ofreces. Describe cada servicio de manera clara y concisa, incluyendo sus beneficios y características. Utiliza imágenes y testimonios para reforzar la calidad de tus servicios y motivar a los visitantes a contactarte."
3109
+ title: 'Servicios',
3110
+ description: 'En esta página puedes detallar los diferentes servicios que ofreces. Describe cada servicio de manera clara y concisa, incluyendo sus beneficios y características. Utiliza imágenes y testimonios para reforzar la calidad de tus servicios y motivar a los visitantes a contactarte.'
3083
3111
  },
3084
3112
  'landing/content/6': {
3085
- title: "Blog",
3086
- description: "Comparte artículos, noticias y actualizaciones relacionadas con tu negocio. Un blog activo puede mejorar tu SEO y mantener a tus clientes informados y comprometidos. Publica contenido relevante y útil que pueda interesar a tus visitantes y mostrar tu expertise en la industria."
3113
+ title: 'Blog',
3114
+ description: 'Comparte artículos, noticias y actualizaciones relacionadas con tu negocio. Un blog activo puede mejorar tu SEO y mantener a tus clientes informados y comprometidos. Publica contenido relevante y útil que pueda interesar a tus visitantes y mostrar tu expertise en la industria.'
3087
3115
  },
3088
3116
  'landing/content/7': {
3089
- title: "Ubicación",
3090
- description: "Aquí puedes mostrar a tus clientes dónde estás ubicado. Incluye un mapa interactivo, tu dirección completa y cualquier otra información de contacto relevante. Si tienes varias ubicaciones, asegúrate de incluir detalles para cada una. También puedes agregar instrucciones sobre cómo llegar y el horario de atención."
3117
+ title: 'Ubicación',
3118
+ description: 'Aquí puedes mostrar a tus clientes dónde estás ubicado. Incluye un mapa interactivo, tu dirección completa y cualquier otra información de contacto relevante. Si tienes varias ubicaciones, asegúrate de incluir detalles para cada una. También puedes agregar instrucciones sobre cómo llegar y el horario de atención.'
3091
3119
  },
3092
- 'placeholder': {
3093
- title: "En construccion",
3094
- description: "Bienvenido a la página principal. Aquí encontrarás información general y acceso a las diferentes secciones."
3120
+ placeholder: {
3121
+ title: 'En construccion',
3122
+ description: 'Bienvenido a la página principal. Aquí encontrarás información general y acceso a las diferentes secciones.'
3095
3123
  }
3096
3124
  };
3097
3125
  var visible = true;
@@ -3105,8 +3133,8 @@ function Layout(content) {
3105
3133
  },
3106
3134
  height: {
3107
3135
  xs: '80vh',
3108
- sm: "80vh",
3109
- md: "80vh"
3136
+ sm: '80vh',
3137
+ md: '80vh'
3110
3138
  },
3111
3139
  backgroundPosition: 'center',
3112
3140
  justifyContent: 'center',
@@ -3126,18 +3154,18 @@ function Layout(content) {
3126
3154
  lg: '80vh'
3127
3155
  },
3128
3156
  justifyContent: 'center',
3129
- alignItems: "center",
3157
+ alignItems: 'center',
3130
3158
  paddingLeft: {
3131
- lg: "0px",
3132
- md: "24px",
3133
- sm: "16px",
3134
- xs: "16px"
3159
+ lg: '0px',
3160
+ md: '24px',
3161
+ sm: '16px',
3162
+ xs: '16px'
3135
3163
  },
3136
3164
  paddingRight: {
3137
- lg: "24px",
3138
- md: "24px",
3139
- sm: "16px",
3140
- xs: "16px"
3165
+ lg: '24px',
3166
+ md: '24px',
3167
+ sm: '16px',
3168
+ xs: '16px'
3141
3169
  },
3142
3170
  textAlign: 'center'
3143
3171
  }
@@ -3147,11 +3175,11 @@ function Layout(content) {
3147
3175
  marginBottom: '16px',
3148
3176
  whiteSpace: 'pre-wrap',
3149
3177
  fontSize: {
3150
- xs: "2em",
3151
- sm: "2em",
3152
- md: "3.75em",
3153
- lg: "3.75em",
3154
- xl: "3.75em"
3178
+ xs: '2em',
3179
+ sm: '2em',
3180
+ md: '3.75em',
3181
+ lg: '3.75em',
3182
+ xl: '3.75em'
3155
3183
  },
3156
3184
  color: '#60269E'
3157
3185
  }
@@ -3161,11 +3189,11 @@ function Layout(content) {
3161
3189
  marginBottom: '16px',
3162
3190
  justifyContent: 'center',
3163
3191
  fontSize: {
3164
- xs: "1.25em",
3165
- sm: "1.25em",
3166
- md: "1.25em",
3167
- lg: "1.25em",
3168
- xl: "1.25em"
3192
+ xs: '1.25em',
3193
+ sm: '1.25em',
3194
+ md: '1.25em',
3195
+ lg: '1.25em',
3196
+ xl: '1.25em'
3169
3197
  }
3170
3198
  }
3171
3199
  }, infoLoadingMap[content.component.view_placeholder].description), /*#__PURE__*/React.createElement(Lottie, {
@@ -3178,11 +3206,11 @@ function Layout(content) {
3178
3206
  marginBottom: '16px',
3179
3207
  justifyContent: 'center',
3180
3208
  fontSize: {
3181
- xs: "1.25em",
3182
- sm: "1.25em",
3183
- md: "1.25em",
3184
- lg: "1.25em",
3185
- xl: "1.25em"
3209
+ xs: '1.25em',
3210
+ sm: '1.25em',
3211
+ md: '1.25em',
3212
+ lg: '1.25em',
3213
+ xl: '1.25em'
3186
3214
  }
3187
3215
  }
3188
3216
  }, callToAction))));
@@ -3250,7 +3278,7 @@ var Sections = /*#__PURE__*/function () {
3250
3278
  '0': 'Banner',
3251
3279
  '1': 'Texto + Imágenes',
3252
3280
  '2': 'Citas/Testimonios',
3253
- '3': 'Galeria',
3281
+ '3': 'Galería',
3254
3282
  '4': 'Texto',
3255
3283
  '5': 'Lista',
3256
3284
  '6': 'Marcas',