@latte-macchiat-io/latte-vanilla-components 0.0.152 → 0.0.153
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.cjs.js +3 -3
- package/dist/index.es.js +43 -46
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -89,7 +89,7 @@ function cl() {
|
|
89
89
|
function ul() {
|
90
90
|
return q = ut > 0 ? K(me, --ut) : 0, ue--, q === 10 && (ue = 1, Sn--), q;
|
91
91
|
}
|
92
|
-
function
|
92
|
+
function ft() {
|
93
93
|
return q = ut < Ws ? K(me, ut++) : 0, ue++, q === 10 && (ue = 1, Sn++), q;
|
94
94
|
}
|
95
95
|
function At() {
|
@@ -150,16 +150,16 @@ function nn(t) {
|
|
150
150
|
}
|
151
151
|
function dl(t) {
|
152
152
|
for (; (q = At()) && q < 33; )
|
153
|
-
|
153
|
+
ft();
|
154
154
|
return _e(t) > 2 || _e(q) > 3 ? "" : " ";
|
155
155
|
}
|
156
156
|
function fl(t, e) {
|
157
|
-
for (; --e &&
|
157
|
+
for (; --e && ft() && !(q < 48 || q > 102 || q > 57 && q < 65 || q > 70 && q < 97); )
|
158
158
|
;
|
159
|
-
return Ue(t, en() + (e < 6 && At() == 32 &&
|
159
|
+
return Ue(t, en() + (e < 6 && At() == 32 && ft() == 32));
|
160
160
|
}
|
161
161
|
function Xn(t) {
|
162
|
-
for (;
|
162
|
+
for (; ft(); )
|
163
163
|
switch (q) {
|
164
164
|
// ] ) " '
|
165
165
|
case t:
|
@@ -175,20 +175,20 @@ function Xn(t) {
|
|
175
175
|
break;
|
176
176
|
// \
|
177
177
|
case 92:
|
178
|
-
|
178
|
+
ft();
|
179
179
|
break;
|
180
180
|
}
|
181
181
|
return ut;
|
182
182
|
}
|
183
183
|
function hl(t, e) {
|
184
|
-
for (;
|
184
|
+
for (; ft() && t + q !== 57; )
|
185
185
|
if (t + q === 84 && At() === 47)
|
186
186
|
break;
|
187
|
-
return "/*" + Ue(e, ut - 1) + "*" + wn(t === 47 ? t :
|
187
|
+
return "/*" + Ue(e, ut - 1) + "*" + wn(t === 47 ? t : ft());
|
188
188
|
}
|
189
189
|
function pl(t) {
|
190
190
|
for (; !_e(At()); )
|
191
|
-
|
191
|
+
ft();
|
192
192
|
return Ue(t, ut);
|
193
193
|
}
|
194
194
|
function ml(t) {
|
@@ -196,7 +196,7 @@ function ml(t) {
|
|
196
196
|
}
|
197
197
|
function rn(t, e, n, r, i, s, o, a, l) {
|
198
198
|
for (var c = 0, u = 0, d = o, f = 0, h = 0, p = 0, g = 1, x = 1, v = 1, w = 0, S = "", P = i, m = s, V = r, E = S; x; )
|
199
|
-
switch (p = w, w =
|
199
|
+
switch (p = w, w = ft()) {
|
200
200
|
// (
|
201
201
|
case 40:
|
202
202
|
if (p != 108 && K(E, d - 1) == 58) {
|
@@ -225,7 +225,7 @@ function rn(t, e, n, r, i, s, o, a, l) {
|
|
225
225
|
switch (At()) {
|
226
226
|
case 42:
|
227
227
|
case 47:
|
228
|
-
He(gl(hl(
|
228
|
+
He(gl(hl(ft(), en()), e, n), l);
|
229
229
|
break;
|
230
230
|
default:
|
231
231
|
E += "/";
|
@@ -291,7 +291,7 @@ function rn(t, e, n, r, i, s, o, a, l) {
|
|
291
291
|
break;
|
292
292
|
// @
|
293
293
|
case 64:
|
294
|
-
At() === 45 && (E += nn(
|
294
|
+
At() === 45 && (E += nn(ft())), f = At(), u = d = Ct(S = E += pl(en())), w++;
|
295
295
|
break;
|
296
296
|
// -
|
297
297
|
case 45:
|
@@ -354,7 +354,7 @@ function xl(t) {
|
|
354
354
|
}
|
355
355
|
var wl = function(e, n, r) {
|
356
356
|
for (var i = 0, s = 0; i = s, s = At(), i === 38 && s === 12 && (n[r] = 1), !_e(s); )
|
357
|
-
|
357
|
+
ft();
|
358
358
|
return Ue(e, ut);
|
359
359
|
}, Sl = function(e, n) {
|
360
360
|
var r = -1, i = 44;
|
@@ -375,7 +375,7 @@ var wl = function(e, n, r) {
|
|
375
375
|
default:
|
376
376
|
e[r] += wn(i);
|
377
377
|
}
|
378
|
-
while (i =
|
378
|
+
while (i = ft());
|
379
379
|
return e;
|
380
380
|
}, Tl = function(e, n) {
|
381
381
|
return Gs(Sl(qs(e), n));
|
@@ -789,7 +789,7 @@ function Dl() {
|
|
789
789
|
function Ft(R) {
|
790
790
|
return P(R) === r;
|
791
791
|
}
|
792
|
-
function
|
792
|
+
function dt(R) {
|
793
793
|
return P(R) === p;
|
794
794
|
}
|
795
795
|
function Bt(R) {
|
@@ -807,7 +807,7 @@ function Dl() {
|
|
807
807
|
function Gt(R) {
|
808
808
|
return P(R) === d;
|
809
809
|
}
|
810
|
-
O.AsyncMode = m, O.ConcurrentMode = V, O.ContextConsumer = E, O.ContextProvider = y, O.Element = b, O.ForwardRef = T, O.Fragment = C, O.Lazy = k, O.Memo = z, O.Portal = Q, O.Profiler = tt, O.StrictMode = G, O.Suspense = D, O.isAsyncMode = st, O.isConcurrentMode = et, O.isContextConsumer = $t, O.isContextProvider = Ot, O.isElement = yt, O.isForwardRef = pt, O.isFragment = Ft, O.isLazy =
|
810
|
+
O.AsyncMode = m, O.ConcurrentMode = V, O.ContextConsumer = E, O.ContextProvider = y, O.Element = b, O.ForwardRef = T, O.Fragment = C, O.Lazy = k, O.Memo = z, O.Portal = Q, O.Profiler = tt, O.StrictMode = G, O.Suspense = D, O.isAsyncMode = st, O.isConcurrentMode = et, O.isContextConsumer = $t, O.isContextProvider = Ot, O.isElement = yt, O.isForwardRef = pt, O.isFragment = Ft, O.isLazy = dt, O.isMemo = Bt, O.isPortal = vt, O.isProfiler = bt, O.isStrictMode = qt, O.isSuspense = Gt, O.isValidElementType = S, O.typeOf = P;
|
811
811
|
}()), O;
|
812
812
|
}
|
813
813
|
var ai;
|
@@ -1145,7 +1145,7 @@ var Hl = function(e) {
|
|
1145
1145
|
}), /* @__PURE__ */ lt.createElement(i, l));
|
1146
1146
|
}), Js = Xl, Zl = ke.Fragment, A = function(e, n, r) {
|
1147
1147
|
return Cn.call(n, "css") ? ke.jsx(Js, Zs(e, n), r) : ke.jsx(e, n, r);
|
1148
|
-
},
|
1148
|
+
}, ht = function(e, n, r) {
|
1149
1149
|
return Cn.call(n, "css") ? ke.jsxs(Js, Zs(e, n), r) : ke.jsxs(e, n, r);
|
1150
1150
|
};
|
1151
1151
|
function Jl(t) {
|
@@ -1575,7 +1575,7 @@ const im = ({
|
|
1575
1575
|
[at.modalMaxWidth]: `calc(100% - ${o[s] + a[s]}px)`,
|
1576
1576
|
[at.modalMaxHeight]: `calc(100% - ${o[s] + a[s]}px)`
|
1577
1577
|
}),
|
1578
|
-
children: /* @__PURE__ */
|
1578
|
+
children: /* @__PURE__ */ ht("div", { className: Sc, style: F({
|
1579
1579
|
[at.modalContentTextAlign]: e === on.Left ? "left" : e === on.Right ? "right" : "center",
|
1580
1580
|
[at.modalContentBackgroundColor]: p,
|
1581
1581
|
[at.modalContentBorderRadius]: `${h}px`,
|
@@ -1622,7 +1622,7 @@ const kc = ({
|
|
1622
1622
|
};
|
1623
1623
|
return wt(() => (window.addEventListener("keydown", E), () => window.removeEventListener("keydown", E)), []), /* @__PURE__ */ A("div", { className: f, style: F({
|
1624
1624
|
[Cc.videoMaxHeight]: u ? "100vw" : "100%"
|
1625
|
-
}), children: /* @__PURE__ */
|
1625
|
+
}), children: /* @__PURE__ */ ht("div", { className: Pc, children: [
|
1626
1626
|
/* @__PURE__ */ A("video", { ref: h, playsInline: !0, onEnded: V, children: /* @__PURE__ */ A("source", { src: t, type: "video/mp4" }) }),
|
1627
1627
|
n && /* @__PURE__ */ A("div", { className: Ac, children: /* @__PURE__ */ A("img", { src: n, alt: "" }) }),
|
1628
1628
|
(!c || !e) && /* @__PURE__ */ A("button", { className: Vc, onClick: w, "aria-label": "Play", children: /* @__PURE__ */ A(Xt, { icon: "play", size: 50, theme: l }) }),
|
@@ -1670,7 +1670,7 @@ const lm = ({
|
|
1670
1670
|
const { width: a } = _c(), [l, c] = _t(0), u = le(null), [d, f] = _t(n);
|
1671
1671
|
return wt(() => {
|
1672
1672
|
a && a > 1024 ? f(n) : a && a > 768 ? f(Math.min(n, 2)) : f(1);
|
1673
|
-
}, [a, n]), /* @__PURE__ */
|
1673
|
+
}, [a, n]), /* @__PURE__ */ ht(
|
1674
1674
|
"div",
|
1675
1675
|
{
|
1676
1676
|
ref: u,
|
@@ -1899,7 +1899,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1899
1899
|
}, []);
|
1900
1900
|
}
|
1901
1901
|
var w = function(b, T) {
|
1902
|
-
var C = T.decimal, k = T.decimals, z = T.duration, Q = T.easingFn, tt = T.end, G = T.formattingFn, D = T.numerals, I = T.prefix, st = T.separator, et = T.start, $t = T.suffix, Ot = T.useEasing, yt = T.useGrouping, pt = T.useIndianSeparators, Ft = T.enableScrollSpy,
|
1902
|
+
var C = T.decimal, k = T.decimals, z = T.duration, Q = T.easingFn, tt = T.end, G = T.formattingFn, D = T.numerals, I = T.prefix, st = T.separator, et = T.start, $t = T.suffix, Ot = T.useEasing, yt = T.useGrouping, pt = T.useIndianSeparators, Ft = T.enableScrollSpy, dt = T.scrollSpyDelay, Bt = T.scrollSpyOnce, vt = T.plugin;
|
1903
1903
|
return new e.CountUp(b, tt, {
|
1904
1904
|
startVal: et,
|
1905
1905
|
duration: z,
|
@@ -1916,7 +1916,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1916
1916
|
useIndianSeparators: pt,
|
1917
1917
|
useGrouping: yt,
|
1918
1918
|
enableScrollSpy: Ft,
|
1919
|
-
scrollSpyDelay:
|
1919
|
+
scrollSpyDelay: dt,
|
1920
1920
|
scrollSpyOnce: Bt
|
1921
1921
|
});
|
1922
1922
|
}, S = ["ref", "startOnMount", "enableReinitialize", "delay", "onEnd", "onStart", "onPauseResume", "onReset", "onUpdate"], P = {
|
@@ -1941,7 +1941,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1941
1941
|
return i(i({}, P), T);
|
1942
1942
|
}, [b]), k = C.ref, z = C.startOnMount, Q = C.enableReinitialize, tt = C.delay, G = C.onEnd, D = C.onStart, I = C.onPauseResume, st = C.onReset, et = C.onUpdate, $t = u(C, S), Ot = t.useRef(), yt = t.useRef(), pt = t.useRef(!1), Ft = v(function() {
|
1943
1943
|
return w(typeof k == "string" ? k : k.current, $t);
|
1944
|
-
}),
|
1944
|
+
}), dt = v(function(ot) {
|
1945
1945
|
var Tt = Ot.current;
|
1946
1946
|
if (Tt && !ot)
|
1947
1947
|
return Tt;
|
@@ -1949,7 +1949,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1949
1949
|
return Ot.current = Ht, Ht;
|
1950
1950
|
}), Bt = v(function() {
|
1951
1951
|
var ot = function() {
|
1952
|
-
return
|
1952
|
+
return dt(!0).start(function() {
|
1953
1953
|
G == null || G({
|
1954
1954
|
pauseResume: vt,
|
1955
1955
|
reset: bt,
|
@@ -1964,19 +1964,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1964
1964
|
update: qt
|
1965
1965
|
});
|
1966
1966
|
}), vt = v(function() {
|
1967
|
-
|
1967
|
+
dt().pauseResume(), I == null || I({
|
1968
1968
|
reset: bt,
|
1969
1969
|
start: Gt,
|
1970
1970
|
update: qt
|
1971
1971
|
});
|
1972
1972
|
}), bt = v(function() {
|
1973
|
-
|
1973
|
+
dt().el && (yt.current && clearTimeout(yt.current), dt().reset(), st == null || st({
|
1974
1974
|
pauseResume: vt,
|
1975
1975
|
start: Gt,
|
1976
1976
|
update: qt
|
1977
1977
|
}));
|
1978
1978
|
}), qt = v(function(ot) {
|
1979
|
-
|
1979
|
+
dt().update(ot), et == null || et({
|
1980
1980
|
pauseResume: vt,
|
1981
1981
|
reset: bt,
|
1982
1982
|
start: Gt
|
@@ -1997,7 +1997,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
1997
1997
|
pauseResume: vt,
|
1998
1998
|
reset: bt,
|
1999
1999
|
update: qt,
|
2000
|
-
getCountUp:
|
2000
|
+
getCountUp: dt
|
2001
2001
|
};
|
2002
2002
|
}, V = ["className", "redraw", "containerProps", "children", "style"], E = function(b) {
|
2003
2003
|
var T = b.className, C = b.redraw, k = b.containerProps, z = b.children, Q = b.style, tt = u(b, V), G = t.useRef(null), D = t.useRef(!1), I = m(i(i({}, tt), {}, {
|
@@ -2009,7 +2009,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
2009
2009
|
st();
|
2010
2010
|
}), Ft = v(function(vt) {
|
2011
2011
|
b.preserveValue || et(), $t(vt);
|
2012
|
-
}),
|
2012
|
+
}), dt = v(function() {
|
2013
2013
|
if (typeof b.children == "function" && !(G.current instanceof Element)) {
|
2014
2014
|
console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);
|
2015
2015
|
return;
|
@@ -2017,8 +2017,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
2017
2017
|
yt();
|
2018
2018
|
});
|
2019
2019
|
t.useEffect(function() {
|
2020
|
-
|
2021
|
-
}, [
|
2020
|
+
dt();
|
2021
|
+
}, [dt]), t.useEffect(function() {
|
2022
2022
|
D.current && Ft(b.end);
|
2023
2023
|
}, [b.end, Ft]);
|
2024
2024
|
var Bt = C && b;
|
@@ -2174,13 +2174,13 @@ const um = ({
|
|
2174
2174
|
threshold: 0.3,
|
2175
2175
|
triggerOnce: !0
|
2176
2176
|
}), { keyNumber: { paddingBottom: l } } = i;
|
2177
|
-
return /* @__PURE__ */
|
2177
|
+
return /* @__PURE__ */ ht(
|
2178
2178
|
"div",
|
2179
2179
|
{
|
2180
2180
|
ref: o,
|
2181
2181
|
className: r,
|
2182
2182
|
children: [
|
2183
|
-
/* @__PURE__ */
|
2183
|
+
/* @__PURE__ */ ht("div", { className: Hc, style: F({
|
2184
2184
|
[Gc.keyNumberPaddingBottom]: `${l[s]}px`
|
2185
2185
|
}), children: [
|
2186
2186
|
/* @__PURE__ */ A("span", { children: /* @__PURE__ */ A(Ic, { end: a ? n : 0, duration: 8 }) }),
|
@@ -2237,7 +2237,7 @@ const pm = ({
|
|
2237
2237
|
translations: s
|
2238
2238
|
}) => {
|
2239
2239
|
const o = St(), { languageSwitcher: a } = r;
|
2240
|
-
return /* @__PURE__ */
|
2240
|
+
return /* @__PURE__ */ ht(
|
2241
2241
|
"div",
|
2242
2242
|
{
|
2243
2243
|
className: i,
|
@@ -2299,7 +2299,7 @@ const ru = ({
|
|
2299
2299
|
const s = () => {
|
2300
2300
|
window.scrollTo({ top: 0, behavior: "smooth" }), n();
|
2301
2301
|
};
|
2302
|
-
return /* @__PURE__ */
|
2302
|
+
return /* @__PURE__ */ ht(
|
2303
2303
|
"button",
|
2304
2304
|
{
|
2305
2305
|
className: `${nu} ${i}`,
|
@@ -2326,8 +2326,8 @@ const vm = ({
|
|
2326
2326
|
className: o
|
2327
2327
|
}) => {
|
2328
2328
|
const [a, l] = _t(!1);
|
2329
|
-
return /* @__PURE__ */
|
2330
|
-
/* @__PURE__ */
|
2329
|
+
return /* @__PURE__ */ ht(Zl, { children: [
|
2330
|
+
/* @__PURE__ */ ht(
|
2331
2331
|
"header",
|
2332
2332
|
{
|
2333
2333
|
className: `${su} ${o}`,
|
@@ -7285,12 +7285,9 @@ const jp = {
|
|
7285
7285
|
[Ba]: `${v[f]}px`,
|
7286
7286
|
[Oa]: a ? "0px" : `${S[f]}px`,
|
7287
7287
|
[Ia]: u ? "0px" : `${P[f]}px`
|
7288
|
-
}), children: /* @__PURE__ */
|
7288
|
+
}), children: /* @__PURE__ */ A(Ep.div, { className: za, initial: "hidden", animate: d, variants: jp, style: F({
|
7289
7289
|
[_a]: s === un.Center ? "center" : s === un.Right ? "right" : "left"
|
7290
|
-
}), children:
|
7291
|
-
t,
|
7292
|
-
"ff"
|
7293
|
-
] }) });
|
7290
|
+
}), children: t }) });
|
7294
7291
|
};
|
7295
7292
|
var Np = { navGap: "var(--_1h6zt340)" }, Vm = { display: "flex", flexDirection: "column", gap: "var(--_1h6zt340)" };
|
7296
7293
|
const Rm = ({ children: t, theme: e = B, className: n }) => {
|
@@ -7449,7 +7446,7 @@ const Hp = ({
|
|
7449
7446
|
required: n = !1,
|
7450
7447
|
theme: r = B,
|
7451
7448
|
className: i
|
7452
|
-
}) => /* @__PURE__ */
|
7449
|
+
}) => /* @__PURE__ */ ht(
|
7453
7450
|
"label",
|
7454
7451
|
{
|
7455
7452
|
htmlFor: t,
|
@@ -7480,7 +7477,7 @@ const jm = ({
|
|
7480
7477
|
onChange: c = void 0,
|
7481
7478
|
type: u = ei.Text,
|
7482
7479
|
className: d
|
7483
|
-
}) => /* @__PURE__ */
|
7480
|
+
}) => /* @__PURE__ */ ht("div", { className: d, style: F({
|
7484
7481
|
[Kp.errorColor]: l.form.error.color
|
7485
7482
|
}), children: [
|
7486
7483
|
e && /* @__PURE__ */ A(Hp, { className: "", theme: l, label: e, name: t, required: i }),
|
@@ -7521,7 +7518,7 @@ const Um = ({
|
|
7521
7518
|
u && a(!0);
|
7522
7519
|
const f = d ? "granted" : "denied";
|
7523
7520
|
typeof window.gtag < "u" && window.gtag("consent", "update", { analytics_storage: f });
|
7524
|
-
}, [o]), o ? /* @__PURE__ */
|
7521
|
+
}, [o]), o ? /* @__PURE__ */ ht(
|
7525
7522
|
"div",
|
7526
7523
|
{
|
7527
7524
|
className: s,
|
@@ -7538,7 +7535,7 @@ const Um = ({
|
|
7538
7535
|
}),
|
7539
7536
|
children: [
|
7540
7537
|
t,
|
7541
|
-
/* @__PURE__ */
|
7538
|
+
/* @__PURE__ */ ht("div", { children: [
|
7542
7539
|
/* @__PURE__ */ A(pi, { className: "", onClick: () => l(!1), children: (r == null ? void 0 : r.actions.reject) || "Reject" }),
|
7543
7540
|
/* @__PURE__ */ A(pi, { className: "", onClick: () => l(!0), children: (r == null ? void 0 : r.actions.accept) || "Accept" })
|
7544
7541
|
] })
|
package/package.json
CHANGED