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