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.
package/dist/index.js CHANGED
@@ -104,7 +104,7 @@ function Item(props) {
104
104
  display: 'flex',
105
105
  width: {
106
106
  xs: '100%',
107
- md: '70%'
107
+ md: '100%'
108
108
  },
109
109
  justifyContent: getSideRender(side),
110
110
  margin: getSideMargin(side),
@@ -130,24 +130,53 @@ function Item(props) {
130
130
  marginBottom: '16px',
131
131
  borderRadius: '50%'
132
132
  }
133
+ }), /*#__PURE__*/React__default.createElement(material.Box, {
134
+ sx: {
135
+ width: {
136
+ xs: "100%",
137
+ xl: "90%",
138
+ lg: "90%"
139
+ }
140
+ }
141
+ }, /*#__PURE__*/React__default.createElement(material.Typography, {
142
+ dangerouslySetInnerHTML: {
143
+ __html: content.description ? content.description : 'Agregue título'
144
+ },
145
+ sx: {
146
+ marginBottom: '16px',
147
+ fontSize: {
148
+ xl: '1.75em',
149
+ lg: '1.75em',
150
+ md: '1.5em',
151
+ sm: '1.5em',
152
+ xs: '1.5em'
153
+ }
154
+ }
133
155
  }), /*#__PURE__*/React__default.createElement(material.Typography, {
134
- className: "xmiddle",
156
+ dangerouslySetInnerHTML: {
157
+ __html: content.subtitle ? content.subtitle : 'Agregue subtítulo'
158
+ },
135
159
  sx: {
136
160
  marginBottom: '16px',
137
- minHeight: {
138
- xs: '270px',
139
- md: '90px'
140
- },
141
- whiteSpace: 'pre-wrap'
161
+ fontSize: {
162
+ xl: '1.125em',
163
+ lg: '1.125em',
164
+ md: '1.125em',
165
+ sm: '1.125em',
166
+ xs: '1.125em'
167
+ }
142
168
  }
143
- }, content.description ? content.description : 'Agregue descripción'), /*#__PURE__*/React__default.createElement(material.Typography, {
144
- className: "small",
169
+ })), content.label_active && /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Chip, {
170
+ disabled: true,
171
+ color: "info",
172
+ label: content.label ? content.label : 'Agregue etiqueta',
145
173
  sx: {
146
174
  marginBottom: '16px',
147
- textAlign: 'right',
148
- whiteSpace: 'pre-wrap'
175
+ fontSize: '1em',
176
+ borderRadius: '6px',
177
+ backgroundColor: content.label_color
149
178
  }
150
- }, content.subtitle ? content.subtitle : 'Agregue subtítulo'))));
179
+ })))));
151
180
  }
152
181
 
153
182
  var Quotes = /*#__PURE__*/function (_AtomicElements) {
@@ -161,6 +190,9 @@ var Quotes = /*#__PURE__*/function (_AtomicElements) {
161
190
  'type': 1,
162
191
  'subtitle': 'Subtitle',
163
192
  'description': 'Description',
193
+ 'label': 'Label',
194
+ 'label_color': 'Label color',
195
+ 'label_active': 'Label active',
164
196
  'image': 'sqr'
165
197
  }];
166
198
  return _this;
@@ -203,7 +235,7 @@ function Layout1$1(content) {
203
235
  lg: '80vh'
204
236
  },
205
237
  justifyContent: 'center',
206
- margin: '1em',
238
+ paddingLeft: content.component.bg_type === 3 ? '24px' : '0px',
207
239
  color: (_content$component$su3 = content.component.subcomponent[0]) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.text_color
208
240
  }
209
241
  }, ((_content$component$su4 = content.component.subcomponent[0]) === null || _content$component$su4 === void 0 ? void 0 : _content$component$su4.label_active) && /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Chip, {
@@ -305,8 +337,20 @@ function Layout1$2(content) {
305
337
  lg: 6,
306
338
  xl: 6,
307
339
  sx: {
308
- paddingLeft: "16px",
309
- paddingRight: "16px",
340
+ paddingLeft: {
341
+ xl: "16px",
342
+ lg: "16px",
343
+ md: "16px",
344
+ sm: "0px",
345
+ xs: "0px"
346
+ },
347
+ paddingRight: {
348
+ xl: "16px",
349
+ lg: "16px",
350
+ md: "16px",
351
+ sm: "0px",
352
+ xs: "0px"
353
+ },
310
354
  paddingTop: "10px"
311
355
  }
312
356
  }, /*#__PURE__*/React__default.createElement(material.Slide, {
@@ -344,8 +388,20 @@ function Layout1$2(content) {
344
388
  lg: 6,
345
389
  xl: 6,
346
390
  sx: {
347
- paddingLeft: "16px",
348
- paddingRight: "16px",
391
+ paddingLeft: {
392
+ xl: "16px",
393
+ lg: "16px",
394
+ md: "16px",
395
+ sm: "0px",
396
+ xs: "0px"
397
+ },
398
+ paddingRight: {
399
+ xl: "16px",
400
+ lg: "16px",
401
+ md: "16px",
402
+ sm: "0px",
403
+ xs: "0px"
404
+ },
349
405
  paddingTop: "10px"
350
406
  }
351
407
  }, /*#__PURE__*/React__default.createElement(Grow, _extends({
@@ -415,7 +471,7 @@ function Layout1$2(content) {
415
471
  target: ((_content$component$su17 = content.component.subcomponent[0]) === null || _content$component$su17 === void 0 ? void 0 : _content$component$su17.link) == 4 ? '_blank' : '_self',
416
472
  sx: {
417
473
  width: 'auto',
418
- padding: '14px 40px',
474
+ padding: '8px 20px',
419
475
  borderRadius: '40px'
420
476
  }
421
477
  }, (_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')))))));
@@ -457,7 +513,7 @@ var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
457
513
  }(AtomicElements);
458
514
 
459
515
  function Layout1$3(content) {
460
- var _content$component$su;
516
+ var _content$component$su, _content$component$su2, _content$component$su3;
461
517
  var visible = true;
462
518
  return /*#__PURE__*/React__default.createElement(material.Slide, {
463
519
  direction: "left",
@@ -467,31 +523,78 @@ function Layout1$3(content) {
467
523
  width: '100%'
468
524
  }
469
525
  }, /*#__PURE__*/React__default.createElement(material.Typography, {
470
- className: "title-xlarge",
526
+ dangerouslySetInnerHTML: {
527
+ __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'
528
+ },
471
529
  sx: {
472
- margin: '16px auto',
473
- whiteSpace: 'pre-wrap'
530
+ whiteSpace: 'pre-wrap',
531
+ fontSize: {
532
+ xs: "1.875em",
533
+ sm: "1.875em",
534
+ md: "2.25em",
535
+ lg: "3em",
536
+ xl: "3em"
537
+ }
474
538
  }
475
- }, content.component.title ? content.component.title : 'Agregue un título'), /*#__PURE__*/React__default.createElement(material.Grid, {
476
- container: true
477
- }, (_content$component$su = content.component.subcomponent) === null || _content$component$su === void 0 ? void 0 : _content$component$su.map(function (img, index) {
539
+ }), /*#__PURE__*/React__default.createElement(material.Grid, {
540
+ container: true,
541
+ spacing: 2,
542
+ alignItems: "center",
543
+ justifyContent: "center",
544
+ direction: {
545
+ xl: "row",
546
+ lg: "row",
547
+ md: "row",
548
+ sm: "column",
549
+ xs: "column"
550
+ }
551
+ }, (_content$component$su3 = content.component.subcomponent) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.map(function (img, index) {
478
552
  return /*#__PURE__*/React__default.createElement(material.Grid, {
479
553
  key: index,
480
554
  item: true,
481
555
  xs: 12,
482
- md: 4
483
- }, /*#__PURE__*/React__default.createElement(material.Box, {
484
- component: "img",
485
- 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',
556
+ sm: 12,
557
+ md: 4,
558
+ lg: 4,
559
+ xl: 4
560
+ }, /*#__PURE__*/React__default.createElement(material.Card, {
561
+ elevation: 0,
486
562
  sx: {
563
+ borderRadius: '50px',
487
564
  width: {
488
- xs: '100%',
489
- md: '95%'
565
+ xl: '350px',
566
+ lg: '350px',
567
+ md: '450px',
568
+ sm: '700px',
569
+ xs: '250px'
490
570
  },
491
- aspectRatio: '16/9',
492
- marginBottom: '16px'
571
+ height: {
572
+ xl: '350px',
573
+ lg: '350px',
574
+ md: '450px',
575
+ sm: '700px',
576
+ xs: '250px'
577
+ }
493
578
  }
494
- }));
579
+ }, /*#__PURE__*/React__default.createElement(material.CardMedia, {
580
+ sx: {
581
+ width: {
582
+ xl: '350px',
583
+ lg: '350px',
584
+ md: '450px',
585
+ sm: '700px',
586
+ xs: '250px'
587
+ },
588
+ height: {
589
+ xl: '350px',
590
+ lg: '350px',
591
+ md: '450px',
592
+ sm: '700px',
593
+ xs: '250px'
594
+ }
595
+ },
596
+ 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'
597
+ })));
495
598
  }))));
496
599
  }
497
600
 
@@ -588,7 +691,7 @@ function Layout1$5(content) {
588
691
  minHeight: '550px',
589
692
  width: '100%',
590
693
  margin: 'auto',
591
- padding: '8px'
694
+ padding: '0px'
592
695
  }
593
696
  }, /*#__PURE__*/React__default.createElement(Item$2, {
594
697
  title: content.component.title,
@@ -683,22 +786,31 @@ function Item$2(props) {
683
786
  top: '-50px'
684
787
  }
685
788
  }, /*#__PURE__*/React__default.createElement(material.Typography, {
686
- className: "title-xlarge",
789
+ dangerouslySetInnerHTML: {
790
+ __html: title ? title : 'Agregue un título'
791
+ },
687
792
  sx: {
688
- height: '100%'
793
+ height: '100%',
794
+ fontSize: {
795
+ xl: '3em',
796
+ lg: '3em',
797
+ md: '2.25em',
798
+ sm: '1.875em',
799
+ xs: '1.875em'
800
+ }
689
801
  }
690
- }, title ? title : 'Agregue un título')), items.map(function (item, j) {
802
+ })), items.map(function (item, j) {
691
803
  var _ref;
692
804
  return /*#__PURE__*/React__default.createElement(material.Grid, {
693
805
  item: true,
694
- className: "containerdegrid",
695
806
  key: j,
696
807
  sm: 6,
697
808
  md: 4,
698
809
  lg: 3,
810
+ xl: 3,
699
811
  sx: {
700
812
  margin: {
701
- xs: 'auto',
813
+ xs: '0px',
702
814
  sm: '0px'
703
815
  },
704
816
  width: 'object-fit',
@@ -706,8 +818,8 @@ function Item$2(props) {
706
818
  justifyContent: 'center',
707
819
  alignItems: 'center',
708
820
  '&.MuiGrid-item': {
709
- paddingLeft: '0px',
710
- paddingTop: '0px'
821
+ paddingLeft: '10px',
822
+ paddingTop: '10px'
711
823
  }
712
824
  }
713
825
  }, /*#__PURE__*/React__default.createElement(material.Slide, {
@@ -722,8 +834,8 @@ function Item$2(props) {
722
834
  }, _ref["borderRadius"] = '10px', _ref.backgroundColor = '#fff', _ref.marginTop = '20px', _ref)
723
835
  }, /*#__PURE__*/React__default.createElement(material.CardMedia, {
724
836
  component: "img",
725
- height: "290px",
726
- width: "290px",
837
+ height: "305px",
838
+ width: "305px",
727
839
  image: item.image.url ? item.image.url : 'https://via.placeholder.com/300x300.png?text=No+Image',
728
840
  sx: {
729
841
  aspectRatio: '1/1'
@@ -737,17 +849,28 @@ function Item$2(props) {
737
849
  }
738
850
  }
739
851
  }, /*#__PURE__*/React__default.createElement(material.Typography, {
740
- className: "title",
852
+ dangerouslySetInnerHTML: {
853
+ __html: item.title ? item.title : 'Agrega título'
854
+ },
741
855
  sx: {
742
856
  display: '-webkit-box',
743
857
  WebkitLineClamp: 1,
744
858
  WebkitBoxOrient: 'vertical',
745
859
  overflow: 'hidden',
746
860
  textOverflow: 'ellipsis',
747
- whiteSpace: 'pre-wrap'
861
+ whiteSpace: 'pre-wrap',
862
+ fontSize: {
863
+ xs: '1em',
864
+ sm: '1em',
865
+ md: '1em',
866
+ lg: '1em',
867
+ xl: '1em'
868
+ }
748
869
  }
749
- }, item.title ? item.title : 'Agrega título'), /*#__PURE__*/React__default.createElement(material.Typography, {
750
- className: "middle",
870
+ }), /*#__PURE__*/React__default.createElement(material.Typography, {
871
+ dangerouslySetInnerHTML: {
872
+ __html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
873
+ },
751
874
  sx: {
752
875
  minHeight: '54px',
753
876
  display: '-webkit-box',
@@ -755,15 +878,25 @@ function Item$2(props) {
755
878
  WebkitBoxOrient: 'vertical',
756
879
  overflow: 'hidden',
757
880
  textOverflow: 'ellipsis',
758
- whiteSpace: 'pre-wrap'
881
+ whiteSpace: 'pre-wrap',
882
+ fontSize: {
883
+ xs: '1em',
884
+ sm: '1em',
885
+ md: '1em',
886
+ lg: '1em',
887
+ xl: '1em'
888
+ }
759
889
  }
760
- }, item.subtitle ? item.subtitle : 'Agrega subtítulo'), /*#__PURE__*/React__default.createElement(material.Button, {
890
+ }), item.button_active && /*#__PURE__*/React__default.createElement(material.Button, {
761
891
  variant: "contained",
762
892
  href: item.button_action ? item.button_action : '#',
763
893
  target: item.link == 4 ? '_blank' : '_self',
764
894
  sx: {
765
895
  width: 'auto',
766
- marginTop: '16px'
896
+ marginTop: '16px',
897
+ padding: '4px 10px',
898
+ borderRadius: '50px',
899
+ fontSize: '12px'
767
900
  }
768
901
  }, item.button_title ? item.button_title : 'Nombre botón')))));
769
902
  }));
@@ -779,8 +912,20 @@ function Item$2(props) {
779
912
  height: '40px'
780
913
  }
781
914
  }, /*#__PURE__*/React__default.createElement(material.Typography, {
782
- className: "title-xlarge"
783
- }, title ? title : 'Agregue un título')), content.map(function (item, i) {
915
+ dangerouslySetInnerHTML: {
916
+ __html: title ? title : 'Agregue un título'
917
+ },
918
+ sx: {
919
+ height: '100%',
920
+ fontSize: {
921
+ xl: '3em',
922
+ lg: '3em',
923
+ md: '2.25em',
924
+ sm: '1.875em',
925
+ xs: '1.875em'
926
+ }
927
+ }
928
+ })), content.map(function (item, i) {
784
929
  var _ref2;
785
930
  return /*#__PURE__*/React__default.createElement(material.Grid, {
786
931
  item: true,
@@ -822,17 +967,28 @@ function Item$2(props) {
822
967
  }
823
968
  }
824
969
  }, /*#__PURE__*/React__default.createElement(material.Typography, {
825
- className: "title",
970
+ dangerouslySetInnerHTML: {
971
+ __html: item.title ? item.title : 'Agrega título'
972
+ },
826
973
  sx: {
827
974
  display: '-webkit-box',
828
975
  WebkitLineClamp: 1,
829
976
  WebkitBoxOrient: 'vertical',
830
977
  overflow: 'hidden',
831
978
  textOverflow: 'ellipsis',
832
- whiteSpace: 'pre-wrap'
979
+ whiteSpace: 'pre-wrap',
980
+ fontSize: {
981
+ xs: '1em',
982
+ sm: '1em',
983
+ md: '1em',
984
+ lg: '1em',
985
+ xl: '1em'
986
+ }
833
987
  }
834
- }, item.title ? item.title : 'Agrega título'), /*#__PURE__*/React__default.createElement(material.Typography, {
835
- className: "middle",
988
+ }), /*#__PURE__*/React__default.createElement(material.Typography, {
989
+ dangerouslySetInnerHTML: {
990
+ __html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
991
+ },
836
992
  sx: {
837
993
  minHeight: '54px',
838
994
  display: '-webkit-box',
@@ -840,9 +996,16 @@ function Item$2(props) {
840
996
  WebkitBoxOrient: 'vertical',
841
997
  overflow: 'hidden',
842
998
  textOverflow: 'ellipsis',
843
- whiteSpace: 'pre-wrap'
999
+ whiteSpace: 'pre-wrap',
1000
+ fontSize: {
1001
+ xs: '1em',
1002
+ sm: '1em',
1003
+ md: '1em',
1004
+ lg: '1em',
1005
+ xl: '1em'
1006
+ }
844
1007
  }
845
- }, item.subtitle ? item.subtitle : 'Agrega subtítulo'), /*#__PURE__*/React__default.createElement(material.Button, {
1008
+ }), /*#__PURE__*/React__default.createElement(material.Button, {
846
1009
  variant: "contained",
847
1010
  href: item.button_action ? item.button_action : '#',
848
1011
  target: item.link == 4 ? '_blank' : '_self',
@@ -866,6 +1029,7 @@ var List = /*#__PURE__*/function (_AtomicElements) {
866
1029
  'type': 1,
867
1030
  'title': 'Title',
868
1031
  'subtitle': 'Subtitle',
1032
+ 'button_active': 'Button active',
869
1033
  'button_title': 'Button Title',
870
1034
  'button_action': 'Button Action',
871
1035
  'image': 'sqr',
@@ -1058,7 +1222,13 @@ function CanvasContainer(props) {
1058
1222
  lg: '0px 24px',
1059
1223
  sm: '0px 0px',
1060
1224
  xs: '0px 0px'
1061
- } : '64px 24px',
1225
+ } : {
1226
+ xl: '64px 24px',
1227
+ lg: '64px 24px',
1228
+ md: '64px 0px',
1229
+ sm: '64px 0px',
1230
+ xs: '64px 0px'
1231
+ },
1062
1232
  width: '100%',
1063
1233
  height: '100%'
1064
1234
  }
@@ -1070,7 +1240,9 @@ function CanvasContainer(props) {
1070
1240
  paddingLeft: json.type == 0 ? {
1071
1241
  sx: '0px',
1072
1242
  sm: '0px',
1073
- md: '0px'
1243
+ md: '0px',
1244
+ lg: '24px',
1245
+ xl: '24px'
1074
1246
  } : {
1075
1247
  xs: '24px',
1076
1248
  md: '24px',
@@ -1081,7 +1253,9 @@ function CanvasContainer(props) {
1081
1253
  paddingRight: json.type == 0 ? {
1082
1254
  sx: '0px',
1083
1255
  sm: '0px',
1084
- md: '0px'
1256
+ md: '0px',
1257
+ lg: '24px',
1258
+ xl: '24px'
1085
1259
  } : {
1086
1260
  xs: '24px',
1087
1261
  md: '24px',