@phillips/seldon 1.104.0 → 1.105.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.
- package/dist/components/Carousel/Carousel.js +34 -30
- package/dist/components/Carousel/CarouselContent.js +10 -18
- package/dist/components/Carousel/CarouselDot.d.ts +3 -4
- package/dist/components/Carousel/CarouselDot.js +24 -22
- package/dist/components/Carousel/CarouselDots.js +31 -32
- package/dist/components/Carousel/CarouselItem.js +7 -7
- package/dist/components/Drawer/Drawer.js +11 -11
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +545 -539
- package/dist/node_modules/embla-carousel-class-names/esm/embla-carousel-class-names.esm.js +74 -0
- package/dist/scss/components/Carousel/_carousel.scss +26 -26
- package/package.json +3 -2
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const z = {
|
|
2
|
+
active: !0,
|
|
3
|
+
breakpoints: {},
|
|
4
|
+
snapped: "is-snapped",
|
|
5
|
+
inView: "is-in-view",
|
|
6
|
+
draggable: "is-draggable",
|
|
7
|
+
dragging: "is-dragging",
|
|
8
|
+
loop: "is-loop"
|
|
9
|
+
};
|
|
10
|
+
function d(s) {
|
|
11
|
+
return (Array.isArray(s) ? s : [s]).filter(Boolean);
|
|
12
|
+
}
|
|
13
|
+
function p(s, n) {
|
|
14
|
+
!s || !n.length || s.classList.remove(...n);
|
|
15
|
+
}
|
|
16
|
+
function f(s, n) {
|
|
17
|
+
!s || !n.length || s.classList.add(...n);
|
|
18
|
+
}
|
|
19
|
+
function y(s = {}) {
|
|
20
|
+
let n, i, l, w, u = [], b = [];
|
|
21
|
+
const m = ["select"], v = ["pointerDown", "pointerUp"], I = ["slidesInView"], e = {
|
|
22
|
+
snapped: [],
|
|
23
|
+
inView: [],
|
|
24
|
+
draggable: [],
|
|
25
|
+
dragging: [],
|
|
26
|
+
loop: []
|
|
27
|
+
};
|
|
28
|
+
function D(o, t) {
|
|
29
|
+
i = o;
|
|
30
|
+
const {
|
|
31
|
+
mergeOptions: g,
|
|
32
|
+
optionsAtMedia: h
|
|
33
|
+
} = t, C = g(z, y.globalOptions), a = g(C, s);
|
|
34
|
+
n = h(a), l = i.rootNode(), w = i.slideNodes();
|
|
35
|
+
const {
|
|
36
|
+
watchDrag: x,
|
|
37
|
+
loop: A
|
|
38
|
+
} = i.internalEngine().options, k = !!x;
|
|
39
|
+
n.loop && A && (e.loop = d(n.loop), f(l, e.loop)), n.draggable && k && (e.draggable = d(n.draggable), f(l, e.draggable)), n.dragging && (e.dragging = d(n.dragging), v.forEach((r) => i.on(r, S))), n.snapped && (e.snapped = d(n.snapped), m.forEach((r) => i.on(r, E)), E()), n.inView && (e.inView = d(n.inView), I.forEach((r) => i.on(r, V)), V());
|
|
40
|
+
}
|
|
41
|
+
function O() {
|
|
42
|
+
v.forEach((o) => i.off(o, S)), m.forEach((o) => i.off(o, E)), I.forEach((o) => i.off(o, V)), p(l, e.loop), p(l, e.draggable), p(l, e.dragging), c([], u, e.snapped), c([], b, e.inView), Object.keys(e).forEach((o) => {
|
|
43
|
+
const t = o;
|
|
44
|
+
e[t] = [];
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function S(o, t) {
|
|
48
|
+
(t === "pointerDown" ? f : p)(l, e.dragging);
|
|
49
|
+
}
|
|
50
|
+
function c(o = [], t = [], g) {
|
|
51
|
+
const h = t.map((a) => w[a]), C = o.map((a) => w[a]);
|
|
52
|
+
return h.forEach((a) => p(a, g)), C.forEach((a) => f(a, g)), o;
|
|
53
|
+
}
|
|
54
|
+
function E() {
|
|
55
|
+
const {
|
|
56
|
+
slideRegistry: o
|
|
57
|
+
} = i.internalEngine(), t = o[i.selectedScrollSnap()];
|
|
58
|
+
u = c(t, u, e.snapped);
|
|
59
|
+
}
|
|
60
|
+
function V() {
|
|
61
|
+
const o = i.slidesInView();
|
|
62
|
+
b = c(o, b, e.inView);
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
name: "classNames",
|
|
66
|
+
options: s,
|
|
67
|
+
init: D,
|
|
68
|
+
destroy: O
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
y.globalOptions = void 0;
|
|
72
|
+
export {
|
|
73
|
+
y as default
|
|
74
|
+
};
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
&-
|
|
35
|
+
&-dots {
|
|
36
36
|
align-items: center;
|
|
37
37
|
display: flex;
|
|
38
38
|
gap: 12px;
|
|
@@ -74,36 +74,36 @@
|
|
|
74
74
|
display: none; /* Safari and Chrome */
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
+
}
|
|
77
78
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
&-dot__container {
|
|
80
|
+
align-items: center;
|
|
81
|
+
display: flex;
|
|
82
|
+
height: 8px;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
min-width: 8px;
|
|
85
|
+
padding: 1px;
|
|
86
|
+
scroll-snap-align: center;
|
|
87
|
+
width: 8px;
|
|
88
|
+
}
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
&-dot {
|
|
91
|
+
border-radius: 50%;
|
|
92
|
+
outline: 1px solid #adadad;
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
&--md {
|
|
95
|
+
height: 100%;
|
|
96
|
+
width: 100%;
|
|
97
|
+
}
|
|
97
98
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
&--sm {
|
|
100
|
+
height: 50%;
|
|
101
|
+
width: 50%;
|
|
102
|
+
}
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
104
|
+
&--selected {
|
|
105
|
+
background-color: #525050;
|
|
106
|
+
outline-color: #525050;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.105.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/PhillipsAuctionHouse/seldon"
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"classnames": "^2.5.1",
|
|
52
52
|
"date-fns": "^4.1.0",
|
|
53
53
|
"dompurify": "^3.1.6",
|
|
54
|
-
"embla-carousel-
|
|
54
|
+
"embla-carousel-class-names": "^8.5.1",
|
|
55
|
+
"embla-carousel-react": "^8.5.1",
|
|
55
56
|
"embla-carousel-wheel-gestures": "^8.0.1",
|
|
56
57
|
"flatpickr": "^4.6.13",
|
|
57
58
|
"html-react-parser": "^5.1.12",
|