@pittorica/carousel-react 0.22.0 → 0.22.3
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 +114 -121
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as B, Fragment as Kr, jsxs as Gr } from "react/jsx-runtime";
|
|
2
2
|
import * as ee from "react";
|
|
3
|
-
import { createContext as Tt, useRef as K, useLayoutEffect as
|
|
3
|
+
import { createContext as Tt, useRef as K, useLayoutEffect as _r, useEffect as Ye, useId as Xe, useContext as I, useInsertionEffect as qe, useMemo as et, useCallback as Qi, Children as zr, isValidElement as Hr, useState as be, Fragment as ts, createElement as Yr, forwardRef as Xr, Component as qr } from "react";
|
|
4
4
|
function es(t) {
|
|
5
5
|
var e, n, i = "";
|
|
6
6
|
if (typeof t == "string" || typeof t == "number") i += t;
|
|
@@ -19,7 +19,7 @@ function Qe(t) {
|
|
|
19
19
|
const e = K(null);
|
|
20
20
|
return e.current === null && (e.current = t()), e.current;
|
|
21
21
|
}
|
|
22
|
-
const ns = typeof window < "u", is = ns ?
|
|
22
|
+
const ns = typeof window < "u", is = ns ? _r : Ye, ne = /* @__PURE__ */ Tt(null);
|
|
23
23
|
function tn(t, e) {
|
|
24
24
|
t.indexOf(e) === -1 && t.push(e);
|
|
25
25
|
}
|
|
@@ -51,7 +51,7 @@ function nn(t) {
|
|
|
51
51
|
let e;
|
|
52
52
|
return () => (e === void 0 && (e = t()), e);
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const _ = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Zr = (t, e) => (n) => e(t(n)), It = (...t) => t.reduce(Zr), Rt = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
|
55
55
|
const i = e - t;
|
|
56
56
|
return i === 0 ? 1 : (n - t) / i;
|
|
57
57
|
};
|
|
@@ -98,12 +98,12 @@ function to(t, e, n, i, s) {
|
|
|
98
98
|
}
|
|
99
99
|
function Ot(t, e, n, i) {
|
|
100
100
|
if (t === e && n === i)
|
|
101
|
-
return
|
|
101
|
+
return _;
|
|
102
102
|
const s = (o) => to(o, 0, 1, t, n);
|
|
103
103
|
return (o) => o === 0 || o === 1 ? o : ls(s(o), e, i);
|
|
104
104
|
}
|
|
105
105
|
const cs = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, us = (t) => (e) => 1 - t(1 - e), hs = /* @__PURE__ */ Ot(0.33, 1.53, 0.69, 0.99), on = /* @__PURE__ */ us(hs), fs = /* @__PURE__ */ cs(on), ds = (t) => (t *= 2) < 1 ? 0.5 * on(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), an = (t) => 1 - Math.sin(Math.acos(t)), ps = us(an), ms = cs(an), eo = /* @__PURE__ */ Ot(0.42, 0, 1, 1), no = /* @__PURE__ */ Ot(0, 0, 0.58, 1), gs = /* @__PURE__ */ Ot(0.42, 0, 0.58, 1), io = (t) => Array.isArray(t) && typeof t[0] != "number", ys = (t) => Array.isArray(t) && typeof t[0] == "number", Bn = {
|
|
106
|
-
linear:
|
|
106
|
+
linear: _,
|
|
107
107
|
easeIn: eo,
|
|
108
108
|
easeInOut: gs,
|
|
109
109
|
easeOut: no,
|
|
@@ -199,7 +199,7 @@ function vs(t, e) {
|
|
|
199
199
|
r[$t[S]].cancel(v);
|
|
200
200
|
}, state: s, steps: r };
|
|
201
201
|
}
|
|
202
|
-
const { schedule: C, cancel: nt, state: F, steps: ae } = /* @__PURE__ */ vs(typeof requestAnimationFrame < "u" ? requestAnimationFrame :
|
|
202
|
+
const { schedule: C, cancel: nt, state: F, steps: ae } = /* @__PURE__ */ vs(typeof requestAnimationFrame < "u" ? requestAnimationFrame : _, !0);
|
|
203
203
|
let Gt;
|
|
204
204
|
function ao() {
|
|
205
205
|
Gt = void 0;
|
|
@@ -637,7 +637,7 @@ function Uo(t, e, n) {
|
|
|
637
637
|
for (let r = 0; r < o; r++) {
|
|
638
638
|
let a = s(t[r], t[r + 1]);
|
|
639
639
|
if (e) {
|
|
640
|
-
const l = Array.isArray(e) ? e[r] ||
|
|
640
|
+
const l = Array.isArray(e) ? e[r] || _ : e;
|
|
641
641
|
a = It(l, a);
|
|
642
642
|
}
|
|
643
643
|
i.push(a);
|
|
@@ -675,23 +675,23 @@ function Go(t) {
|
|
|
675
675
|
const e = [0];
|
|
676
676
|
return Ko(e, t.length - 1), e;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function _o(t, e) {
|
|
679
679
|
return t.map((n) => n * e);
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function zo(t, e) {
|
|
682
682
|
return t.map(() => e || gs).splice(0, t.length - 1);
|
|
683
683
|
}
|
|
684
684
|
function dt({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
|
|
685
685
|
const s = io(i) ? i.map(In) : In(i), o = {
|
|
686
686
|
done: !1,
|
|
687
687
|
value: e[0]
|
|
688
|
-
}, r =
|
|
688
|
+
}, r = _o(
|
|
689
689
|
// Only use the provided offsets if they're the correct length
|
|
690
690
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
691
691
|
n && n.length === e.length ? n : Go(e),
|
|
692
692
|
t
|
|
693
693
|
), a = Wo(r, e, {
|
|
694
|
-
ease: Array.isArray(s) ? s :
|
|
694
|
+
ease: Array.isArray(s) ? s : zo(e, s)
|
|
695
695
|
});
|
|
696
696
|
return {
|
|
697
697
|
calculatedDuration: t,
|
|
@@ -874,7 +874,7 @@ const ct = (t) => t * 180 / Math.PI, Me = (t) => {
|
|
|
874
874
|
skewX: (t) => ct(Math.atan(t[1])),
|
|
875
875
|
skewY: (t) => ct(Math.atan(t[2])),
|
|
876
876
|
skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
|
|
877
|
-
}, Ee = (t) => (t = t % 360, t < 0 && (t += 360), t), Kn = Me, Gn = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]),
|
|
877
|
+
}, Ee = (t) => (t = t % 360, t < 0 && (t += 360), t), Kn = Me, Gn = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), _n = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), Jo = {
|
|
878
878
|
x: 12,
|
|
879
879
|
y: 13,
|
|
880
880
|
z: 14,
|
|
@@ -882,8 +882,8 @@ const ct = (t) => t * 180 / Math.PI, Me = (t) => {
|
|
|
882
882
|
translateY: 13,
|
|
883
883
|
translateZ: 14,
|
|
884
884
|
scaleX: Gn,
|
|
885
|
-
scaleY:
|
|
886
|
-
scale: (t) => (Gn(t) +
|
|
885
|
+
scaleY: _n,
|
|
886
|
+
scale: (t) => (Gn(t) + _n(t)) / 2,
|
|
887
887
|
rotateX: (t) => Ee(ct(Math.atan2(t[6], t[5]))),
|
|
888
888
|
rotateY: (t) => Ee(ct(Math.atan2(-t[2], t[0]))),
|
|
889
889
|
rotateZ: Kn,
|
|
@@ -936,7 +936,7 @@ const St = [
|
|
|
936
936
|
"skew",
|
|
937
937
|
"skewX",
|
|
938
938
|
"skewY"
|
|
939
|
-
], bt = new Set(St),
|
|
939
|
+
], bt = new Set(St), zn = (t) => t === wt || t === x, ea = /* @__PURE__ */ new Set(["x", "y", "z"]), na = St.filter((t) => !ea.has(t));
|
|
940
940
|
function ia(t) {
|
|
941
941
|
const e = [];
|
|
942
942
|
return na.forEach((n) => {
|
|
@@ -1174,7 +1174,7 @@ class fa extends pn {
|
|
|
1174
1174
|
*/
|
|
1175
1175
|
attachTimeline({ timeline: e, observe: n }) {
|
|
1176
1176
|
var i;
|
|
1177
|
-
return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, e && aa() ? (this.animation.timeline = e,
|
|
1177
|
+
return this.allowFlatten && ((i = this.animation.effect) == null || i.updateTiming({ easing: "linear" })), this.animation.onfinish = null, e && aa() ? (this.animation.timeline = e, _) : n(this);
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
1180
|
const Is = {
|
|
@@ -1297,7 +1297,7 @@ class Sa extends pn {
|
|
|
1297
1297
|
}) : new mn(f);
|
|
1298
1298
|
m.finished.then(() => {
|
|
1299
1299
|
this.notifyFinished();
|
|
1300
|
-
}).catch(
|
|
1300
|
+
}).catch(_), this.pendingTimeline && (this.stopTimeline = m.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = m;
|
|
1301
1301
|
}
|
|
1302
1302
|
get finished() {
|
|
1303
1303
|
return this._animation ? this.animation.finished : this._finished;
|
|
@@ -1794,10 +1794,10 @@ const Ga = {
|
|
|
1794
1794
|
test: (t) => t === "auto",
|
|
1795
1795
|
parse: (t) => t
|
|
1796
1796
|
}, Ks = (t) => (e) => e.test(t), Gs = [wt, x, X, Q, go, mo, Ga], Zn = (t) => Gs.find(Ks(t));
|
|
1797
|
-
function
|
|
1797
|
+
function _a(t) {
|
|
1798
1798
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || os(t) : !0;
|
|
1799
1799
|
}
|
|
1800
|
-
const
|
|
1800
|
+
const za = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
1801
1801
|
function Ha(t) {
|
|
1802
1802
|
const [e, n] = t.slice(0, -1).split("(");
|
|
1803
1803
|
if (e === "drop-shadow")
|
|
@@ -1806,7 +1806,7 @@ function Ha(t) {
|
|
|
1806
1806
|
if (!i)
|
|
1807
1807
|
return t;
|
|
1808
1808
|
const s = n.replace(i, "");
|
|
1809
|
-
let o =
|
|
1809
|
+
let o = za.has(e) ? 1 : 0;
|
|
1810
1810
|
return i !== n && (o *= 100), e + "(" + o + s + ")";
|
|
1811
1811
|
}
|
|
1812
1812
|
const Ya = /\b([a-z-]*)\(.*?\)/gu, $e = {
|
|
@@ -1921,9 +1921,9 @@ const Ya = /\b([a-z-]*)\(.*?\)/gu, $e = {
|
|
|
1921
1921
|
borderLeftColor: R,
|
|
1922
1922
|
filter: $e,
|
|
1923
1923
|
WebkitFilter: $e
|
|
1924
|
-
},
|
|
1925
|
-
function
|
|
1926
|
-
let n =
|
|
1924
|
+
}, _s = (t) => qa[t];
|
|
1925
|
+
function zs(t, e) {
|
|
1926
|
+
let n = _s(t);
|
|
1927
1927
|
return n !== $e && (n = it), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
1928
1928
|
}
|
|
1929
1929
|
const Za = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
@@ -1935,7 +1935,7 @@ function Ja(t, e, n) {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
if (s && n)
|
|
1937
1937
|
for (const o of e)
|
|
1938
|
-
t[o] =
|
|
1938
|
+
t[o] = zs(n, s);
|
|
1939
1939
|
}
|
|
1940
1940
|
class Qa extends gn {
|
|
1941
1941
|
constructor(e, n, i, s, o) {
|
|
@@ -1961,7 +1961,7 @@ class Qa extends gn {
|
|
|
1961
1961
|
return;
|
|
1962
1962
|
}
|
|
1963
1963
|
if (r !== a)
|
|
1964
|
-
if (
|
|
1964
|
+
if (zn(r) && zn(a))
|
|
1965
1965
|
for (let u = 0; u < e.length; u++) {
|
|
1966
1966
|
const h = e[u];
|
|
1967
1967
|
typeof h == "string" && (e[u] = parseFloat(h));
|
|
@@ -1971,7 +1971,7 @@ class Qa extends gn {
|
|
|
1971
1971
|
resolveNoneKeyframes() {
|
|
1972
1972
|
const { unresolvedKeyframes: e, name: n } = this, i = [];
|
|
1973
1973
|
for (let s = 0; s < e.length; s++)
|
|
1974
|
-
(e[s] === null ||
|
|
1974
|
+
(e[s] === null || _a(e[s])) && i.push(s);
|
|
1975
1975
|
i.length && Ja(e, i, n);
|
|
1976
1976
|
}
|
|
1977
1977
|
measureInitialState() {
|
|
@@ -2062,7 +2062,7 @@ const qs = (t, e) => e ? t === e ? !0 : qs(t, e.parentElement) : !1, bn = (t) =>
|
|
|
2062
2062
|
function Zs(t) {
|
|
2063
2063
|
return il.has(t.tagName) || t.isContentEditable === !0;
|
|
2064
2064
|
}
|
|
2065
|
-
const
|
|
2065
|
+
const _t = /* @__PURE__ */ new WeakSet();
|
|
2066
2066
|
function ti(t) {
|
|
2067
2067
|
return (e) => {
|
|
2068
2068
|
e.key === "Enter" && t(e);
|
|
@@ -2076,7 +2076,7 @@ const sl = (t, e) => {
|
|
|
2076
2076
|
if (!n)
|
|
2077
2077
|
return;
|
|
2078
2078
|
const i = ti(() => {
|
|
2079
|
-
if (
|
|
2079
|
+
if (_t.has(n))
|
|
2080
2080
|
return;
|
|
2081
2081
|
de(n, "down");
|
|
2082
2082
|
const s = ti(() => {
|
|
@@ -2094,9 +2094,9 @@ function rl(t, e, n = {}) {
|
|
|
2094
2094
|
const l = a.currentTarget;
|
|
2095
2095
|
if (!ei(a))
|
|
2096
2096
|
return;
|
|
2097
|
-
|
|
2097
|
+
_t.add(l);
|
|
2098
2098
|
const c = e(l, a), u = (d, p) => {
|
|
2099
|
-
window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f),
|
|
2099
|
+
window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", f), _t.has(l) && _t.delete(l), ei(d) && typeof c == "function" && c(d, { success: p });
|
|
2100
2100
|
}, h = (d) => {
|
|
2101
2101
|
u(d, l === window || l === document || n.useGlobalTarget || qs(l, d.target));
|
|
2102
2102
|
}, f = (d) => {
|
|
@@ -2361,7 +2361,7 @@ class pl {
|
|
|
2361
2361
|
*/
|
|
2362
2362
|
readValue(e, n) {
|
|
2363
2363
|
let i = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
2364
|
-
return i != null && (typeof i == "string" && (ss(i) || os(i)) ? i = parseFloat(i) : !ll(i) && it.test(n) && (i =
|
|
2364
|
+
return i != null && (typeof i == "string" && (ss(i) || os(i)) ? i = parseFloat(i) : !ll(i) && it.test(n) && (i = zs(e, n)), this.setBaseTarget(e, O(i) ? i.get() : i)), O(i) ? i.get() : i;
|
|
2365
2365
|
}
|
|
2366
2366
|
/**
|
|
2367
2367
|
* Set the base target to later animate back to. This is currently
|
|
@@ -2594,7 +2594,7 @@ const At = {
|
|
|
2594
2594
|
const c = E(a, l, 0.5);
|
|
2595
2595
|
return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
|
|
2596
2596
|
}
|
|
2597
|
-
},
|
|
2597
|
+
}, _e = {
|
|
2598
2598
|
borderRadius: {
|
|
2599
2599
|
...At,
|
|
2600
2600
|
applyTo: [
|
|
@@ -2611,7 +2611,7 @@ const At = {
|
|
|
2611
2611
|
boxShadow: Sl
|
|
2612
2612
|
};
|
|
2613
2613
|
function lr(t, { layout: e, layoutId: n }) {
|
|
2614
|
-
return bt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!
|
|
2614
|
+
return bt.has(t) || t.startsWith("origin") || (e || n !== void 0) && (!!_e[t] || t === "opacity");
|
|
2615
2615
|
}
|
|
2616
2616
|
function Dn(t, e, n) {
|
|
2617
2617
|
var r;
|
|
@@ -2735,7 +2735,7 @@ class El extends nr {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
readValueFromInstance(e, n) {
|
|
2737
2737
|
if (bt.has(n)) {
|
|
2738
|
-
const i =
|
|
2738
|
+
const i = _s(n);
|
|
2739
2739
|
return i && i.default || 0;
|
|
2740
2740
|
}
|
|
2741
2741
|
return n = ur.has(n) ? n : xn(n), e.getAttribute(n);
|
|
@@ -2910,7 +2910,7 @@ function hi() {
|
|
|
2910
2910
|
function fi(t, e) {
|
|
2911
2911
|
t.min = e.min, t.max = e.max;
|
|
2912
2912
|
}
|
|
2913
|
-
function
|
|
2913
|
+
function z(t, e) {
|
|
2914
2914
|
fi(t.x, e.x), fi(t.y, e.y);
|
|
2915
2915
|
}
|
|
2916
2916
|
function di(t, e) {
|
|
@@ -2953,9 +2953,9 @@ function Kl(t, e = 0, n = 1, i = 0.5, s, o = t, r = t) {
|
|
|
2953
2953
|
function vi(t, e, [n, i, s], o, r) {
|
|
2954
2954
|
Kl(t, e[n], e[i], e[s], e.scale, o, r);
|
|
2955
2955
|
}
|
|
2956
|
-
const Gl = ["x", "scaleX", "originX"],
|
|
2956
|
+
const Gl = ["x", "scaleX", "originX"], _l = ["y", "scaleY", "originY"];
|
|
2957
2957
|
function Ti(t, e, n, i) {
|
|
2958
|
-
vi(t.x, e, Gl, n ? n.x : void 0, i ? i.x : void 0), vi(t.y, e,
|
|
2958
|
+
vi(t.x, e, Gl, n ? n.x : void 0, i ? i.x : void 0), vi(t.y, e, _l, n ? n.y : void 0, i ? i.y : void 0);
|
|
2959
2959
|
}
|
|
2960
2960
|
function xi(t) {
|
|
2961
2961
|
return t.translate === 0 && t.scale === 1;
|
|
@@ -2966,7 +2966,7 @@ function yr(t) {
|
|
|
2966
2966
|
function wi(t, e) {
|
|
2967
2967
|
return t.min === e.min && t.max === e.max;
|
|
2968
2968
|
}
|
|
2969
|
-
function
|
|
2969
|
+
function zl(t, e) {
|
|
2970
2970
|
return wi(t.x, e.x) && wi(t.y, e.y);
|
|
2971
2971
|
}
|
|
2972
2972
|
function Si(t, e) {
|
|
@@ -3009,7 +3009,7 @@ function Xl(t, e, n, i, s, o) {
|
|
|
3009
3009
|
function Di(t, e) {
|
|
3010
3010
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
3011
3011
|
}
|
|
3012
|
-
const ql = /* @__PURE__ */ xr(0, 0.5, ps), Zl = /* @__PURE__ */ xr(0.5, 0.95,
|
|
3012
|
+
const ql = /* @__PURE__ */ xr(0, 0.5, ps), Zl = /* @__PURE__ */ xr(0.5, 0.95, _);
|
|
3013
3013
|
function xr(t, e, n) {
|
|
3014
3014
|
return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ Rt(t, e, i));
|
|
3015
3015
|
}
|
|
@@ -3042,7 +3042,7 @@ function ec(t, e) {
|
|
|
3042
3042
|
};
|
|
3043
3043
|
return C.setup(i, !0), () => nt(i);
|
|
3044
3044
|
}
|
|
3045
|
-
function
|
|
3045
|
+
function zt(t) {
|
|
3046
3046
|
return O(t) ? t.get() : t;
|
|
3047
3047
|
}
|
|
3048
3048
|
class nc {
|
|
@@ -3324,17 +3324,17 @@ function Sr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3324
3324
|
removeElementScroll(r) {
|
|
3325
3325
|
var l;
|
|
3326
3326
|
const a = L();
|
|
3327
|
-
if (
|
|
3327
|
+
if (z(a, r), (l = this.scroll) != null && l.wasRoot)
|
|
3328
3328
|
return a;
|
|
3329
3329
|
for (let c = 0; c < this.path.length; c++) {
|
|
3330
3330
|
const u = this.path[c], { scroll: h, options: f } = u;
|
|
3331
|
-
u !== this.root && h && f.layoutScroll && (h.wasRoot &&
|
|
3331
|
+
u !== this.root && h && f.layoutScroll && (h.wasRoot && z(a, r), mt(a.x, h.offset.x), mt(a.y, h.offset.y));
|
|
3332
3332
|
}
|
|
3333
3333
|
return a;
|
|
3334
3334
|
}
|
|
3335
3335
|
applyTransform(r, a = !1) {
|
|
3336
3336
|
const l = L();
|
|
3337
|
-
|
|
3337
|
+
z(l, r);
|
|
3338
3338
|
for (let c = 0; c < this.path.length; c++) {
|
|
3339
3339
|
const u = this.path[c];
|
|
3340
3340
|
!a && u.options.layoutScroll && u.scroll && u !== u.root && gt(l, {
|
|
@@ -3346,14 +3346,14 @@ function Sr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3346
3346
|
}
|
|
3347
3347
|
removeTransform(r) {
|
|
3348
3348
|
const a = L();
|
|
3349
|
-
|
|
3349
|
+
z(a, r);
|
|
3350
3350
|
for (let l = 0; l < this.path.length; l++) {
|
|
3351
3351
|
const c = this.path[l];
|
|
3352
3352
|
if (!c.instance || !at(c.latestValues))
|
|
3353
3353
|
continue;
|
|
3354
3354
|
Ke(c.latestValues) && c.updateSnapshot();
|
|
3355
3355
|
const u = L(), h = c.measurePageBox();
|
|
3356
|
-
|
|
3356
|
+
z(u, h), Ti(a, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
|
|
3357
3357
|
}
|
|
3358
3358
|
return at(this.latestValues) && Ti(a, this.latestValues), a;
|
|
3359
3359
|
}
|
|
@@ -3385,7 +3385,7 @@ function Sr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3385
3385
|
return;
|
|
3386
3386
|
this.resolvedRelativeTargetAt = F.timestamp;
|
|
3387
3387
|
const f = this.getClosestProjectingParent();
|
|
3388
|
-
f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = L(), this.targetWithTransforms = L()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Wl(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) :
|
|
3388
|
+
f && this.linkedParentVersion !== f.layoutVersion && !f.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (f && f.layout ? this.createRelativeTarget(f, this.layout.layoutBox, f.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = L(), this.targetWithTransforms = L()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Wl(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : z(this.target, this.layout.layoutBox), rr(this.target, this.targetDelta)) : z(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, f && !!f.resumingFrom == !!this.resumingFrom && !f.options.layoutScroll && f.target && this.animationProgress !== 1 ? this.createRelativeTarget(f, this.target, f.target) : this.relativeParent = this.relativeTarget = void 0));
|
|
3389
3389
|
}
|
|
3390
3390
|
getClosestProjectingParent() {
|
|
3391
3391
|
if (!(!this.parent || Ke(this.parent.latestValues) || sr(this.parent.latestValues)))
|
|
@@ -3395,7 +3395,7 @@ function Sr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3395
3395
|
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
3396
3396
|
}
|
|
3397
3397
|
createRelativeTarget(r, a, l) {
|
|
3398
|
-
this.relativeParent = r, this.linkedParentVersion = r.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = L(), this.relativeTargetOrigin = L(), Qt(this.relativeTargetOrigin, a, l),
|
|
3398
|
+
this.relativeParent = r, this.linkedParentVersion = r.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = L(), this.relativeTargetOrigin = L(), Qt(this.relativeTargetOrigin, a, l), z(this.relativeTarget, this.relativeTargetOrigin);
|
|
3399
3399
|
}
|
|
3400
3400
|
removeRelativeTarget() {
|
|
3401
3401
|
this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -3409,7 +3409,7 @@ function Sr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3409
3409
|
const { layout: c, layoutId: u } = this.options;
|
|
3410
3410
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || u))
|
|
3411
3411
|
return;
|
|
3412
|
-
|
|
3412
|
+
z(this.layoutCorrected, this.layout.layoutBox);
|
|
3413
3413
|
const h = this.treeScale.x, f = this.treeScale.y;
|
|
3414
3414
|
yl(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = L());
|
|
3415
3415
|
const { target: d } = r;
|
|
@@ -3444,7 +3444,7 @@ function Sr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3444
3444
|
let v;
|
|
3445
3445
|
this.mixTargetDelta = (S) => {
|
|
3446
3446
|
const w = S / 1e3;
|
|
3447
|
-
Ri(h.x, r.x, w), Ri(h.y, r.y, w), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Qt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), mc(this.relativeTarget, this.relativeTargetOrigin, f, w), v &&
|
|
3447
|
+
Ri(h.x, r.x, w), Ri(h.y, r.y, w), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Qt(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), mc(this.relativeTarget, this.relativeTargetOrigin, f, w), v && zl(this.relativeTarget, v) && (this.isProjectionDirty = !1), v || (v = L()), z(v, this.relativeTarget)), m && (this.animationValues = u, Xl(u, c, this.latestValues, w, T, g)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
|
|
3448
3448
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
3449
3449
|
}
|
|
3450
3450
|
startAnimation(r) {
|
|
@@ -3484,7 +3484,7 @@ function Sr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3484
3484
|
const f = N(this.layout.layoutBox.y);
|
|
3485
3485
|
l.y.min = r.target.y.min, l.y.max = l.y.min + f;
|
|
3486
3486
|
}
|
|
3487
|
-
|
|
3487
|
+
z(a, l), gt(a, u), Mt(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
|
|
3488
3488
|
}
|
|
3489
3489
|
}
|
|
3490
3490
|
registerSharedNode(r, a) {
|
|
@@ -3548,12 +3548,12 @@ function Sr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3548
3548
|
}
|
|
3549
3549
|
const l = this.getTransformTemplate();
|
|
3550
3550
|
if (this.needsReset) {
|
|
3551
|
-
this.needsReset = !1, r.visibility = "", r.opacity = "", r.pointerEvents =
|
|
3551
|
+
this.needsReset = !1, r.visibility = "", r.opacity = "", r.pointerEvents = zt(a == null ? void 0 : a.pointerEvents) || "", r.transform = l ? l(this.latestValues, "") : "none";
|
|
3552
3552
|
return;
|
|
3553
3553
|
}
|
|
3554
3554
|
const c = this.getLead();
|
|
3555
3555
|
if (!this.projectionDelta || !this.layout || !c.target) {
|
|
3556
|
-
this.options.layoutId && (r.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, r.pointerEvents =
|
|
3556
|
+
this.options.layoutId && (r.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, r.pointerEvents = zt(a == null ? void 0 : a.pointerEvents) || ""), this.hasProjected && !at(this.latestValues) && (r.transform = l ? l({}, "") : "none", this.hasProjected = !1);
|
|
3557
3557
|
return;
|
|
3558
3558
|
}
|
|
3559
3559
|
r.visibility = "";
|
|
@@ -3563,10 +3563,10 @@ function Sr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3563
3563
|
l && (h = l(u, h)), r.transform = h;
|
|
3564
3564
|
const { x: f, y: d } = this.projectionDelta;
|
|
3565
3565
|
r.transformOrigin = `${f.origin * 100}% ${d.origin * 100}% 0`, c.animationValues ? r.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : r.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
|
|
3566
|
-
for (const p in
|
|
3566
|
+
for (const p in _e) {
|
|
3567
3567
|
if (u[p] === void 0)
|
|
3568
3568
|
continue;
|
|
3569
|
-
const { correct: m, applyTo: y, isCSSVariable: g } =
|
|
3569
|
+
const { correct: m, applyTo: y, isCSSVariable: g } = _e[p], T = h === "none" ? u[p] : m(u[p], c);
|
|
3570
3570
|
if (y) {
|
|
3571
3571
|
const v = y.length;
|
|
3572
3572
|
for (let S = 0; S < v; S++)
|
|
@@ -3574,7 +3574,7 @@ function Sr({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
3574
3574
|
} else
|
|
3575
3575
|
g ? this.options.visualElement.renderState.vars[p] = T : r[p] = T;
|
|
3576
3576
|
}
|
|
3577
|
-
this.options.layoutId && (r.pointerEvents = c === this ?
|
|
3577
|
+
this.options.layoutId && (r.pointerEvents = c === this ? zt(a == null ? void 0 : a.pointerEvents) || "" : "none");
|
|
3578
3578
|
}
|
|
3579
3579
|
clearSnapshot() {
|
|
3580
3580
|
this.resumeFrom = this.snapshot = void 0;
|
|
@@ -3684,7 +3684,7 @@ function gc(t) {
|
|
|
3684
3684
|
const yc = {
|
|
3685
3685
|
duration: 0.45,
|
|
3686
3686
|
ease: [0.4, 0, 0.1, 1]
|
|
3687
|
-
}, ki = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Fi = ki("applewebkit/") && !ki("chrome/") ? Math.round :
|
|
3687
|
+
}, ki = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Fi = ki("applewebkit/") && !ki("chrome/") ? Math.round : _;
|
|
3688
3688
|
function Bi(t) {
|
|
3689
3689
|
t.min = Fi(t.min), t.max = Fi(t.max);
|
|
3690
3690
|
}
|
|
@@ -3845,7 +3845,7 @@ function Ar(t = !0) {
|
|
|
3845
3845
|
const Wt = (t) => t.key || "";
|
|
3846
3846
|
function Oi(t) {
|
|
3847
3847
|
const e = [];
|
|
3848
|
-
return
|
|
3848
|
+
return zr.forEach(t, (n) => {
|
|
3849
3849
|
Hr(n) && e.push(n);
|
|
3850
3850
|
}), e;
|
|
3851
3851
|
}
|
|
@@ -4100,7 +4100,7 @@ function Uc({ scrapeMotionValuesFromProps: t, createRenderState: e }, n, i, s) {
|
|
|
4100
4100
|
function Wc(t, e, n, i) {
|
|
4101
4101
|
const s = {}, o = i(t, {});
|
|
4102
4102
|
for (const f in o)
|
|
4103
|
-
s[f] =
|
|
4103
|
+
s[f] = zt(o[f]);
|
|
4104
4104
|
let { initial: r, animate: a } = t;
|
|
4105
4105
|
const l = se(t), c = tr(t);
|
|
4106
4106
|
e && c && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
|
|
@@ -4137,8 +4137,8 @@ const Rr = (t) => (e, n) => {
|
|
|
4137
4137
|
}), Gc = /* @__PURE__ */ Rr({
|
|
4138
4138
|
scrapeMotionValuesFromProps: fr,
|
|
4139
4139
|
createRenderState: Er
|
|
4140
|
-
}),
|
|
4141
|
-
function
|
|
4140
|
+
}), _c = Symbol.for("motionComponentSymbol");
|
|
4141
|
+
function zc(t, e, n) {
|
|
4142
4142
|
const i = K(n);
|
|
4143
4143
|
qe(() => {
|
|
4144
4144
|
i.current = n;
|
|
@@ -4229,11 +4229,11 @@ function ve(t, { forwardMotionProps: e = !1, type: n } = {}, i, s) {
|
|
|
4229
4229
|
const y = Zc(f);
|
|
4230
4230
|
h = y.MeasureLayout, p.visualElement = Hc(t, m, f, s, y.ProjectionNode, o);
|
|
4231
4231
|
}
|
|
4232
|
-
return Gr(re.Provider, { value: p, children: [h && p.visualElement ? B(h, { visualElement: p.visualElement, ...f }) : null, $c(t, c,
|
|
4232
|
+
return Gr(re.Provider, { value: p, children: [h && p.visualElement ? B(h, { visualElement: p.visualElement, ...f }) : null, $c(t, c, zc(m, p.visualElement, u), m, d, e, o)] });
|
|
4233
4233
|
}
|
|
4234
4234
|
a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
|
|
4235
4235
|
const l = Xr(a);
|
|
4236
|
-
return l[
|
|
4236
|
+
return l[_c] = t, l;
|
|
4237
4237
|
}
|
|
4238
4238
|
function Xc({ layoutId: t }) {
|
|
4239
4239
|
const e = I(Je).id;
|
|
@@ -4484,14 +4484,14 @@ function cu(t, { top: e, left: n, bottom: i, right: s }) {
|
|
|
4484
4484
|
y: Gi(t.y, e, i)
|
|
4485
4485
|
};
|
|
4486
4486
|
}
|
|
4487
|
-
function
|
|
4487
|
+
function _i(t, e) {
|
|
4488
4488
|
let n = e.min - t.min, i = e.max - t.max;
|
|
4489
4489
|
return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
|
|
4490
4490
|
}
|
|
4491
4491
|
function uu(t, e) {
|
|
4492
4492
|
return {
|
|
4493
|
-
x:
|
|
4494
|
-
y:
|
|
4493
|
+
x: _i(t.x, e.x),
|
|
4494
|
+
y: _i(t.y, e.y)
|
|
4495
4495
|
};
|
|
4496
4496
|
}
|
|
4497
4497
|
function hu(t, e) {
|
|
@@ -4503,14 +4503,14 @@ function fu(t, e) {
|
|
|
4503
4503
|
const n = {};
|
|
4504
4504
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
4505
4505
|
}
|
|
4506
|
-
const
|
|
4507
|
-
function du(t =
|
|
4508
|
-
return t === !1 ? t = 0 : t === !0 && (t =
|
|
4509
|
-
x:
|
|
4510
|
-
y:
|
|
4506
|
+
const ze = 0.35;
|
|
4507
|
+
function du(t = ze) {
|
|
4508
|
+
return t === !1 ? t = 0 : t === !0 && (t = ze), {
|
|
4509
|
+
x: zi(t, "left", "right"),
|
|
4510
|
+
y: zi(t, "top", "bottom")
|
|
4511
4511
|
};
|
|
4512
4512
|
}
|
|
4513
|
-
function
|
|
4513
|
+
function zi(t, e, n) {
|
|
4514
4514
|
return {
|
|
4515
4515
|
min: Hi(t, e),
|
|
4516
4516
|
max: Hi(t, n)
|
|
@@ -4753,7 +4753,7 @@ class mu {
|
|
|
4753
4753
|
};
|
|
4754
4754
|
}
|
|
4755
4755
|
getProps() {
|
|
4756
|
-
const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: i = !1, dragPropagation: s = !1, dragConstraints: o = !1, dragElastic: r =
|
|
4756
|
+
const e = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: i = !1, dragPropagation: s = !1, dragConstraints: o = !1, dragElastic: r = ze, dragMomentum: a = !0 } = e;
|
|
4757
4757
|
return {
|
|
4758
4758
|
...e,
|
|
4759
4759
|
drag: n,
|
|
@@ -4774,11 +4774,11 @@ function gu(t, e = 10) {
|
|
|
4774
4774
|
}
|
|
4775
4775
|
class yu extends st {
|
|
4776
4776
|
constructor(e) {
|
|
4777
|
-
super(e), this.removeGroupControls =
|
|
4777
|
+
super(e), this.removeGroupControls = _, this.removeListeners = _, this.controls = new mu(e);
|
|
4778
4778
|
}
|
|
4779
4779
|
mount() {
|
|
4780
4780
|
const { dragControls: e } = this.node.getProps();
|
|
4781
|
-
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
4781
|
+
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || _;
|
|
4782
4782
|
}
|
|
4783
4783
|
update() {
|
|
4784
4784
|
const { dragControls: e } = this.node.getProps(), { dragControls: n } = this.node.prevProps || {};
|
|
@@ -4793,7 +4793,7 @@ const Yi = (t) => (e, n) => {
|
|
|
4793
4793
|
};
|
|
4794
4794
|
class vu extends st {
|
|
4795
4795
|
constructor() {
|
|
4796
|
-
super(...arguments), this.removePointerDownListener =
|
|
4796
|
+
super(...arguments), this.removePointerDownListener = _;
|
|
4797
4797
|
}
|
|
4798
4798
|
onPointerDown(e) {
|
|
4799
4799
|
this.session = new Br(e, this.createPanHandlers(), {
|
|
@@ -5157,25 +5157,22 @@ const Ur = ({
|
|
|
5157
5157
|
);
|
|
5158
5158
|
};
|
|
5159
5159
|
Ur.displayName = "Box";
|
|
5160
|
-
const Ou = (
|
|
5161
|
-
([n, i]) => n === "initial" ? `pittorica-text--${t}-${i}` : `pittorica-text--${n}-${t}-${i}`
|
|
5162
|
-
) : [], ju = ({
|
|
5160
|
+
const Ou = ({
|
|
5163
5161
|
children: t,
|
|
5164
5162
|
as: e = "span",
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
...d
|
|
5163
|
+
weight: n = "regular",
|
|
5164
|
+
align: i,
|
|
5165
|
+
truncate: s = !1,
|
|
5166
|
+
color: o,
|
|
5167
|
+
className: r,
|
|
5168
|
+
style: a,
|
|
5169
|
+
href: l,
|
|
5170
|
+
target: c,
|
|
5171
|
+
rel: u,
|
|
5172
|
+
htmlFor: h,
|
|
5173
|
+
...f
|
|
5177
5174
|
}) => {
|
|
5178
|
-
const
|
|
5175
|
+
const d = (o == null ? void 0 : o.startsWith("#")) || (o == null ? void 0 : o.startsWith("rgb")) || (o == null ? void 0 : o.startsWith("hsl")), p = /* @__PURE__ */ new Set([
|
|
5179
5176
|
"danger",
|
|
5180
5177
|
"success",
|
|
5181
5178
|
"error",
|
|
@@ -5187,38 +5184,34 @@ const Ou = (t, e) => e ? typeof e == "string" ? [`pittorica-text--${t}-${e}`] :
|
|
|
5187
5184
|
"slate",
|
|
5188
5185
|
"blue",
|
|
5189
5186
|
"red"
|
|
5190
|
-
]
|
|
5191
|
-
if (
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
textAlign: s,
|
|
5199
|
-
color: y
|
|
5200
|
-
}, T = Ou("size", n);
|
|
5187
|
+
]), m = (() => {
|
|
5188
|
+
if (o)
|
|
5189
|
+
return o === "inherit" ? "inherit" : d ? o : p.has(o) ? `var(--pittorica-${o}-9)` : o;
|
|
5190
|
+
})(), y = {
|
|
5191
|
+
...a,
|
|
5192
|
+
textAlign: i,
|
|
5193
|
+
color: m
|
|
5194
|
+
};
|
|
5201
5195
|
return /* @__PURE__ */ B(
|
|
5202
5196
|
Ur,
|
|
5203
5197
|
{
|
|
5204
5198
|
as: e,
|
|
5205
5199
|
className: Bu(
|
|
5206
5200
|
"pittorica-text",
|
|
5207
|
-
{ "pittorica-text--truncate":
|
|
5208
|
-
|
|
5209
|
-
a
|
|
5201
|
+
{ "pittorica-text--truncate": s },
|
|
5202
|
+
r
|
|
5210
5203
|
),
|
|
5211
|
-
"data-weight":
|
|
5212
|
-
style:
|
|
5213
|
-
href:
|
|
5214
|
-
target:
|
|
5215
|
-
rel:
|
|
5216
|
-
htmlFor:
|
|
5217
|
-
...
|
|
5204
|
+
"data-weight": n,
|
|
5205
|
+
style: y,
|
|
5206
|
+
href: l,
|
|
5207
|
+
target: c,
|
|
5208
|
+
rel: u,
|
|
5209
|
+
htmlFor: h,
|
|
5210
|
+
...f,
|
|
5218
5211
|
children: t
|
|
5219
5212
|
}
|
|
5220
5213
|
);
|
|
5221
|
-
},
|
|
5214
|
+
}, ju = ({
|
|
5222
5215
|
children: t,
|
|
5223
5216
|
className: e,
|
|
5224
5217
|
preview: n = 2,
|
|
@@ -5259,7 +5252,7 @@ const Ou = (t, e) => e ? typeof e == "string" ? [`pittorica-text--${t}-${e}`] :
|
|
|
5259
5252
|
}) })
|
|
5260
5253
|
}
|
|
5261
5254
|
) });
|
|
5262
|
-
},
|
|
5255
|
+
}, Nu = ({ children: t, className: e, ...n }) => /* @__PURE__ */ B(
|
|
5263
5256
|
Rn,
|
|
5264
5257
|
{
|
|
5265
5258
|
...n,
|
|
@@ -5267,14 +5260,14 @@ const Ou = (t, e) => e ? typeof e == "string" ? [`pittorica-text--${t}-${e}`] :
|
|
|
5267
5260
|
style: { width: "100%", height: "100%" },
|
|
5268
5261
|
children: t
|
|
5269
5262
|
}
|
|
5270
|
-
),
|
|
5271
|
-
Root:
|
|
5272
|
-
Item:
|
|
5273
|
-
Description:
|
|
5263
|
+
), $u = ({ children: t, className: e }) => /* @__PURE__ */ B("div", { className: Ze("pittorica-carousel-description", e), children: /* @__PURE__ */ B(Ou, { color: "white", weight: "medium", children: t }) }), _u = {
|
|
5264
|
+
Root: ju,
|
|
5265
|
+
Item: Nu,
|
|
5266
|
+
Description: $u
|
|
5274
5267
|
};
|
|
5275
5268
|
export {
|
|
5276
5269
|
_u as Carousel,
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5270
|
+
$u as CarouselDescription,
|
|
5271
|
+
Nu as CarouselItem,
|
|
5272
|
+
ju as CarouselRoot
|
|
5280
5273
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pittorica/carousel-react",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"@tabler/icons-react": "^3.36.1",
|
|
13
13
|
"clsx": "^2.1.1",
|
|
14
14
|
"motion": "^12.30.0",
|
|
15
|
-
"@pittorica/box-react": "0.22.
|
|
16
|
-
"@pittorica/icon-button-react": "0.22.
|
|
15
|
+
"@pittorica/box-react": "0.22.3",
|
|
16
|
+
"@pittorica/icon-button-react": "0.22.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"typescript": "^5.0.0",
|
|
26
26
|
"vite": "^5.0.0",
|
|
27
27
|
"vitest": "^2.1.9",
|
|
28
|
-
"@pittorica/text-react": "0.22.
|
|
29
|
-
"@pittorica/theme-react": "0.22.
|
|
30
|
-
"pittorica": "0.22.
|
|
28
|
+
"@pittorica/text-react": "0.22.3",
|
|
29
|
+
"@pittorica/theme-react": "0.22.3",
|
|
30
|
+
"pittorica": "0.22.3"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=19",
|