keski_lib_catalog 1.2.6 → 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.
- package/dist/index.js +216 -65
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +216 -65
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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: '
|
|
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
|
-
|
|
156
|
+
dangerouslySetInnerHTML: {
|
|
157
|
+
__html: content.subtitle ? content.subtitle : 'Agregue subtítulo'
|
|
158
|
+
},
|
|
135
159
|
sx: {
|
|
136
160
|
marginBottom: '16px',
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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.
|
|
144
|
-
|
|
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
|
-
|
|
148
|
-
|
|
175
|
+
fontSize: '1em',
|
|
176
|
+
borderRadius: '6px',
|
|
177
|
+
backgroundColor: content.label_color
|
|
149
178
|
}
|
|
150
|
-
}
|
|
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;
|
|
@@ -415,7 +447,7 @@ function Layout1$2(content) {
|
|
|
415
447
|
target: ((_content$component$su17 = content.component.subcomponent[0]) === null || _content$component$su17 === void 0 ? void 0 : _content$component$su17.link) == 4 ? '_blank' : '_self',
|
|
416
448
|
sx: {
|
|
417
449
|
width: 'auto',
|
|
418
|
-
padding: '
|
|
450
|
+
padding: '8px 20px',
|
|
419
451
|
borderRadius: '40px'
|
|
420
452
|
}
|
|
421
453
|
}, (_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 +489,7 @@ var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
|
|
|
457
489
|
}(AtomicElements);
|
|
458
490
|
|
|
459
491
|
function Layout1$3(content) {
|
|
460
|
-
var _content$component$su;
|
|
492
|
+
var _content$component$su, _content$component$su2, _content$component$su3;
|
|
461
493
|
var visible = true;
|
|
462
494
|
return /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
463
495
|
direction: "left",
|
|
@@ -467,31 +499,78 @@ function Layout1$3(content) {
|
|
|
467
499
|
width: '100%'
|
|
468
500
|
}
|
|
469
501
|
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
470
|
-
|
|
502
|
+
dangerouslySetInnerHTML: {
|
|
503
|
+
__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'
|
|
504
|
+
},
|
|
471
505
|
sx: {
|
|
472
|
-
|
|
473
|
-
|
|
506
|
+
whiteSpace: 'pre-wrap',
|
|
507
|
+
fontSize: {
|
|
508
|
+
xs: "1.875em",
|
|
509
|
+
sm: "1.875em",
|
|
510
|
+
md: "2.25em",
|
|
511
|
+
lg: "3em",
|
|
512
|
+
xl: "3em"
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
516
|
+
container: true,
|
|
517
|
+
spacing: 2,
|
|
518
|
+
alignItems: "center",
|
|
519
|
+
justifyContent: "center",
|
|
520
|
+
direction: {
|
|
521
|
+
xl: "row",
|
|
522
|
+
lg: "row",
|
|
523
|
+
md: "row",
|
|
524
|
+
sm: "column",
|
|
525
|
+
xs: "column"
|
|
474
526
|
}
|
|
475
|
-
},
|
|
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) {
|
|
527
|
+
}, (_content$component$su3 = content.component.subcomponent) === null || _content$component$su3 === void 0 ? void 0 : _content$component$su3.map(function (img, index) {
|
|
478
528
|
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
479
529
|
key: index,
|
|
480
530
|
item: true,
|
|
481
531
|
xs: 12,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
532
|
+
sm: 12,
|
|
533
|
+
md: 4,
|
|
534
|
+
lg: 4,
|
|
535
|
+
xl: 4
|
|
536
|
+
}, /*#__PURE__*/React__default.createElement(material.Card, {
|
|
537
|
+
elevation: 0,
|
|
486
538
|
sx: {
|
|
539
|
+
borderRadius: '50px',
|
|
487
540
|
width: {
|
|
488
|
-
|
|
489
|
-
|
|
541
|
+
xl: '350px',
|
|
542
|
+
lg: '350px',
|
|
543
|
+
md: '350px',
|
|
544
|
+
sm: '700px',
|
|
545
|
+
xs: '250px'
|
|
490
546
|
},
|
|
491
|
-
|
|
492
|
-
|
|
547
|
+
height: {
|
|
548
|
+
xl: '350px',
|
|
549
|
+
lg: '350px',
|
|
550
|
+
md: '350px',
|
|
551
|
+
sm: '700px',
|
|
552
|
+
xs: '250px'
|
|
553
|
+
}
|
|
493
554
|
}
|
|
494
|
-
}
|
|
555
|
+
}, /*#__PURE__*/React__default.createElement(material.CardMedia, {
|
|
556
|
+
sx: {
|
|
557
|
+
width: {
|
|
558
|
+
xl: '350px',
|
|
559
|
+
lg: '350px',
|
|
560
|
+
md: '350px',
|
|
561
|
+
sm: '700px',
|
|
562
|
+
xs: '250px'
|
|
563
|
+
},
|
|
564
|
+
height: {
|
|
565
|
+
xl: '350px',
|
|
566
|
+
lg: '350px',
|
|
567
|
+
md: '350px',
|
|
568
|
+
sm: '700px',
|
|
569
|
+
xs: '250px'
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
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'
|
|
573
|
+
})));
|
|
495
574
|
}))));
|
|
496
575
|
}
|
|
497
576
|
|
|
@@ -588,7 +667,7 @@ function Layout1$5(content) {
|
|
|
588
667
|
minHeight: '550px',
|
|
589
668
|
width: '100%',
|
|
590
669
|
margin: 'auto',
|
|
591
|
-
padding: '
|
|
670
|
+
padding: '0px'
|
|
592
671
|
}
|
|
593
672
|
}, /*#__PURE__*/React__default.createElement(Item$2, {
|
|
594
673
|
title: content.component.title,
|
|
@@ -683,22 +762,31 @@ function Item$2(props) {
|
|
|
683
762
|
top: '-50px'
|
|
684
763
|
}
|
|
685
764
|
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
686
|
-
|
|
765
|
+
dangerouslySetInnerHTML: {
|
|
766
|
+
__html: title ? title : 'Agregue un título'
|
|
767
|
+
},
|
|
687
768
|
sx: {
|
|
688
|
-
height: '100%'
|
|
769
|
+
height: '100%',
|
|
770
|
+
fontSize: {
|
|
771
|
+
xl: '3em',
|
|
772
|
+
lg: '3em',
|
|
773
|
+
md: '2.25em',
|
|
774
|
+
sm: '1.875em',
|
|
775
|
+
xs: '1.875em'
|
|
776
|
+
}
|
|
689
777
|
}
|
|
690
|
-
}
|
|
778
|
+
})), items.map(function (item, j) {
|
|
691
779
|
var _ref;
|
|
692
780
|
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
693
781
|
item: true,
|
|
694
|
-
className: "containerdegrid",
|
|
695
782
|
key: j,
|
|
696
783
|
sm: 6,
|
|
697
784
|
md: 4,
|
|
698
785
|
lg: 3,
|
|
786
|
+
xl: 3,
|
|
699
787
|
sx: {
|
|
700
788
|
margin: {
|
|
701
|
-
xs: '
|
|
789
|
+
xs: '0px',
|
|
702
790
|
sm: '0px'
|
|
703
791
|
},
|
|
704
792
|
width: 'object-fit',
|
|
@@ -706,8 +794,8 @@ function Item$2(props) {
|
|
|
706
794
|
justifyContent: 'center',
|
|
707
795
|
alignItems: 'center',
|
|
708
796
|
'&.MuiGrid-item': {
|
|
709
|
-
paddingLeft: '
|
|
710
|
-
paddingTop: '
|
|
797
|
+
paddingLeft: '10px',
|
|
798
|
+
paddingTop: '10px'
|
|
711
799
|
}
|
|
712
800
|
}
|
|
713
801
|
}, /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
@@ -722,8 +810,8 @@ function Item$2(props) {
|
|
|
722
810
|
}, _ref["borderRadius"] = '10px', _ref.backgroundColor = '#fff', _ref.marginTop = '20px', _ref)
|
|
723
811
|
}, /*#__PURE__*/React__default.createElement(material.CardMedia, {
|
|
724
812
|
component: "img",
|
|
725
|
-
height: "
|
|
726
|
-
width: "
|
|
813
|
+
height: "305px",
|
|
814
|
+
width: "305px",
|
|
727
815
|
image: item.image.url ? item.image.url : 'https://via.placeholder.com/300x300.png?text=No+Image',
|
|
728
816
|
sx: {
|
|
729
817
|
aspectRatio: '1/1'
|
|
@@ -737,17 +825,28 @@ function Item$2(props) {
|
|
|
737
825
|
}
|
|
738
826
|
}
|
|
739
827
|
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
740
|
-
|
|
828
|
+
dangerouslySetInnerHTML: {
|
|
829
|
+
__html: item.title ? item.title : 'Agrega título'
|
|
830
|
+
},
|
|
741
831
|
sx: {
|
|
742
832
|
display: '-webkit-box',
|
|
743
833
|
WebkitLineClamp: 1,
|
|
744
834
|
WebkitBoxOrient: 'vertical',
|
|
745
835
|
overflow: 'hidden',
|
|
746
836
|
textOverflow: 'ellipsis',
|
|
747
|
-
whiteSpace: 'pre-wrap'
|
|
837
|
+
whiteSpace: 'pre-wrap',
|
|
838
|
+
fontSize: {
|
|
839
|
+
xs: '1em',
|
|
840
|
+
sm: '1em',
|
|
841
|
+
md: '1em',
|
|
842
|
+
lg: '1em',
|
|
843
|
+
xl: '1em'
|
|
844
|
+
}
|
|
748
845
|
}
|
|
749
|
-
}
|
|
750
|
-
|
|
846
|
+
}), /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
847
|
+
dangerouslySetInnerHTML: {
|
|
848
|
+
__html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
|
|
849
|
+
},
|
|
751
850
|
sx: {
|
|
752
851
|
minHeight: '54px',
|
|
753
852
|
display: '-webkit-box',
|
|
@@ -755,15 +854,25 @@ function Item$2(props) {
|
|
|
755
854
|
WebkitBoxOrient: 'vertical',
|
|
756
855
|
overflow: 'hidden',
|
|
757
856
|
textOverflow: 'ellipsis',
|
|
758
|
-
whiteSpace: 'pre-wrap'
|
|
857
|
+
whiteSpace: 'pre-wrap',
|
|
858
|
+
fontSize: {
|
|
859
|
+
xs: '1em',
|
|
860
|
+
sm: '1em',
|
|
861
|
+
md: '1em',
|
|
862
|
+
lg: '1em',
|
|
863
|
+
xl: '1em'
|
|
864
|
+
}
|
|
759
865
|
}
|
|
760
|
-
}
|
|
866
|
+
}), /*#__PURE__*/React__default.createElement(material.Button, {
|
|
761
867
|
variant: "contained",
|
|
762
868
|
href: item.button_action ? item.button_action : '#',
|
|
763
869
|
target: item.link == 4 ? '_blank' : '_self',
|
|
764
870
|
sx: {
|
|
765
871
|
width: 'auto',
|
|
766
|
-
marginTop: '16px'
|
|
872
|
+
marginTop: '16px',
|
|
873
|
+
padding: '4px 10px',
|
|
874
|
+
borderRadius: '50px',
|
|
875
|
+
fontSize: '12px'
|
|
767
876
|
}
|
|
768
877
|
}, item.button_title ? item.button_title : 'Nombre botón')))));
|
|
769
878
|
}));
|
|
@@ -779,8 +888,20 @@ function Item$2(props) {
|
|
|
779
888
|
height: '40px'
|
|
780
889
|
}
|
|
781
890
|
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
782
|
-
|
|
783
|
-
|
|
891
|
+
dangerouslySetInnerHTML: {
|
|
892
|
+
__html: title ? title : 'Agregue un título'
|
|
893
|
+
},
|
|
894
|
+
sx: {
|
|
895
|
+
height: '100%',
|
|
896
|
+
fontSize: {
|
|
897
|
+
xl: '3em',
|
|
898
|
+
lg: '3em',
|
|
899
|
+
md: '2.25em',
|
|
900
|
+
sm: '1.875em',
|
|
901
|
+
xs: '1.875em'
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
})), content.map(function (item, i) {
|
|
784
905
|
var _ref2;
|
|
785
906
|
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
786
907
|
item: true,
|
|
@@ -822,17 +943,28 @@ function Item$2(props) {
|
|
|
822
943
|
}
|
|
823
944
|
}
|
|
824
945
|
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
825
|
-
|
|
946
|
+
dangerouslySetInnerHTML: {
|
|
947
|
+
__html: item.title ? item.title : 'Agrega título'
|
|
948
|
+
},
|
|
826
949
|
sx: {
|
|
827
950
|
display: '-webkit-box',
|
|
828
951
|
WebkitLineClamp: 1,
|
|
829
952
|
WebkitBoxOrient: 'vertical',
|
|
830
953
|
overflow: 'hidden',
|
|
831
954
|
textOverflow: 'ellipsis',
|
|
832
|
-
whiteSpace: 'pre-wrap'
|
|
955
|
+
whiteSpace: 'pre-wrap',
|
|
956
|
+
fontSize: {
|
|
957
|
+
xs: '1em',
|
|
958
|
+
sm: '1em',
|
|
959
|
+
md: '1em',
|
|
960
|
+
lg: '1em',
|
|
961
|
+
xl: '1em'
|
|
962
|
+
}
|
|
833
963
|
}
|
|
834
|
-
}
|
|
835
|
-
|
|
964
|
+
}), /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
965
|
+
dangerouslySetInnerHTML: {
|
|
966
|
+
__html: item.subtitle ? item.subtitle : 'Agrega subtítulo'
|
|
967
|
+
},
|
|
836
968
|
sx: {
|
|
837
969
|
minHeight: '54px',
|
|
838
970
|
display: '-webkit-box',
|
|
@@ -840,9 +972,16 @@ function Item$2(props) {
|
|
|
840
972
|
WebkitBoxOrient: 'vertical',
|
|
841
973
|
overflow: 'hidden',
|
|
842
974
|
textOverflow: 'ellipsis',
|
|
843
|
-
whiteSpace: 'pre-wrap'
|
|
975
|
+
whiteSpace: 'pre-wrap',
|
|
976
|
+
fontSize: {
|
|
977
|
+
xs: '1em',
|
|
978
|
+
sm: '1em',
|
|
979
|
+
md: '1em',
|
|
980
|
+
lg: '1em',
|
|
981
|
+
xl: '1em'
|
|
982
|
+
}
|
|
844
983
|
}
|
|
845
|
-
}
|
|
984
|
+
}), /*#__PURE__*/React__default.createElement(material.Button, {
|
|
846
985
|
variant: "contained",
|
|
847
986
|
href: item.button_action ? item.button_action : '#',
|
|
848
987
|
target: item.link == 4 ? '_blank' : '_self',
|
|
@@ -1058,7 +1197,13 @@ function CanvasContainer(props) {
|
|
|
1058
1197
|
lg: '0px 24px',
|
|
1059
1198
|
sm: '0px 0px',
|
|
1060
1199
|
xs: '0px 0px'
|
|
1061
|
-
} :
|
|
1200
|
+
} : {
|
|
1201
|
+
xl: '64px 24px',
|
|
1202
|
+
lg: '64px 24px',
|
|
1203
|
+
md: '64px 0px',
|
|
1204
|
+
sm: '64px 0px',
|
|
1205
|
+
xs: '64px 0px'
|
|
1206
|
+
},
|
|
1062
1207
|
width: '100%',
|
|
1063
1208
|
height: '100%'
|
|
1064
1209
|
}
|
|
@@ -1070,22 +1215,28 @@ function CanvasContainer(props) {
|
|
|
1070
1215
|
paddingLeft: json.type == 0 ? {
|
|
1071
1216
|
sx: '0px',
|
|
1072
1217
|
sm: '0px',
|
|
1073
|
-
md: '0px'
|
|
1218
|
+
md: '0px',
|
|
1219
|
+
lg: '24px',
|
|
1220
|
+
xl: '24px'
|
|
1074
1221
|
} : {
|
|
1075
|
-
xs: '
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1222
|
+
xs: '24px',
|
|
1223
|
+
md: '24px',
|
|
1224
|
+
sm: '24px',
|
|
1225
|
+
lg: '24px',
|
|
1226
|
+
xl: '24px'
|
|
1079
1227
|
},
|
|
1080
1228
|
paddingRight: json.type == 0 ? {
|
|
1081
1229
|
sx: '0px',
|
|
1082
1230
|
sm: '0px',
|
|
1083
|
-
md: '0px'
|
|
1231
|
+
md: '0px',
|
|
1232
|
+
lg: '24px',
|
|
1233
|
+
xl: '24px'
|
|
1084
1234
|
} : {
|
|
1085
|
-
xs: '
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1235
|
+
xs: '24px',
|
|
1236
|
+
md: '24px',
|
|
1237
|
+
sm: '24px',
|
|
1238
|
+
lg: '24px',
|
|
1239
|
+
xl: '24px'
|
|
1089
1240
|
}
|
|
1090
1241
|
}
|
|
1091
1242
|
}
|