keski_lib_catalog 1.4.4 → 1.5.0

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 CHANGED
@@ -5,10 +5,10 @@ var React__default = _interopDefault(React);
5
5
  var Carousel = _interopDefault(require('react-material-ui-carousel'));
6
6
  var material = require('@mui/material');
7
7
  var Avatar = _interopDefault(require('@mui/material/Avatar'));
8
- var styles = require('@mui/material/styles');
9
- var Paper = _interopDefault(require('@mui/material/Paper'));
10
8
  var Grid = _interopDefault(require('@mui/material/Grid'));
11
9
  var Grow = _interopDefault(require('@mui/material/Grow'));
10
+ var Paper = _interopDefault(require('@mui/material/Paper'));
11
+ var styles = require('@mui/material/styles');
12
12
  var Lottie = _interopDefault(require('react-lottie'));
13
13
 
14
14
  function _extends() {
@@ -256,9 +256,9 @@ function Layout1$1(content) {
256
256
  xs: '100%'
257
257
  },
258
258
  height: {
259
- xs: '80vh',
260
- sm: '80vh',
261
- md: '80vh'
259
+ xs: '90vh',
260
+ sm: '50vh',
261
+ md: '95vh'
262
262
  },
263
263
  backgroundSize: 'cover',
264
264
  backgroundPosition: 'center',
@@ -387,7 +387,8 @@ function Layout1$2(content) {
387
387
  return /*#__PURE__*/React__default.createElement(Grid, {
388
388
  container: true,
389
389
  alignItems: "center",
390
- direction: content.component.justify_content != 'right' ? 'row' : 'row-reverse'
390
+ direction: content.component.justify_content != 'right' ? 'row' : 'row-reverse',
391
+ mt: 10
391
392
  }, /*#__PURE__*/React__default.createElement(Grid, {
392
393
  item: true,
393
394
  xs: 12,
@@ -401,25 +402,25 @@ function Layout1$2(content) {
401
402
  }, /*#__PURE__*/React__default.createElement(Item$1, {
402
403
  elevation: 0,
403
404
  sx: {
404
- height: "100%",
405
- width: "100%",
406
- background: "none"
405
+ height: '100%',
406
+ width: '100%',
407
+ background: 'none'
407
408
  }
408
409
  }, /*#__PURE__*/React__default.createElement(material.Card, {
409
410
  elevation: 0,
410
411
  sx: {
411
- borderRadius: "24px",
412
- background: "none",
412
+ borderRadius: '24px',
413
+ background: 'none',
413
414
  backgroundSize: 'center',
414
415
  backgroundPosition: 'center'
415
416
  }
416
417
  }, /*#__PURE__*/React__default.createElement(material.CardMedia, {
417
418
  component: "img",
418
419
  sx: {
419
- width: "100%",
420
+ width: '100%',
420
421
  backgroundSize: 'center',
421
422
  backgroundPosition: 'center',
422
- transform: "translate(\n " + ((_content$component$su = content.component.subcomponent[0]) === null || _content$component$su === void 0 ? void 0 : _content$component$su.image_transform_x) + "%\n ,\n " + ((_content$component$su2 = content.component.subcomponent[0]) === null || _content$component$su2 === void 0 ? void 0 : _content$component$su2.image_transform_y) + "%)" + ("scale(" + ((_content$component$su3 = content.component.subcomponent[0]) !== null && _content$component$su3 !== void 0 && _content$component$su3.image_scale ? (_content$component$su4 = content.component.subcomponent[0]) === null || _content$component$su4 === void 0 ? void 0 : _content$component$su4.image_scale : "1") + ")")
423
+ transform: "translate(\n " + ((_content$component$su = content.component.subcomponent[0]) === null || _content$component$su === void 0 ? void 0 : _content$component$su.image_transform_x) + "%\n ,\n " + ((_content$component$su2 = content.component.subcomponent[0]) === null || _content$component$su2 === void 0 ? void 0 : _content$component$su2.image_transform_y) + "%)" + ("scale(" + ((_content$component$su3 = content.component.subcomponent[0]) !== null && _content$component$su3 !== void 0 && _content$component$su3.image_scale ? (_content$component$su4 = content.component.subcomponent[0]) === null || _content$component$su4 === void 0 ? void 0 : _content$component$su4.image_scale : '1') + ")")
423
424
  },
424
425
  alt: (_content$component$su5 = content.component.subcomponent[0]) !== null && _content$component$su5 !== void 0 && _content$component$su5.title ? (_content$component$su6 = content.component.subcomponent[0]) === null || _content$component$su6 === void 0 ? void 0 : _content$component$su6.title : 'imagen Keski',
425
426
  image: (_content$component$su7 = content.component.subcomponent[0]) !== null && _content$component$su7 !== void 0 && _content$component$su7.image ? (_content$component$su8 = content.component.subcomponent[0]) === null || _content$component$su8 === void 0 ? void 0 : _content$component$su8.image.url : 'none'
@@ -433,10 +434,10 @@ function Layout1$2(content) {
433
434
  }, /*#__PURE__*/React__default.createElement(Item$1, {
434
435
  elevation: 0,
435
436
  sx: {
436
- height: "100%",
437
- width: "100%",
438
- background: "none",
439
- paddingTop: "48px"
437
+ height: '100%',
438
+ width: '100%',
439
+ background: 'none',
440
+ paddingTop: '48px'
440
441
  }
441
442
  })), /*#__PURE__*/React__default.createElement(Grid, {
442
443
  item: true,
@@ -455,9 +456,9 @@ function Layout1$2(content) {
455
456
  } ), /*#__PURE__*/React__default.createElement(Item$1, {
456
457
  elevation: 0,
457
458
  sx: {
458
- height: "100%",
459
- width: "100%",
460
- background: "none"
459
+ height: '100%',
460
+ width: '100%',
461
+ background: 'none'
461
462
  }
462
463
  }, /*#__PURE__*/React__default.createElement(material.Box, null, ((_content$component$su9 = content.component.subcomponent[0]) === null || _content$component$su9 === void 0 ? void 0 : _content$component$su9.label_active) && /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Chip, {
463
464
  disabled: true,
@@ -481,11 +482,11 @@ function Layout1$2(content) {
481
482
  sx: {
482
483
  whiteSpace: 'pre-wrap',
483
484
  fontSize: {
484
- xs: "2em",
485
- sm: "2em",
486
- md: "2em",
487
- lg: "2em",
488
- xl: "2em"
485
+ xs: '2em',
486
+ sm: '2em',
487
+ md: '2em',
488
+ lg: '2em',
489
+ xl: '2em'
489
490
  }
490
491
  }
491
492
  })), /*#__PURE__*/React__default.createElement(material.Box, {
@@ -500,11 +501,11 @@ function Layout1$2(content) {
500
501
  sx: {
501
502
  whiteSpace: 'pre-wrap',
502
503
  fontSize: {
503
- xs: "1.125em",
504
- sm: "1.125em",
505
- md: "1.125em",
506
- lg: "1.125em",
507
- xl: "1.125em"
504
+ xs: '1.125em',
505
+ sm: '1.125em',
506
+ md: '1.125em',
507
+ lg: '1.125em',
508
+ xl: '1.125em'
508
509
  }
509
510
  }
510
511
  })), ((_content$component$su17 = content.component.subcomponent[0]) === null || _content$component$su17 === void 0 ? void 0 : _content$component$su17.button_active) && /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Button, {
@@ -583,7 +584,7 @@ function Layout1$3(content) {
583
584
  }
584
585
  }), /*#__PURE__*/React__default.createElement(material.Grid, {
585
586
  container: true,
586
- spacing: 2,
587
+ spacing: 1,
587
588
  alignItems: "center",
588
589
  justifyContent: "center"
589
590
  }, (_content$component$su = content.component.subcomponent) === null || _content$component$su === void 0 ? void 0 : _content$component$su.map(function (img, index) {
@@ -777,26 +778,12 @@ function Item$2(props) {
777
778
  return null;
778
779
  } else {
779
780
  return content.length >= 1 ? /*#__PURE__*/React__default.createElement(Carousel, {
780
- autoPlay: false,
781
- indicators: false,
782
- navButtonsAlwaysVisible: true,
783
- navButtonsProps: {
784
- style: {
785
- backgroundColor: 'transparent',
786
- borderRadius: 0,
787
- color: '#767676'
788
- }
789
- },
790
- navButtonsWrapperProps: {
791
- style: {
792
- top: '0',
793
- bottom: 'unset'
794
- }
795
- },
781
+ autoPlay: true,
782
+ indicators: true,
783
+ navButtonsAlwaysVisible: false,
796
784
  sx: {
797
785
  width: '100%',
798
- height: '520px',
799
- paddingTop: '70px',
786
+ height: '620px',
800
787
  '& .css-hn784z': {
801
788
  left: {
802
789
  xs: 'calc(100% - 120px)'
@@ -811,23 +798,20 @@ function Item$2(props) {
811
798
  return /*#__PURE__*/React__default.createElement(material.Grid, {
812
799
  container: true,
813
800
  key: i,
814
- spacing: 3,
801
+ spacing: 1,
815
802
  sx: {
816
803
  margin: 'auto',
817
804
  padding: 'auto'
818
805
  }
819
- }, /*#__PURE__*/React__default.createElement(material.Box, {
820
- sx: {
821
- position: 'absolute',
822
- top: {
823
- xs: '-20px',
824
- sm: '-50px'
825
- }
826
- }
827
- }, /*#__PURE__*/React__default.createElement(material.Typography, {
806
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
807
+ container: true,
808
+ justifyContent: 'center',
809
+ marginBottom: 1
810
+ }, /*#__PURE__*/React__default.createElement(material.Box, null, ' ', /*#__PURE__*/React__default.createElement(material.Typography, {
811
+ textAlign: 'center',
828
812
  component: 'h2',
829
813
  dangerouslySetInnerHTML: {
830
- __html: title ? title : 'Agregue un título'
814
+ __html: title ? title : ''
831
815
  },
832
816
  sx: {
833
817
  height: '100%',
@@ -839,27 +823,34 @@ function Item$2(props) {
839
823
  xs: '1.875em'
840
824
  }
841
825
  }
842
- })), items.map(function (item, j) {
826
+ }))), items.map(function (item, j) {
843
827
  var _ref;
844
828
  return /*#__PURE__*/React__default.createElement(material.Grid, {
845
829
  item: true,
846
830
  key: j,
847
- sm: 6,
831
+ sm: 5,
848
832
  md: 4,
849
- lg: 3,
850
- xl: 3,
833
+ lg: 2.9,
834
+ xl: 2.9,
851
835
  sx: {
852
836
  margin: {
853
837
  xs: '0px',
854
838
  sm: '0px'
855
839
  },
856
- width: 'object-fit',
857
- display: 'flex',
840
+ display: {
841
+ xs: '',
842
+ sm: 'flex'
843
+ },
858
844
  justifyContent: 'center',
859
845
  alignItems: 'center',
860
846
  '&.MuiGrid-item': {
861
- paddingLeft: '10px',
862
- paddingTop: '10px'
847
+ paddingLeft: {
848
+ xs: '35px',
849
+ sm: '55px',
850
+ md: '20px',
851
+ lg: '12px',
852
+ xl: '12px'
853
+ }
863
854
  }
864
855
  }
865
856
  }, /*#__PURE__*/React__default.createElement(material.Slide, {
@@ -891,12 +882,20 @@ function Item$2(props) {
891
882
  paddingBottom: '8px'
892
883
  }
893
884
  }
885
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
886
+ height: {
887
+ xs: '2vh',
888
+ sm: '2vh',
889
+ md: '3.1vh',
890
+ lg: '3.2vh',
891
+ xl: '3.2vh'
892
+ }
894
893
  }, /*#__PURE__*/React__default.createElement(material.Typography, {
895
- component: 'h3',
896
894
  dangerouslySetInnerHTML: {
897
895
  __html: item.title ? item.title : 'Agrega título'
898
896
  },
899
897
  sx: {
898
+ padding: '1px !important',
900
899
  display: '-webkit-box',
901
900
  WebkitLineClamp: 1,
902
901
  WebkitBoxOrient: 'vertical',
@@ -906,17 +905,19 @@ function Item$2(props) {
906
905
  fontSize: {
907
906
  xs: '1em',
908
907
  sm: '1em',
909
- md: '1em',
910
- lg: '1em',
911
- xl: '1em'
908
+ md: '1.3em',
909
+ lg: '1.3em',
910
+ xl: '1.3em'
912
911
  }
913
912
  }
914
- }), /*#__PURE__*/React__default.createElement(material.Typography, {
913
+ })), /*#__PURE__*/React__default.createElement(material.Grid, null, /*#__PURE__*/React__default.createElement(material.Typography, {
915
914
  component: 'p',
916
915
  dangerouslySetInnerHTML: {
917
916
  __html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
918
917
  },
919
918
  sx: {
919
+ padding: '1px !important',
920
+ maxHeight: '40px',
920
921
  display: '-webkit-box',
921
922
  WebkitLineClamp: 2,
922
923
  WebkitBoxOrient: 'vertical',
@@ -931,7 +932,15 @@ function Item$2(props) {
931
932
  xl: '1em'
932
933
  }
933
934
  }
934
- }), item.button_active && /*#__PURE__*/React__default.createElement(material.Button, {
935
+ })), item.button_active && /*#__PURE__*/React__default.createElement(material.Grid, {
936
+ height: {
937
+ xs: '2vh',
938
+ sm: '2vh',
939
+ md: '2vh',
940
+ lg: '2vh',
941
+ xl: '2vh'
942
+ }
943
+ }, /*#__PURE__*/React__default.createElement(material.Button, {
935
944
  variant: "contained",
936
945
  href: item.button_action ? item.button_action : '#',
937
946
  target: item.link == 4 ? '_blank' : '_self',
@@ -942,7 +951,7 @@ function Item$2(props) {
942
951
  borderRadius: '50px',
943
952
  fontSize: '12px'
944
953
  }
945
- }, item.button_title ? item.button_title : 'Nombre botón')))));
954
+ }, item.button_title ? item.button_title : 'Nombre botón'))))));
946
955
  }));
947
956
  })) : /*#__PURE__*/React__default.createElement(material.Grid, {
948
957
  container: true,
@@ -1089,13 +1098,7 @@ var List = /*#__PURE__*/function (_AtomicElements) {
1089
1098
 
1090
1099
  function Layout1$6(content) {
1091
1100
  return /*#__PURE__*/React__default.createElement(material.Grid, {
1092
- container: true,
1093
- sx: {
1094
- minHeight: '250px',
1095
- width: '100%',
1096
- margin: 'auto',
1097
- padding: '0px'
1098
- }
1101
+ container: true
1099
1102
  }, /*#__PURE__*/React__default.createElement(Item$3, {
1100
1103
  title: content.component.title,
1101
1104
  content: content.component.subcomponent,
@@ -1144,13 +1147,13 @@ function Item$3(props) {
1144
1147
  } else {
1145
1148
  return content.length >= 1 ? /*#__PURE__*/React__default.createElement(Carousel, {
1146
1149
  autoPlay: true,
1147
- indicators: false,
1150
+ indicators: true,
1148
1151
  swipe: true,
1149
1152
  cycleNavigation: true,
1150
1153
  sx: {
1151
1154
  width: '100%',
1152
- height: '250px',
1153
- paddingTop: '60px',
1155
+ height: '40vh',
1156
+ paddingTop: '20px',
1154
1157
  position: 'relative'
1155
1158
  }
1156
1159
  }, arrayFourElements.map(function (items, p) {
@@ -1159,33 +1162,21 @@ function Item$3(props) {
1159
1162
  key: p
1160
1163
  }, /*#__PURE__*/React__default.createElement(material.Grid, {
1161
1164
  container: true,
1162
- spacing: 0,
1163
1165
  sx: {
1164
- margin: 'auto',
1165
1166
  padding: 'auto'
1166
1167
  }
1167
- }, /*#__PURE__*/React__default.createElement(material.Box, {
1168
- sx: {
1169
- position: 'absolute',
1170
- top: {
1171
- xs: '-70px',
1172
- sm: '-70px'
1173
- },
1174
- zIndex: 1,
1175
- width: '100%',
1176
- display: 'flex'
1177
- }
1178
- }, ' ', /*#__PURE__*/React__default.createElement(material.Typography, {
1168
+ }, /*#__PURE__*/React__default.createElement(material.Grid, {
1169
+ container: true,
1170
+ justifyContent: 'center',
1171
+ marginBottom: 1
1172
+ }, /*#__PURE__*/React__default.createElement(material.Box, null, ' ', /*#__PURE__*/React__default.createElement(material.Typography, {
1173
+ textAlign: 'center',
1179
1174
  component: 'h2',
1180
1175
  dangerouslySetInnerHTML: {
1181
1176
  __html: title ? title : ''
1182
1177
  },
1183
1178
  sx: {
1184
1179
  height: '100%',
1185
- textAlign: {
1186
- xs: 'center',
1187
- sm: 'left'
1188
- },
1189
1180
  fontSize: {
1190
1181
  xl: '3em',
1191
1182
  lg: '3em',
@@ -1194,30 +1185,31 @@ function Item$3(props) {
1194
1185
  xs: '1.875em'
1195
1186
  }
1196
1187
  }
1197
- })), items.map(function (item, j) {
1198
- return /*#__PURE__*/React__default.createElement(material.Grid, {
1199
- item: true,
1200
- key: j,
1201
- xs: 12,
1202
- sm: 6,
1203
- md: 4,
1204
- lg: 3,
1205
- xl: 3,
1206
- sx: {
1207
- margin: {
1208
- xs: '0px',
1209
- sm: '0px'
1188
+ }))), /*#__PURE__*/React__default.createElement(material.Grid, {
1189
+ item: true,
1190
+ xs: 12,
1191
+ sm: 12,
1192
+ md: 12,
1193
+ lg: 12,
1194
+ xl: 12,
1195
+ sx: {
1196
+ width: 'object-fit',
1197
+ display: 'flex',
1198
+ justifyContent: 'center',
1199
+ alignItems: 'center',
1200
+ '&.MuiGrid-item': {
1201
+ paddingLeft: {
1202
+ xs: '80px',
1203
+ sm: '12px',
1204
+ md: '12px',
1205
+ lg: '12px',
1206
+ xl: '12px'
1210
1207
  },
1211
- width: 'object-fit',
1212
- display: 'flex',
1213
- justifyContent: 'center',
1214
- alignItems: 'center',
1215
- '&.MuiGrid-item': {
1216
- paddingLeft: '17px',
1217
- paddingTop: '10px'
1218
- }
1208
+ paddingTop: '10px'
1219
1209
  }
1220
- }, /*#__PURE__*/React__default.createElement(material.Slide, {
1210
+ }
1211
+ }, items.map(function (item, j) {
1212
+ return /*#__PURE__*/React__default.createElement(material.Slide, {
1221
1213
  direction: "left",
1222
1214
  "in": visible
1223
1215
  }, /*#__PURE__*/React__default.createElement(material.Card, {
@@ -1225,21 +1217,23 @@ function Item$3(props) {
1225
1217
  sx: {
1226
1218
  width: '100%',
1227
1219
  height: '100%',
1220
+ maxHeight: '200px',
1228
1221
  borderRadius: '10px',
1229
- background: 'none'
1222
+ background: 'none',
1223
+ margin: 'auto'
1230
1224
  }
1231
1225
  }, /*#__PURE__*/React__default.createElement(material.CardMedia, {
1232
1226
  component: "img",
1233
1227
  image: item.image ? item.image.url ? item.image.url : 'none' : 'none',
1234
1228
  alt: item.title ? item.title : 'none',
1235
1229
  sx: {
1236
- width: '100%',
1237
- height: '140px',
1238
- marginTop: '10px',
1239
- transform: "translate(" + item.image_transform_x + "%, " + item.image_transform_y + "%) scale(" + (item.image_scale ? item.image_scale : '1') + ")"
1230
+ width: '200px',
1231
+ height: 'auto',
1232
+ maxHeight: '200px',
1233
+ objectFit: 'contain'
1240
1234
  }
1241
- }))));
1242
- })));
1235
+ })));
1236
+ }))));
1243
1237
  })) : null;
1244
1238
  }
1245
1239
  }
@@ -1373,8 +1367,10 @@ function CanvasContainer(props) {
1373
1367
  backgroundColor: json.component.bg_type === 1 ? json.component.bg_color1 : undefined,
1374
1368
  backgroundImage: json.component.bg_type === 2 ? "linear-gradient(to " + json.component.bg_gradiant_orientation + ", " + json.component.bg_color1 + ", " + json.component.bg_color2 + ")" : json.component.bg_type === 3 ? "url(" + ((_json$component$bg_im = json.component.bg_image) === null || _json$component$bg_im === void 0 ? void 0 : _json$component$bg_im.url) + ")" : undefined,
1375
1369
  backgroundPosition: 'center',
1370
+ backgroundAttachment: 'fixed',
1376
1371
  backgroundSize: 'cover',
1377
- backgroundRepeat: 'no-repeat'
1372
+ backgroundRepeat: 'no-repeat',
1373
+ justifyContent: 'center'
1378
1374
  }
1379
1375
  }, /*#__PURE__*/React__default.createElement(material.Box, {
1380
1376
  sx: {