@phillips/seldon 1.69.0 → 1.71.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.
@@ -200,3 +200,7 @@
200
200
  padding: 0;
201
201
  }
202
202
  }
203
+
204
+ @mixin cursorPointer() {
205
+ cursor: pointer;
206
+ }
@@ -48,3 +48,4 @@
48
48
  // Site Furniture
49
49
  @use 'site-furniture/Header/header';
50
50
  @use 'site-furniture/Footer/footer';
51
+ @use 'components/PinchZoom/pinchZoom';
@@ -21,6 +21,10 @@
21
21
  flex: 0 0 100%;
22
22
  min-width: 0;
23
23
 
24
+ &--cursor-pointer {
25
+ @include cursorPointer;
26
+ }
27
+
24
28
  @each $spacing-size in $spacing-sizes {
25
29
  &--gap-#{$spacing-size} {
26
30
  padding-left: var(--spacing-#{$spacing-size});
@@ -0,0 +1,38 @@
1
+ @use '../../allPartials' as *;
2
+
3
+ .#{$px}-pinch-zoom {
4
+ cursor: pointer;
5
+ display: flex;
6
+ flex: 1;
7
+ max-height: 100%;
8
+
9
+ &.#{$px}-pinch-zoom {
10
+ height: unset;
11
+ width: unset;
12
+ }
13
+
14
+ &-content {
15
+ display: flex;
16
+ flex: 1;
17
+ max-height: 100%;
18
+
19
+ &.#{$px}-pinch-zoom-content {
20
+ flex-wrap: unset;
21
+ height: unset;
22
+ width: unset;
23
+ }
24
+ }
25
+
26
+ &-zoomed {
27
+ cursor: grab;
28
+
29
+ &:active {
30
+ cursor: grabbing;
31
+ }
32
+ }
33
+
34
+ &-child {
35
+ flex: 1;
36
+ object-fit: contain;
37
+ }
38
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.69.0",
3
+ "version": "1.71.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -55,6 +55,7 @@
55
55
  "html-react-parser": "^5.1.12",
56
56
  "react-modal": "^3.16.1",
57
57
  "react-transition-group": "^4.4.5",
58
+ "react-zoom-pan-pinch": "^3.6.1",
58
59
  "usehooks-ts": "^3.1.0"
59
60
  },
60
61
  "devDependencies": {