oa-componentbook 0.18.289 → 0.18.290

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.
@@ -49,7 +49,7 @@ function Preview(_ref) {
49
49
  const handleCancel = () => setModalOpen(false);
50
50
  return /*#__PURE__*/_react.default.createElement("div", {
51
51
  className: "container"
52
- }, !isSingleMedia && /*#__PURE__*/_react.default.createElement("img", {
52
+ }, /*#__PURE__*/_react.default.createElement("img", {
53
53
  className: "left-icon",
54
54
  onClick: handlePrevious,
55
55
  src: _leftIcon.default,
@@ -85,7 +85,7 @@ function Preview(_ref) {
85
85
  handleZoom();
86
86
  }
87
87
  }
88
- })), !isSingleMedia && /*#__PURE__*/_react.default.createElement("img", {
88
+ })), /*#__PURE__*/_react.default.createElement("img", {
89
89
  className: "right-icon",
90
90
  onClick: handleNext,
91
91
  src: _rightIcon.default,
@@ -97,7 +97,7 @@ function Preview(_ref) {
97
97
  handleNext();
98
98
  }
99
99
  }
100
- }), !isSingleMedia && /*#__PURE__*/_react.default.createElement("ul", {
100
+ }), /*#__PURE__*/_react.default.createElement("ul", {
101
101
  className: "imgContainer"
102
102
  }, srcArray.map((media, index) => /*#__PURE__*/_react.default.createElement("li", {
103
103
  key: "media-".concat((0, _utils.getUUID)()),
@@ -106,7 +106,7 @@ function Preview(_ref) {
106
106
  className: currentImageIndex === index ? 'selected-thumbnail' : '',
107
107
  src: media.src,
108
108
  onClick: () => setCurrentImageIndex(index)
109
- }, /*#__PURE__*/_react.default.createElement("track", {
109
+ }, ' ', /*#__PURE__*/_react.default.createElement("track", {
110
110
  kind: "captions"
111
111
  })) : /*#__PURE__*/_react.default.createElement("img", {
112
112
  className: currentImageIndex === index ? 'selected-thumbnail' : '',
@@ -1,78 +1,93 @@
1
1
  .selected {
2
- width: 302px;
3
- margin: 0 auto;
4
- height: 50vh;
5
- display: flex;
6
- align-items: center;
7
- justify-content: center;
2
+ width: 302px;
3
+ margin: 0 auto;
4
+ height: 50vh;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
8
  }
9
9
  .imgContainer {
10
- display: flex;
11
- overflow-x: auto;
12
- background-color: #FAFAFA;
13
- box-shadow: 0 -2px 8px 0 rgb(0 0 0 / 12%);
14
- padding: 16px;
15
- position: absolute;
16
- bottom: 0;
17
- right: 0;
18
- left: 0;
10
+ display: flex;
11
+ overflow-x: auto;
12
+ background-color: #fafafa;
13
+ box-shadow: 0 -2px 8px 0 rgb(0 0 0 / 12%);
14
+ padding: 16px;
15
+ position: absolute;
16
+ bottom: 0;
17
+ right: 0;
18
+ left: 0;
19
19
  }
20
20
  .imgArea {
21
- margin-right: 20px;
21
+ margin-right: 20px;
22
+ list-style: none;
22
23
  }
23
- .imgArea img {
24
- width: 116px !important;
25
- height: 116px;
26
- cursor: pointer;
27
- border-radius: 4px;
24
+ .imgArea img,
25
+ .imgArea video {
26
+ width: 116px !important;
27
+ height: 116px;
28
+ cursor: pointer;
29
+ border-radius: 4px;
30
+ }
31
+ .imgArea video {
32
+ border: 1px solid var(--color-divider);
28
33
  }
29
34
  .imgArea span {
30
- display: block;
31
- text-align: center;
32
- color: var(--color-primary-content);
35
+ display: block;
36
+ text-align: center;
37
+ color: var(--color-primary-content);
33
38
  }
34
39
  .selected img {
35
- width: 232px;
40
+ width: 232px;
36
41
  }
37
- .selected img.zoomIn, .mismatchDrawer .ovrScroll .deicePic .zoomIn {
38
- width: auto;
39
- position: absolute;
40
- cursor: pointer;
41
- opacity: 0.8;
42
+ .selected img.zoomIn,
43
+ .mismatchDrawer .ovrScroll .deicePic .zoomIn {
44
+ width: auto;
45
+ position: absolute;
46
+ cursor: pointer;
47
+ opacity: 0.8;
42
48
  }
43
49
  .left-icon {
44
- position: absolute;
45
- top: 35%;
46
- font-size: 30px;
47
- cursor: pointer;
48
- left: 40px;
50
+ position: absolute;
51
+ top: 35%;
52
+ font-size: 30px;
53
+ cursor: pointer;
54
+ left: 40px;
49
55
  }
50
56
  .right-icon {
51
- position: absolute;
52
- top: 35%;
53
- right: 40px;
54
- font-size: 30px;
55
- cursor: pointer;
57
+ position: absolute;
58
+ top: 35%;
59
+ right: 40px;
60
+ font-size: 30px;
61
+ cursor: pointer;
56
62
  }
57
- .zoomModal .ant-modal-body{
58
- height: 420px;
59
- overflow-x: auto;
60
- margin: 16px 0 0;
63
+ .zoomModal .ant-modal-body {
64
+ height: 420px;
65
+ overflow-x: auto;
66
+ margin: 16px 0 0;
61
67
  }
62
- .zoomModal .closedIcon{
63
- display: none;
68
+ .zoomModal .closedIcon {
69
+ display: none;
64
70
  }
65
- .modalImg{
66
- width: 100%;
71
+ .modalImg {
72
+ width: 100%;
67
73
  }
68
74
  .imgContainer .selected-thumbnail {
69
- border: 2px solid var(--color-primary);
75
+ border: 2px solid var(--color-primary);
70
76
  }
71
77
  .imgContainer .selected-thumb {
72
- color: var(--color-primary);
78
+ color: var(--color-primary);
79
+ }
80
+ .imgContainer span {
81
+ width: 138px;
82
+ white-space: nowrap;
83
+ overflow: hidden;
84
+ text-overflow: ellipsis;
85
+ }
86
+ .selected video {
87
+ height: 320px;
73
88
  }
74
89
  @media screen and (max-width: 600px) {
75
- .zoomModal .ant-modal-content{
76
- position: fixed !important;
77
- }
78
- }
90
+ .zoomModal .ant-modal-content {
91
+ position: fixed !important;
92
+ }
93
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-componentbook",
3
- "version": "0.18.289",
3
+ "version": "0.18.290",
4
4
  "private": false,
5
5
  "description": "Reusable components",
6
6
  "main": "build/index.js",