keski_lib_catalog 1.0.35 → 1.0.37
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 +151 -49
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +151 -49
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -164,7 +164,7 @@ var Quotes = /*#__PURE__*/function (_AtomicElements) {
|
|
|
164
164
|
}(AtomicElements);
|
|
165
165
|
|
|
166
166
|
function Layout1$1(content) {
|
|
167
|
-
var _content$component$su, _content$component$su2, _content$component$su3, _content$component$su4, _content$component$su5, _content$component$su6, _content$component$su7, _content$component$su8;
|
|
167
|
+
var _content$component$su, _content$component$su2, _content$component$su3, _content$component$su4, _content$component$su5, _content$component$su6, _content$component$su7, _content$component$su8, _content$component$su9;
|
|
168
168
|
var visible = true;
|
|
169
169
|
return /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
170
170
|
direction: "left",
|
|
@@ -197,11 +197,12 @@ function Layout1$1(content) {
|
|
|
197
197
|
}, (_content$component$su4 = content.component.subcomponent[0]) !== null && _content$component$su4 !== void 0 && _content$component$su4.description ? (_content$component$su5 = content.component.subcomponent[0]) === null || _content$component$su5 === void 0 ? void 0 : _content$component$su5.description : 'Agregue descripción'), /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Button, {
|
|
198
198
|
variant: "contained",
|
|
199
199
|
href: (_content$component$su6 = content.component.subcomponent[0]) === null || _content$component$su6 === void 0 ? void 0 : _content$component$su6.button_action,
|
|
200
|
+
target: ((_content$component$su7 = content.component.subcomponent[0]) === null || _content$component$su7 === void 0 ? void 0 : _content$component$su7.link) == 4 ? '_blank' : '_self',
|
|
200
201
|
sx: {
|
|
201
202
|
width: 'auto',
|
|
202
203
|
marginBottom: '16px'
|
|
203
204
|
}
|
|
204
|
-
}, (_content$component$
|
|
205
|
+
}, (_content$component$su8 = content.component.subcomponent[0]) !== null && _content$component$su8 !== void 0 && _content$component$su8.button_title ? (_content$component$su9 = content.component.subcomponent[0]) === null || _content$component$su9 === void 0 ? void 0 : _content$component$su9.button_title : 'Nombre botón'))));
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
var Banner = /*#__PURE__*/function (_AtomicElements) {
|
|
@@ -217,7 +218,6 @@ var Banner = /*#__PURE__*/function (_AtomicElements) {
|
|
|
217
218
|
'description': 'Description',
|
|
218
219
|
'button_title': 'Button Title',
|
|
219
220
|
'button_action': 'Button action',
|
|
220
|
-
'image': 'background',
|
|
221
221
|
'text_color': 'Text color',
|
|
222
222
|
'link': 'Link'
|
|
223
223
|
}];
|
|
@@ -227,7 +227,7 @@ var Banner = /*#__PURE__*/function (_AtomicElements) {
|
|
|
227
227
|
}(AtomicElements);
|
|
228
228
|
|
|
229
229
|
function Layout1$2(content) {
|
|
230
|
-
var _content$component$su, _content$component$su2, _content$component$su3, _content$component$su4, _content$component$su5, _content$component$su6, _content$component$su7, _content$component$su8, _content$component$su9, _content$component$su10;
|
|
230
|
+
var _content$component$su, _content$component$su2, _content$component$su3, _content$component$su4, _content$component$su5, _content$component$su6, _content$component$su7, _content$component$su8, _content$component$su9, _content$component$su10, _content$component$su11;
|
|
231
231
|
var visible = true;
|
|
232
232
|
return /*#__PURE__*/React__default.createElement(material.Box, {
|
|
233
233
|
sx: {
|
|
@@ -283,10 +283,11 @@ function Layout1$2(content) {
|
|
|
283
283
|
}, (_content$component$su6 = content.component.subcomponent[0]) !== null && _content$component$su6 !== void 0 && _content$component$su6.description ? (_content$component$su7 = content.component.subcomponent[0]) === null || _content$component$su7 === void 0 ? void 0 : _content$component$su7.description : 'Agregue descripción')), /*#__PURE__*/React__default.createElement(material.Box, null, /*#__PURE__*/React__default.createElement(material.Button, {
|
|
284
284
|
variant: "contained",
|
|
285
285
|
href: (_content$component$su8 = content.component.subcomponent[0]) === null || _content$component$su8 === void 0 ? void 0 : _content$component$su8.button_action,
|
|
286
|
+
target: ((_content$component$su9 = content.component.subcomponent[0]) === null || _content$component$su9 === void 0 ? void 0 : _content$component$su9.link) == 4 ? '_blank' : '_self',
|
|
286
287
|
sx: {
|
|
287
288
|
width: 'auto'
|
|
288
289
|
}
|
|
289
|
-
}, (_content$component$
|
|
290
|
+
}, (_content$component$su10 = content.component.subcomponent[0]) !== null && _content$component$su10 !== void 0 && _content$component$su10.button_title ? (_content$component$su11 = content.component.subcomponent[0]) === null || _content$component$su11 === void 0 ? void 0 : _content$component$su11.button_title : 'Nombre botón'))))));
|
|
290
291
|
}
|
|
291
292
|
|
|
292
293
|
var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
|
|
@@ -302,7 +303,7 @@ var TextPlusImg = /*#__PURE__*/function (_AtomicElements) {
|
|
|
302
303
|
'description': 'Text',
|
|
303
304
|
'button_title': 'Button Title',
|
|
304
305
|
'button_action': 'Button Action',
|
|
305
|
-
'image': '
|
|
306
|
+
'image': 'req_hor',
|
|
306
307
|
'link': 'Link'
|
|
307
308
|
}, {
|
|
308
309
|
'type': 0,
|
|
@@ -364,7 +365,6 @@ var Gallery = /*#__PURE__*/function (_AtomicElements) {
|
|
|
364
365
|
_this.layoutFootprint = ['gallery_layout_1.png'];
|
|
365
366
|
_this.layoutFootprintReq = [{
|
|
366
367
|
'type': 1,
|
|
367
|
-
'title': 'Tittle',
|
|
368
368
|
'image': 'req_hor'
|
|
369
369
|
}];
|
|
370
370
|
return _this;
|
|
@@ -420,14 +420,23 @@ var Text = /*#__PURE__*/function (_AtomicElements) {
|
|
|
420
420
|
|
|
421
421
|
function Layout1$5(content) {
|
|
422
422
|
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
423
|
-
container: true
|
|
423
|
+
container: true,
|
|
424
|
+
sx: {
|
|
425
|
+
minHeight: '550px',
|
|
426
|
+
width: '100%',
|
|
427
|
+
margin: 'auto',
|
|
428
|
+
padding: '8px'
|
|
429
|
+
}
|
|
424
430
|
}, /*#__PURE__*/React__default.createElement(Item$1, {
|
|
431
|
+
title: content.component.title,
|
|
425
432
|
content: content.component.subcomponent,
|
|
426
433
|
side: content.component.justify_content
|
|
427
434
|
}));
|
|
428
435
|
}
|
|
429
436
|
function Item$1(props) {
|
|
430
|
-
var content = props.content
|
|
437
|
+
var content = props.content,
|
|
438
|
+
side = props.side,
|
|
439
|
+
title = props.title;
|
|
431
440
|
var _useState = React.useState([]),
|
|
432
441
|
arrayFourElements = _useState[0],
|
|
433
442
|
setArrayFourElements = _useState[1];
|
|
@@ -466,126 +475,216 @@ function Item$1(props) {
|
|
|
466
475
|
return null;
|
|
467
476
|
} else {
|
|
468
477
|
return content.length > 4 ? /*#__PURE__*/React__default.createElement(Carousel, {
|
|
469
|
-
autoPlay:
|
|
470
|
-
indicators:
|
|
478
|
+
autoPlay: false,
|
|
479
|
+
indicators: false,
|
|
471
480
|
navButtonsAlwaysVisible: true,
|
|
481
|
+
navButtonsProps: {
|
|
482
|
+
style: {
|
|
483
|
+
backgroundColor: 'transparent',
|
|
484
|
+
borderRadius: 0,
|
|
485
|
+
color: '#767676'
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
navButtonsWrapperProps: {
|
|
489
|
+
style: {
|
|
490
|
+
top: '0',
|
|
491
|
+
bottom: 'unset'
|
|
492
|
+
}
|
|
493
|
+
},
|
|
472
494
|
sx: {
|
|
473
495
|
width: '100%',
|
|
474
|
-
height: '
|
|
496
|
+
height: '520px',
|
|
497
|
+
paddingTop: '50px',
|
|
498
|
+
"& .css-hn784z": {
|
|
499
|
+
left: {
|
|
500
|
+
xs: 'calc(100% - 120px)'
|
|
501
|
+
},
|
|
502
|
+
height: 'auto'
|
|
503
|
+
},
|
|
504
|
+
"& .css-1abc02a": {
|
|
505
|
+
height: 'auto'
|
|
506
|
+
}
|
|
475
507
|
}
|
|
476
508
|
}, arrayFourElements.map(function (items, i) {
|
|
477
509
|
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
478
510
|
container: true,
|
|
479
511
|
key: i,
|
|
480
|
-
spacing: 3
|
|
481
|
-
|
|
512
|
+
spacing: 3,
|
|
513
|
+
sx: {
|
|
514
|
+
margin: 'auto',
|
|
515
|
+
padding: 'auto'
|
|
516
|
+
}
|
|
517
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
518
|
+
sx: {
|
|
519
|
+
position: 'absolute',
|
|
520
|
+
top: '-50px'
|
|
521
|
+
}
|
|
522
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
523
|
+
className: "title-xlarge",
|
|
524
|
+
sx: {
|
|
525
|
+
height: '100%'
|
|
526
|
+
}
|
|
527
|
+
}, title ? title : 'Agregue un título')), items.map(function (item, j) {
|
|
482
528
|
var _ref;
|
|
483
529
|
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
484
530
|
item: true,
|
|
531
|
+
className: "containerdegrid",
|
|
485
532
|
key: j,
|
|
486
533
|
sm: 6,
|
|
487
534
|
md: 4,
|
|
488
|
-
lg: 3
|
|
535
|
+
lg: 3,
|
|
536
|
+
sx: {
|
|
537
|
+
margin: {
|
|
538
|
+
xs: 'auto',
|
|
539
|
+
sm: '0px'
|
|
540
|
+
},
|
|
541
|
+
width: 'object-fit',
|
|
542
|
+
display: 'flex',
|
|
543
|
+
justifyContent: 'center',
|
|
544
|
+
alignItems: 'center',
|
|
545
|
+
'&.MuiGrid-item': {
|
|
546
|
+
paddingLeft: '0px',
|
|
547
|
+
paddingTop: '0px'
|
|
548
|
+
}
|
|
549
|
+
}
|
|
489
550
|
}, /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
490
551
|
direction: "left",
|
|
491
552
|
"in": visible
|
|
492
553
|
}, /*#__PURE__*/React__default.createElement(material.Card, {
|
|
493
554
|
sx: (_ref = {
|
|
494
|
-
|
|
495
|
-
maxWidth: 512,
|
|
555
|
+
maxWidth: 300,
|
|
496
556
|
boxShadow: 'none',
|
|
497
557
|
borderRadius: 0,
|
|
498
558
|
border: '1px solid #e5e5e5'
|
|
499
|
-
}, _ref["borderRadius"] = '10px', _ref)
|
|
559
|
+
}, _ref["borderRadius"] = '10px', _ref.backgroundColor = '#fff', _ref.marginTop = '20px', _ref)
|
|
500
560
|
}, /*#__PURE__*/React__default.createElement(material.CardMedia, {
|
|
501
561
|
component: "img",
|
|
502
|
-
height: "
|
|
503
|
-
width: "
|
|
504
|
-
image:
|
|
562
|
+
height: "290px",
|
|
563
|
+
width: "290px",
|
|
564
|
+
image: item.image.url ? item.image.url : 'https://via.placeholder.com/300x300.png?text=No+Image',
|
|
505
565
|
sx: {
|
|
506
566
|
aspectRatio: '1/1'
|
|
507
567
|
}
|
|
508
568
|
}), /*#__PURE__*/React__default.createElement(material.CardContent, {
|
|
509
569
|
sx: {
|
|
510
570
|
padding: '8px 16px',
|
|
571
|
+
textAlign: side,
|
|
511
572
|
'&.MuiCardContent-root:last-child': {
|
|
512
573
|
paddingBottom: '8px'
|
|
513
574
|
}
|
|
514
575
|
}
|
|
515
|
-
}, /*#__PURE__*/React__default.createElement(material.
|
|
516
|
-
|
|
576
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
577
|
+
className: "title",
|
|
517
578
|
sx: {
|
|
518
|
-
display: '
|
|
519
|
-
|
|
520
|
-
|
|
579
|
+
display: '-webkit-box',
|
|
580
|
+
WebkitLineClamp: 1,
|
|
581
|
+
WebkitBoxOrient: 'vertical',
|
|
582
|
+
overflow: 'hidden',
|
|
583
|
+
textOverflow: 'ellipsis'
|
|
521
584
|
}
|
|
522
|
-
}, /*#__PURE__*/React__default.createElement(material.
|
|
585
|
+
}, item.title ? item.title : 'Agrega título'), /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
586
|
+
className: "middle",
|
|
523
587
|
sx: {
|
|
524
|
-
|
|
588
|
+
minHeight: '54px',
|
|
525
589
|
display: '-webkit-box',
|
|
526
590
|
WebkitLineClamp: 2,
|
|
527
591
|
WebkitBoxOrient: 'vertical',
|
|
528
592
|
overflow: 'hidden',
|
|
529
593
|
textOverflow: 'ellipsis'
|
|
530
594
|
}
|
|
531
|
-
}, /*#__PURE__*/React__default.createElement(material.
|
|
532
|
-
|
|
533
|
-
|
|
595
|
+
}, item.subtitle ? item.subtitle : 'Agrega subtítulo'), /*#__PURE__*/React__default.createElement(material.Button, {
|
|
596
|
+
variant: "contained",
|
|
597
|
+
href: item.button_action ? item.button_action : '#',
|
|
598
|
+
target: item.link == 4 ? '_blank' : '_self',
|
|
599
|
+
sx: {
|
|
600
|
+
width: 'auto',
|
|
601
|
+
marginTop: '16px'
|
|
602
|
+
}
|
|
603
|
+
}, item.button_title ? item.button_title : 'Nombre botón')))));
|
|
534
604
|
}));
|
|
535
|
-
})) :
|
|
605
|
+
})) : /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
606
|
+
container: true,
|
|
607
|
+
sx: {
|
|
608
|
+
width: '100%',
|
|
609
|
+
gap: '0px'
|
|
610
|
+
}
|
|
611
|
+
}, /*#__PURE__*/React__default.createElement(material.Box, {
|
|
612
|
+
sx: {
|
|
613
|
+
width: '100%',
|
|
614
|
+
height: '40px'
|
|
615
|
+
}
|
|
616
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
617
|
+
className: "title-xlarge"
|
|
618
|
+
}, title ? title : 'Agregue un título')), content.map(function (item, i) {
|
|
536
619
|
var _ref2;
|
|
537
620
|
return /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
538
621
|
item: true,
|
|
539
622
|
key: i,
|
|
623
|
+
xs: 12,
|
|
540
624
|
sm: 6,
|
|
541
625
|
md: 4,
|
|
542
|
-
lg: 3
|
|
626
|
+
lg: 3,
|
|
627
|
+
sx: {
|
|
628
|
+
display: 'flex',
|
|
629
|
+
justifyContent: 'center',
|
|
630
|
+
gap: '16px'
|
|
631
|
+
}
|
|
543
632
|
}, /*#__PURE__*/React__default.createElement(material.Slide, {
|
|
544
633
|
direction: "left",
|
|
545
634
|
"in": visible
|
|
546
635
|
}, /*#__PURE__*/React__default.createElement(material.Card, {
|
|
547
636
|
sx: (_ref2 = {
|
|
548
637
|
width: '300px',
|
|
549
|
-
maxWidth:
|
|
638
|
+
maxWidth: 300,
|
|
550
639
|
boxShadow: 'none',
|
|
551
640
|
borderRadius: 0,
|
|
552
641
|
border: '1px solid #e5e5e5'
|
|
553
|
-
}, _ref2["borderRadius"] = '10px', _ref2)
|
|
642
|
+
}, _ref2["borderRadius"] = '10px', _ref2.backgroundColor = '#fff', _ref2)
|
|
554
643
|
}, /*#__PURE__*/React__default.createElement(material.CardMedia, {
|
|
555
644
|
component: "img",
|
|
556
645
|
height: "300px",
|
|
557
646
|
width: "300px",
|
|
558
|
-
image:
|
|
647
|
+
image: item.image.url ? item.image.url : 'https://via.placeholder.com/300x300.png?text=No+Image',
|
|
559
648
|
sx: {
|
|
560
649
|
aspectRatio: '1/1'
|
|
561
650
|
}
|
|
562
651
|
}), /*#__PURE__*/React__default.createElement(material.CardContent, {
|
|
563
652
|
sx: {
|
|
564
653
|
padding: '8px 16px',
|
|
654
|
+
textAlign: side,
|
|
565
655
|
'&.MuiCardContent-root:last-child': {
|
|
566
656
|
paddingBottom: '8px'
|
|
567
657
|
}
|
|
568
658
|
}
|
|
569
|
-
}, /*#__PURE__*/React__default.createElement(material.
|
|
570
|
-
|
|
659
|
+
}, /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
660
|
+
className: "title",
|
|
571
661
|
sx: {
|
|
572
|
-
display: '
|
|
573
|
-
|
|
574
|
-
|
|
662
|
+
display: '-webkit-box',
|
|
663
|
+
WebkitLineClamp: 1,
|
|
664
|
+
WebkitBoxOrient: 'vertical',
|
|
665
|
+
overflow: 'hidden',
|
|
666
|
+
textOverflow: 'ellipsis'
|
|
575
667
|
}
|
|
576
|
-
}, /*#__PURE__*/React__default.createElement(material.
|
|
668
|
+
}, item.title ? item.title : 'Agrega título'), /*#__PURE__*/React__default.createElement(material.Typography, {
|
|
669
|
+
className: "middle",
|
|
577
670
|
sx: {
|
|
578
|
-
|
|
671
|
+
minHeight: '54px',
|
|
579
672
|
display: '-webkit-box',
|
|
580
673
|
WebkitLineClamp: 2,
|
|
581
674
|
WebkitBoxOrient: 'vertical',
|
|
582
675
|
overflow: 'hidden',
|
|
583
676
|
textOverflow: 'ellipsis'
|
|
584
677
|
}
|
|
585
|
-
}, /*#__PURE__*/React__default.createElement(material.
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
678
|
+
}, item.subtitle ? item.subtitle : 'Agrega subtítulo'), /*#__PURE__*/React__default.createElement(material.Button, {
|
|
679
|
+
variant: "contained",
|
|
680
|
+
href: item.button_action ? item.button_action : '#',
|
|
681
|
+
target: item.link == 4 ? '_blank' : '_self',
|
|
682
|
+
sx: {
|
|
683
|
+
width: 'auto',
|
|
684
|
+
marginTop: '16px'
|
|
685
|
+
}
|
|
686
|
+
}, item.button_title ? item.button_title : 'Nombre botón')))));
|
|
687
|
+
}));
|
|
589
688
|
}
|
|
590
689
|
}
|
|
591
690
|
|
|
@@ -598,9 +697,12 @@ var List = /*#__PURE__*/function (_AtomicElements) {
|
|
|
598
697
|
_this.layoutFootprint = ['list_layout_1.png'];
|
|
599
698
|
_this.layoutFootprintReq = [{
|
|
600
699
|
'type': 1,
|
|
700
|
+
'title': 'Title',
|
|
601
701
|
'subtitle': 'Subtitle',
|
|
602
|
-
'
|
|
603
|
-
'
|
|
702
|
+
'button_title': 'Button Title',
|
|
703
|
+
'button_action': 'Button Action',
|
|
704
|
+
'image': 'sqr',
|
|
705
|
+
'link': 'Link'
|
|
604
706
|
}];
|
|
605
707
|
return _this;
|
|
606
708
|
}
|