keski_lib_catalog 1.2.7 → 1.3.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.
@@ -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;
@@ -412,7 +444,7 @@ function Layout1$2(content) {
412
444
  target: ((_content$component$su17 = content.component.subcomponent[0]) === null || _content$component$su17 === void 0 ? void 0 : _content$component$su17.link) == 4 ? '_blank' : '_self',
413
445
  sx: {
414
446
  width: 'auto',
415
- padding: '14px 40px',
447
+ padding: '8px 20px',
416
448
  borderRadius: '40px'
417
449
  }
418
450
  }, (_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 +486,7 @@ var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
454
486
  }(AtomicElements);
455
487
 
456
488
  function Layout1$3(content) {
457
- var _content$component$su;
489
+ var _content$component$su, _content$component$su2, _content$component$su3;
458
490
  var visible = true;
459
491
  return /*#__PURE__*/React.createElement(Slide, {
460
492
  direction: "left",
@@ -464,31 +496,78 @@ function Layout1$3(content) {
464
496
  width: '100%'
465
497
  }
466
498
  }, /*#__PURE__*/React.createElement(Typography, {
467
- className: "title-xlarge",
499
+ dangerouslySetInnerHTML: {
500
+ __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'
501
+ },
468
502
  sx: {
469
- margin: '16px auto',
470
- whiteSpace: 'pre-wrap'
503
+ whiteSpace: 'pre-wrap',
504
+ fontSize: {
505
+ xs: "1.875em",
506
+ sm: "1.875em",
507
+ md: "2.25em",
508
+ lg: "3em",
509
+ xl: "3em"
510
+ }
471
511
  }
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) {
512
+ }), /*#__PURE__*/React.createElement(Grid$1, {
513
+ container: true,
514
+ spacing: 2,
515
+ alignItems: "center",
516
+ justifyContent: "center",
517
+ direction: {
518
+ xl: "row",
519
+ lg: "row",
520
+ md: "row",
521
+ sm: "column",
522
+ xs: "column"
523
+ }
524
+ }, (_content$component$su3 = content.component.subcomponent) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.map(function (img, index) {
475
525
  return /*#__PURE__*/React.createElement(Grid$1, {
476
526
  key: index,
477
527
  item: true,
478
528
  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',
529
+ sm: 12,
530
+ md: 4,
531
+ lg: 4,
532
+ xl: 4
533
+ }, /*#__PURE__*/React.createElement(Card, {
534
+ elevation: 0,
483
535
  sx: {
536
+ borderRadius: '50px',
484
537
  width: {
485
- xs: '100%',
486
- md: '95%'
538
+ xl: '350px',
539
+ lg: '350px',
540
+ md: '350px',
541
+ sm: '700px',
542
+ xs: '250px'
487
543
  },
488
- aspectRatio: '16/9',
489
- marginBottom: '16px'
544
+ height: {
545
+ xl: '350px',
546
+ lg: '350px',
547
+ md: '350px',
548
+ sm: '700px',
549
+ xs: '250px'
550
+ }
490
551
  }
491
- }));
552
+ }, /*#__PURE__*/React.createElement(CardMedia, {
553
+ sx: {
554
+ width: {
555
+ xl: '350px',
556
+ lg: '350px',
557
+ md: '350px',
558
+ sm: '700px',
559
+ xs: '250px'
560
+ },
561
+ height: {
562
+ xl: '350px',
563
+ lg: '350px',
564
+ md: '350px',
565
+ sm: '700px',
566
+ xs: '250px'
567
+ }
568
+ },
569
+ 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'
570
+ })));
492
571
  }))));
493
572
  }
494
573
 
@@ -585,7 +664,7 @@ function Layout1$5(content) {
585
664
  minHeight: '550px',
586
665
  width: '100%',
587
666
  margin: 'auto',
588
- padding: '8px'
667
+ padding: '0px'
589
668
  }
590
669
  }, /*#__PURE__*/React.createElement(Item$2, {
591
670
  title: content.component.title,
@@ -680,22 +759,31 @@ function Item$2(props) {
680
759
  top: '-50px'
681
760
  }
682
761
  }, /*#__PURE__*/React.createElement(Typography, {
683
- className: "title-xlarge",
762
+ dangerouslySetInnerHTML: {
763
+ __html: title ? title : 'Agregue un título'
764
+ },
684
765
  sx: {
685
- height: '100%'
766
+ height: '100%',
767
+ fontSize: {
768
+ xl: '3em',
769
+ lg: '3em',
770
+ md: '2.25em',
771
+ sm: '1.875em',
772
+ xs: '1.875em'
773
+ }
686
774
  }
687
- }, title ? title : 'Agregue un título')), items.map(function (item, j) {
775
+ })), items.map(function (item, j) {
688
776
  var _ref;
689
777
  return /*#__PURE__*/React.createElement(Grid$1, {
690
778
  item: true,
691
- className: "containerdegrid",
692
779
  key: j,
693
780
  sm: 6,
694
781
  md: 4,
695
782
  lg: 3,
783
+ xl: 3,
696
784
  sx: {
697
785
  margin: {
698
- xs: 'auto',
786
+ xs: '0px',
699
787
  sm: '0px'
700
788
  },
701
789
  width: 'object-fit',
@@ -703,8 +791,8 @@ function Item$2(props) {
703
791
  justifyContent: 'center',
704
792
  alignItems: 'center',
705
793
  '&.MuiGrid-item': {
706
- paddingLeft: '0px',
707
- paddingTop: '0px'
794
+ paddingLeft: '10px',
795
+ paddingTop: '10px'
708
796
  }
709
797
  }
710
798
  }, /*#__PURE__*/React.createElement(Slide, {
@@ -719,8 +807,8 @@ function Item$2(props) {
719
807
  }, _ref["borderRadius"] = '10px', _ref.backgroundColor = '#fff', _ref.marginTop = '20px', _ref)
720
808
  }, /*#__PURE__*/React.createElement(CardMedia, {
721
809
  component: "img",
722
- height: "290px",
723
- width: "290px",
810
+ height: "305px",
811
+ width: "305px",
724
812
  image: item.image.url ? item.image.url : 'https://via.placeholder.com/300x300.png?text=No+Image',
725
813
  sx: {
726
814
  aspectRatio: '1/1'
@@ -734,17 +822,28 @@ function Item$2(props) {
734
822
  }
735
823
  }
736
824
  }, /*#__PURE__*/React.createElement(Typography, {
737
- className: "title",
825
+ dangerouslySetInnerHTML: {
826
+ __html: item.title ? item.title : 'Agrega título'
827
+ },
738
828
  sx: {
739
829
  display: '-webkit-box',
740
830
  WebkitLineClamp: 1,
741
831
  WebkitBoxOrient: 'vertical',
742
832
  overflow: 'hidden',
743
833
  textOverflow: 'ellipsis',
744
- whiteSpace: 'pre-wrap'
834
+ whiteSpace: 'pre-wrap',
835
+ fontSize: {
836
+ xs: '1em',
837
+ sm: '1em',
838
+ md: '1em',
839
+ lg: '1em',
840
+ xl: '1em'
841
+ }
745
842
  }
746
- }, item.title ? item.title : 'Agrega título'), /*#__PURE__*/React.createElement(Typography, {
747
- className: "middle",
843
+ }), /*#__PURE__*/React.createElement(Typography, {
844
+ dangerouslySetInnerHTML: {
845
+ __html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
846
+ },
748
847
  sx: {
749
848
  minHeight: '54px',
750
849
  display: '-webkit-box',
@@ -752,15 +851,25 @@ function Item$2(props) {
752
851
  WebkitBoxOrient: 'vertical',
753
852
  overflow: 'hidden',
754
853
  textOverflow: 'ellipsis',
755
- whiteSpace: 'pre-wrap'
854
+ whiteSpace: 'pre-wrap',
855
+ fontSize: {
856
+ xs: '1em',
857
+ sm: '1em',
858
+ md: '1em',
859
+ lg: '1em',
860
+ xl: '1em'
861
+ }
756
862
  }
757
- }, item.subtitle ? item.subtitle : 'Agrega subtítulo'), /*#__PURE__*/React.createElement(Button, {
863
+ }), /*#__PURE__*/React.createElement(Button, {
758
864
  variant: "contained",
759
865
  href: item.button_action ? item.button_action : '#',
760
866
  target: item.link == 4 ? '_blank' : '_self',
761
867
  sx: {
762
868
  width: 'auto',
763
- marginTop: '16px'
869
+ marginTop: '16px',
870
+ padding: '4px 10px',
871
+ borderRadius: '50px',
872
+ fontSize: '12px'
764
873
  }
765
874
  }, item.button_title ? item.button_title : 'Nombre botón')))));
766
875
  }));
@@ -776,8 +885,20 @@ function Item$2(props) {
776
885
  height: '40px'
777
886
  }
778
887
  }, /*#__PURE__*/React.createElement(Typography, {
779
- className: "title-xlarge"
780
- }, title ? title : 'Agregue un título')), content.map(function (item, i) {
888
+ dangerouslySetInnerHTML: {
889
+ __html: title ? title : 'Agregue un título'
890
+ },
891
+ sx: {
892
+ height: '100%',
893
+ fontSize: {
894
+ xl: '3em',
895
+ lg: '3em',
896
+ md: '2.25em',
897
+ sm: '1.875em',
898
+ xs: '1.875em'
899
+ }
900
+ }
901
+ })), content.map(function (item, i) {
781
902
  var _ref2;
782
903
  return /*#__PURE__*/React.createElement(Grid$1, {
783
904
  item: true,
@@ -819,17 +940,28 @@ function Item$2(props) {
819
940
  }
820
941
  }
821
942
  }, /*#__PURE__*/React.createElement(Typography, {
822
- className: "title",
943
+ dangerouslySetInnerHTML: {
944
+ __html: item.title ? item.title : 'Agrega título'
945
+ },
823
946
  sx: {
824
947
  display: '-webkit-box',
825
948
  WebkitLineClamp: 1,
826
949
  WebkitBoxOrient: 'vertical',
827
950
  overflow: 'hidden',
828
951
  textOverflow: 'ellipsis',
829
- whiteSpace: 'pre-wrap'
952
+ whiteSpace: 'pre-wrap',
953
+ fontSize: {
954
+ xs: '1em',
955
+ sm: '1em',
956
+ md: '1em',
957
+ lg: '1em',
958
+ xl: '1em'
959
+ }
830
960
  }
831
- }, item.title ? item.title : 'Agrega título'), /*#__PURE__*/React.createElement(Typography, {
832
- className: "middle",
961
+ }), /*#__PURE__*/React.createElement(Typography, {
962
+ dangerouslySetInnerHTML: {
963
+ __html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
964
+ },
833
965
  sx: {
834
966
  minHeight: '54px',
835
967
  display: '-webkit-box',
@@ -837,9 +969,16 @@ function Item$2(props) {
837
969
  WebkitBoxOrient: 'vertical',
838
970
  overflow: 'hidden',
839
971
  textOverflow: 'ellipsis',
840
- whiteSpace: 'pre-wrap'
972
+ whiteSpace: 'pre-wrap',
973
+ fontSize: {
974
+ xs: '1em',
975
+ sm: '1em',
976
+ md: '1em',
977
+ lg: '1em',
978
+ xl: '1em'
979
+ }
841
980
  }
842
- }, item.subtitle ? item.subtitle : 'Agrega subtítulo'), /*#__PURE__*/React.createElement(Button, {
981
+ }), /*#__PURE__*/React.createElement(Button, {
843
982
  variant: "contained",
844
983
  href: item.button_action ? item.button_action : '#',
845
984
  target: item.link == 4 ? '_blank' : '_self',
@@ -1055,7 +1194,13 @@ function CanvasContainer(props) {
1055
1194
  lg: '0px 24px',
1056
1195
  sm: '0px 0px',
1057
1196
  xs: '0px 0px'
1058
- } : '64px 24px',
1197
+ } : {
1198
+ xl: '64px 24px',
1199
+ lg: '64px 24px',
1200
+ md: '64px 0px',
1201
+ sm: '64px 0px',
1202
+ xs: '64px 0px'
1203
+ },
1059
1204
  width: '100%',
1060
1205
  height: '100%'
1061
1206
  }
@@ -1067,7 +1212,9 @@ function CanvasContainer(props) {
1067
1212
  paddingLeft: json.type == 0 ? {
1068
1213
  sx: '0px',
1069
1214
  sm: '0px',
1070
- md: '0px'
1215
+ md: '0px',
1216
+ lg: '24px',
1217
+ xl: '24px'
1071
1218
  } : {
1072
1219
  xs: '24px',
1073
1220
  md: '24px',
@@ -1078,7 +1225,9 @@ function CanvasContainer(props) {
1078
1225
  paddingRight: json.type == 0 ? {
1079
1226
  sx: '0px',
1080
1227
  sm: '0px',
1081
- md: '0px'
1228
+ md: '0px',
1229
+ lg: '24px',
1230
+ xl: '24px'
1082
1231
  } : {
1083
1232
  xs: '24px',
1084
1233
  md: '24px',