tee3apps-cms-sdk-react 0.0.20 → 0.0.23
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Page.tsx +2 -2
- package/src/PageComponents/BoxComponent.tsx +123 -25
- package/src/PageComponents/Visual-Components/CarouselComponent.tsx +300 -167
- package/src/PageComponents/Visual-Components/GroupBrandComponent.tsx +396 -390
- package/src/PageComponents/Visual-Components/GroupCategoryComponent.tsx +21 -13
- package/src/PageComponents/Visual-Components/GroupImageList.tsx +642 -668
- package/src/PageComponents/Visual-Components/GroupProductComponent.tsx +46 -20
- package/src/PageComponents/Visual-Components/GroupVideoList.tsx +693 -589
- package/src/PageComponents/Visual-Components/ImageComponent.tsx +74 -18
- package/src/PageComponents/Visual-Components/LottieComponent.tsx +14 -8
- package/src/PageComponents/Visual-Components/NavigationComponent.tsx +74 -27
- package/src/PageComponents/Visual-Components/RichTextComponent.tsx +1 -1
- package/src/PageComponents/Visual-Components/TabComponent.tsx +1624 -876
- package/src/PageComponents/Visual-Components/TextComponent.tsx +24 -10
- package/src/PageComponents/Visual-Components/VideoComponent.tsx +33 -11
- package/src/PageComponents/Visual-Components/tab.css +645 -611
- package/src/index.css +126 -81
- package/src/Components/BoxRenderer.tsx +0 -108
- package/src/Components/ComponentRenderer.tsx +0 -29
- package/src/Components/ImageComponent.tsx +0 -68
- package/src/Components/RowComponent.tsx +0 -66
- package/src/Components/TextComponent.tsx +0 -47
|
@@ -387,21 +387,40 @@ const GroupProductComponent: React.FC<GroupProductComponentMainProps> = ({
|
|
|
387
387
|
};
|
|
388
388
|
|
|
389
389
|
return (
|
|
390
|
-
|
|
391
|
-
style
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
390
|
+
<>
|
|
391
|
+
<style>
|
|
392
|
+
{`
|
|
393
|
+
.groupProductCarousel::-webkit-scrollbar {
|
|
394
|
+
height: 8px;
|
|
395
|
+
}
|
|
396
|
+
.groupProductCarousel::-webkit-scrollbar-track {
|
|
397
|
+
background: #f0f0f0;
|
|
398
|
+
border-radius: 4px;
|
|
399
|
+
}
|
|
400
|
+
.groupProductCarousel::-webkit-scrollbar-thumb {
|
|
401
|
+
background: #c1c1c1;
|
|
402
|
+
border-radius: 4px;
|
|
403
|
+
}
|
|
404
|
+
.groupProductCarousel::-webkit-scrollbar-thumb:hover {
|
|
405
|
+
background: #a1a1a1;
|
|
406
|
+
}
|
|
407
|
+
`}
|
|
408
|
+
</style>
|
|
409
|
+
<div
|
|
410
|
+
style={{
|
|
411
|
+
border: '1px solid #e1e1e1',
|
|
412
|
+
width: '100%',
|
|
413
|
+
maxWidth: '100%',
|
|
414
|
+
borderRadius: '0px',
|
|
415
|
+
minHeight: '100px',
|
|
416
|
+
position: 'relative',
|
|
417
|
+
overflow: 'hidden',
|
|
418
|
+
marginBottom:'20px',
|
|
419
|
+
marginTop:'0px'
|
|
401
420
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
421
|
+
}}
|
|
422
|
+
className='GroupProductComponent'
|
|
423
|
+
>
|
|
405
424
|
{showHeader && (
|
|
406
425
|
<div
|
|
407
426
|
className="groupProductHeader"
|
|
@@ -446,9 +465,9 @@ const GroupProductComponent: React.FC<GroupProductComponentMainProps> = ({
|
|
|
446
465
|
|
|
447
466
|
<div style={{ display: 'flex', alignItems: 'center', gap: '16px' }}>
|
|
448
467
|
|
|
449
|
-
|
|
468
|
+
{props.type=='static' && (
|
|
450
469
|
<a
|
|
451
|
-
href={
|
|
470
|
+
href={`/search/${props.groupproduct.static.code}`}
|
|
452
471
|
target="_blank"
|
|
453
472
|
rel="noopener noreferrer"
|
|
454
473
|
style={{
|
|
@@ -465,12 +484,12 @@ const GroupProductComponent: React.FC<GroupProductComponentMainProps> = ({
|
|
|
465
484
|
>
|
|
466
485
|
View All
|
|
467
486
|
</a>
|
|
468
|
-
)}
|
|
487
|
+
)}
|
|
469
488
|
|
|
470
489
|
|
|
471
490
|
|
|
472
491
|
|
|
473
|
-
{currentLayout === 'NONE'
|
|
492
|
+
{currentLayout === 'NONE' && (
|
|
474
493
|
<div style={{ display: 'flex', gap: '8px' }}>
|
|
475
494
|
<button
|
|
476
495
|
onClick={scrollLeft}
|
|
@@ -530,7 +549,8 @@ const GroupProductComponent: React.FC<GroupProductComponentMainProps> = ({
|
|
|
530
549
|
className="groupProductCarousel"
|
|
531
550
|
style={{
|
|
532
551
|
display: currentLayout === 'NONE' ? 'flex' : 'block',
|
|
533
|
-
overflowX: currentLayout === 'NONE' && isHorizontalScroll ? '
|
|
552
|
+
overflowX: currentLayout === 'NONE' && isHorizontalScroll ? 'scroll' : 'visible',
|
|
553
|
+
overflowY: 'hidden',
|
|
534
554
|
gap: currentLayout === 'NONE' ? '12px' : '0',
|
|
535
555
|
padding: '12px',
|
|
536
556
|
scrollBehavior: 'smooth',
|
|
@@ -538,7 +558,12 @@ const GroupProductComponent: React.FC<GroupProductComponentMainProps> = ({
|
|
|
538
558
|
scrollbarWidth: 'thin',
|
|
539
559
|
borderRadius: '8px',
|
|
540
560
|
position: 'relative',
|
|
541
|
-
scrollbarColor: '#c1c1c1
|
|
561
|
+
scrollbarColor: '#c1c1c1 #f0f0f0',
|
|
562
|
+
width: '100%',
|
|
563
|
+
...(currentLayout === 'NONE' && isHorizontalScroll ? {
|
|
564
|
+
// Webkit scrollbar styles for Chrome/Safari
|
|
565
|
+
WebkitOverflowScrolling: 'touch',
|
|
566
|
+
} : {})
|
|
542
567
|
}}
|
|
543
568
|
>
|
|
544
569
|
{products.length > 0 ? (
|
|
@@ -603,6 +628,7 @@ const GroupProductComponent: React.FC<GroupProductComponentMainProps> = ({
|
|
|
603
628
|
)}
|
|
604
629
|
</div>
|
|
605
630
|
</div>
|
|
631
|
+
</>
|
|
606
632
|
);
|
|
607
633
|
};
|
|
608
634
|
|