@odynn/awayz-core 0.5.2 → 0.5.4
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/assets/_styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.currency-conversion svg{fill:var(--primary, #1495f2);transform:scaleX(.75)}.tooltip-content{border-radius:.5rem;border:1px solid var(--border, #e7eef3);padding:1rem;line-height:1;background-color:var(--foreground, #fff);animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);animation-fill-mode:both;will-change:transform,opacity;z-index:500;position:absolute}.currency-conversion-container{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:1rem}.currency-conversion-container>p{font-weight:600}.currency-conversion-container .currency-conversion-amounts{position:relative;display:flex;align-items:center;width:100vw;max-width:300px;border:1px solid var(--border, #e7eef3);border-radius:.5rem}.currency-conversion-container .currency-conversion-amounts div{flex:1;width:50%;padding:1rem;font-weight:600}.currency-conversion-container .currency-conversion-amounts div:first-of-type{border-right:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:var(--foreground, #fff);color:var(--primary, #1495f2);height:2rem;width:2rem;display:flex;align-items:center;justify-content:center;border:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon svg{fill:var(--primary, #1495f2);width:1rem;height:1rem;transform:scaleX(.75)}.currency-conversion-container .currency-conversion-rate{padding:.5rem 1rem;border-radius:.5rem;background-color:var(--border, #e7eef3);font-size:.8rem}.tooltip-arrow{fill:var(--foreground, #fff)}.tooltip-content[data-state=delayed-open][data-side=top]{animation-name:tooltip-down}.tooltip-content[data-state=delayed-open][data-side=right]{animation-name:tooltip-right}.tooltip-content[data-state=delayed-open][data-side=bottom]{animation-name:tooltip-up}.tooltip-content[data-state=delayed-open][data-side=left]{animation-name:tooltip-left}@keyframes tooltip-up{0%{opacity:0;transform:translateY(4px) translate(-50%)}to{opacity:1;transform:translateY(0) translate(-50%)}}@keyframes tooltip-down{0%{opacity:0;transform:translateY(calc(-100% - 4px)) translate(-50%)}to{opacity:1;transform:translateY(-100%) translate(-50%)}}@keyframes tooltip-left{0%{opacity:0;transform:translate(calc(-100% - 4px)) translateY(-50%)}to{opacity:1;transform:translate(-100%) translateY(-50%)}}@keyframes tooltip-right{0%{opacity:0;transform:translate(-4px) translateY(-50%)}to{opacity:1;transform:translate(0) translateY(-50%)}}
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap";*{font-family:Inter,sans-serif!important;margin:0;padding:0;box-sizing:border-box}:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.currency-conversion svg{fill:var(--primary, #1495f2);transform:scaleX(.75)}.currency-conversion.loading{background-color:var(--border, #e7eef3);background-size:300%;background-position:100% 0;animation:shimmer 2s infinite;color:transparent;padding:0 .5rem;border-radius:.5rem}.tooltip-content{border-radius:.5rem;border:1px solid var(--border, #e7eef3);padding:1rem;line-height:1;background-color:var(--foreground, #fff);animation-duration:.4s;animation-timing-function:cubic-bezier(.16,1,.3,1);animation-fill-mode:both;will-change:transform,opacity;z-index:500;position:absolute}.currency-conversion-container{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:1rem}.currency-conversion-container>p{font-weight:600}.currency-conversion-container .currency-conversion-amounts{position:relative;display:flex;align-items:center;width:100vw;max-width:300px;border:1px solid var(--border, #e7eef3);border-radius:.5rem}.currency-conversion-container .currency-conversion-amounts div{flex:1;width:50%;padding:1rem;font-weight:600}.currency-conversion-container .currency-conversion-amounts div:first-of-type{border-right:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;background-color:var(--foreground, #fff);color:var(--primary, #1495f2);height:2rem;width:2rem;display:flex;align-items:center;justify-content:center;border:1px solid var(--border, #e7eef3)}.currency-conversion-container .currency-conversion-amounts .conversion-icon svg{fill:var(--primary, #1495f2);width:1rem;height:1rem;transform:scaleX(.75)}.currency-conversion-container .currency-conversion-rate{padding:.5rem 1rem;border-radius:.5rem;background-color:var(--border, #e7eef3);font-size:.8rem}.tooltip-arrow{fill:var(--foreground, #fff)}.tooltip-content[data-state=delayed-open][data-side=top]{animation-name:tooltip-down}.tooltip-content[data-state=delayed-open][data-side=right]{animation-name:tooltip-right}.tooltip-content[data-state=delayed-open][data-side=bottom]{animation-name:tooltip-up}.tooltip-content[data-state=delayed-open][data-side=left]{animation-name:tooltip-left}@keyframes tooltip-up{0%{opacity:0;transform:translateY(4px) translate(-50%)}to{opacity:1;transform:translateY(0) translate(-50%)}}@keyframes tooltip-down{0%{opacity:0;transform:translateY(calc(-100% - 4px)) translate(-50%)}to{opacity:1;transform:translateY(-100%) translate(-50%)}}@keyframes tooltip-left{0%{opacity:0;transform:translate(calc(-100% - 4px)) translateY(-50%)}to{opacity:1;transform:translate(-100%) translateY(-50%)}}@keyframes tooltip-right{0%{opacity:0;transform:translate(-4px) translateY(-50%)}to{opacity:1;transform:translate(0) translateY(-50%)}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as u, Fragment as tt, jsxs as R } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { useMemo as rt } from "react";
|
|
4
4
|
import { u as D, a as nt, c as A, b as q, d as he, e as ot, f as st, g as G, o as it, s as at, h as ct, i as lt, j as ut, k as dt, l as pt, m as ft, n as ht, p as vt, P as ve } from "../../index-BC-KTkxU.js";
|
|
@@ -12,7 +12,7 @@ import "../../configs/awayzClient.js";
|
|
|
12
12
|
import { useAwayzContext as wt } from "../../hooks/useAwayzContext.js";
|
|
13
13
|
import "../../services/noRetryInstance.js";
|
|
14
14
|
import { CurrencyService as Et } from "../../services/currency/CurrencyService.js";
|
|
15
|
-
import { EInvalidAmountDisplayOption as
|
|
15
|
+
import { EInvalidAmountDisplayOption as O, EToolTipPosition as Pt } from "./CashValueTypes.js";
|
|
16
16
|
import '../../assets/_styles.css';import '../../assets/_styles5.css';import '../../assets/_styles4.css';import '../../assets/_styles3.css';import '../../assets/_styles2.css';/* empty css */
|
|
17
17
|
import "react-i18next";
|
|
18
18
|
/* empty css */
|
|
@@ -47,19 +47,19 @@ function Tt(e) {
|
|
|
47
47
|
const t = /* @__PURE__ */ At(e), r = s.forwardRef((n, o) => {
|
|
48
48
|
const { children: i, ...a } = n, l = s.Children.toArray(i), c = l.find(St);
|
|
49
49
|
if (c) {
|
|
50
|
-
const
|
|
51
|
-
return /* @__PURE__ */
|
|
50
|
+
const d = c.props.children, p = l.map((f) => f === c ? s.Children.count(d) > 1 ? s.Children.only(null) : s.isValidElement(d) ? d.props.children : null : f);
|
|
51
|
+
return /* @__PURE__ */ u(t, { ...a, ref: o, children: s.isValidElement(d) ? s.cloneElement(d, void 0, p) : null });
|
|
52
52
|
}
|
|
53
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ u(t, { ...a, ref: o, children: i });
|
|
54
54
|
});
|
|
55
55
|
return r.displayName = `${e}.Slot`, r;
|
|
56
56
|
}
|
|
57
57
|
// @__NO_SIDE_EFFECTS__
|
|
58
58
|
function At(e) {
|
|
59
59
|
const t = s.forwardRef((r, n) => {
|
|
60
|
-
const { children: o, ...i } = r, a = s.isValidElement(o) ?
|
|
60
|
+
const { children: o, ...i } = r, a = s.isValidElement(o) ? Ot(o) : void 0, l = D(a, n);
|
|
61
61
|
if (s.isValidElement(o)) {
|
|
62
|
-
const c =
|
|
62
|
+
const c = Nt(i, o.props);
|
|
63
63
|
return o.type !== s.Fragment && (c.ref = l), s.cloneElement(o, c);
|
|
64
64
|
}
|
|
65
65
|
return s.Children.count(o) > 1 ? s.Children.only(null) : null;
|
|
@@ -69,13 +69,13 @@ function At(e) {
|
|
|
69
69
|
var me = Symbol("radix.slottable");
|
|
70
70
|
// @__NO_SIDE_EFFECTS__
|
|
71
71
|
function Rt(e) {
|
|
72
|
-
const t = ({ children: r }) => /* @__PURE__ */
|
|
72
|
+
const t = ({ children: r }) => /* @__PURE__ */ u(tt, { children: r });
|
|
73
73
|
return t.displayName = `${e}.Slottable`, t.__radixId = me, t;
|
|
74
74
|
}
|
|
75
75
|
function St(e) {
|
|
76
76
|
return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === me;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Nt(e, t) {
|
|
79
79
|
const r = { ...t };
|
|
80
80
|
for (const n in t) {
|
|
81
81
|
const o = e[n], i = t[n];
|
|
@@ -86,7 +86,7 @@ function Ot(e, t) {
|
|
|
86
86
|
}
|
|
87
87
|
return { ...e, ...r };
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function Ot(e) {
|
|
90
90
|
var n, o;
|
|
91
91
|
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
92
92
|
return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
@@ -112,7 +112,7 @@ var Dt = [
|
|
|
112
112
|
], S = Dt.reduce((e, t) => {
|
|
113
113
|
const r = /* @__PURE__ */ Tt(`Primitive.${t}`), n = s.forwardRef((o, i) => {
|
|
114
114
|
const { asChild: a, ...l } = o, c = a ? r : t;
|
|
115
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
115
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(c, { ...l, ref: i });
|
|
116
116
|
});
|
|
117
117
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
118
118
|
}, {});
|
|
@@ -133,26 +133,26 @@ var Lt = "DismissableLayer", z = "dismissableLayer.update", It = "dismissableLay
|
|
|
133
133
|
onInteractOutside: a,
|
|
134
134
|
onDismiss: l,
|
|
135
135
|
...c
|
|
136
|
-
} = e,
|
|
137
|
-
const
|
|
136
|
+
} = e, d = s.useContext(ye), [p, f] = s.useState(null), h = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, v] = s.useState({}), m = D(t, (g) => f(g)), y = Array.from(d.layers), [C] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), E = y.indexOf(C), w = p ? y.indexOf(p) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, P = w >= E, T = kt((g) => {
|
|
137
|
+
const N = g.target, k = [...d.branches].some((I) => I.contains(N));
|
|
138
138
|
!P || k || (o == null || o(g), a == null || a(g), g.defaultPrevented || l == null || l());
|
|
139
139
|
}, h), b = $t((g) => {
|
|
140
|
-
const
|
|
141
|
-
[...
|
|
140
|
+
const N = g.target;
|
|
141
|
+
[...d.branches].some((I) => I.contains(N)) || (i == null || i(g), a == null || a(g), g.defaultPrevented || l == null || l());
|
|
142
142
|
}, h);
|
|
143
143
|
return nt((g) => {
|
|
144
|
-
w ===
|
|
144
|
+
w === d.layers.size - 1 && (n == null || n(g), !g.defaultPrevented && l && (g.preventDefault(), l()));
|
|
145
145
|
}, h), s.useEffect(() => {
|
|
146
146
|
if (p)
|
|
147
|
-
return r && (
|
|
148
|
-
r &&
|
|
147
|
+
return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (pe = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(p)), d.layers.add(p), fe(), () => {
|
|
148
|
+
r && d.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = pe);
|
|
149
149
|
};
|
|
150
|
-
}, [p, h, r,
|
|
151
|
-
p && (
|
|
152
|
-
}, [p,
|
|
150
|
+
}, [p, h, r, d]), s.useEffect(() => () => {
|
|
151
|
+
p && (d.layers.delete(p), d.layersWithOutsidePointerEventsDisabled.delete(p), fe());
|
|
152
|
+
}, [p, d]), s.useEffect(() => {
|
|
153
153
|
const g = () => v({});
|
|
154
154
|
return document.addEventListener(z, g), () => document.removeEventListener(z, g);
|
|
155
|
-
}, []), /* @__PURE__ */
|
|
155
|
+
}, []), /* @__PURE__ */ u(
|
|
156
156
|
S.div,
|
|
157
157
|
{
|
|
158
158
|
...c,
|
|
@@ -180,7 +180,7 @@ var Ht = "DismissableLayerBranch", Ft = s.forwardRef((e, t) => {
|
|
|
180
180
|
return r.branches.add(i), () => {
|
|
181
181
|
r.branches.delete(i);
|
|
182
182
|
};
|
|
183
|
-
}, [r.branches]), /* @__PURE__ */
|
|
183
|
+
}, [r.branches]), /* @__PURE__ */ u(S.div, { ...e, ref: o });
|
|
184
184
|
});
|
|
185
185
|
Ft.displayName = Ht;
|
|
186
186
|
function kt(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -193,11 +193,11 @@ function kt(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
193
193
|
Ce(
|
|
194
194
|
It,
|
|
195
195
|
r,
|
|
196
|
-
|
|
196
|
+
d,
|
|
197
197
|
{ discrete: !0 }
|
|
198
198
|
);
|
|
199
199
|
};
|
|
200
|
-
const
|
|
200
|
+
const d = { originalEvent: l };
|
|
201
201
|
l.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = c, t.addEventListener("click", o.current, { once: !0 })) : c();
|
|
202
202
|
} else
|
|
203
203
|
t.removeEventListener("click", o.current);
|
|
@@ -237,7 +237,7 @@ function Ce(e, t, r, { discrete: n }) {
|
|
|
237
237
|
}
|
|
238
238
|
var Wt = "Arrow", we = s.forwardRef((e, t) => {
|
|
239
239
|
const { children: r, width: n = 10, height: o = 5, ...i } = e;
|
|
240
|
-
return /* @__PURE__ */
|
|
240
|
+
return /* @__PURE__ */ u(
|
|
241
241
|
S.svg,
|
|
242
242
|
{
|
|
243
243
|
...i,
|
|
@@ -246,14 +246,14 @@ var Wt = "Arrow", we = s.forwardRef((e, t) => {
|
|
|
246
246
|
height: o,
|
|
247
247
|
viewBox: "0 0 30 10",
|
|
248
248
|
preserveAspectRatio: "none",
|
|
249
|
-
children: e.asChild ? r : /* @__PURE__ */
|
|
249
|
+
children: e.asChild ? r : /* @__PURE__ */ u("polygon", { points: "0,0 30,0 15,10" })
|
|
250
250
|
}
|
|
251
251
|
);
|
|
252
252
|
});
|
|
253
253
|
we.displayName = Wt;
|
|
254
254
|
var Bt = we, K = "Popper", [Ee, Pe] = he(K), [Ut, be] = Ee(K), xe = (e) => {
|
|
255
255
|
const { __scopePopper: t, children: r } = e, [n, o] = s.useState(null);
|
|
256
|
-
return /* @__PURE__ */
|
|
256
|
+
return /* @__PURE__ */ u(Ut, { scope: t, anchor: n, onAnchorChange: o, children: r });
|
|
257
257
|
};
|
|
258
258
|
xe.displayName = K;
|
|
259
259
|
var Te = "PopperAnchor", Ae = s.forwardRef(
|
|
@@ -261,7 +261,7 @@ var Te = "PopperAnchor", Ae = s.forwardRef(
|
|
|
261
261
|
const { __scopePopper: r, virtualRef: n, ...o } = e, i = be(Te, r), a = s.useRef(null), l = D(t, a);
|
|
262
262
|
return s.useEffect(() => {
|
|
263
263
|
i.onAnchorChange((n == null ? void 0 : n.current) || a.current);
|
|
264
|
-
}), n ? null : /* @__PURE__ */
|
|
264
|
+
}), n ? null : /* @__PURE__ */ u(S.div, { ...o, ref: l });
|
|
265
265
|
}
|
|
266
266
|
);
|
|
267
267
|
Ae.displayName = Te;
|
|
@@ -276,14 +276,14 @@ var Q = "PopperContent", [Yt, Vt] = Ee(Q), Re = s.forwardRef(
|
|
|
276
276
|
alignOffset: a = 0,
|
|
277
277
|
arrowPadding: l = 0,
|
|
278
278
|
avoidCollisions: c = !0,
|
|
279
|
-
collisionBoundary:
|
|
279
|
+
collisionBoundary: d = [],
|
|
280
280
|
collisionPadding: p = 0,
|
|
281
281
|
sticky: f = "partial",
|
|
282
282
|
hideWhenDetached: h = !1,
|
|
283
283
|
updatePositionStrategy: v = "optimized",
|
|
284
284
|
onPlaced: m,
|
|
285
285
|
...y
|
|
286
|
-
} = e, C = be(Q, r), [E, w] = s.useState(null), x = D(t, (M) => w(M)), [P, T] = s.useState(null), b = ot(P), g = (b == null ? void 0 : b.width) ?? 0,
|
|
286
|
+
} = e, C = be(Q, r), [E, w] = s.useState(null), x = D(t, (M) => w(M)), [P, T] = s.useState(null), b = ot(P), g = (b == null ? void 0 : b.width) ?? 0, N = (b == null ? void 0 : b.height) ?? 0, k = n + (i !== "center" ? "-" + i : ""), I = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, te = Array.isArray(d) ? d : [d], Ue = te.length > 0, $ = {
|
|
287
287
|
padding: I,
|
|
288
288
|
boundary: te.filter(Gt),
|
|
289
289
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -299,7 +299,7 @@ var Q = "PopperContent", [Yt, Vt] = Ee(Q), Re = s.forwardRef(
|
|
|
299
299
|
reference: C.anchor
|
|
300
300
|
},
|
|
301
301
|
middleware: [
|
|
302
|
-
it({ mainAxis: o +
|
|
302
|
+
it({ mainAxis: o + N, alignmentAxis: a }),
|
|
303
303
|
c && at({
|
|
304
304
|
mainAxis: !0,
|
|
305
305
|
crossAxis: !1,
|
|
@@ -315,17 +315,17 @@ var Q = "PopperContent", [Yt, Vt] = Ee(Q), Re = s.forwardRef(
|
|
|
315
315
|
}
|
|
316
316
|
}),
|
|
317
317
|
P && ut({ element: P, padding: l }),
|
|
318
|
-
zt({ arrowWidth: g, arrowHeight:
|
|
318
|
+
zt({ arrowWidth: g, arrowHeight: N }),
|
|
319
319
|
h && dt({ strategy: "referenceHidden", ...$ })
|
|
320
320
|
]
|
|
321
|
-
}), [ne, je] =
|
|
321
|
+
}), [ne, je] = Oe(Ve), B = q(m);
|
|
322
322
|
G(() => {
|
|
323
323
|
W && (B == null || B());
|
|
324
324
|
}, [W, B]);
|
|
325
325
|
const Ge = (oe = _.arrow) == null ? void 0 : oe.x, ze = (se = _.arrow) == null ? void 0 : se.y, Xe = ((ie = _.arrow) == null ? void 0 : ie.centerOffset) !== 0, [Ze, qe] = s.useState();
|
|
326
326
|
return G(() => {
|
|
327
327
|
E && qe(window.getComputedStyle(E).zIndex);
|
|
328
|
-
}, [E]), /* @__PURE__ */
|
|
328
|
+
}, [E]), /* @__PURE__ */ u(
|
|
329
329
|
"div",
|
|
330
330
|
{
|
|
331
331
|
ref: Ye.setFloating,
|
|
@@ -349,7 +349,7 @@ var Q = "PopperContent", [Yt, Vt] = Ee(Q), Re = s.forwardRef(
|
|
|
349
349
|
}
|
|
350
350
|
},
|
|
351
351
|
dir: e.dir,
|
|
352
|
-
children: /* @__PURE__ */
|
|
352
|
+
children: /* @__PURE__ */ u(
|
|
353
353
|
Yt,
|
|
354
354
|
{
|
|
355
355
|
scope: r,
|
|
@@ -358,7 +358,7 @@ var Q = "PopperContent", [Yt, Vt] = Ee(Q), Re = s.forwardRef(
|
|
|
358
358
|
arrowX: Ge,
|
|
359
359
|
arrowY: ze,
|
|
360
360
|
shouldHideArrow: Xe,
|
|
361
|
-
children: /* @__PURE__ */
|
|
361
|
+
children: /* @__PURE__ */ u(
|
|
362
362
|
S.div,
|
|
363
363
|
{
|
|
364
364
|
"data-side": ne,
|
|
@@ -385,13 +385,13 @@ var Se = "PopperArrow", jt = {
|
|
|
385
385
|
right: "left",
|
|
386
386
|
bottom: "top",
|
|
387
387
|
left: "right"
|
|
388
|
-
},
|
|
388
|
+
}, Ne = s.forwardRef(function(t, r) {
|
|
389
389
|
const { __scopePopper: n, ...o } = t, i = Vt(Se, n), a = jt[i.placedSide];
|
|
390
390
|
return (
|
|
391
391
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
392
392
|
// doesn't report size as we'd expect on SVG elements.
|
|
393
393
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
394
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ u(
|
|
395
395
|
"span",
|
|
396
396
|
{
|
|
397
397
|
ref: i.onArrowChange,
|
|
@@ -414,7 +414,7 @@ var Se = "PopperArrow", jt = {
|
|
|
414
414
|
}[i.placedSide],
|
|
415
415
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
416
416
|
},
|
|
417
|
-
children: /* @__PURE__ */
|
|
417
|
+
children: /* @__PURE__ */ u(
|
|
418
418
|
Bt,
|
|
419
419
|
{
|
|
420
420
|
...o,
|
|
@@ -430,7 +430,7 @@ var Se = "PopperArrow", jt = {
|
|
|
430
430
|
)
|
|
431
431
|
);
|
|
432
432
|
});
|
|
433
|
-
|
|
433
|
+
Ne.displayName = Se;
|
|
434
434
|
function Gt(e) {
|
|
435
435
|
return e !== null;
|
|
436
436
|
}
|
|
@@ -439,21 +439,21 @@ var zt = (e) => ({
|
|
|
439
439
|
options: e,
|
|
440
440
|
fn(t) {
|
|
441
441
|
var C, E, w;
|
|
442
|
-
const { placement: r, rects: n, middlewareData: o } = t, a = ((C = o.arrow) == null ? void 0 : C.centerOffset) !== 0, l = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [
|
|
442
|
+
const { placement: r, rects: n, middlewareData: o } = t, a = ((C = o.arrow) == null ? void 0 : C.centerOffset) !== 0, l = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [d, p] = Oe(r), f = { start: "0%", center: "50%", end: "100%" }[p], h = (((E = o.arrow) == null ? void 0 : E.x) ?? 0) + l / 2, v = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + c / 2;
|
|
443
443
|
let m = "", y = "";
|
|
444
|
-
return
|
|
444
|
+
return d === "bottom" ? (m = a ? f : `${h}px`, y = `${-c}px`) : d === "top" ? (m = a ? f : `${h}px`, y = `${n.floating.height + c}px`) : d === "right" ? (m = `${-c}px`, y = a ? f : `${v}px`) : d === "left" && (m = `${n.floating.width + c}px`, y = a ? f : `${v}px`), { data: { x: m, y } };
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
|
-
function
|
|
447
|
+
function Oe(e) {
|
|
448
448
|
const [t, r = "center"] = e.split("-");
|
|
449
449
|
return [t, r];
|
|
450
450
|
}
|
|
451
|
-
var Xt = xe, Zt = Ae, qt = Re, Kt =
|
|
451
|
+
var Xt = xe, Zt = Ae, qt = Re, Kt = Ne, Qt = "Portal", De = s.forwardRef((e, t) => {
|
|
452
452
|
var l;
|
|
453
453
|
const { container: r, ...n } = e, [o, i] = s.useState(!1);
|
|
454
454
|
G(() => i(!0), []);
|
|
455
455
|
const a = r || o && ((l = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : l.body);
|
|
456
|
-
return a ? yt.createPortal(/* @__PURE__ */
|
|
456
|
+
return a ? yt.createPortal(/* @__PURE__ */ u(S.div, { ...n, ref: t }), a) : null;
|
|
457
457
|
});
|
|
458
458
|
De.displayName = Qt;
|
|
459
459
|
var Jt = Object.freeze({
|
|
@@ -469,7 +469,7 @@ var Jt = Object.freeze({
|
|
|
469
469
|
whiteSpace: "nowrap",
|
|
470
470
|
wordWrap: "normal"
|
|
471
471
|
}), er = "VisuallyHidden", _e = s.forwardRef(
|
|
472
|
-
(e, t) => /* @__PURE__ */
|
|
472
|
+
(e, t) => /* @__PURE__ */ u(
|
|
473
473
|
S.span,
|
|
474
474
|
{
|
|
475
475
|
...e,
|
|
@@ -490,9 +490,9 @@ var tr = _e, [V, jr] = he("Tooltip", [
|
|
|
490
490
|
children: i
|
|
491
491
|
} = e, a = s.useRef(!0), l = s.useRef(!1), c = s.useRef(0);
|
|
492
492
|
return s.useEffect(() => {
|
|
493
|
-
const
|
|
494
|
-
return () => window.clearTimeout(
|
|
495
|
-
}, []), /* @__PURE__ */
|
|
493
|
+
const d = c.current;
|
|
494
|
+
return () => window.clearTimeout(d);
|
|
495
|
+
}, []), /* @__PURE__ */ u(
|
|
496
496
|
nr,
|
|
497
497
|
{
|
|
498
498
|
scope: t,
|
|
@@ -508,8 +508,8 @@ var tr = _e, [V, jr] = he("Tooltip", [
|
|
|
508
508
|
);
|
|
509
509
|
}, [n]),
|
|
510
510
|
isPointerInTransitRef: l,
|
|
511
|
-
onPointerInTransitChange: s.useCallback((
|
|
512
|
-
l.current =
|
|
511
|
+
onPointerInTransitChange: s.useCallback((d) => {
|
|
512
|
+
l.current = d;
|
|
513
513
|
}, []),
|
|
514
514
|
disableHoverableContent: o,
|
|
515
515
|
children: i
|
|
@@ -526,7 +526,7 @@ var H = "Tooltip", [or, F] = V(H), Me = (e) => {
|
|
|
526
526
|
onOpenChange: i,
|
|
527
527
|
disableHoverableContent: a,
|
|
528
528
|
delayDuration: l
|
|
529
|
-
} = e, c = J(H, e.__scopeTooltip),
|
|
529
|
+
} = e, c = J(H, e.__scopeTooltip), d = j(t), [p, f] = s.useState(null), h = ht(), v = s.useRef(0), m = a ?? c.disableHoverableContent, y = l ?? c.delayDuration, C = s.useRef(!1), [E, w] = vt({
|
|
530
530
|
prop: n,
|
|
531
531
|
defaultProp: o ?? !1,
|
|
532
532
|
onChange: (g) => {
|
|
@@ -544,7 +544,7 @@ var H = "Tooltip", [or, F] = V(H), Me = (e) => {
|
|
|
544
544
|
}, [y, w]);
|
|
545
545
|
return s.useEffect(() => () => {
|
|
546
546
|
v.current && (window.clearTimeout(v.current), v.current = 0);
|
|
547
|
-
}, []), /* @__PURE__ */
|
|
547
|
+
}, []), /* @__PURE__ */ u(Xt, { ...d, children: /* @__PURE__ */ u(
|
|
548
548
|
or,
|
|
549
549
|
{
|
|
550
550
|
scope: t,
|
|
@@ -569,8 +569,8 @@ var H = "Tooltip", [or, F] = V(H), Me = (e) => {
|
|
|
569
569
|
Me.displayName = H;
|
|
570
570
|
var Z = "TooltipTrigger", He = s.forwardRef(
|
|
571
571
|
(e, t) => {
|
|
572
|
-
const { __scopeTooltip: r, ...n } = e, o = F(Z, r), i = J(Z, r), a = j(r), l = s.useRef(null), c = D(t, l, o.onTriggerChange),
|
|
573
|
-
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */
|
|
572
|
+
const { __scopeTooltip: r, ...n } = e, o = F(Z, r), i = J(Z, r), a = j(r), l = s.useRef(null), c = D(t, l, o.onTriggerChange), d = s.useRef(!1), p = s.useRef(!1), f = s.useCallback(() => d.current = !1, []);
|
|
573
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ u(Zt, { asChild: !0, ...a, children: /* @__PURE__ */ u(
|
|
574
574
|
S.button,
|
|
575
575
|
{
|
|
576
576
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -584,10 +584,10 @@ var Z = "TooltipTrigger", He = s.forwardRef(
|
|
|
584
584
|
o.onTriggerLeave(), p.current = !1;
|
|
585
585
|
}),
|
|
586
586
|
onPointerDown: A(e.onPointerDown, () => {
|
|
587
|
-
o.open && o.onClose(),
|
|
587
|
+
o.open && o.onClose(), d.current = !0, document.addEventListener("pointerup", f, { once: !0 });
|
|
588
588
|
}),
|
|
589
589
|
onFocus: A(e.onFocus, () => {
|
|
590
|
-
|
|
590
|
+
d.current || o.onOpen();
|
|
591
591
|
}),
|
|
592
592
|
onBlur: A(e.onBlur, o.onClose),
|
|
593
593
|
onClick: A(e.onClick, o.onClose)
|
|
@@ -600,16 +600,16 @@ var ee = "TooltipPortal", [sr, ir] = V(ee, {
|
|
|
600
600
|
forceMount: void 0
|
|
601
601
|
}), Fe = (e) => {
|
|
602
602
|
const { __scopeTooltip: t, forceMount: r, children: n, container: o } = e, i = F(ee, t);
|
|
603
|
-
return /* @__PURE__ */
|
|
603
|
+
return /* @__PURE__ */ u(sr, { scope: t, forceMount: r, children: /* @__PURE__ */ u(ve, { present: r || i.open, children: /* @__PURE__ */ u(De, { asChild: !0, container: o, children: n }) }) });
|
|
604
604
|
};
|
|
605
605
|
Fe.displayName = ee;
|
|
606
606
|
var L = "TooltipContent", ke = s.forwardRef(
|
|
607
607
|
(e, t) => {
|
|
608
608
|
const r = ir(L, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...i } = e, a = F(L, e.__scopeTooltip);
|
|
609
|
-
return /* @__PURE__ */
|
|
609
|
+
return /* @__PURE__ */ u(ve, { present: n || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ u($e, { side: o, ...i, ref: t }) : /* @__PURE__ */ u(ar, { side: o, ...i, ref: t }) });
|
|
610
610
|
}
|
|
611
611
|
), ar = s.forwardRef((e, t) => {
|
|
612
|
-
const r = F(L, e.__scopeTooltip), n = J(L, e.__scopeTooltip), o = s.useRef(null), i = D(t, o), [a, l] = s.useState(null), { trigger: c, onClose:
|
|
612
|
+
const r = F(L, e.__scopeTooltip), n = J(L, e.__scopeTooltip), o = s.useRef(null), i = D(t, o), [a, l] = s.useState(null), { trigger: c, onClose: d } = r, p = o.current, { onPointerInTransitChange: f } = n, h = s.useCallback(() => {
|
|
613
613
|
l(null), f(!1);
|
|
614
614
|
}, [f]), v = s.useCallback(
|
|
615
615
|
(m, y) => {
|
|
@@ -629,11 +629,11 @@ var L = "TooltipContent", ke = s.forwardRef(
|
|
|
629
629
|
if (a) {
|
|
630
630
|
const m = (y) => {
|
|
631
631
|
const C = y.target, E = { x: y.clientX, y: y.clientY }, w = (c == null ? void 0 : c.contains(C)) || (p == null ? void 0 : p.contains(C)), x = !hr(E, a);
|
|
632
|
-
w ? h() : x && (h(),
|
|
632
|
+
w ? h() : x && (h(), d());
|
|
633
633
|
};
|
|
634
634
|
return document.addEventListener("pointermove", m), () => document.removeEventListener("pointermove", m);
|
|
635
635
|
}
|
|
636
|
-
}, [c, p, a,
|
|
636
|
+
}, [c, p, a, d, h]), /* @__PURE__ */ u($e, { ...e, ref: i });
|
|
637
637
|
}), [cr, lr] = V(H, { isInside: !1 }), ur = /* @__PURE__ */ Rt("TooltipContent"), $e = s.forwardRef(
|
|
638
638
|
(e, t) => {
|
|
639
639
|
const {
|
|
@@ -643,7 +643,7 @@ var L = "TooltipContent", ke = s.forwardRef(
|
|
|
643
643
|
onEscapeKeyDown: i,
|
|
644
644
|
onPointerDownOutside: a,
|
|
645
645
|
...l
|
|
646
|
-
} = e, c = F(L, r),
|
|
646
|
+
} = e, c = F(L, r), d = j(r), { onClose: p } = c;
|
|
647
647
|
return s.useEffect(() => (document.addEventListener(X, p), () => document.removeEventListener(X, p)), [p]), s.useEffect(() => {
|
|
648
648
|
if (c.trigger) {
|
|
649
649
|
const f = (h) => {
|
|
@@ -652,7 +652,7 @@ var L = "TooltipContent", ke = s.forwardRef(
|
|
|
652
652
|
};
|
|
653
653
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
654
654
|
}
|
|
655
|
-
}, [c.trigger, p]), /* @__PURE__ */
|
|
655
|
+
}, [c.trigger, p]), /* @__PURE__ */ u(
|
|
656
656
|
ge,
|
|
657
657
|
{
|
|
658
658
|
asChild: !0,
|
|
@@ -665,7 +665,7 @@ var L = "TooltipContent", ke = s.forwardRef(
|
|
|
665
665
|
qt,
|
|
666
666
|
{
|
|
667
667
|
"data-state": c.stateAttribute,
|
|
668
|
-
...
|
|
668
|
+
...d,
|
|
669
669
|
...l,
|
|
670
670
|
ref: t,
|
|
671
671
|
style: {
|
|
@@ -677,8 +677,8 @@ var L = "TooltipContent", ke = s.forwardRef(
|
|
|
677
677
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
678
678
|
},
|
|
679
679
|
children: [
|
|
680
|
-
/* @__PURE__ */
|
|
681
|
-
/* @__PURE__ */
|
|
680
|
+
/* @__PURE__ */ u(ur, { children: n }),
|
|
681
|
+
/* @__PURE__ */ u(cr, { scope: r, isInside: !0, children: /* @__PURE__ */ u(tr, { id: c.contentId, role: "tooltip", children: o || n }) })
|
|
682
682
|
]
|
|
683
683
|
}
|
|
684
684
|
)
|
|
@@ -693,7 +693,7 @@ var We = "TooltipArrow", Be = s.forwardRef(
|
|
|
693
693
|
return lr(
|
|
694
694
|
We,
|
|
695
695
|
r
|
|
696
|
-
).isInside ? null : /* @__PURE__ */
|
|
696
|
+
).isInside ? null : /* @__PURE__ */ u(Kt, { ...o, ...n, ref: t });
|
|
697
697
|
}
|
|
698
698
|
);
|
|
699
699
|
Be.displayName = We;
|
|
@@ -755,8 +755,8 @@ function hr(e, t) {
|
|
|
755
755
|
const { x: r, y: n } = e;
|
|
756
756
|
let o = !1;
|
|
757
757
|
for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
|
|
758
|
-
const l = t[i], c = t[a],
|
|
759
|
-
p > n != h > n && r < (f -
|
|
758
|
+
const l = t[i], c = t[a], d = l.x, p = l.y, f = c.x, h = c.y;
|
|
759
|
+
p > n != h > n && r < (f - d) * (n - p) / (h - p) + d && (o = !o);
|
|
760
760
|
}
|
|
761
761
|
return o;
|
|
762
762
|
}
|
|
@@ -794,12 +794,12 @@ const br = 1e3 * 60 * 60, Gr = ({
|
|
|
794
794
|
amount: e,
|
|
795
795
|
currency: t,
|
|
796
796
|
position: r = Pt.RIGHT,
|
|
797
|
-
zeroDisplayOption: n =
|
|
797
|
+
zeroDisplayOption: n = O.NA,
|
|
798
798
|
customDisplay: o,
|
|
799
799
|
decimalPlaces: i = 0
|
|
800
800
|
}) => {
|
|
801
801
|
var h, v;
|
|
802
|
-
const { user: a } = wt(), l = ((h = a == null ? void 0 : a.preferences) == null ? void 0 : h.currency) ?? ((v = a == null ? void 0 : a.userRegion) == null ? void 0 : v.currency), c = l !== t, { data:
|
|
802
|
+
const { user: a } = wt(), l = ((h = a == null ? void 0 : a.preferences) == null ? void 0 : h.currency) ?? ((v = a == null ? void 0 : a.userRegion) == null ? void 0 : v.currency), c = l !== t, { data: d, isPending: p } = gt({
|
|
803
803
|
queryKey: [Ct.CONVERT_CURRENCY, t, l],
|
|
804
804
|
queryFn: () => Et.convertCurrency({
|
|
805
805
|
baseCurrency: t,
|
|
@@ -812,27 +812,29 @@ const br = 1e3 * 60 * 60, Gr = ({
|
|
|
812
812
|
return null;
|
|
813
813
|
let m = typeof e == "string" ? parseFloat(e) : e;
|
|
814
814
|
if (c) {
|
|
815
|
-
if (p || !
|
|
816
|
-
m = m *
|
|
815
|
+
if (p || !d) return null;
|
|
816
|
+
m = m * d;
|
|
817
817
|
}
|
|
818
818
|
return m;
|
|
819
|
-
}, [e, a, p, c,
|
|
819
|
+
}, [e, a, p, c, d]);
|
|
820
|
+
if (p)
|
|
821
|
+
return /* @__PURE__ */ u("span", { className: "currency-conversion loading", children: e });
|
|
820
822
|
if (!l || !f || f < 0)
|
|
821
823
|
switch (n) {
|
|
822
|
-
case
|
|
823
|
-
return /* @__PURE__ */
|
|
824
|
-
case
|
|
825
|
-
return /* @__PURE__ */
|
|
826
|
-
case
|
|
827
|
-
return /* @__PURE__ */
|
|
828
|
-
case
|
|
829
|
-
return /* @__PURE__ */
|
|
830
|
-
case
|
|
831
|
-
return /* @__PURE__ */
|
|
832
|
-
case
|
|
833
|
-
return /* @__PURE__ */
|
|
824
|
+
case O.NA:
|
|
825
|
+
return /* @__PURE__ */ u("span", { children: "N/A" });
|
|
826
|
+
case O.HIDDEN:
|
|
827
|
+
return /* @__PURE__ */ u("span", { className: "hidden", children: "N/A" });
|
|
828
|
+
case O.DISPLAY_AS_ZERO:
|
|
829
|
+
return /* @__PURE__ */ u("span", { children: "0" });
|
|
830
|
+
case O.DISPLAY_AS_ZERO_WITH_CURRENCY:
|
|
831
|
+
return /* @__PURE__ */ u("span", { children: Y(0, l ?? t) });
|
|
832
|
+
case O.DISPLAY_AS_ZERO_WITH_CURRENCY_NO_DECIMAL:
|
|
833
|
+
return /* @__PURE__ */ u("span", { children: bt(0, l ?? t) });
|
|
834
|
+
case O.CUSTOM:
|
|
835
|
+
return /* @__PURE__ */ u("span", { children: f == 0 ? o : "N/A" });
|
|
834
836
|
default:
|
|
835
|
-
return /* @__PURE__ */
|
|
837
|
+
return /* @__PURE__ */ u("span", { children: "N/A" });
|
|
836
838
|
}
|
|
837
839
|
return /* @__PURE__ */ R("span", { className: "currency-conversion", children: [
|
|
838
840
|
xt(
|
|
@@ -840,10 +842,10 @@ const br = 1e3 * 60 * 60, Gr = ({
|
|
|
840
842
|
l,
|
|
841
843
|
i
|
|
842
844
|
),
|
|
843
|
-
c && /* @__PURE__ */
|
|
845
|
+
c && /* @__PURE__ */ u(
|
|
844
846
|
xr,
|
|
845
847
|
{
|
|
846
|
-
trigger: /* @__PURE__ */
|
|
848
|
+
trigger: /* @__PURE__ */ u("sup", { children: /* @__PURE__ */ u(de, {}) }),
|
|
847
849
|
position: r,
|
|
848
850
|
children: /* @__PURE__ */ R("div", { className: "currency-conversion-container", children: [
|
|
849
851
|
/* @__PURE__ */ R("p", { children: [
|
|
@@ -853,18 +855,18 @@ const br = 1e3 * 60 * 60, Gr = ({
|
|
|
853
855
|
l
|
|
854
856
|
] }),
|
|
855
857
|
/* @__PURE__ */ R("div", { className: "currency-conversion-amounts", children: [
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
/* @__PURE__ */
|
|
858
|
-
/* @__PURE__ */
|
|
858
|
+
/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u("p", { children: Y(e, t) }) }),
|
|
859
|
+
/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u("p", { children: Y(f, l) }) }),
|
|
860
|
+
/* @__PURE__ */ u("span", { className: "conversion-icon", children: /* @__PURE__ */ u(de, {}) })
|
|
859
861
|
] }),
|
|
860
|
-
/* @__PURE__ */
|
|
862
|
+
/* @__PURE__ */ u("div", { className: "currency-conversion-rate", children: /* @__PURE__ */ R("p", { children: [
|
|
861
863
|
"Current Rate:",
|
|
862
864
|
" ",
|
|
863
|
-
|
|
865
|
+
d ? (
|
|
864
866
|
// only leaving 2 decimal places for the conversion rate is
|
|
865
867
|
// not enough, can lead to confusion
|
|
866
868
|
// use Number constructor to strip unnecessary trailing zeros
|
|
867
|
-
`${Number((1 /
|
|
869
|
+
`${Number((1 / d).toFixed(5))} ${t}`
|
|
868
870
|
) : "N/A",
|
|
869
871
|
" ",
|
|
870
872
|
"≈ ",
|
|
@@ -874,9 +876,9 @@ const br = 1e3 * 60 * 60, Gr = ({
|
|
|
874
876
|
}
|
|
875
877
|
)
|
|
876
878
|
] });
|
|
877
|
-
}, xr = ({ children: e, trigger: t, position: r }) => /* @__PURE__ */
|
|
878
|
-
/* @__PURE__ */
|
|
879
|
-
/* @__PURE__ */
|
|
879
|
+
}, xr = ({ children: e, trigger: t, position: r }) => /* @__PURE__ */ u(yr, { delayDuration: 100, children: /* @__PURE__ */ R(gr, { children: [
|
|
880
|
+
/* @__PURE__ */ u(Cr, { asChild: !0, children: t }),
|
|
881
|
+
/* @__PURE__ */ u(wr, { children: /* @__PURE__ */ R(
|
|
880
882
|
Er,
|
|
881
883
|
{
|
|
882
884
|
className: `tooltip-content ${r}`,
|
|
@@ -884,7 +886,7 @@ const br = 1e3 * 60 * 60, Gr = ({
|
|
|
884
886
|
align: "center",
|
|
885
887
|
children: [
|
|
886
888
|
e,
|
|
887
|
-
/* @__PURE__ */
|
|
889
|
+
/* @__PURE__ */ u(Pr, { className: "tooltip-arrow" })
|
|
888
890
|
]
|
|
889
891
|
}
|
|
890
892
|
) })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odynn/awayz-core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"@tanstack/react-query": "^5.66.9",
|
|
19
19
|
"react": "^18.3.1",
|
|
20
20
|
"react-dom": "^18.3.1",
|
|
21
|
-
"react-i18next": "
|
|
21
|
+
"react-i18next": ">= 14.0.0"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"react-i18next": "
|
|
24
|
+
"react-i18next": ">= 14.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@eslint/js": "^9.17.0",
|