@realsee/vreo 2.0.0-alpha.0 → 2.1.0-alpha.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.
|
@@ -29,15 +29,10 @@ function InfoPanelImg(_ref) {
|
|
|
29
29
|
return /*#__PURE__*/React.createElement("div", {
|
|
30
30
|
className: "vreo-infoPanel-container"
|
|
31
31
|
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: "vreo-infoPanel
|
|
33
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
className: "ratio-4-5 vreo-infoPanel-wrapper"
|
|
35
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: "vreo-infoPanel-inner"
|
|
32
|
+
className: "vreo-infoPanel"
|
|
37
33
|
}, children, /*#__PURE__*/React.createElement("img", {
|
|
38
|
-
className: "vreo-infoPanelImg",
|
|
39
34
|
src: url
|
|
40
|
-
})))
|
|
35
|
+
})));
|
|
41
36
|
}
|
|
42
37
|
function InfoPanelVideo(_ref2) {
|
|
43
38
|
var url = _ref2.url,
|
|
@@ -55,28 +50,21 @@ function InfoPanelVideo(_ref2) {
|
|
|
55
50
|
return /*#__PURE__*/React.createElement("div", {
|
|
56
51
|
className: "vreo-infoPanel-container"
|
|
57
52
|
}, /*#__PURE__*/React.createElement("div", {
|
|
58
|
-
className: "vreo-infoPanel
|
|
59
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
60
|
-
className: "ratio-4-5 vreo-infoPanel-wrapper"
|
|
61
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
62
|
-
className: "vreo-infoPanel-inner"
|
|
53
|
+
className: "vreo-infoPanel"
|
|
63
54
|
}, children, /*#__PURE__*/React.createElement("div", {
|
|
64
|
-
className: "vreo-
|
|
55
|
+
className: "vreo-infoPanel-inner",
|
|
65
56
|
ref: videoWrapperRef
|
|
66
57
|
}, !isWX && /*#__PURE__*/React.createElement("video", {
|
|
67
58
|
playsInline: true,
|
|
68
59
|
autoPlay: true,
|
|
69
|
-
className: "vreo-infoPanelVideo",
|
|
70
60
|
src: url
|
|
71
|
-
}))))
|
|
61
|
+
}))));
|
|
72
62
|
}
|
|
73
63
|
var Title = function Title(props) {
|
|
74
64
|
if (!props.title && !props.subTitle) {
|
|
75
65
|
return null;
|
|
76
66
|
}
|
|
77
67
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: "vreo-infoPanel-title-shadow"
|
|
79
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
80
68
|
className: "vreo-infoPanel-title"
|
|
81
69
|
}, /*#__PURE__*/React.createElement("div", {
|
|
82
70
|
className: "vreo-infoPanel-t1"
|
package/package.json
CHANGED
package/stylesheets/default.css
CHANGED
|
@@ -732,38 +732,35 @@
|
|
|
732
732
|
align-items: center;
|
|
733
733
|
}
|
|
734
734
|
|
|
735
|
-
.vreo-infoPanel
|
|
735
|
+
.vreo-infoPanel {
|
|
736
736
|
position: relative;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
.vreo-infoPanel-inner {
|
|
740
|
-
position: absolute;
|
|
741
|
-
left: 0;
|
|
742
|
-
top: 0;
|
|
743
737
|
width: 100%;
|
|
744
738
|
height: 100%;
|
|
739
|
+
min-width: 70%;
|
|
740
|
+
max-width: 80%;
|
|
741
|
+
min-height: 30%;
|
|
742
|
+
max-height: 60%;
|
|
745
743
|
border-radius: 4px;
|
|
746
744
|
overflow: hidden;
|
|
747
|
-
|
|
745
|
+
display: flex;
|
|
746
|
+
justify-content: center;
|
|
747
|
+
align-items: center;
|
|
748
748
|
}
|
|
749
749
|
|
|
750
|
-
.vreo-infoPanel {
|
|
750
|
+
.vreo-infoPanel-inner {
|
|
751
751
|
position: relative;
|
|
752
|
+
width: 100%;
|
|
753
|
+
height: 100%;
|
|
752
754
|
}
|
|
753
755
|
|
|
754
|
-
.vreo-
|
|
755
|
-
.vreo-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
.vreo-app[data-size="L"] .vreo-infoPanel {
|
|
763
|
-
width: 319px;
|
|
764
|
-
}
|
|
765
|
-
.vreo-app[data-size="XL"] .vreo-infoPanel {
|
|
766
|
-
width: 384px;
|
|
756
|
+
.vreo-infoPanel video,
|
|
757
|
+
.vreo-infoPanel img {
|
|
758
|
+
display: block;
|
|
759
|
+
width: 100%;
|
|
760
|
+
height: 100%;
|
|
761
|
+
object-fit: contain;
|
|
762
|
+
border-radius: 4px;
|
|
763
|
+
overflow: hidden;
|
|
767
764
|
}
|
|
768
765
|
|
|
769
766
|
.vreo-infoPanel-title {
|
|
@@ -790,15 +787,6 @@
|
|
|
790
787
|
padding-top: 6px;
|
|
791
788
|
}
|
|
792
789
|
|
|
793
|
-
.vreo-infoPanelImg,
|
|
794
|
-
.vreo-infoPanelVideo {
|
|
795
|
-
position: absolute;
|
|
796
|
-
width: 100%;
|
|
797
|
-
height: 100%;
|
|
798
|
-
object-position: center center;
|
|
799
|
-
object-fit: contain;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
790
|
.vreo-panel--hidden .vreo-panel-inner {
|
|
803
791
|
opacity: 0;
|
|
804
792
|
transition: opacity 0.45s;
|
|
@@ -839,7 +827,7 @@
|
|
|
839
827
|
box-sizing: border-box;
|
|
840
828
|
padding-left: 16px;
|
|
841
829
|
padding-right: 16px;
|
|
842
|
-
margin-bottom:
|
|
830
|
+
margin-bottom: 30px;
|
|
843
831
|
bottom: 0;
|
|
844
832
|
z-index: 1;
|
|
845
833
|
flex-direction: column;
|
|
@@ -855,6 +843,11 @@
|
|
|
855
843
|
z-index: 1;
|
|
856
844
|
}
|
|
857
845
|
|
|
846
|
+
.vreo-PopUp-inner .vreo-infoPanel-title .vreo-infoPanel-t1,
|
|
847
|
+
.vreo-PopUp-inner .vreo-infoPanel-title .vreo-infoPanel-t2 {
|
|
848
|
+
text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
|
|
849
|
+
}
|
|
850
|
+
|
|
858
851
|
.vreo-PopUp-inner .vreo-infoPanel-title .vreo-infoPanel-t1 {
|
|
859
852
|
padding-left: 0;
|
|
860
853
|
font-weight: 600;
|