keski_lib_catalog 1.2.7 → 1.3.1

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.
@@ -101,7 +101,7 @@ function Item(props) {
101
101
  display: 'flex',
102
102
  width: {
103
103
  xs: '100%',
104
- md: '70%'
104
+ md: '100%'
105
105
  },
106
106
  justifyContent: getSideRender(side),
107
107
  margin: getSideMargin(side),
@@ -127,24 +127,53 @@ function Item(props) {
127
127
  marginBottom: '16px',
128
128
  borderRadius: '50%'
129
129
  }
130
+ }), /*#__PURE__*/React.createElement(Box, {
131
+ sx: {
132
+ width: {
133
+ xs: "100%",
134
+ xl: "90%",
135
+ lg: "90%"
136
+ }
137
+ }
138
+ }, /*#__PURE__*/React.createElement(Typography, {
139
+ dangerouslySetInnerHTML: {
140
+ __html: content.description ? content.description : 'Agregue título'
141
+ },
142
+ sx: {
143
+ marginBottom: '16px',
144
+ fontSize: {
145
+ xl: '1.75em',
146
+ lg: '1.75em',
147
+ md: '1.5em',
148
+ sm: '1.5em',
149
+ xs: '1.5em'
150
+ }
151
+ }
130
152
  }), /*#__PURE__*/React.createElement(Typography, {
131
- className: "xmiddle",
153
+ dangerouslySetInnerHTML: {
154
+ __html: content.subtitle ? content.subtitle : 'Agregue subtítulo'
155
+ },
132
156
  sx: {
133
157
  marginBottom: '16px',
134
- minHeight: {
135
- xs: '270px',
136
- md: '90px'
137
- },
138
- whiteSpace: 'pre-wrap'
158
+ fontSize: {
159
+ xl: '1.125em',
160
+ lg: '1.125em',
161
+ md: '1.125em',
162
+ sm: '1.125em',
163
+ xs: '1.125em'
164
+ }
139
165
  }
140
- }, content.description ? content.description : 'Agregue descripción'), /*#__PURE__*/React.createElement(Typography, {
141
- className: "small",
166
+ })), content.label_active && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Chip, {
167
+ disabled: true,
168
+ color: "info",
169
+ label: content.label ? content.label : 'Agregue etiqueta',
142
170
  sx: {
143
171
  marginBottom: '16px',
144
- textAlign: 'right',
145
- whiteSpace: 'pre-wrap'
172
+ fontSize: '1em',
173
+ borderRadius: '6px',
174
+ backgroundColor: content.label_color
146
175
  }
147
- }, content.subtitle ? content.subtitle : 'Agregue subtítulo'))));
176
+ })))));
148
177
  }
149
178
 
150
179
  var Quotes = /*#__PURE__*/function (_AtomicElements) {
@@ -158,6 +187,9 @@ var Quotes = /*#__PURE__*/function (_AtomicElements) {
158
187
  'type': 1,
159
188
  'subtitle': 'Subtitle',
160
189
  'description': 'Description',
190
+ 'label': 'Label',
191
+ 'label_color': 'Label color',
192
+ 'label_active': 'Label active',
161
193
  'image': 'sqr'
162
194
  }];
163
195
  return _this;
@@ -200,7 +232,7 @@ function Layout1$1(content) {
200
232
  lg: '80vh'
201
233
  },
202
234
  justifyContent: 'center',
203
- margin: '1em',
235
+ paddingLeft: content.component.bg_type === 3 ? '24px' : '0px',
204
236
  color: (_content$component$su3 = content.component.subcomponent[0]) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.text_color
205
237
  }
206
238
  }, ((_content$component$su4 = content.component.subcomponent[0]) === null || _content$component$su4 === void 0 ? void 0 : _content$component$su4.label_active) && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Chip, {
@@ -302,8 +334,20 @@ function Layout1$2(content) {
302
334
  lg: 6,
303
335
  xl: 6,
304
336
  sx: {
305
- paddingLeft: "16px",
306
- paddingRight: "16px",
337
+ paddingLeft: {
338
+ xl: "16px",
339
+ lg: "16px",
340
+ md: "16px",
341
+ sm: "0px",
342
+ xs: "0px"
343
+ },
344
+ paddingRight: {
345
+ xl: "16px",
346
+ lg: "16px",
347
+ md: "16px",
348
+ sm: "0px",
349
+ xs: "0px"
350
+ },
307
351
  paddingTop: "10px"
308
352
  }
309
353
  }, /*#__PURE__*/React.createElement(Slide, {
@@ -341,8 +385,20 @@ function Layout1$2(content) {
341
385
  lg: 6,
342
386
  xl: 6,
343
387
  sx: {
344
- paddingLeft: "16px",
345
- paddingRight: "16px",
388
+ paddingLeft: {
389
+ xl: "16px",
390
+ lg: "16px",
391
+ md: "16px",
392
+ sm: "0px",
393
+ xs: "0px"
394
+ },
395
+ paddingRight: {
396
+ xl: "16px",
397
+ lg: "16px",
398
+ md: "16px",
399
+ sm: "0px",
400
+ xs: "0px"
401
+ },
346
402
  paddingTop: "10px"
347
403
  }
348
404
  }, /*#__PURE__*/React.createElement(Grow, _extends({
@@ -412,7 +468,7 @@ function Layout1$2(content) {
412
468
  target: ((_content$component$su17 = content.component.subcomponent[0]) === null || _content$component$su17 === void 0 ? void 0 : _content$component$su17.link) == 4 ? '_blank' : '_self',
413
469
  sx: {
414
470
  width: 'auto',
415
- padding: '14px 40px',
471
+ padding: '8px 20px',
416
472
  borderRadius: '40px'
417
473
  }
418
474
  }, (_content$component$su18 = content.component.subcomponent[0]) !== null && _content$component$su18 !== void 0 && _content$component$su18.button_title ? (_content$component$su19 = content.component.subcomponent[0]) === null || _content$component$su19 === void 0 ? void 0 : _content$component$su19.button_title : 'Nombre botón')))))));
@@ -454,7 +510,7 @@ var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
454
510
  }(AtomicElements);
455
511
 
456
512
  function Layout1$3(content) {
457
- var _content$component$su;
513
+ var _content$component$su, _content$component$su2, _content$component$su3;
458
514
  var visible = true;
459
515
  return /*#__PURE__*/React.createElement(Slide, {
460
516
  direction: "left",
@@ -464,31 +520,78 @@ function Layout1$3(content) {
464
520
  width: '100%'
465
521
  }
466
522
  }, /*#__PURE__*/React.createElement(Typography, {
467
- className: "title-xlarge",
523
+ dangerouslySetInnerHTML: {
524
+ __html: (_content$component$su = content.component.subcomponent[0]) !== null && _content$component$su !== void 0 && _content$component$su.title ? (_content$component$su2 = content.component.subcomponent[0]) === null || _content$component$su2 === void 0 ? void 0 : _content$component$su2.title : 'Agregue titulo'
525
+ },
468
526
  sx: {
469
- margin: '16px auto',
470
- whiteSpace: 'pre-wrap'
527
+ whiteSpace: 'pre-wrap',
528
+ fontSize: {
529
+ xs: "1.875em",
530
+ sm: "1.875em",
531
+ md: "2.25em",
532
+ lg: "3em",
533
+ xl: "3em"
534
+ }
471
535
  }
472
- }, content.component.title ? content.component.title : 'Agregue un título'), /*#__PURE__*/React.createElement(Grid$1, {
473
- container: true
474
- }, (_content$component$su = content.component.subcomponent) === null || _content$component$su === void 0 ? void 0 : _content$component$su.map(function (img, index) {
536
+ }), /*#__PURE__*/React.createElement(Grid$1, {
537
+ container: true,
538
+ spacing: 2,
539
+ alignItems: "center",
540
+ justifyContent: "center",
541
+ direction: {
542
+ xl: "row",
543
+ lg: "row",
544
+ md: "row",
545
+ sm: "column",
546
+ xs: "column"
547
+ }
548
+ }, (_content$component$su3 = content.component.subcomponent) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.map(function (img, index) {
475
549
  return /*#__PURE__*/React.createElement(Grid$1, {
476
550
  key: index,
477
551
  item: true,
478
552
  xs: 12,
479
- md: 4
480
- }, /*#__PURE__*/React.createElement(Box, {
481
- component: "img",
482
- src: img.image.url ? img.image.url : 'https://wozapps-develop.s3.us-east-2.amazonaws.com/gerry/resources/landing/bbb84144-02cd-4cf8-a1be-21ba47e7c4fa.jpeg',
553
+ sm: 12,
554
+ md: 4,
555
+ lg: 4,
556
+ xl: 4
557
+ }, /*#__PURE__*/React.createElement(Card, {
558
+ elevation: 0,
483
559
  sx: {
560
+ borderRadius: '50px',
484
561
  width: {
485
- xs: '100%',
486
- md: '95%'
562
+ xl: '350px',
563
+ lg: '350px',
564
+ md: '450px',
565
+ sm: '700px',
566
+ xs: '250px'
487
567
  },
488
- aspectRatio: '16/9',
489
- marginBottom: '16px'
568
+ height: {
569
+ xl: '350px',
570
+ lg: '350px',
571
+ md: '450px',
572
+ sm: '700px',
573
+ xs: '250px'
574
+ }
490
575
  }
491
- }));
576
+ }, /*#__PURE__*/React.createElement(CardMedia, {
577
+ sx: {
578
+ width: {
579
+ xl: '350px',
580
+ lg: '350px',
581
+ md: '450px',
582
+ sm: '700px',
583
+ xs: '250px'
584
+ },
585
+ height: {
586
+ xl: '350px',
587
+ lg: '350px',
588
+ md: '450px',
589
+ sm: '700px',
590
+ xs: '250px'
591
+ }
592
+ },
593
+ image: img.image.url ? img.image.url : 'https://wozapps-develop.s3.us-east-2.amazonaws.com/gerry/resources/landing/bbb84144-02cd-4cf8-a1be-21ba47e7c4fa.jpeg'
594
+ })));
492
595
  }))));
493
596
  }
494
597
 
@@ -585,7 +688,7 @@ function Layout1$5(content) {
585
688
  minHeight: '550px',
586
689
  width: '100%',
587
690
  margin: 'auto',
588
- padding: '8px'
691
+ padding: '0px'
589
692
  }
590
693
  }, /*#__PURE__*/React.createElement(Item$2, {
591
694
  title: content.component.title,
@@ -680,22 +783,31 @@ function Item$2(props) {
680
783
  top: '-50px'
681
784
  }
682
785
  }, /*#__PURE__*/React.createElement(Typography, {
683
- className: "title-xlarge",
786
+ dangerouslySetInnerHTML: {
787
+ __html: title ? title : 'Agregue un título'
788
+ },
684
789
  sx: {
685
- height: '100%'
790
+ height: '100%',
791
+ fontSize: {
792
+ xl: '3em',
793
+ lg: '3em',
794
+ md: '2.25em',
795
+ sm: '1.875em',
796
+ xs: '1.875em'
797
+ }
686
798
  }
687
- }, title ? title : 'Agregue un título')), items.map(function (item, j) {
799
+ })), items.map(function (item, j) {
688
800
  var _ref;
689
801
  return /*#__PURE__*/React.createElement(Grid$1, {
690
802
  item: true,
691
- className: "containerdegrid",
692
803
  key: j,
693
804
  sm: 6,
694
805
  md: 4,
695
806
  lg: 3,
807
+ xl: 3,
696
808
  sx: {
697
809
  margin: {
698
- xs: 'auto',
810
+ xs: '0px',
699
811
  sm: '0px'
700
812
  },
701
813
  width: 'object-fit',
@@ -703,8 +815,8 @@ function Item$2(props) {
703
815
  justifyContent: 'center',
704
816
  alignItems: 'center',
705
817
  '&.MuiGrid-item': {
706
- paddingLeft: '0px',
707
- paddingTop: '0px'
818
+ paddingLeft: '10px',
819
+ paddingTop: '10px'
708
820
  }
709
821
  }
710
822
  }, /*#__PURE__*/React.createElement(Slide, {
@@ -719,8 +831,8 @@ function Item$2(props) {
719
831
  }, _ref["borderRadius"] = '10px', _ref.backgroundColor = '#fff', _ref.marginTop = '20px', _ref)
720
832
  }, /*#__PURE__*/React.createElement(CardMedia, {
721
833
  component: "img",
722
- height: "290px",
723
- width: "290px",
834
+ height: "305px",
835
+ width: "305px",
724
836
  image: item.image.url ? item.image.url : 'https://via.placeholder.com/300x300.png?text=No+Image',
725
837
  sx: {
726
838
  aspectRatio: '1/1'
@@ -734,17 +846,28 @@ function Item$2(props) {
734
846
  }
735
847
  }
736
848
  }, /*#__PURE__*/React.createElement(Typography, {
737
- className: "title",
849
+ dangerouslySetInnerHTML: {
850
+ __html: item.title ? item.title : 'Agrega título'
851
+ },
738
852
  sx: {
739
853
  display: '-webkit-box',
740
854
  WebkitLineClamp: 1,
741
855
  WebkitBoxOrient: 'vertical',
742
856
  overflow: 'hidden',
743
857
  textOverflow: 'ellipsis',
744
- whiteSpace: 'pre-wrap'
858
+ whiteSpace: 'pre-wrap',
859
+ fontSize: {
860
+ xs: '1em',
861
+ sm: '1em',
862
+ md: '1em',
863
+ lg: '1em',
864
+ xl: '1em'
865
+ }
745
866
  }
746
- }, item.title ? item.title : 'Agrega título'), /*#__PURE__*/React.createElement(Typography, {
747
- className: "middle",
867
+ }), /*#__PURE__*/React.createElement(Typography, {
868
+ dangerouslySetInnerHTML: {
869
+ __html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
870
+ },
748
871
  sx: {
749
872
  minHeight: '54px',
750
873
  display: '-webkit-box',
@@ -752,15 +875,25 @@ function Item$2(props) {
752
875
  WebkitBoxOrient: 'vertical',
753
876
  overflow: 'hidden',
754
877
  textOverflow: 'ellipsis',
755
- whiteSpace: 'pre-wrap'
878
+ whiteSpace: 'pre-wrap',
879
+ fontSize: {
880
+ xs: '1em',
881
+ sm: '1em',
882
+ md: '1em',
883
+ lg: '1em',
884
+ xl: '1em'
885
+ }
756
886
  }
757
- }, item.subtitle ? item.subtitle : 'Agrega subtítulo'), /*#__PURE__*/React.createElement(Button, {
887
+ }), item.button_active && /*#__PURE__*/React.createElement(Button, {
758
888
  variant: "contained",
759
889
  href: item.button_action ? item.button_action : '#',
760
890
  target: item.link == 4 ? '_blank' : '_self',
761
891
  sx: {
762
892
  width: 'auto',
763
- marginTop: '16px'
893
+ marginTop: '16px',
894
+ padding: '4px 10px',
895
+ borderRadius: '50px',
896
+ fontSize: '12px'
764
897
  }
765
898
  }, item.button_title ? item.button_title : 'Nombre botón')))));
766
899
  }));
@@ -776,8 +909,20 @@ function Item$2(props) {
776
909
  height: '40px'
777
910
  }
778
911
  }, /*#__PURE__*/React.createElement(Typography, {
779
- className: "title-xlarge"
780
- }, title ? title : 'Agregue un título')), content.map(function (item, i) {
912
+ dangerouslySetInnerHTML: {
913
+ __html: title ? title : 'Agregue un título'
914
+ },
915
+ sx: {
916
+ height: '100%',
917
+ fontSize: {
918
+ xl: '3em',
919
+ lg: '3em',
920
+ md: '2.25em',
921
+ sm: '1.875em',
922
+ xs: '1.875em'
923
+ }
924
+ }
925
+ })), content.map(function (item, i) {
781
926
  var _ref2;
782
927
  return /*#__PURE__*/React.createElement(Grid$1, {
783
928
  item: true,
@@ -819,17 +964,28 @@ function Item$2(props) {
819
964
  }
820
965
  }
821
966
  }, /*#__PURE__*/React.createElement(Typography, {
822
- className: "title",
967
+ dangerouslySetInnerHTML: {
968
+ __html: item.title ? item.title : 'Agrega título'
969
+ },
823
970
  sx: {
824
971
  display: '-webkit-box',
825
972
  WebkitLineClamp: 1,
826
973
  WebkitBoxOrient: 'vertical',
827
974
  overflow: 'hidden',
828
975
  textOverflow: 'ellipsis',
829
- whiteSpace: 'pre-wrap'
976
+ whiteSpace: 'pre-wrap',
977
+ fontSize: {
978
+ xs: '1em',
979
+ sm: '1em',
980
+ md: '1em',
981
+ lg: '1em',
982
+ xl: '1em'
983
+ }
830
984
  }
831
- }, item.title ? item.title : 'Agrega título'), /*#__PURE__*/React.createElement(Typography, {
832
- className: "middle",
985
+ }), /*#__PURE__*/React.createElement(Typography, {
986
+ dangerouslySetInnerHTML: {
987
+ __html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
988
+ },
833
989
  sx: {
834
990
  minHeight: '54px',
835
991
  display: '-webkit-box',
@@ -837,9 +993,16 @@ function Item$2(props) {
837
993
  WebkitBoxOrient: 'vertical',
838
994
  overflow: 'hidden',
839
995
  textOverflow: 'ellipsis',
840
- whiteSpace: 'pre-wrap'
996
+ whiteSpace: 'pre-wrap',
997
+ fontSize: {
998
+ xs: '1em',
999
+ sm: '1em',
1000
+ md: '1em',
1001
+ lg: '1em',
1002
+ xl: '1em'
1003
+ }
841
1004
  }
842
- }, item.subtitle ? item.subtitle : 'Agrega subtítulo'), /*#__PURE__*/React.createElement(Button, {
1005
+ }), /*#__PURE__*/React.createElement(Button, {
843
1006
  variant: "contained",
844
1007
  href: item.button_action ? item.button_action : '#',
845
1008
  target: item.link == 4 ? '_blank' : '_self',
@@ -863,6 +1026,7 @@ var List = /*#__PURE__*/function (_AtomicElements) {
863
1026
  'type': 1,
864
1027
  'title': 'Title',
865
1028
  'subtitle': 'Subtitle',
1029
+ 'button_active': 'Button active',
866
1030
  'button_title': 'Button Title',
867
1031
  'button_action': 'Button Action',
868
1032
  'image': 'sqr',
@@ -1055,7 +1219,13 @@ function CanvasContainer(props) {
1055
1219
  lg: '0px 24px',
1056
1220
  sm: '0px 0px',
1057
1221
  xs: '0px 0px'
1058
- } : '64px 24px',
1222
+ } : {
1223
+ xl: '64px 24px',
1224
+ lg: '64px 24px',
1225
+ md: '64px 0px',
1226
+ sm: '64px 0px',
1227
+ xs: '64px 0px'
1228
+ },
1059
1229
  width: '100%',
1060
1230
  height: '100%'
1061
1231
  }
@@ -1067,7 +1237,9 @@ function CanvasContainer(props) {
1067
1237
  paddingLeft: json.type == 0 ? {
1068
1238
  sx: '0px',
1069
1239
  sm: '0px',
1070
- md: '0px'
1240
+ md: '0px',
1241
+ lg: '24px',
1242
+ xl: '24px'
1071
1243
  } : {
1072
1244
  xs: '24px',
1073
1245
  md: '24px',
@@ -1078,7 +1250,9 @@ function CanvasContainer(props) {
1078
1250
  paddingRight: json.type == 0 ? {
1079
1251
  sx: '0px',
1080
1252
  sm: '0px',
1081
- md: '0px'
1253
+ md: '0px',
1254
+ lg: '24px',
1255
+ xl: '24px'
1082
1256
  } : {
1083
1257
  xs: '24px',
1084
1258
  md: '24px',