@ahmetilhn/hanui 2.0.9 → 2.0.10
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/build/index.cjs +2 -2
- package/build/index.cjs.map +1 -1
- package/build/index.js +211 -226
- package/build/index.js.map +1 -1
- package/build/styles.css +1 -1
- package/package.json +3 -2
package/build/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as g, Fragment as fe } from "react/jsx-runtime";
|
|
3
|
-
import { useContext as cn, createContext as ln, useMemo as Tt, useEffect as S, useRef as R, useCallback as
|
|
3
|
+
import { useContext as cn, createContext as ln, useMemo as Tt, useEffect as S, useRef as R, useCallback as H, useState as P, useLayoutEffect as Ea, memo as I, forwardRef as xe, useId as J, isValidElement as La, cloneElement as Sa, Children as dn } from "react";
|
|
4
4
|
import { isClient as he, isDefined as ut, normalize as pa, isNumber as ma } from "@ahmetilhn/handy-utils";
|
|
5
|
-
import { ArrowRight as _n, XLg as
|
|
5
|
+
import { ArrowRight as _n, XLg as ze, Search as Ra, CaretDownFill as Aa, CheckLg as zt, StarFill as ea, DashLg as Ma, PlusLg as un, ExclamationCircleFill as Ft, CloudArrowUpFill as hn, XCircleFill as Ba, ExclamationTriangleFill as ra, CheckCircleFill as Fa, InfoCircleFill as Pa, CaretRightFill as Kt, CaretLeftFill as Oa, ClipboardCheckFill as pn, ClipboardFill as mn, StarHalf as bn, ArrowDownShort as gn, ArrowUpShort as fn, QuestionCircleFill as vn, TrashFill as yn } from "react-bootstrap-icons";
|
|
6
6
|
import { createPortal as Et } from "react-dom";
|
|
7
7
|
const T = {
|
|
8
8
|
n0: "#ffffff",
|
|
@@ -140,7 +140,7 @@ const T = {
|
|
|
140
140
|
fg: "#1d6e31",
|
|
141
141
|
bgDark: "#122817",
|
|
142
142
|
fgDark: "#34c759"
|
|
143
|
-
},
|
|
143
|
+
}, Ha = {
|
|
144
144
|
/** 5,23:1 beyaz üzerinde. */
|
|
145
145
|
light: "#9a5f04",
|
|
146
146
|
/** 9,82:1 koyu zemin üzerinde. */
|
|
@@ -239,7 +239,7 @@ const T = {
|
|
|
239
239
|
"green-accent": Oe.green,
|
|
240
240
|
"green-accent-hover": Oe.greenHover,
|
|
241
241
|
"on-green": Oe.onGreen,
|
|
242
|
-
star:
|
|
242
|
+
star: Ha.light,
|
|
243
243
|
// --- Yıkıcı eylem: durum tinti DEĞİL, gerçek bir dolgu ---
|
|
244
244
|
"danger-solid": Ze.base,
|
|
245
245
|
"danger-solid-hover": Ze.hover,
|
|
@@ -378,7 +378,7 @@ const T = {
|
|
|
378
378
|
"green-accent": Oe.greenDark,
|
|
379
379
|
"green-accent-hover": Oe.greenHoverDark,
|
|
380
380
|
"on-green": Oe.onGreen,
|
|
381
|
-
star:
|
|
381
|
+
star: Ha.dark,
|
|
382
382
|
"danger-solid": Ze.dark,
|
|
383
383
|
"danger-solid-hover": Ze.darkHover,
|
|
384
384
|
"on-danger": Ze.onDark,
|
|
@@ -545,7 +545,7 @@ const T = {
|
|
|
545
545
|
heading: "system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif",
|
|
546
546
|
body: "system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif",
|
|
547
547
|
mono: "ui-monospace, 'SF Mono', Menlo, Consolas, monospace"
|
|
548
|
-
}, ba = "--hanui-", ga = "hanui-theme-overrides", Ve = "data-hanui-theme",
|
|
548
|
+
}, ba = "--hanui-", ga = "hanui-theme-overrides", Ve = "data-hanui-theme", za = "data-hanui-density", fa = "hanui-theme-switching", ru = (e, t) => {
|
|
549
549
|
const n = e === "dark" ? xn : wn, r = (e === "dark" ? t == null ? void 0 : t.dark : t == null ? void 0 : t.light) ?? {};
|
|
550
550
|
return { ...n, ...r };
|
|
551
551
|
}, kn = (e) => {
|
|
@@ -562,7 +562,7 @@ ${o.map(([s, l]) => ` ${ba}font-${s}: ${l};`).join(`
|
|
|
562
562
|
const s = n(i);
|
|
563
563
|
t.push(`:root {
|
|
564
564
|
${s}
|
|
565
|
-
}`), t.push(`:root[${
|
|
565
|
+
}`), t.push(`:root[${za}='compact'] {
|
|
566
566
|
${s}
|
|
567
567
|
}`);
|
|
568
568
|
}
|
|
@@ -619,7 +619,7 @@ ${n(
|
|
|
619
619
|
);
|
|
620
620
|
return /* @__PURE__ */ a(Ua.Provider, { value: s, children: e });
|
|
621
621
|
}, iu = (e = {}) => {
|
|
622
|
-
Ka(e.theme), he() && (e.colorScheme && document.documentElement.setAttribute(Ve, e.colorScheme), e.density && document.documentElement.setAttribute(
|
|
622
|
+
Ka(e.theme), he() && (e.colorScheme && document.documentElement.setAttribute(Ve, e.colorScheme), e.density && document.documentElement.setAttribute(za, e.density));
|
|
623
623
|
}, Nn = "hanui-live-region", $n = (e) => {
|
|
624
624
|
if (!he()) return null;
|
|
625
625
|
const t = `${Nn}-${e}`, n = document.getElementById(t);
|
|
@@ -630,7 +630,7 @@ ${n(
|
|
|
630
630
|
e.textContent = "", window.requestAnimationFrame(() => {
|
|
631
631
|
e.textContent = t;
|
|
632
632
|
});
|
|
633
|
-
}, oa = () =>
|
|
633
|
+
}, oa = () => H((e, t = "polite") => {
|
|
634
634
|
const n = e.trim();
|
|
635
635
|
if (n === "") return;
|
|
636
636
|
const r = $n(t);
|
|
@@ -651,13 +651,13 @@ ${n(
|
|
|
651
651
|
const _ = window.matchMedia("(prefers-color-scheme: dark)"), c = () => r(va());
|
|
652
652
|
return _.addEventListener("change", c), () => _.removeEventListener("change", c);
|
|
653
653
|
}, []);
|
|
654
|
-
const s = e === "system" ? n : e, l =
|
|
654
|
+
const s = e === "system" ? n : e, l = H((_) => {
|
|
655
655
|
if (!he()) return;
|
|
656
656
|
const c = document.documentElement;
|
|
657
657
|
c.classList.add(fa), _ === "system" ? c.removeAttribute(Ve) : c.setAttribute(Ve, _), t(_), window.requestAnimationFrame(() => {
|
|
658
658
|
window.requestAnimationFrame(() => c.classList.remove(fa));
|
|
659
659
|
});
|
|
660
|
-
}, []), h =
|
|
660
|
+
}, []), h = H(
|
|
661
661
|
() => l(s === "dark" ? "light" : "dark"),
|
|
662
662
|
[s, l]
|
|
663
663
|
);
|
|
@@ -676,7 +676,7 @@ ${n(
|
|
|
676
676
|
block: "nearest"
|
|
677
677
|
});
|
|
678
678
|
}, [s, t, e]);
|
|
679
|
-
const _ =
|
|
679
|
+
const _ = H(
|
|
680
680
|
(c) => {
|
|
681
681
|
const u = e - 1;
|
|
682
682
|
switch (c.key) {
|
|
@@ -709,12 +709,12 @@ ${n(
|
|
|
709
709
|
[s, e, i, o, r]
|
|
710
710
|
);
|
|
711
711
|
return { activeIndex: s, setActiveIndex: l, listRef: h, handleKeyDown: _ };
|
|
712
|
-
},
|
|
712
|
+
}, Wt = {
|
|
713
713
|
top: "bottom",
|
|
714
714
|
bottom: "top",
|
|
715
715
|
left: "right",
|
|
716
716
|
right: "left"
|
|
717
|
-
}, ya = (e, t, n) => Math.min(Math.max(e, t), n),
|
|
717
|
+
}, ya = (e, t, n) => Math.min(Math.max(e, t), n), Qt = (e, t, n, r, o) => {
|
|
718
718
|
const i = n === "top" || n === "bottom", s = {
|
|
719
719
|
top: e.top - t.height - o,
|
|
720
720
|
bottom: e.top + e.height + o,
|
|
@@ -736,16 +736,16 @@ ${n(
|
|
|
736
736
|
style: { position: "fixed", top: 0, left: 0 },
|
|
737
737
|
side: n,
|
|
738
738
|
isPositioned: !1
|
|
739
|
-
}), _ = R(0), c =
|
|
739
|
+
}), _ = R(0), c = H(() => {
|
|
740
740
|
const m = e.current, w = t.current;
|
|
741
741
|
if (!m || !w) return;
|
|
742
|
-
const b = m.getBoundingClientRect(), p = w.getBoundingClientRect(), y = { width: window.innerWidth, height: window.innerHeight }, D =
|
|
743
|
-
|
|
742
|
+
const b = m.getBoundingClientRect(), p = w.getBoundingClientRect(), y = { width: window.innerWidth, height: window.innerHeight }, D = Qt(b, p, n, r, o), N = wa(D, p, n, i, y) ? n : wa(
|
|
743
|
+
Qt(b, p, Wt[n], r, o),
|
|
744
744
|
p,
|
|
745
|
-
|
|
745
|
+
Wt[n],
|
|
746
746
|
i,
|
|
747
747
|
y
|
|
748
|
-
) ?
|
|
748
|
+
) ? Wt[n] : n, f = Qt(b, p, N, r, o);
|
|
749
749
|
h({
|
|
750
750
|
style: {
|
|
751
751
|
position: "fixed",
|
|
@@ -755,7 +755,7 @@ ${n(
|
|
|
755
755
|
side: N,
|
|
756
756
|
isPositioned: !0
|
|
757
757
|
});
|
|
758
|
-
}, [e, t, n, r, o, i]), u =
|
|
758
|
+
}, [e, t, n, r, o, i]), u = H(() => {
|
|
759
759
|
_.current || (_.current = window.requestAnimationFrame(() => {
|
|
760
760
|
_.current = 0, c();
|
|
761
761
|
}));
|
|
@@ -777,7 +777,7 @@ ${n(
|
|
|
777
777
|
end: e,
|
|
778
778
|
totalHeight: e * t,
|
|
779
779
|
offset: 0
|
|
780
|
-
}), l =
|
|
780
|
+
}), l = H(() => {
|
|
781
781
|
const _ = o.current, c = !r || !_ || _.clientHeight === 0 ? { start: 0, end: e, totalHeight: e * t, offset: 0 } : (() => {
|
|
782
782
|
const u = Math.ceil(_.clientHeight / t), d = Math.floor(_.scrollTop / t), m = Math.max(0, d - n), w = Math.min(e, d + u + n);
|
|
783
783
|
return { start: m, end: w, totalHeight: e * t, offset: m * t };
|
|
@@ -795,7 +795,7 @@ ${n(
|
|
|
795
795
|
_.removeEventListener("scroll", l), c == null || c.disconnect();
|
|
796
796
|
};
|
|
797
797
|
}, [l]);
|
|
798
|
-
const h =
|
|
798
|
+
const h = H(
|
|
799
799
|
(_) => {
|
|
800
800
|
const c = o.current;
|
|
801
801
|
if (!c || !r) return;
|
|
@@ -915,22 +915,21 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
915
915
|
}, F = (e, t) => Object.assign(e, { displayName: t }), ke = ({ children: e, ...t }) => {
|
|
916
916
|
const { linkComponent: n } = j();
|
|
917
917
|
return n ? /* @__PURE__ */ a(n, { ...t, children: e }) : /* @__PURE__ */ a("a", { ...t, children: e });
|
|
918
|
-
}, Na = /* @__PURE__ */ new Set(),
|
|
918
|
+
}, Na = /* @__PURE__ */ new Set(), z = (e, ...t) => {
|
|
919
919
|
for (const n of t) if (n !== void 0) return n;
|
|
920
920
|
return process.env.NODE_ENV !== "production" && !Na.has(e) && (Na.add(e), console.error(
|
|
921
921
|
`[hanui] Eksik metin: ${e}. Prop olarak geçin ya da <HanuiProvider labels={…}> içinde bir kez tanımlayın. Metinsiz bırakılan öğe ekran okuyucuda adsız kalır.`
|
|
922
922
|
)), "";
|
|
923
|
-
},
|
|
923
|
+
}, Ht = (e, t, ...n) => t ? t(...n) : z(e), On = "hanui-spinner-7pXwf", Hn = "hanui-spinner__label-sZvSq", Jt = {
|
|
924
924
|
spinner: On,
|
|
925
|
-
|
|
926
|
-
spinner__label: zn,
|
|
925
|
+
spinner__label: Hn,
|
|
927
926
|
"spinner--sm": "hanui-spinner--sm-uI0wH",
|
|
928
927
|
"spinner--md": "hanui-spinner--md--VmFK",
|
|
929
928
|
"spinner--lg": "hanui-spinner--lg-K9k-Z"
|
|
930
|
-
},
|
|
929
|
+
}, zn = ({ size: e = "md", label: t, className: n }) => {
|
|
931
930
|
const { labels: r } = j();
|
|
932
|
-
return /* @__PURE__ */ a("span", { className: v(Jt.spinner, Jt[`spinner--${e}`], n), role: "status", children: /* @__PURE__ */ a("span", { className: Jt.spinner__label, children: t ??
|
|
933
|
-
}, Xa = /* @__PURE__ */ I(
|
|
931
|
+
return /* @__PURE__ */ a("span", { className: v(Jt.spinner, Jt[`spinner--${e}`], n), role: "status", children: /* @__PURE__ */ a("span", { className: Jt.spinner__label, children: t ?? z("Spinner.label", r == null ? void 0 : r.loading) }) });
|
|
932
|
+
}, Xa = /* @__PURE__ */ I(zn), Kn = "hanui-button-SRu4R", Un = "hanui-button__icon-giom6", qn = "hanui-button__spinner-vexVG", jn = "hanui-button__label-qiMHm", $e = {
|
|
934
933
|
button: Kn,
|
|
935
934
|
button__icon: Un,
|
|
936
935
|
button__spinner: qn,
|
|
@@ -1056,9 +1055,9 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1056
1055
|
}
|
|
1057
1056
|
), Re = /* @__PURE__ */ I(
|
|
1058
1057
|
/* @__PURE__ */ F(Xn, "IconButton")
|
|
1059
|
-
),
|
|
1060
|
-
link:
|
|
1061
|
-
link__label:
|
|
1058
|
+
), Wn = "hanui-link-WBmXY", Qn = "hanui-link__label--OEu-", Jn = "hanui-link__arrow-JKXm-", gt = {
|
|
1059
|
+
link: Wn,
|
|
1060
|
+
link__label: Qn,
|
|
1062
1061
|
link__arrow: Jn,
|
|
1063
1062
|
"link--sm": "hanui-link--sm-a-3Dz",
|
|
1064
1063
|
"link--md": "hanui-link--md-lZdYP",
|
|
@@ -1090,25 +1089,22 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1090
1089
|
tooltip__trigger: er,
|
|
1091
1090
|
bubble: tr,
|
|
1092
1091
|
"bubble--top": "hanui-bubble--top-uWSZy",
|
|
1093
|
-
"hanui-fade-in-up": "hanui-hanui-fade-in-up-Fwj3A",
|
|
1094
1092
|
"bubble--bottom": "hanui-bubble--bottom-jKokL",
|
|
1095
|
-
"hanui-fade-in-down": "hanui-hanui-fade-in-down-5UfIc",
|
|
1096
1093
|
"bubble--left": "hanui-bubble--left-WK4EM",
|
|
1097
|
-
"bubble--right": "hanui-bubble--right-EQjUT"
|
|
1098
|
-
"hanui-fade-in": "hanui-hanui-fade-in-wwrDx"
|
|
1094
|
+
"bubble--right": "hanui-bubble--right-EQjUT"
|
|
1099
1095
|
}, ar = 120, nr = 500, rr = ({ content: e, children: t, side: n, position: r, openDelay: o = 300, className: i }) => {
|
|
1100
1096
|
const [s, l] = P(!1), h = J(), _ = n ?? r ?? "top", c = R(null), u = R(null), d = R(0), m = R(0), w = Ut(c, u, {
|
|
1101
1097
|
side: _,
|
|
1102
1098
|
align: "center",
|
|
1103
1099
|
isOpen: s
|
|
1104
|
-
}), b =
|
|
1100
|
+
}), b = H(() => {
|
|
1105
1101
|
d.current && window.clearTimeout(d.current), d.current = 0;
|
|
1106
|
-
}, []), p =
|
|
1102
|
+
}, []), p = H(
|
|
1107
1103
|
(f) => {
|
|
1108
1104
|
b(), d.current = window.setTimeout(() => l(!0), f);
|
|
1109
1105
|
},
|
|
1110
1106
|
[b]
|
|
1111
|
-
), y =
|
|
1107
|
+
), y = H(
|
|
1112
1108
|
(f = ar) => {
|
|
1113
1109
|
b(), d.current = window.setTimeout(() => l(!1), f);
|
|
1114
1110
|
},
|
|
@@ -1179,12 +1175,9 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1179
1175
|
}, _u = /* @__PURE__ */ I(/* @__PURE__ */ F(rr, "Tooltip")), or = "hanui-menu-1x-FU", ir = "hanui-menu__item-d1iil", sr = "hanui-menu__icon-kzLV2", ft = {
|
|
1180
1176
|
menu: or,
|
|
1181
1177
|
"menu--top": "hanui-menu--top-gpo39",
|
|
1182
|
-
"hanui-fade-in-up": "hanui-hanui-fade-in-up-7YdDa",
|
|
1183
1178
|
"menu--bottom": "hanui-menu--bottom-6sL7b",
|
|
1184
|
-
"hanui-fade-in-down": "hanui-hanui-fade-in-down-gZjPq",
|
|
1185
1179
|
"menu--left": "hanui-menu--left-4w-O8",
|
|
1186
1180
|
"menu--right": "hanui-menu--right-XmM8G",
|
|
1187
|
-
"hanui-fade-in": "hanui-hanui-fade-in-vivgk",
|
|
1188
1181
|
menu__item: ir,
|
|
1189
1182
|
"menu__item--danger": "hanui-menu__item--danger-lIINY",
|
|
1190
1183
|
menu__icon: sr
|
|
@@ -1197,12 +1190,12 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1197
1190
|
className: i,
|
|
1198
1191
|
testId: s
|
|
1199
1192
|
}) => {
|
|
1200
|
-
const l = J(), h = R(null), _ = R(null), c = R(null), u = R({ text: "", at: 0 }), [d, m] = P(!1), [w, b] = P(0), p = Ut(h, _, { side: r, align: o, isOpen: d }), y = cr(t), D =
|
|
1193
|
+
const l = J(), h = R(null), _ = R(null), c = R(null), u = R({ text: "", at: 0 }), [d, m] = P(!1), [w, b] = P(0), p = Ut(h, _, { side: r, align: o, isOpen: d }), y = cr(t), D = H(
|
|
1201
1194
|
(x) => {
|
|
1202
1195
|
y.length !== 0 && (c.current = pt(), b(x === "first" ? y[0] : y[y.length - 1]), m(!0));
|
|
1203
1196
|
},
|
|
1204
1197
|
[y]
|
|
1205
|
-
), N =
|
|
1198
|
+
), N = H(() => {
|
|
1206
1199
|
var x;
|
|
1207
1200
|
m(!1), (x = c.current) == null || x.call(c), c.current = null;
|
|
1208
1201
|
}, []);
|
|
@@ -1212,9 +1205,9 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1212
1205
|
}, [d, w]), S(() => {
|
|
1213
1206
|
if (!d) return;
|
|
1214
1207
|
const x = (M) => {
|
|
1215
|
-
var
|
|
1208
|
+
var Q, Z;
|
|
1216
1209
|
const U = M.target;
|
|
1217
|
-
(
|
|
1210
|
+
(Q = _.current) != null && Q.contains(U) || (Z = h.current) != null && Z.contains(U) || N();
|
|
1218
1211
|
};
|
|
1219
1212
|
return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
1220
1213
|
}, [d, N]);
|
|
@@ -1224,10 +1217,10 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1224
1217
|
}, $ = (x) => {
|
|
1225
1218
|
const M = Date.now(), U = M - u.current.at > 500 ? x : u.current.text + x;
|
|
1226
1219
|
u.current = { text: U, at: M };
|
|
1227
|
-
const
|
|
1220
|
+
const Q = y.find(
|
|
1228
1221
|
(Z) => t[Z].label.toLocaleLowerCase("tr").startsWith(U.toLocaleLowerCase("tr"))
|
|
1229
1222
|
);
|
|
1230
|
-
|
|
1223
|
+
Q !== void 0 && b(Q);
|
|
1231
1224
|
}, k = (x) => {
|
|
1232
1225
|
switch (x.key) {
|
|
1233
1226
|
case "ArrowDown":
|
|
@@ -1318,12 +1311,9 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1318
1311
|
}, uu = /* @__PURE__ */ I(/* @__PURE__ */ F(lr, "Menu")), dr = "hanui-popover-VxgiK", $a = {
|
|
1319
1312
|
popover: dr,
|
|
1320
1313
|
"popover--top": "hanui-popover--top-OUYwo",
|
|
1321
|
-
"hanui-fade-in-up": "hanui-hanui-fade-in-up-it2wl",
|
|
1322
1314
|
"popover--bottom": "hanui-popover--bottom-Q1K4X",
|
|
1323
|
-
"hanui-fade-in-down": "hanui-hanui-fade-in-down-E-AGy",
|
|
1324
1315
|
"popover--left": "hanui-popover--left-9Rsjx",
|
|
1325
|
-
"popover--right": "hanui-popover--right-0TJeo"
|
|
1326
|
-
"hanui-fade-in": "hanui-hanui-fade-in-zsza4"
|
|
1316
|
+
"popover--right": "hanui-popover--right-0TJeo"
|
|
1327
1317
|
}, _r = ({
|
|
1328
1318
|
trigger: e,
|
|
1329
1319
|
children: t,
|
|
@@ -1335,7 +1325,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1335
1325
|
className: l,
|
|
1336
1326
|
testId: h
|
|
1337
1327
|
}) => {
|
|
1338
|
-
const _ = J(), c = R(null), u = R(null), d = R(null), [m, w] = P(!1), b = i !== void 0, p = b ? i : m, y = Ut(c, u, { side: r, align: o, isOpen: p }), D =
|
|
1328
|
+
const _ = J(), c = R(null), u = R(null), d = R(null), [m, w] = P(!1), b = i !== void 0, p = b ? i : m, y = Ut(c, u, { side: r, align: o, isOpen: p }), D = H(
|
|
1339
1329
|
($) => {
|
|
1340
1330
|
b || w($), s == null || s($);
|
|
1341
1331
|
},
|
|
@@ -1546,9 +1536,9 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1546
1536
|
const w = window.matchMedia(s);
|
|
1547
1537
|
return w.addEventListener("change", n), () => w.removeEventListener("change", n);
|
|
1548
1538
|
}, [s, n]);
|
|
1549
|
-
const d =
|
|
1539
|
+
const d = H((w) => {
|
|
1550
1540
|
!w || w.open || (w.showModal(), jt(w, `.${qe.sheet__header} button`), ca(w));
|
|
1551
|
-
}, []), m =
|
|
1541
|
+
}, []), m = H(
|
|
1552
1542
|
(w) => {
|
|
1553
1543
|
w.target === w.currentTarget && n();
|
|
1554
1544
|
},
|
|
@@ -1572,8 +1562,8 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1572
1562
|
/* @__PURE__ */ a(
|
|
1573
1563
|
Re,
|
|
1574
1564
|
{
|
|
1575
|
-
icon: /* @__PURE__ */ a(
|
|
1576
|
-
label:
|
|
1565
|
+
icon: /* @__PURE__ */ a(ze, { "aria-hidden": !0 }),
|
|
1566
|
+
label: z("BottomSheet.closeLabel", t, _ == null ? void 0 : _.close),
|
|
1577
1567
|
variant: "ghost",
|
|
1578
1568
|
size: "sm",
|
|
1579
1569
|
onClick: n
|
|
@@ -1588,7 +1578,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1588
1578
|
),
|
|
1589
1579
|
document.body
|
|
1590
1580
|
) : null;
|
|
1591
|
-
},
|
|
1581
|
+
}, Wa = /* @__PURE__ */ I(Dr), Ir = "hanui-combobox-NtZoV", Tr = "hanui-combobox__trigger-2riRR", Cr = "hanui-combobox__leadingIcon-it2xz", Er = "hanui-combobox__value-acDlr", Lr = "hanui-combobox__clear-EXOsc", Sr = "hanui-combobox__chevron-g-QzQ", Rr = "hanui-combobox__panel-srBxl", Ar = "hanui-combobox__search-THjer", Mr = "hanui-combobox__searchIcon-vr4Bg", Br = "hanui-combobox__searchInput-JPp5h", Fr = "hanui-combobox__list-p-eCs", Pr = "hanui-combobox__option-CLWh-", Or = "hanui-combobox__optionText-Zm0D6", Hr = "hanui-combobox__optionLabel-WvT4W", zr = "hanui-combobox__optionDescription-8OEzi", Kr = "hanui-combobox__check-MKlLz", Ur = "hanui-combobox__empty-mZwBq", q = {
|
|
1592
1582
|
combobox: Ir,
|
|
1593
1583
|
combobox__trigger: Tr,
|
|
1594
1584
|
"combobox__trigger--empty": "hanui-combobox__trigger--empty-RxwCq",
|
|
@@ -1611,8 +1601,8 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1611
1601
|
"combobox__option--selected": "hanui-combobox__option--selected-DVFGy",
|
|
1612
1602
|
"combobox__option--disabled": "hanui-combobox__option--disabled-e6VjI",
|
|
1613
1603
|
combobox__optionText: Or,
|
|
1614
|
-
combobox__optionLabel:
|
|
1615
|
-
combobox__optionDescription:
|
|
1604
|
+
combobox__optionLabel: Hr,
|
|
1605
|
+
combobox__optionDescription: zr,
|
|
1616
1606
|
combobox__check: Kr,
|
|
1617
1607
|
combobox__empty: Ur
|
|
1618
1608
|
}, qr = 80, Ia = 40, jr = ({
|
|
@@ -1636,7 +1626,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1636
1626
|
const { labels: b } = j(), p = {
|
|
1637
1627
|
get search() {
|
|
1638
1628
|
var A;
|
|
1639
|
-
return
|
|
1629
|
+
return z(
|
|
1640
1630
|
"Combobox.searchPlaceholder",
|
|
1641
1631
|
r.searchPlaceholder,
|
|
1642
1632
|
(A = b == null ? void 0 : b.combobox) == null ? void 0 : A.searchPlaceholder
|
|
@@ -1644,7 +1634,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1644
1634
|
},
|
|
1645
1635
|
get empty() {
|
|
1646
1636
|
var A;
|
|
1647
|
-
return
|
|
1637
|
+
return z(
|
|
1648
1638
|
"Combobox.emptyMessage",
|
|
1649
1639
|
r.emptyMessage,
|
|
1650
1640
|
(A = b == null ? void 0 : b.combobox) == null ? void 0 : A.emptyMessage
|
|
@@ -1652,7 +1642,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1652
1642
|
},
|
|
1653
1643
|
get loading() {
|
|
1654
1644
|
var A;
|
|
1655
|
-
return
|
|
1645
|
+
return z(
|
|
1656
1646
|
"Combobox.loadingMessage",
|
|
1657
1647
|
r.loadingMessage,
|
|
1658
1648
|
(A = b == null ? void 0 : b.combobox) == null ? void 0 : A.loadingMessage
|
|
@@ -1660,9 +1650,9 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1660
1650
|
},
|
|
1661
1651
|
get clear() {
|
|
1662
1652
|
var A;
|
|
1663
|
-
return
|
|
1653
|
+
return z("Combobox.clearLabel", r.clearLabel, (A = b == null ? void 0 : b.combobox) == null ? void 0 : A.clearLabel);
|
|
1664
1654
|
}
|
|
1665
|
-
}, y = J(), D = c ?? y, N = `${D}-listbox`, f = R(null), $ = R(null), k = R(null), L = R(null), [C, E] = P(null), x = C !== null, [M, U] = P(""), [
|
|
1655
|
+
}, y = J(), D = c ?? y, N = `${D}-listbox`, f = R(null), $ = R(null), k = R(null), L = R(null), [C, E] = P(null), x = C !== null, [M, U] = P(""), [Q, Z] = P(null), Y = Tt(() => {
|
|
1666
1656
|
if (i || M.trim() === "") return e;
|
|
1667
1657
|
const A = M.trim();
|
|
1668
1658
|
return e.filter(
|
|
@@ -1672,7 +1662,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1672
1662
|
S(() => {
|
|
1673
1663
|
de ? Z(de.label) : t === null && Z(null);
|
|
1674
1664
|
}, [de, t]);
|
|
1675
|
-
const at = (de == null ? void 0 : de.label) ??
|
|
1665
|
+
const at = (de == null ? void 0 : de.label) ?? Q, Ne = R(i);
|
|
1676
1666
|
Ne.current = i, S(() => {
|
|
1677
1667
|
if (!x || !Ne.current) return;
|
|
1678
1668
|
const A = window.setTimeout(() => {
|
|
@@ -1681,9 +1671,9 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1681
1671
|
}, 300);
|
|
1682
1672
|
return () => window.clearTimeout(A);
|
|
1683
1673
|
}, [M, x]);
|
|
1684
|
-
const Ae =
|
|
1674
|
+
const Ae = H(() => {
|
|
1685
1675
|
E(null), U("");
|
|
1686
|
-
}, []), Lt =
|
|
1676
|
+
}, []), Lt = H(() => {
|
|
1687
1677
|
l || (E(window.matchMedia(sa).matches ? "popover" : "sheet"), U(""));
|
|
1688
1678
|
}, [l]);
|
|
1689
1679
|
S(() => {
|
|
@@ -1792,7 +1782,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1792
1782
|
/* @__PURE__ */ a("span", { className: q.combobox__optionLabel, children: pe.label }),
|
|
1793
1783
|
pe.description && /* @__PURE__ */ a("span", { className: q.combobox__optionDescription, children: pe.description })
|
|
1794
1784
|
] }),
|
|
1795
|
-
Xt && /* @__PURE__ */ a(
|
|
1785
|
+
Xt && /* @__PURE__ */ a(zt, { "aria-hidden": !0, className: q.combobox__check })
|
|
1796
1786
|
]
|
|
1797
1787
|
}
|
|
1798
1788
|
) }, pe.value);
|
|
@@ -1844,7 +1834,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1844
1834
|
className: q.combobox__clear,
|
|
1845
1835
|
"aria-label": p.clear,
|
|
1846
1836
|
onClick: rn,
|
|
1847
|
-
children: /* @__PURE__ */ a(
|
|
1837
|
+
children: /* @__PURE__ */ a(ze, { "aria-hidden": !0 })
|
|
1848
1838
|
}
|
|
1849
1839
|
),
|
|
1850
1840
|
C === "popover" && /* @__PURE__ */ g(
|
|
@@ -1867,7 +1857,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1867
1857
|
}
|
|
1868
1858
|
),
|
|
1869
1859
|
C === "sheet" && /* @__PURE__ */ a(
|
|
1870
|
-
|
|
1860
|
+
Wa,
|
|
1871
1861
|
{
|
|
1872
1862
|
title: r.placeholder,
|
|
1873
1863
|
closeLabel: r.closeLabel ?? (b == null ? void 0 : b.close),
|
|
@@ -1877,15 +1867,15 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1877
1867
|
}
|
|
1878
1868
|
)
|
|
1879
1869
|
] });
|
|
1880
|
-
}, mu = /* @__PURE__ */ I(jr), Yr = "hanui-segmented-qo2Bw", Gr = "hanui-segmented__item-mqRNZ", Xr = "hanui-segmented__icon-C9CT-",
|
|
1870
|
+
}, mu = /* @__PURE__ */ I(jr), Yr = "hanui-segmented-qo2Bw", Gr = "hanui-segmented__item-mqRNZ", Xr = "hanui-segmented__icon-C9CT-", Wr = "hanui-segmented__label-NVXBv", ot = {
|
|
1881
1871
|
segmented: Yr,
|
|
1882
1872
|
"segmented--sm": "hanui-segmented--sm-7tUry",
|
|
1883
1873
|
"segmented--md": "hanui-segmented--md-PiSqt",
|
|
1884
1874
|
segmented__item: Gr,
|
|
1885
1875
|
"segmented__item--selected": "hanui-segmented__item--selected-r7CLj",
|
|
1886
1876
|
segmented__icon: Xr,
|
|
1887
|
-
segmented__label:
|
|
1888
|
-
},
|
|
1877
|
+
segmented__label: Wr
|
|
1878
|
+
}, Qr = ({
|
|
1889
1879
|
options: e,
|
|
1890
1880
|
value: t,
|
|
1891
1881
|
onChange: n,
|
|
@@ -1942,7 +1932,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1942
1932
|
}
|
|
1943
1933
|
);
|
|
1944
1934
|
}, bu = /* @__PURE__ */ I(
|
|
1945
|
-
/* @__PURE__ */ F(
|
|
1935
|
+
/* @__PURE__ */ F(Qr, "SegmentedControl")
|
|
1946
1936
|
), Jr = "hanui-select-tiiPL", Zr = "hanui-trigger-rHQJz", Vr = "hanui-trigger__icon-apCcx", eo = "hanui-trigger__value-ioH7K", to = "hanui-trigger__chevron-FtsIZ", ao = "hanui-panel-rGOOd", no = "hanui-list-SOKf8", ro = "hanui-option-ZDPef", oo = "hanui-option__label-SsoYB", io = "hanui-option__check-8CPSG", X = {
|
|
1947
1937
|
select: Jr,
|
|
1948
1938
|
trigger: Zr,
|
|
@@ -1954,7 +1944,6 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1954
1944
|
trigger__chevron: to,
|
|
1955
1945
|
"trigger__chevron--open": "hanui-trigger__chevron--open-1P2P-",
|
|
1956
1946
|
panel: ao,
|
|
1957
|
-
"hanui-fade-in-up": "hanui-hanui-fade-in-up-Lt0Bt",
|
|
1958
1947
|
"panel--start": "hanui-panel--start-Fotwa",
|
|
1959
1948
|
"panel--end": "hanui-panel--end-ClVl2",
|
|
1960
1949
|
list: no,
|
|
@@ -1982,7 +1971,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
1982
1971
|
"aria-describedby": m,
|
|
1983
1972
|
"aria-invalid": w
|
|
1984
1973
|
}) => {
|
|
1985
|
-
const { labels: b } = j(), p =
|
|
1974
|
+
const { labels: b } = j(), p = z("Select.placeholder", o, b == null ? void 0 : b.selectPlaceholder), y = J(), D = c ?? y, N = `${D}-listbox`, f = (K) => `${D}-option-${K}`, $ = R(null), k = R(null), [L, C] = P(null), E = L !== null, x = e.findIndex((K) => K.value === t), M = x >= 0 ? e[x] : null, U = H(() => C(null), []), Q = H(() => {
|
|
1986
1975
|
_ || e.length === 0 || C(window.matchMedia(sa).matches ? "popover" : "sheet");
|
|
1987
1976
|
}, [_, e.length]), Z = (K) => {
|
|
1988
1977
|
K.isDisabled || (n(K.value), U());
|
|
@@ -2014,7 +2003,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2014
2003
|
}, [L, Ne]);
|
|
2015
2004
|
const Lt = (K) => {
|
|
2016
2005
|
if (!E) {
|
|
2017
|
-
["ArrowDown", "ArrowUp", "Enter", " "].includes(K.key) && (K.preventDefault(),
|
|
2006
|
+
["ArrowDown", "ArrowUp", "Enter", " "].includes(K.key) && (K.preventDefault(), Q());
|
|
2018
2007
|
return;
|
|
2019
2008
|
}
|
|
2020
2009
|
Ae(K);
|
|
@@ -2049,7 +2038,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2049
2038
|
onClick: () => Z(ee),
|
|
2050
2039
|
children: [
|
|
2051
2040
|
/* @__PURE__ */ a("span", { className: X.option__label, children: ee.label }),
|
|
2052
|
-
nt && /* @__PURE__ */ a(
|
|
2041
|
+
nt && /* @__PURE__ */ a(zt, { "aria-hidden": !0, className: X.option__check })
|
|
2053
2042
|
]
|
|
2054
2043
|
},
|
|
2055
2044
|
ee.value
|
|
@@ -2079,7 +2068,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2079
2068
|
"aria-label": r,
|
|
2080
2069
|
"aria-describedby": m,
|
|
2081
2070
|
"aria-invalid": w,
|
|
2082
|
-
onClick: () => E ? U() :
|
|
2071
|
+
onClick: () => E ? U() : Q(),
|
|
2083
2072
|
onKeyDown: Lt,
|
|
2084
2073
|
children: [
|
|
2085
2074
|
s && /* @__PURE__ */ a("span", { className: X.trigger__icon, "aria-hidden": !0, children: s }),
|
|
@@ -2095,7 +2084,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2095
2084
|
}
|
|
2096
2085
|
),
|
|
2097
2086
|
L === "popover" && /* @__PURE__ */ a("div", { className: v(X.panel, X[`panel--${h}`]), children: mt(!1) }),
|
|
2098
|
-
L === "sheet" && /* @__PURE__ */ a(
|
|
2087
|
+
L === "sheet" && /* @__PURE__ */ a(Wa, { title: r, closeLabel: i ?? (b == null ? void 0 : b.close), onClose: U, children: mt(!0) })
|
|
2099
2088
|
] });
|
|
2100
2089
|
}, gu = /* @__PURE__ */ I(so), co = "hanui-checkbox-FaFCj", lo = "hanui-checkbox__input-nTHne", _o = "hanui-checkbox__body-VAEW2", uo = "hanui-checkbox__label-sSNZY", ho = "hanui-checkbox__hint-ish-J", vt = {
|
|
2101
2090
|
checkbox: co,
|
|
@@ -2207,7 +2196,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2207
2196
|
/* @__PURE__ */ a("span", { className: st.radioCard__body, children: i })
|
|
2208
2197
|
]
|
|
2209
2198
|
}
|
|
2210
|
-
), wu = /* @__PURE__ */ I(Ro), Ao = "hanui-range-RpDPh", Mo = "hanui-range__readout-itDMd", Bo = "hanui-range__separator-u-ZJX", Fo = "hanui-range__track-bCh5Y", Po = "hanui-range__fill-VXMCE", Oo = "hanui-range__input-TAN2I",
|
|
2199
|
+
), wu = /* @__PURE__ */ I(Ro), Ao = "hanui-range-RpDPh", Mo = "hanui-range__readout-itDMd", Bo = "hanui-range__separator-u-ZJX", Fo = "hanui-range__track-bCh5Y", Po = "hanui-range__fill-VXMCE", Oo = "hanui-range__input-TAN2I", Ho = "hanui-range__bounds-GIhFd", me = {
|
|
2211
2200
|
range: Ao,
|
|
2212
2201
|
"range--disabled": "hanui-range--disabled-13hlc",
|
|
2213
2202
|
range__readout: Mo,
|
|
@@ -2215,8 +2204,8 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2215
2204
|
range__track: Fo,
|
|
2216
2205
|
range__fill: Po,
|
|
2217
2206
|
range__input: Oo,
|
|
2218
|
-
range__bounds:
|
|
2219
|
-
},
|
|
2207
|
+
range__bounds: Ho
|
|
2208
|
+
}, zo = ({
|
|
2220
2209
|
min: e,
|
|
2221
2210
|
max: t,
|
|
2222
2211
|
step: n = 1,
|
|
@@ -2232,13 +2221,13 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2232
2221
|
testId: d
|
|
2233
2222
|
}) => {
|
|
2234
2223
|
var E, x;
|
|
2235
|
-
const { labels: m } = j(), w =
|
|
2224
|
+
const { labels: m } = j(), w = z("RangeSlider.minLabel", h, (E = m == null ? void 0 : m.range) == null ? void 0 : E.min), b = z("RangeSlider.maxLabel", _, (x = m == null ? void 0 : m.range) == null ? void 0 : x.max), [p, y] = r, D = H(
|
|
2236
2225
|
(M) => o([Math.min(M, y), y]),
|
|
2237
2226
|
[y, o]
|
|
2238
|
-
), N =
|
|
2227
|
+
), N = H(
|
|
2239
2228
|
(M) => o([p, Math.max(M, p)]),
|
|
2240
2229
|
[p, o]
|
|
2241
|
-
), f =
|
|
2230
|
+
), f = H(() => i == null ? void 0 : i([p, y]), [p, y, i]), $ = t - e, k = $ === 0 ? 0 : pa(p - e, $), L = $ === 0 ? 0 : pa(y - e, $), C = k > 50;
|
|
2242
2231
|
return /* @__PURE__ */ g(
|
|
2243
2232
|
"div",
|
|
2244
2233
|
{
|
|
@@ -2305,7 +2294,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2305
2294
|
]
|
|
2306
2295
|
}
|
|
2307
2296
|
);
|
|
2308
|
-
}, xu = /* @__PURE__ */ I(
|
|
2297
|
+
}, xu = /* @__PURE__ */ I(zo), Ko = "hanui-rating-neNnF", Uo = "hanui-rating__legend-uYvFS", qo = "hanui-rating__stars-vJFLk", jo = "hanui-rating__star-BANFJ", Yo = "hanui-rating__input-s2iiO", Go = "hanui-rating__srOnly-iSCoz", Xo = "hanui-rating__caption-13KFX", De = {
|
|
2309
2298
|
rating: Ko,
|
|
2310
2299
|
"rating--disabled": "hanui-rating--disabled-ZKjHa",
|
|
2311
2300
|
rating__legend: Uo,
|
|
@@ -2315,7 +2304,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2315
2304
|
rating__input: Yo,
|
|
2316
2305
|
rating__srOnly: Go,
|
|
2317
2306
|
rating__caption: Xo
|
|
2318
|
-
},
|
|
2307
|
+
}, Wo = [1, 2, 3, 4, 5], Qo = ({
|
|
2319
2308
|
value: e,
|
|
2320
2309
|
onChange: t,
|
|
2321
2310
|
label: n,
|
|
@@ -2335,7 +2324,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2335
2324
|
"data-testid": l,
|
|
2336
2325
|
children: [
|
|
2337
2326
|
/* @__PURE__ */ a("legend", { className: De.rating__legend, children: n }),
|
|
2338
|
-
/* @__PURE__ */ a("div", { className: De.rating__stars, onMouseLeave: () => d(null), children:
|
|
2327
|
+
/* @__PURE__ */ a("div", { className: De.rating__stars, onMouseLeave: () => d(null), children: Wo.map((b) => {
|
|
2339
2328
|
var p;
|
|
2340
2329
|
return /* @__PURE__ */ g(
|
|
2341
2330
|
"label",
|
|
@@ -2359,7 +2348,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2359
2348
|
),
|
|
2360
2349
|
/* @__PURE__ */ a(ea, { "aria-hidden": !0 }),
|
|
2361
2350
|
/* @__PURE__ */ g("span", { className: De.rating__srOnly, children: [
|
|
2362
|
-
|
|
2351
|
+
Ht(
|
|
2363
2352
|
"RatingInput.formatStarCount",
|
|
2364
2353
|
o ?? ((p = h == null ? void 0 : h.rating) == null ? void 0 : p.starCount),
|
|
2365
2354
|
b
|
|
@@ -2377,7 +2366,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2377
2366
|
]
|
|
2378
2367
|
}
|
|
2379
2368
|
);
|
|
2380
|
-
}, ku = /* @__PURE__ */ I(
|
|
2369
|
+
}, ku = /* @__PURE__ */ I(Qo), Jo = "hanui-stepper-8s5Ih", Zo = "hanui-stepper__button-h6g7d", Vo = "hanui-stepper__input-OQh5v", yt = {
|
|
2381
2370
|
stepper: Jo,
|
|
2382
2371
|
stepper__button: Zo,
|
|
2383
2372
|
stepper__input: Vo,
|
|
@@ -2397,7 +2386,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2397
2386
|
testId: c
|
|
2398
2387
|
}) => {
|
|
2399
2388
|
var p, y, D;
|
|
2400
|
-
const { labels: u } = j(), d =
|
|
2389
|
+
const { labels: u } = j(), d = z("QuantityStepper.label", n, (p = u == null ? void 0 : u.quantity) == null ? void 0 : p.label), [m, w] = P(null), b = (N) => {
|
|
2401
2390
|
w(null);
|
|
2402
2391
|
const f = Number(N.replace(/\D/g, ""));
|
|
2403
2392
|
f && t(Math.min(Math.max(f, i), s));
|
|
@@ -2417,7 +2406,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2417
2406
|
className: yt.stepper__button,
|
|
2418
2407
|
onClick: () => t(Math.max(e - 1, i)),
|
|
2419
2408
|
disabled: l || e <= i,
|
|
2420
|
-
"aria-label":
|
|
2409
|
+
"aria-label": z(
|
|
2421
2410
|
"QuantityStepper.decreaseLabel",
|
|
2422
2411
|
r,
|
|
2423
2412
|
(y = u == null ? void 0 : u.quantity) == null ? void 0 : y.decrease
|
|
@@ -2447,7 +2436,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2447
2436
|
className: yt.stepper__button,
|
|
2448
2437
|
onClick: () => t(Math.min(e + 1, s)),
|
|
2449
2438
|
disabled: l || e >= s,
|
|
2450
|
-
"aria-label":
|
|
2439
|
+
"aria-label": z(
|
|
2451
2440
|
"QuantityStepper.increaseLabel",
|
|
2452
2441
|
o,
|
|
2453
2442
|
(D = u == null ? void 0 : u.quantity) == null ? void 0 : D.increase
|
|
@@ -2578,7 +2567,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2578
2567
|
onClick: (x) => {
|
|
2579
2568
|
x.stopPropagation(), L(E);
|
|
2580
2569
|
},
|
|
2581
|
-
children: /* @__PURE__ */ a(
|
|
2570
|
+
children: /* @__PURE__ */ a(ze, { "aria-hidden": !0 })
|
|
2582
2571
|
}
|
|
2583
2572
|
)
|
|
2584
2573
|
]
|
|
@@ -2626,7 +2615,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2626
2615
|
testId: _,
|
|
2627
2616
|
...c
|
|
2628
2617
|
}, u) => {
|
|
2629
|
-
const d = R(null), [m, w] = P(String(l ?? "").length), b = s === void 0 ? m : String(s).length, p =
|
|
2618
|
+
const d = R(null), [m, w] = P(String(l ?? "").length), b = s === void 0 ? m : String(s).length, p = H(
|
|
2630
2619
|
(D) => {
|
|
2631
2620
|
d.current = D, typeof u == "function" ? u(D) : u && (u.current = D);
|
|
2632
2621
|
},
|
|
@@ -2772,7 +2761,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2772
2761
|
e,
|
|
2773
2762
|
o && /* @__PURE__ */ g(fe, { children: [
|
|
2774
2763
|
/* @__PURE__ */ a("span", { className: Fe.field__required, "aria-hidden": !0, children: "*" }),
|
|
2775
|
-
/* @__PURE__ */ a("span", { className: Fe.field__srOnly, children:
|
|
2764
|
+
/* @__PURE__ */ a("span", { className: Fe.field__srOnly, children: z("Field.requiredLabel", i, h == null ? void 0 : h.required) })
|
|
2776
2765
|
] })
|
|
2777
2766
|
]
|
|
2778
2767
|
}
|
|
@@ -2801,29 +2790,27 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2801
2790
|
] }),
|
|
2802
2791
|
n && /* @__PURE__ */ a("p", { id: u, className: Fe.field__hint, children: n })
|
|
2803
2792
|
] });
|
|
2804
|
-
}, Mi = /* @__PURE__ */ I(Ai), Bi = "hanui-progress-99MrX", Fi = "hanui-progress__track-Qbp9t", Pi = "hanui-progress__fill-Bam55", Oi = "hanui-progress__value-3FYxj",
|
|
2793
|
+
}, Mi = /* @__PURE__ */ I(Ai), Bi = "hanui-progress-99MrX", Fi = "hanui-progress__track-Qbp9t", Pi = "hanui-progress__fill-Bam55", Oi = "hanui-progress__value-3FYxj", Hi = "hanui-circle-9cn2w", zi = "hanui-circle__svg-0IwkR", Ki = "hanui-circle__track-zY2qc", Ui = "hanui-circle__fill-Jbde6", qi = "hanui-circle__label-A3nJB", ne = {
|
|
2805
2794
|
progress: Bi,
|
|
2806
2795
|
progress__track: Fi,
|
|
2807
2796
|
"progress__track--sm": "hanui-progress__track--sm-dbHZq",
|
|
2808
2797
|
"progress__track--md": "hanui-progress__track--md-v1GdW",
|
|
2809
2798
|
"progress__track--indeterminate": "hanui-progress__track--indeterminate-8fMxl",
|
|
2810
2799
|
progress__fill: Pi,
|
|
2811
|
-
"hanui-progress-slide": "hanui-hanui-progress-slide-DQi2w",
|
|
2812
2800
|
"progress__fill--success": "hanui-progress__fill--success-IFuI5",
|
|
2813
2801
|
"progress__fill--warning": "hanui-progress__fill--warning-wIhgi",
|
|
2814
2802
|
"progress__fill--danger": "hanui-progress__fill--danger-cuqj0",
|
|
2815
2803
|
progress__value: Oi,
|
|
2816
|
-
circle:
|
|
2817
|
-
circle__svg:
|
|
2804
|
+
circle: Hi,
|
|
2805
|
+
circle__svg: zi,
|
|
2818
2806
|
circle__track: Ki,
|
|
2819
2807
|
circle__fill: Ui,
|
|
2820
2808
|
"circle__fill--success": "hanui-circle__fill--success-HTr0m",
|
|
2821
2809
|
"circle__fill--warning": "hanui-circle__fill--warning-Fkgj2",
|
|
2822
2810
|
"circle__fill--danger": "hanui-circle__fill--danger-4E3Z8",
|
|
2823
2811
|
"circle--indeterminate": "hanui-circle--indeterminate-cITY6",
|
|
2824
|
-
"hanui-spin": "hanui-hanui-spin-ez3g8",
|
|
2825
2812
|
circle__label: qi
|
|
2826
|
-
},
|
|
2813
|
+
}, Qa = (e, t) => !Number.isFinite(e) || !Number.isFinite(t) || t <= 0 ? 0 : Math.min(100, Math.max(0, e / t * 100)), ji = ({
|
|
2827
2814
|
value: e,
|
|
2828
2815
|
max: t = 100,
|
|
2829
2816
|
label: n,
|
|
@@ -2834,7 +2821,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2834
2821
|
className: l,
|
|
2835
2822
|
testId: h
|
|
2836
2823
|
}) => {
|
|
2837
|
-
const _ = e === void 0, c = _ ? 0 :
|
|
2824
|
+
const _ = e === void 0, c = _ ? 0 : Qa(e, t);
|
|
2838
2825
|
return /* @__PURE__ */ g("div", { className: v(ne.progress, l), "data-testid": h, children: [
|
|
2839
2826
|
/* @__PURE__ */ a(
|
|
2840
2827
|
"div",
|
|
@@ -2874,7 +2861,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2874
2861
|
className: l,
|
|
2875
2862
|
testId: h
|
|
2876
2863
|
}) => {
|
|
2877
|
-
const _ = e === void 0, c = _ ? 25 :
|
|
2864
|
+
const _ = e === void 0, c = _ ? 25 : Qa(e, t), u = Math.max(3, Math.round(s * 0.1)), d = (s - u) / 2, m = 2 * Math.PI * d;
|
|
2878
2865
|
return /* @__PURE__ */ g(
|
|
2879
2866
|
"div",
|
|
2880
2867
|
{
|
|
@@ -2930,10 +2917,10 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2930
2917
|
}, Cu = /* @__PURE__ */ F(
|
|
2931
2918
|
/* @__PURE__ */ I(Gi),
|
|
2932
2919
|
"ProgressCircle"
|
|
2933
|
-
), Xi = "hanui-upload-v1pRY",
|
|
2920
|
+
), Xi = "hanui-upload-v1pRY", Wi = "hanui-upload__drop-OpNbO", Qi = "hanui-upload__input-Tcg9-", Ji = "hanui-upload__icon-KpMkq", Zi = "hanui-upload__label-M4HJb", Vi = "hanui-upload__drag-ewSQw", es = "hanui-upload__hint-MZRJ6", ts = "hanui-upload__error-7GkCC", as = "hanui-upload__list-lbViQ", ns = "hanui-upload__file-Znp1Q", rs = "hanui-upload__fileText-EtJcs", os = "hanui-upload__fileName-ArF8-", is = "hanui-upload__fileMeta-i6sO1", ss = "hanui-upload__progress-JY2a5", W = {
|
|
2934
2921
|
upload: Xi,
|
|
2935
|
-
upload__drop:
|
|
2936
|
-
upload__input:
|
|
2922
|
+
upload__drop: Wi,
|
|
2923
|
+
upload__input: Qi,
|
|
2937
2924
|
"upload__drop--dragging": "hanui-upload__drop--dragging-YztUx",
|
|
2938
2925
|
"upload__drop--invalid": "hanui-upload__drop--invalid-JhwnL",
|
|
2939
2926
|
"upload__drop--disabled": "hanui-upload__drop--disabled-zyfUv",
|
|
@@ -2969,23 +2956,23 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2969
2956
|
}) => {
|
|
2970
2957
|
const p = J(), y = J(), D = R(null), N = oa(), [f, $] = P(!1), [k, L] = P([]), C = (x) => {
|
|
2971
2958
|
if (!x || x.length === 0) return;
|
|
2972
|
-
const M = [...x], U = l === void 0 ? [] : M.filter((Y) => Y.size > l),
|
|
2959
|
+
const M = [...x], U = l === void 0 ? [] : M.filter((Y) => Y.size > l), Q = M.filter((Y) => !U.includes(Y)), Z = U.map(
|
|
2973
2960
|
(Y) => c.replace("{name}", Y.name).replace("{max}", Ta(l ?? 0))
|
|
2974
2961
|
);
|
|
2975
|
-
L(Z),
|
|
2962
|
+
L(Z), Q.length > 0 && (t(Q), N(`${Q.length} dosya eklendi`)), Z.length > 0 && N(Z.join(" "), "assertive");
|
|
2976
2963
|
}, E = (x) => {
|
|
2977
2964
|
x.preventDefault(), $(!1), !u && C(x.dataTransfer.files);
|
|
2978
2965
|
};
|
|
2979
|
-
return /* @__PURE__ */ g("div", { className: v(
|
|
2966
|
+
return /* @__PURE__ */ g("div", { className: v(W.upload, w), "data-testid": b, children: [
|
|
2980
2967
|
/* @__PURE__ */ g(
|
|
2981
2968
|
"label",
|
|
2982
2969
|
{
|
|
2983
2970
|
htmlFor: p,
|
|
2984
2971
|
className: v(
|
|
2985
|
-
|
|
2986
|
-
f &&
|
|
2987
|
-
u &&
|
|
2988
|
-
d &&
|
|
2972
|
+
W.upload__drop,
|
|
2973
|
+
f && W["upload__drop--dragging"],
|
|
2974
|
+
u && W["upload__drop--disabled"],
|
|
2975
|
+
d && W["upload__drop--invalid"]
|
|
2989
2976
|
),
|
|
2990
2977
|
onDragOver: (x) => {
|
|
2991
2978
|
x.preventDefault(), u || $(!0);
|
|
@@ -2993,17 +2980,17 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
2993
2980
|
onDragLeave: () => $(!1),
|
|
2994
2981
|
onDrop: E,
|
|
2995
2982
|
children: [
|
|
2996
|
-
/* @__PURE__ */ a(hn, { "aria-hidden": !0, className:
|
|
2997
|
-
/* @__PURE__ */ a("span", { className:
|
|
2998
|
-
/* @__PURE__ */ a("span", { className:
|
|
2999
|
-
o && /* @__PURE__ */ a("span", { id: y, className:
|
|
2983
|
+
/* @__PURE__ */ a(hn, { "aria-hidden": !0, className: W.upload__icon }),
|
|
2984
|
+
/* @__PURE__ */ a("span", { className: W.upload__label, children: r }),
|
|
2985
|
+
/* @__PURE__ */ a("span", { className: W.upload__drag, children: _ }),
|
|
2986
|
+
o && /* @__PURE__ */ a("span", { id: y, className: W.upload__hint, children: o }),
|
|
3000
2987
|
/* @__PURE__ */ a(
|
|
3001
2988
|
"input",
|
|
3002
2989
|
{
|
|
3003
2990
|
ref: D,
|
|
3004
2991
|
id: p,
|
|
3005
2992
|
type: "file",
|
|
3006
|
-
className:
|
|
2993
|
+
className: W.upload__input,
|
|
3007
2994
|
accept: i,
|
|
3008
2995
|
multiple: s,
|
|
3009
2996
|
disabled: u,
|
|
@@ -3017,22 +3004,22 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3017
3004
|
]
|
|
3018
3005
|
}
|
|
3019
3006
|
),
|
|
3020
|
-
d && /* @__PURE__ */ g("p", { className:
|
|
3007
|
+
d && /* @__PURE__ */ g("p", { className: W.upload__error, role: "alert", children: [
|
|
3021
3008
|
/* @__PURE__ */ a(Ft, { "aria-hidden": !0 }),
|
|
3022
3009
|
d
|
|
3023
3010
|
] }),
|
|
3024
|
-
k.map((x) => /* @__PURE__ */ g("p", { className:
|
|
3011
|
+
k.map((x) => /* @__PURE__ */ g("p", { className: W.upload__error, role: "alert", children: [
|
|
3025
3012
|
/* @__PURE__ */ a(Ft, { "aria-hidden": !0 }),
|
|
3026
3013
|
x
|
|
3027
3014
|
] }, x)),
|
|
3028
|
-
e.length > 0 && /* @__PURE__ */ a("ul", { className:
|
|
3015
|
+
e.length > 0 && /* @__PURE__ */ a("ul", { className: W.upload__list, children: e.map((x) => /* @__PURE__ */ g(
|
|
3029
3016
|
"li",
|
|
3030
3017
|
{
|
|
3031
|
-
className: v(
|
|
3018
|
+
className: v(W.upload__file, x.error && W["upload__file--error"]),
|
|
3032
3019
|
children: [
|
|
3033
|
-
/* @__PURE__ */ g("span", { className:
|
|
3034
|
-
/* @__PURE__ */ a("span", { className:
|
|
3035
|
-
/* @__PURE__ */ a("span", { className:
|
|
3020
|
+
/* @__PURE__ */ g("span", { className: W.upload__fileText, children: [
|
|
3021
|
+
/* @__PURE__ */ a("span", { className: W.upload__fileName, children: x.name }),
|
|
3022
|
+
/* @__PURE__ */ a("span", { className: W.upload__fileMeta, children: x.error ?? Ta(x.size) })
|
|
3036
3023
|
] }),
|
|
3037
3024
|
x.progress !== void 0 && /* @__PURE__ */ a(
|
|
3038
3025
|
Yi,
|
|
@@ -3040,13 +3027,13 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3040
3027
|
value: x.progress,
|
|
3041
3028
|
label: `${x.name} yükleniyor`,
|
|
3042
3029
|
size: "sm",
|
|
3043
|
-
className:
|
|
3030
|
+
className: W.upload__progress
|
|
3044
3031
|
}
|
|
3045
3032
|
),
|
|
3046
3033
|
/* @__PURE__ */ a(
|
|
3047
3034
|
Re,
|
|
3048
3035
|
{
|
|
3049
|
-
icon: /* @__PURE__ */ a(
|
|
3036
|
+
icon: /* @__PURE__ */ a(ze, { "aria-hidden": !0 }),
|
|
3050
3037
|
label: `${x.name} — ${h}`,
|
|
3051
3038
|
variant: "ghost",
|
|
3052
3039
|
size: "sm",
|
|
@@ -3176,7 +3163,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3176
3163
|
"nav",
|
|
3177
3164
|
{
|
|
3178
3165
|
className: r,
|
|
3179
|
-
"aria-label":
|
|
3166
|
+
"aria-label": z("Breadcrumb.label", t, i == null ? void 0 : i.breadcrumb),
|
|
3180
3167
|
"data-testid": o,
|
|
3181
3168
|
children: /* @__PURE__ */ a("ol", { className: v(xt.breadcrumb), children: e.map((s, l) => {
|
|
3182
3169
|
const h = l === e.length - 1;
|
|
@@ -3210,12 +3197,12 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3210
3197
|
"data-testid": o,
|
|
3211
3198
|
children: e
|
|
3212
3199
|
}
|
|
3213
|
-
),
|
|
3200
|
+
), Hs = (e, t) => e ?? (t === !1 ? "cover" : "contain"), Mu = /* @__PURE__ */ F(
|
|
3214
3201
|
/* @__PURE__ */ I(({ children: e, ratio: t = 1, href: n, linkProps: r, fit: o, isContained: i, className: s }) => {
|
|
3215
3202
|
const l = /* @__PURE__ */ a(
|
|
3216
3203
|
"span",
|
|
3217
3204
|
{
|
|
3218
|
-
className: v(we.media__frame, we[`media__frame--${
|
|
3205
|
+
className: v(we.media__frame, we[`media__frame--${Hs(o, i)}`]),
|
|
3219
3206
|
style: { aspectRatio: t },
|
|
3220
3207
|
children: e
|
|
3221
3208
|
}
|
|
@@ -3248,8 +3235,8 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3248
3235
|
), Pu = /* @__PURE__ */ F(
|
|
3249
3236
|
/* @__PURE__ */ I(({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: v(we.footer, t), children: e })),
|
|
3250
3237
|
"CardFooter"
|
|
3251
|
-
), Ou = /* @__PURE__ */ I(Os),
|
|
3252
|
-
carousel:
|
|
3238
|
+
), Ou = /* @__PURE__ */ I(Os), zs = "hanui-carousel-GJXkW", Ks = "hanui-carousel__controls-hm5ij", Us = "hanui-carousel__arrowIcon-adFey", qs = "hanui-carousel__track-mAux5", js = "hanui-carousel__dots-iU8RJ", Ys = "hanui-carousel__dot-JTLCB", Pe = {
|
|
3239
|
+
carousel: zs,
|
|
3253
3240
|
carousel__controls: Ks,
|
|
3254
3241
|
carousel__arrowIcon: Us,
|
|
3255
3242
|
carousel__track: qs,
|
|
@@ -3266,7 +3253,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3266
3253
|
className: s,
|
|
3267
3254
|
testId: l
|
|
3268
3255
|
}) => {
|
|
3269
|
-
const h = R(null), [_, c] = P(!1), [u, d] = P(!1), [m, w] = P(0), [b, p] = P(1), [y, D] = P(!1), N =
|
|
3256
|
+
const h = R(null), [_, c] = P(!1), [u, d] = P(!1), [m, w] = P(0), [b, p] = P(1), [y, D] = P(!1), N = H(() => {
|
|
3270
3257
|
const $ = h.current;
|
|
3271
3258
|
if (!$) return;
|
|
3272
3259
|
const { scrollLeft: k, scrollWidth: L, clientWidth: C } = $;
|
|
@@ -3348,12 +3335,12 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3348
3335
|
k
|
|
3349
3336
|
)) })
|
|
3350
3337
|
] });
|
|
3351
|
-
},
|
|
3338
|
+
}, Hu = /* @__PURE__ */ I(/* @__PURE__ */ F(Gs, "Carousel")), Xs = "hanui-copy-Yht5s", Ws = "hanui-copy__code-CYlCA", Qs = "hanui-copy__button-GDdH6", Js = "hanui-copy__srOnly-WMTNN", ct = {
|
|
3352
3339
|
copy: Xs,
|
|
3353
3340
|
"copy--sm": "hanui-copy--sm-Tjqws",
|
|
3354
|
-
copy__code:
|
|
3341
|
+
copy__code: Ws,
|
|
3355
3342
|
"copy--md": "hanui-copy--md-00rhU",
|
|
3356
|
-
copy__button:
|
|
3343
|
+
copy__button: Qs,
|
|
3357
3344
|
"copy__button--done": "hanui-copy__button--done-MujUR",
|
|
3358
3345
|
copy__srOnly: Js
|
|
3359
3346
|
}, Zs = 1600, Vs = ({
|
|
@@ -3369,14 +3356,14 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3369
3356
|
var b, p, y;
|
|
3370
3357
|
const { labels: h } = j(), [_, c] = P(!1), u = R(null), d = R(void 0);
|
|
3371
3358
|
S(() => () => window.clearTimeout(d.current), []);
|
|
3372
|
-
const m =
|
|
3359
|
+
const m = H(() => {
|
|
3373
3360
|
const D = u.current;
|
|
3374
3361
|
if (!D) return;
|
|
3375
3362
|
const N = document.createRange();
|
|
3376
3363
|
N.selectNodeContents(D);
|
|
3377
3364
|
const f = window.getSelection();
|
|
3378
3365
|
f == null || f.removeAllRanges(), f == null || f.addRange(N);
|
|
3379
|
-
}, []), w =
|
|
3366
|
+
}, []), w = H(async () => {
|
|
3380
3367
|
try {
|
|
3381
3368
|
await navigator.clipboard.writeText(e), c(!0), d.current = window.setTimeout(() => c(!1), Zs);
|
|
3382
3369
|
} catch {
|
|
@@ -3391,17 +3378,17 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3391
3378
|
type: "button",
|
|
3392
3379
|
className: v(ct.copy__button, _ && ct["copy__button--done"]),
|
|
3393
3380
|
onClick: w,
|
|
3394
|
-
"aria-label": _ ? n ??
|
|
3381
|
+
"aria-label": _ ? n ?? Ht("CopyField.copiedLabel", (b = h == null ? void 0 : h.copyField) == null ? void 0 : b.copied, e) : t ?? Ht("CopyField.copyLabel", (p = h == null ? void 0 : h.copyField) == null ? void 0 : p.copy, e),
|
|
3395
3382
|
children: _ ? /* @__PURE__ */ a(pn, { "aria-hidden": !0 }) : /* @__PURE__ */ a(mn, { "aria-hidden": !0 })
|
|
3396
3383
|
}
|
|
3397
3384
|
),
|
|
3398
|
-
/* @__PURE__ */ a("span", { "aria-live": "polite", className: ct.copy__srOnly, children: _ ?
|
|
3385
|
+
/* @__PURE__ */ a("span", { "aria-live": "polite", className: ct.copy__srOnly, children: _ ? z(
|
|
3399
3386
|
"CopyField.copiedAnnouncement",
|
|
3400
3387
|
r,
|
|
3401
3388
|
(y = h == null ? void 0 : h.copyField) == null ? void 0 : y.announcement
|
|
3402
3389
|
) : "" })
|
|
3403
3390
|
] });
|
|
3404
|
-
},
|
|
3391
|
+
}, zu = /* @__PURE__ */ I(Vs), ec = "hanui-divider-RJqCw", tc = "hanui-divider__label-M8sBA", Bt = {
|
|
3405
3392
|
divider: ec,
|
|
3406
3393
|
"divider--labelled": "hanui-divider--labelled-jZH1-",
|
|
3407
3394
|
divider__label: tc
|
|
@@ -3442,7 +3429,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3442
3429
|
"nav",
|
|
3443
3430
|
{
|
|
3444
3431
|
className: ce.jump,
|
|
3445
|
-
"aria-label":
|
|
3432
|
+
"aria-label": z("DirectoryJump.label", n, r == null ? void 0 : r.directoryJump),
|
|
3446
3433
|
children: e.map((o) => /* @__PURE__ */ a("a", { href: `#${t(o)}`, className: ce.jump__link, children: o }, o))
|
|
3447
3434
|
}
|
|
3448
3435
|
);
|
|
@@ -3518,15 +3505,15 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3518
3505
|
r && /* @__PURE__ */ a("div", { className: ve.header__actions, children: r })
|
|
3519
3506
|
] }),
|
|
3520
3507
|
s
|
|
3521
|
-
] }), Xu = /* @__PURE__ */ I(Rc), Ac = "hanui-panel-Sv-1m", Mc = "hanui-panel__header-ysexh", Bc = "hanui-panel__heading-xLCsB", Fc = "hanui-panel__icon--yPQT", Pc = "hanui-panel__headingText--XqxW", Oc = "hanui-panel__title-6-6uC",
|
|
3508
|
+
] }), Xu = /* @__PURE__ */ I(Rc), Ac = "hanui-panel-Sv-1m", Mc = "hanui-panel__header-ysexh", Bc = "hanui-panel__heading-xLCsB", Fc = "hanui-panel__icon--yPQT", Pc = "hanui-panel__headingText--XqxW", Oc = "hanui-panel__title-6-6uC", Hc = "hanui-panel__description-qXTSM", zc = "hanui-panel__actions-Ra-zy", Kc = "hanui-panel__body-lo5aX", Uc = "hanui-panel__footer-qLpR1", qc = "hanui-panel__footerInner-r6VQI", jc = "hanui-form-o9UqJ", Yc = "hanui-row-vUGpa", V = {
|
|
3522
3509
|
panel: Ac,
|
|
3523
3510
|
panel__header: Mc,
|
|
3524
3511
|
panel__heading: Bc,
|
|
3525
3512
|
panel__icon: Fc,
|
|
3526
3513
|
panel__headingText: Pc,
|
|
3527
3514
|
panel__title: Oc,
|
|
3528
|
-
panel__description:
|
|
3529
|
-
panel__actions:
|
|
3515
|
+
panel__description: Hc,
|
|
3516
|
+
panel__actions: zc,
|
|
3530
3517
|
panel__body: Kc,
|
|
3531
3518
|
"panel__body--sm": "hanui-panel__body--sm-6XP6W",
|
|
3532
3519
|
"panel__body--lg": "hanui-panel__body--lg-RTK5B",
|
|
@@ -3573,16 +3560,16 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3573
3560
|
}
|
|
3574
3561
|
),
|
|
3575
3562
|
l && /* @__PURE__ */ a("div", { className: V.panel__footer, children: /* @__PURE__ */ a("div", { className: V.panel__footerInner, children: l }) })
|
|
3576
|
-
] }),
|
|
3563
|
+
] }), Wu = /* @__PURE__ */ F(
|
|
3577
3564
|
/* @__PURE__ */ I(({ children: e, columns: t = 1, className: n }) => /* @__PURE__ */ a("div", { className: v(V.form, V[`form--${t}`], n), children: e })),
|
|
3578
3565
|
"PanelForm"
|
|
3579
|
-
),
|
|
3566
|
+
), Qu = /* @__PURE__ */ F(
|
|
3580
3567
|
/* @__PURE__ */ I(({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: v(V.row, t), children: e })),
|
|
3581
3568
|
"PanelRow"
|
|
3582
|
-
), Ju = /* @__PURE__ */ I(Gc), Xc = "hanui-price-Oc5Nr",
|
|
3569
|
+
), Ju = /* @__PURE__ */ I(Gc), Xc = "hanui-price-Oc5Nr", Wc = "hanui-price__current-2Xup2", Qc = "hanui-price__currency-32NLN", Jc = "hanui-price__list-MlQgT", Zc = "hanui-price__discount-5Yc6W", We = {
|
|
3583
3570
|
price: Xc,
|
|
3584
|
-
price__current:
|
|
3585
|
-
price__currency:
|
|
3571
|
+
price__current: Wc,
|
|
3572
|
+
price__currency: Qc,
|
|
3586
3573
|
price__list: Jc,
|
|
3587
3574
|
price__discount: Zc,
|
|
3588
3575
|
"price--sm": "hanui-price--sm-Hd8Oe",
|
|
@@ -3600,7 +3587,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3600
3587
|
className: l,
|
|
3601
3588
|
testId: h
|
|
3602
3589
|
}) => {
|
|
3603
|
-
const { labels: _ } = j(), c =
|
|
3590
|
+
const { labels: _ } = j(), c = z("Price.currency", t, _ == null ? void 0 : _.currency), u = (d) => {
|
|
3604
3591
|
if (!i || !(_ != null && _.locale) || !/\d/.test(d)) return d;
|
|
3605
3592
|
const m = Number(
|
|
3606
3593
|
d.replace(/[^\d.,-]/g, "").replace(/\.(?=\d{3}\b)/g, "").replace(",", ".")
|
|
@@ -3612,16 +3599,16 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3612
3599
|
return d;
|
|
3613
3600
|
}
|
|
3614
3601
|
};
|
|
3615
|
-
return /* @__PURE__ */ g("span", { className: v(
|
|
3616
|
-
/* @__PURE__ */ g("span", { className:
|
|
3602
|
+
return /* @__PURE__ */ g("span", { className: v(We.price, We[`price--${s}`], l), "data-testid": h, children: [
|
|
3603
|
+
/* @__PURE__ */ g("span", { className: We.price__current, children: [
|
|
3617
3604
|
u(e),
|
|
3618
|
-
/* @__PURE__ */ a("span", { className:
|
|
3605
|
+
/* @__PURE__ */ a("span", { className: We.price__currency, children: c })
|
|
3619
3606
|
] }),
|
|
3620
|
-
n && /* @__PURE__ */ g("s", { className:
|
|
3607
|
+
n && /* @__PURE__ */ g("s", { className: We.price__list, children: [
|
|
3621
3608
|
u(n),
|
|
3622
|
-
/* @__PURE__ */ a("span", { className:
|
|
3609
|
+
/* @__PURE__ */ a("span", { className: We.price__currency, children: c })
|
|
3623
3610
|
] }),
|
|
3624
|
-
r !== void 0 && r > 0 && /* @__PURE__ */ a("span", { className:
|
|
3611
|
+
r !== void 0 && r > 0 && /* @__PURE__ */ a("span", { className: We.price__discount, children: o(r) })
|
|
3625
3612
|
] });
|
|
3626
3613
|
}, Zu = /* @__PURE__ */ I(Vc), el = "hanui-rating-94dke", tl = "hanui-rating__stars-QkpVU", al = "hanui-rating__empty-Wf6-K", nl = "hanui-rating__count-pIoEs", rl = "hanui-rating__srOnly-E9h0d", lt = {
|
|
3627
3614
|
rating: el,
|
|
@@ -3639,14 +3626,14 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3639
3626
|
const u = c + 1;
|
|
3640
3627
|
return l >= u ? /* @__PURE__ */ a(ea, {}, c) : l >= u - 0.5 ? /* @__PURE__ */ a(bn, {}, c) : /* @__PURE__ */ a(ea, { className: lt.rating__empty }, c);
|
|
3641
3628
|
}) }),
|
|
3642
|
-
/* @__PURE__ */ a("span", { className: lt.rating__srOnly, children: n ??
|
|
3629
|
+
/* @__PURE__ */ a("span", { className: lt.rating__srOnly, children: n ?? Ht("Rating.srLabel", (h = s == null ? void 0 : s.rating) == null ? void 0 : h.srLabel, e, t) }),
|
|
3643
3630
|
ut(t) && /* @__PURE__ */ g("span", { className: lt.rating__count, "aria-hidden": !0, children: [
|
|
3644
3631
|
"(",
|
|
3645
3632
|
t,
|
|
3646
3633
|
")"
|
|
3647
3634
|
] })
|
|
3648
3635
|
] });
|
|
3649
|
-
}, Vu = /* @__PURE__ */ I(ol), il = "hanui-header-a08Jh", sl = "hanui-header__text-ArJkA", cl = "hanui-header__overline-X5Epo", ll = "hanui-header__title-nQQQJ", dl = "hanui-header__description-08oCr", _l = "hanui-header__action-xsxQF",
|
|
3636
|
+
}, Vu = /* @__PURE__ */ I(ol), il = "hanui-header-a08Jh", sl = "hanui-header__text-ArJkA", cl = "hanui-header__overline-X5Epo", ll = "hanui-header__title-nQQQJ", dl = "hanui-header__description-08oCr", _l = "hanui-header__action-xsxQF", Qe = {
|
|
3650
3637
|
header: il,
|
|
3651
3638
|
header__text: sl,
|
|
3652
3639
|
header__overline: cl,
|
|
@@ -3664,13 +3651,13 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3664
3651
|
size: i = "md",
|
|
3665
3652
|
className: s,
|
|
3666
3653
|
testId: l
|
|
3667
|
-
}) => /* @__PURE__ */ g("header", { className: v(
|
|
3668
|
-
/* @__PURE__ */ g("div", { className:
|
|
3669
|
-
n && /* @__PURE__ */ a("span", { className:
|
|
3670
|
-
/* @__PURE__ */ a(o, { className:
|
|
3671
|
-
t && /* @__PURE__ */ a("p", { className:
|
|
3654
|
+
}) => /* @__PURE__ */ g("header", { className: v(Qe.header, Qe[`header--${i}`], s), "data-testid": l, children: [
|
|
3655
|
+
/* @__PURE__ */ g("div", { className: Qe.header__text, children: [
|
|
3656
|
+
n && /* @__PURE__ */ a("span", { className: Qe.header__overline, children: n }),
|
|
3657
|
+
/* @__PURE__ */ a(o, { className: Qe.header__title, children: e }),
|
|
3658
|
+
t && /* @__PURE__ */ a("p", { className: Qe.header__description, children: t })
|
|
3672
3659
|
] }),
|
|
3673
|
-
r && /* @__PURE__ */ a("div", { className:
|
|
3660
|
+
r && /* @__PURE__ */ a("div", { className: Qe.header__action, children: r })
|
|
3674
3661
|
] }), eh = /* @__PURE__ */ I(ul), hl = "hanui-scrollArea-Ly-yT", Vt = {
|
|
3675
3662
|
scrollArea: hl,
|
|
3676
3663
|
"scrollArea--vertical": "hanui-scrollArea--vertical-2ujC7",
|
|
@@ -3729,7 +3716,6 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3729
3716
|
/* @__PURE__ */ F(pl, "ScrollArea")
|
|
3730
3717
|
), ml = "hanui-skeleton-n92if", bl = "hanui-group-YMfwa", gl = "hanui-card-XQs-Q", fl = "hanui-card__media-YLJDv", vl = "hanui-card__body-msRvB", yl = "hanui-rows-EZ9Am", wl = "hanui-row-se56N", xl = "hanui-row__text-TD4iS", kl = "hanui-table-L328g", Nl = "hanui-table__row-rSJTK", le = {
|
|
3731
3718
|
skeleton: ml,
|
|
3732
|
-
"hanui-shimmer": "hanui-hanui-shimmer-6yd48",
|
|
3733
3719
|
"skeleton--block": "hanui-skeleton--block-tOZ-a",
|
|
3734
3720
|
"skeleton--text": "hanui-skeleton--text-k-ROi",
|
|
3735
3721
|
"skeleton--circle": "hanui-skeleton--circle-x-mX3",
|
|
@@ -3742,7 +3728,7 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3742
3728
|
row__text: xl,
|
|
3743
3729
|
table: kl,
|
|
3744
3730
|
table__row: Nl
|
|
3745
|
-
},
|
|
3731
|
+
}, He = ({ width: e, height: t, variant: n = "block", lines: r = 1, className: o }) => {
|
|
3746
3732
|
const i = {
|
|
3747
3733
|
width: ma(e) ? `${e}px` : e,
|
|
3748
3734
|
height: ma(t) ? `${t}px` : t
|
|
@@ -3762,23 +3748,23 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3762
3748
|
"aria-hidden": !0
|
|
3763
3749
|
}
|
|
3764
3750
|
);
|
|
3765
|
-
}, ah = /* @__PURE__ */ I(
|
|
3766
|
-
/* @__PURE__ */ a(
|
|
3751
|
+
}, ah = /* @__PURE__ */ I(He), $l = ({ count: e = 1, className: t }) => /* @__PURE__ */ a(fe, { children: Array.from({ length: e }, (n, r) => /* @__PURE__ */ g("div", { className: v(le.card, t), "aria-hidden": !0, children: [
|
|
3752
|
+
/* @__PURE__ */ a(He, { className: le.card__media }),
|
|
3767
3753
|
/* @__PURE__ */ g("div", { className: le.card__body, children: [
|
|
3768
|
-
/* @__PURE__ */ a(
|
|
3769
|
-
/* @__PURE__ */ a(
|
|
3754
|
+
/* @__PURE__ */ a(He, { variant: "text", width: "70%" }),
|
|
3755
|
+
/* @__PURE__ */ a(He, { variant: "text", width: "40%" })
|
|
3770
3756
|
] })
|
|
3771
3757
|
] }, r)) }), Dl = ({ count: e = 3, className: t }) => /* @__PURE__ */ a("div", { className: v(le.rows, t), "aria-hidden": !0, children: Array.from({ length: e }, (n, r) => /* @__PURE__ */ g("div", { className: le.row, children: [
|
|
3772
|
-
/* @__PURE__ */ a(
|
|
3758
|
+
/* @__PURE__ */ a(He, { variant: "circle", width: 36, height: 36 }),
|
|
3773
3759
|
/* @__PURE__ */ g("div", { className: le.row__text, children: [
|
|
3774
|
-
/* @__PURE__ */ a(
|
|
3775
|
-
/* @__PURE__ */ a(
|
|
3760
|
+
/* @__PURE__ */ a(He, { variant: "text", width: "45%" }),
|
|
3761
|
+
/* @__PURE__ */ a(He, { variant: "text", width: "25%" })
|
|
3776
3762
|
] })
|
|
3777
3763
|
] }, r)) }), Il = ({
|
|
3778
3764
|
count: e = 5,
|
|
3779
3765
|
columns: t = 4,
|
|
3780
3766
|
className: n
|
|
3781
|
-
}) => /* @__PURE__ */ a("div", { className: v(le.table, n), "aria-hidden": !0, children: Array.from({ length: e }, (r, o) => /* @__PURE__ */ a("div", { className: le.table__row, children: Array.from({ length: t }, (i, s) => /* @__PURE__ */ a(
|
|
3767
|
+
}) => /* @__PURE__ */ a("div", { className: v(le.table, n), "aria-hidden": !0, children: Array.from({ length: e }, (r, o) => /* @__PURE__ */ a("div", { className: le.table__row, children: Array.from({ length: t }, (i, s) => /* @__PURE__ */ a(He, { variant: "text" }, s)) }, o)) }), nh = /* @__PURE__ */ F(/* @__PURE__ */ I($l), "SkeletonCard"), rh = /* @__PURE__ */ F(/* @__PURE__ */ I(Dl), "SkeletonRows"), oh = /* @__PURE__ */ F(/* @__PURE__ */ I(Il), "SkeletonTable"), Tl = "hanui-stat-Xb7wp", Cl = "hanui-stat__icon-MB8NU", El = "hanui-stat__label-kUX2m", Ll = "hanui-stat__value--6p13", Sl = "hanui-stat__unit-mjHVk", Rl = "hanui-stat__delta-YKpOu", Al = "hanui-stat__description-Yvw6J", Ml = "hanui-stat__srOnly-YKebA", _e = {
|
|
3782
3768
|
stat: Tl,
|
|
3783
3769
|
"stat--sm": "hanui-stat--sm-XnK8p",
|
|
3784
3770
|
"stat--plain": "hanui-stat--plain-N-3RC",
|
|
@@ -3852,15 +3838,14 @@ const An = 640, cu = 768, Mn = 1024, lu = `(min-width: ${Mn + 1}px)`, sa = `(min
|
|
|
3852
3838
|
}
|
|
3853
3839
|
)
|
|
3854
3840
|
);
|
|
3855
|
-
}, ih = /* @__PURE__ */ I(/* @__PURE__ */ F(Pl, "Stat")), Ol = "hanui-hub-JoqOf",
|
|
3841
|
+
}, ih = /* @__PURE__ */ I(/* @__PURE__ */ F(Pl, "Stat")), Ol = "hanui-hub-JoqOf", Hl = "hanui-toast-U27Of", zl = "hanui-toast__icon-p-rgI", Kl = "hanui-toast__text-rG4ji", Ul = "hanui-toast__message-s6S2-", ql = "hanui-toast__description-0cYTx", jl = "hanui-toast__action-fOXU5", Yl = "hanui-toast__close-QxSNP", Le = {
|
|
3856
3842
|
hub: Ol,
|
|
3857
|
-
toast:
|
|
3858
|
-
"hanui-fade-in-up": "hanui-hanui-fade-in-up-hhv43",
|
|
3843
|
+
toast: Hl,
|
|
3859
3844
|
"toast--info": "hanui-toast--info-S1QJr",
|
|
3860
3845
|
"toast--success": "hanui-toast--success-NUso7",
|
|
3861
3846
|
"toast--warning": "hanui-toast--warning-7mi-S",
|
|
3862
3847
|
"toast--danger": "hanui-toast--danger-IhFSz",
|
|
3863
|
-
toast__icon:
|
|
3848
|
+
toast__icon: zl,
|
|
3864
3849
|
toast__text: Kl,
|
|
3865
3850
|
toast__message: Ul,
|
|
3866
3851
|
toast__description: ql,
|
|
@@ -3897,7 +3882,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
3897
3882
|
clear: () => {
|
|
3898
3883
|
tt = [], la();
|
|
3899
3884
|
}
|
|
3900
|
-
},
|
|
3885
|
+
}, Wl = ({ toast: e, closeLabel: t, onDismiss: n }) => {
|
|
3901
3886
|
const r = e.tone ?? "info", o = e.duration ?? Xl[r], [i, s] = P(!1), l = R(o), h = R(0);
|
|
3902
3887
|
return S(() => {
|
|
3903
3888
|
if (o === 0 || i) return;
|
|
@@ -3936,7 +3921,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
3936
3921
|
/* @__PURE__ */ a(
|
|
3937
3922
|
Re,
|
|
3938
3923
|
{
|
|
3939
|
-
icon: /* @__PURE__ */ a(
|
|
3924
|
+
icon: /* @__PURE__ */ a(ze, { "aria-hidden": !0 }),
|
|
3940
3925
|
label: t,
|
|
3941
3926
|
variant: "ghost",
|
|
3942
3927
|
size: "sm",
|
|
@@ -3947,12 +3932,12 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
3947
3932
|
]
|
|
3948
3933
|
}
|
|
3949
3934
|
);
|
|
3950
|
-
},
|
|
3935
|
+
}, Ql = ({ closeLabel: e, className: t }) => {
|
|
3951
3936
|
const { labels: n } = j(), [r, o] = P([]);
|
|
3952
3937
|
S(() => (aa.add(o), o(tt), () => {
|
|
3953
3938
|
aa.delete(o);
|
|
3954
3939
|
}), []);
|
|
3955
|
-
const i =
|
|
3940
|
+
const i = H((h) => na(h), []);
|
|
3956
3941
|
S(() => {
|
|
3957
3942
|
if (r.length === 0) return;
|
|
3958
3943
|
const h = (_) => {
|
|
@@ -3963,17 +3948,17 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
3963
3948
|
const [s, l] = P(!1);
|
|
3964
3949
|
return S(() => l(!0), []), s ? Et(
|
|
3965
3950
|
/* @__PURE__ */ a("div", { className: v(Le.hub, t), children: r.map((h) => /* @__PURE__ */ a(
|
|
3966
|
-
|
|
3951
|
+
Wl,
|
|
3967
3952
|
{
|
|
3968
3953
|
toast: h,
|
|
3969
|
-
closeLabel:
|
|
3954
|
+
closeLabel: z("ToastHub.closeLabel", e, n == null ? void 0 : n.close),
|
|
3970
3955
|
onDismiss: i
|
|
3971
3956
|
},
|
|
3972
3957
|
h.id
|
|
3973
3958
|
)) }),
|
|
3974
3959
|
document.body
|
|
3975
3960
|
) : null;
|
|
3976
|
-
}, ch = /* @__PURE__ */ I(/* @__PURE__ */ F(
|
|
3961
|
+
}, ch = /* @__PURE__ */ I(/* @__PURE__ */ F(Ql, "ToastHub")), Jl = "hanui-accordion-h9jLC", Zl = "hanui-accordion__item--YvzK", Vl = "hanui-accordion__title-qZOLY", ed = "hanui-accordion__meta-PSlsO", td = "hanui-accordion__marker-QcWcI", ad = "hanui-accordion__summary-QUhWh", nd = "hanui-accordion__panel--3EXE", rd = "hanui-accordion__content-fO64s", Ie = {
|
|
3977
3962
|
accordion: Jl,
|
|
3978
3963
|
accordion__item: Zl,
|
|
3979
3964
|
"accordion__item--disabled": "hanui-accordion__item--disabled-x1erZ",
|
|
@@ -3992,7 +3977,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
3992
3977
|
className: i,
|
|
3993
3978
|
testId: s
|
|
3994
3979
|
}) => {
|
|
3995
|
-
const l = J(), [h, _] = P(n ?? []), c = r !== void 0, u = c ? r : h, d =
|
|
3980
|
+
const l = J(), [h, _] = P(n ?? []), c = r !== void 0, u = c ? r : h, d = H(
|
|
3996
3981
|
(m, w) => {
|
|
3997
3982
|
const b = w ? t ? [m] : [...u.filter((p) => p !== m), m] : u.filter((p) => p !== m);
|
|
3998
3983
|
c || _(b), o == null || o(b);
|
|
@@ -4068,7 +4053,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4068
4053
|
"data-testid": s,
|
|
4069
4054
|
children: e.map((l, h) => {
|
|
4070
4055
|
const _ = pd(h, t), c = !!n && _ === "done", u = /* @__PURE__ */ g(fe, { children: [
|
|
4071
|
-
/* @__PURE__ */ a("span", { className: be.steps__marker, "aria-hidden": !0, children: _ === "done" ? /* @__PURE__ */ a(
|
|
4056
|
+
/* @__PURE__ */ a("span", { className: be.steps__marker, "aria-hidden": !0, children: _ === "done" ? /* @__PURE__ */ a(zt, {}) : h + 1 }),
|
|
4072
4057
|
/* @__PURE__ */ g("span", { className: be.steps__text, children: [
|
|
4073
4058
|
/* @__PURE__ */ a("span", { className: be.steps__label, children: l.label }),
|
|
4074
4059
|
l.description && /* @__PURE__ */ a("span", { className: be.steps__description, children: l.description })
|
|
@@ -4215,8 +4200,8 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4215
4200
|
timeline__description: Ad,
|
|
4216
4201
|
timeline__srOnly: Md
|
|
4217
4202
|
}, Bd = {
|
|
4218
|
-
done: /* @__PURE__ */ a(
|
|
4219
|
-
failed: /* @__PURE__ */ a(
|
|
4203
|
+
done: /* @__PURE__ */ a(zt, {}),
|
|
4204
|
+
failed: /* @__PURE__ */ a(ze, {}),
|
|
4220
4205
|
current: null,
|
|
4221
4206
|
pending: null
|
|
4222
4207
|
}, Fd = {
|
|
@@ -4248,12 +4233,12 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4248
4233
|
},
|
|
4249
4234
|
o.id
|
|
4250
4235
|
);
|
|
4251
|
-
}) }), hh = /* @__PURE__ */ I(/* @__PURE__ */ F(Pd, "Timeline")), Od = "hanui-modal-3IDi9",
|
|
4236
|
+
}) }), hh = /* @__PURE__ */ I(/* @__PURE__ */ F(Pd, "Timeline")), Od = "hanui-modal-3IDi9", Hd = "hanui-modal__panel--qLSz", zd = "hanui-modal__header-meWm6", Kd = "hanui-modal__icon-df2dd", Ud = "hanui-modal__heading-PwDS8", qd = "hanui-modal__title-80Sh6", jd = "hanui-modal__description-fsCHI", Yd = "hanui-modal__close-vFPbw", Gd = "hanui-modal__body-PDF12", Xd = "hanui-modal__footer-CCCkx", se = {
|
|
4252
4237
|
modal: Od,
|
|
4253
4238
|
"modal--sm": "hanui-modal--sm-A7WsS",
|
|
4254
4239
|
"modal--lg": "hanui-modal--lg-z99Em",
|
|
4255
|
-
modal__panel:
|
|
4256
|
-
modal__header:
|
|
4240
|
+
modal__panel: Hd,
|
|
4241
|
+
modal__header: zd,
|
|
4257
4242
|
modal__icon: Kd,
|
|
4258
4243
|
"modal__icon--neutral": "hanui-modal__icon--neutral-QSL7c",
|
|
4259
4244
|
"modal__icon--danger": "hanui-modal__icon--danger-6V90a",
|
|
@@ -4266,7 +4251,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4266
4251
|
modal__close: Yd,
|
|
4267
4252
|
modal__body: Gd,
|
|
4268
4253
|
modal__footer: Xd
|
|
4269
|
-
},
|
|
4254
|
+
}, Wd = ({
|
|
4270
4255
|
isOpen: e,
|
|
4271
4256
|
onClose: t,
|
|
4272
4257
|
title: n,
|
|
@@ -4303,7 +4288,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4303
4288
|
};
|
|
4304
4289
|
return N.addEventListener("cancel", f), () => N.removeEventListener("cancel", f);
|
|
4305
4290
|
}, [t, c]);
|
|
4306
|
-
const D =
|
|
4291
|
+
const D = H(
|
|
4307
4292
|
(N) => {
|
|
4308
4293
|
c && N.target === w.current && t();
|
|
4309
4294
|
},
|
|
@@ -4328,8 +4313,8 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4328
4313
|
c && /* @__PURE__ */ a(
|
|
4329
4314
|
Re,
|
|
4330
4315
|
{
|
|
4331
|
-
icon: /* @__PURE__ */ a(
|
|
4332
|
-
label:
|
|
4316
|
+
icon: /* @__PURE__ */ a(ze, { "aria-hidden": !0 }),
|
|
4317
|
+
label: z("Modal.closeLabel", r, m == null ? void 0 : m.close),
|
|
4333
4318
|
variant: "ghost",
|
|
4334
4319
|
size: "sm",
|
|
4335
4320
|
className: se.modal__close,
|
|
@@ -4342,8 +4327,8 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4342
4327
|
] })
|
|
4343
4328
|
}
|
|
4344
4329
|
);
|
|
4345
|
-
}, Ja = /* @__PURE__ */ I(
|
|
4346
|
-
palette:
|
|
4330
|
+
}, Ja = /* @__PURE__ */ I(Wd), Qd = "hanui-palette-ag-P9", Jd = "hanui-palette__search-G3aYv", Zd = "hanui-palette__searchIcon-2UYj-", Vd = "hanui-palette__input-vvLvt", e_ = "hanui-palette__list--KWiH", t_ = "hanui-palette__group-KPj5Q", a_ = "hanui-palette__item-UZzkp", n_ = "hanui-palette__icon-Fg0Lt", r_ = "hanui-palette__text-flfN9", o_ = "hanui-palette__label-8-UHe", i_ = "hanui-palette__description-eRlk9", s_ = "hanui-palette__shortcut-DwYKX", c_ = "hanui-palette__empty-vg-I3", te = {
|
|
4331
|
+
palette: Qd,
|
|
4347
4332
|
palette__search: Jd,
|
|
4348
4333
|
palette__searchIcon: Zd,
|
|
4349
4334
|
palette__input: Vd,
|
|
@@ -4552,7 +4537,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4552
4537
|
size: et.MEDIUM,
|
|
4553
4538
|
onClick: t,
|
|
4554
4539
|
disabled: d,
|
|
4555
|
-
children:
|
|
4540
|
+
children: z("ConfirmDialog.cancelLabel", s, u == null ? void 0 : u.cancel)
|
|
4556
4541
|
}
|
|
4557
4542
|
),
|
|
4558
4543
|
/* @__PURE__ */ a(
|
|
@@ -4617,7 +4602,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4617
4602
|
};
|
|
4618
4603
|
return p.addEventListener("cancel", y), () => p.removeEventListener("cancel", y);
|
|
4619
4604
|
}, [t]);
|
|
4620
|
-
const b =
|
|
4605
|
+
const b = H(
|
|
4621
4606
|
(p) => {
|
|
4622
4607
|
p.target === d.current && t();
|
|
4623
4608
|
},
|
|
@@ -4637,8 +4622,8 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4637
4622
|
/* @__PURE__ */ a(
|
|
4638
4623
|
Re,
|
|
4639
4624
|
{
|
|
4640
|
-
icon: /* @__PURE__ */ a(
|
|
4641
|
-
label:
|
|
4625
|
+
icon: /* @__PURE__ */ a(ze, { "aria-hidden": !0 }),
|
|
4626
|
+
label: z("Drawer.closeLabel", r, u == null ? void 0 : u.close),
|
|
4642
4627
|
variant: "ghost",
|
|
4643
4628
|
size: "sm",
|
|
4644
4629
|
className: ye.drawer__close,
|
|
@@ -4682,7 +4667,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4682
4667
|
{
|
|
4683
4668
|
...U,
|
|
4684
4669
|
value: N,
|
|
4685
|
-
onChange: (
|
|
4670
|
+
onChange: (Q) => f(Q.target.value),
|
|
4686
4671
|
placeholder: c,
|
|
4687
4672
|
maxLength: b,
|
|
4688
4673
|
rows: p
|
|
@@ -4693,7 +4678,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4693
4678
|
...U,
|
|
4694
4679
|
type: w === "number" ? "number" : "text",
|
|
4695
4680
|
value: N,
|
|
4696
|
-
onChange: (
|
|
4681
|
+
onChange: (Q) => f(Q.target.value),
|
|
4697
4682
|
placeholder: c,
|
|
4698
4683
|
maxLength: b
|
|
4699
4684
|
}
|
|
@@ -4726,7 +4711,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4726
4711
|
size: et.MEDIUM,
|
|
4727
4712
|
onClick: t,
|
|
4728
4713
|
disabled: $,
|
|
4729
|
-
children:
|
|
4714
|
+
children: z("PromptDialog.cancelLabel", s, y == null ? void 0 : y.cancel)
|
|
4730
4715
|
}
|
|
4731
4716
|
),
|
|
4732
4717
|
/* @__PURE__ */ a(
|
|
@@ -4738,7 +4723,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4738
4723
|
size: et.MEDIUM,
|
|
4739
4724
|
disabled: E,
|
|
4740
4725
|
isLoading: $,
|
|
4741
|
-
children:
|
|
4726
|
+
children: z("PromptDialog.submitLabel", i, y == null ? void 0 : y.submit)
|
|
4742
4727
|
}
|
|
4743
4728
|
)
|
|
4744
4729
|
] }),
|
|
@@ -4892,13 +4877,13 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4892
4877
|
] }),
|
|
4893
4878
|
"error"
|
|
4894
4879
|
) : n ? m(
|
|
4895
|
-
|
|
4880
|
+
z(
|
|
4896
4881
|
"DataTable.loadingMessage",
|
|
4897
4882
|
i,
|
|
4898
4883
|
(w = u == null ? void 0 : u.dataTable) == null ? void 0 : w.loading
|
|
4899
4884
|
)
|
|
4900
4885
|
) : d === 0 ? m(
|
|
4901
|
-
|
|
4886
|
+
z("DataTable.emptyMessage", o, (b = u == null ? void 0 : u.dataTable) == null ? void 0 : b.empty)
|
|
4902
4887
|
) : t })
|
|
4903
4888
|
] })
|
|
4904
4889
|
]
|
|
@@ -4907,11 +4892,11 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4907
4892
|
}, yh = /* @__PURE__ */ F(
|
|
4908
4893
|
/* @__PURE__ */ I(({ isWarning: e, className: t, children: n, ...r }) => /* @__PURE__ */ a("tr", { className: v(e && ae["row--warning"], t), ...r, children: n })),
|
|
4909
4894
|
"DataTableRow"
|
|
4910
|
-
), wh = /* @__PURE__ */ I(F_), P_ = "hanui-bar-b4PP4", O_ = "hanui-bar__hiddenSubmit-jeCyX",
|
|
4895
|
+
), wh = /* @__PURE__ */ I(F_), P_ = "hanui-bar-b4PP4", O_ = "hanui-bar__hiddenSubmit-jeCyX", H_ = "hanui-bar__actions-rG69L", z_ = "hanui-field-f-rvu", It = {
|
|
4911
4896
|
bar: P_,
|
|
4912
4897
|
bar__hiddenSubmit: O_,
|
|
4913
|
-
bar__actions:
|
|
4914
|
-
field:
|
|
4898
|
+
bar__actions: H_,
|
|
4899
|
+
field: z_,
|
|
4915
4900
|
"field--wide": "hanui-field--wide-FA5gf"
|
|
4916
4901
|
}, K_ = ({ onSubmit: e, children: t, actions: n, label: r, className: o, testId: i }) => {
|
|
4917
4902
|
const { labels: s } = j();
|
|
@@ -4919,7 +4904,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4919
4904
|
"form",
|
|
4920
4905
|
{
|
|
4921
4906
|
className: v(It.bar, o),
|
|
4922
|
-
"aria-label":
|
|
4907
|
+
"aria-label": z("FilterBar.label", r, s == null ? void 0 : s.filters),
|
|
4923
4908
|
"data-testid": i,
|
|
4924
4909
|
onSubmit: (l) => {
|
|
4925
4910
|
l.preventDefault(), e();
|
|
@@ -4949,7 +4934,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4949
4934
|
return r.forEach((i, s) => {
|
|
4950
4935
|
s > 0 && i - r[s - 1] > 1 && o.push("gap"), o.push(i);
|
|
4951
4936
|
}), o;
|
|
4952
|
-
},
|
|
4937
|
+
}, W_ = ({
|
|
4953
4938
|
page: e,
|
|
4954
4939
|
totalPages: t,
|
|
4955
4940
|
label: n,
|
|
@@ -4976,7 +4961,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4976
4961
|
"nav",
|
|
4977
4962
|
{
|
|
4978
4963
|
className: v(Ce.pagination, _),
|
|
4979
|
-
"aria-label":
|
|
4964
|
+
"aria-label": z("Pagination.label", n, (p = u == null ? void 0 : u.pagination) == null ? void 0 : p.label),
|
|
4980
4965
|
"data-testid": c,
|
|
4981
4966
|
children: [
|
|
4982
4967
|
/* @__PURE__ */ a(
|
|
@@ -4984,7 +4969,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
4984
4969
|
{
|
|
4985
4970
|
className: Ce.pagination__arrow,
|
|
4986
4971
|
icon: /* @__PURE__ */ a(Oa, { "aria-hidden": !0 }),
|
|
4987
|
-
label:
|
|
4972
|
+
label: z(
|
|
4988
4973
|
"Pagination.previousLabel",
|
|
4989
4974
|
r,
|
|
4990
4975
|
(y = u == null ? void 0 : u.pagination) == null ? void 0 : y.previous
|
|
@@ -5027,7 +5012,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
5027
5012
|
{
|
|
5028
5013
|
className: Ce.pagination__arrow,
|
|
5029
5014
|
icon: /* @__PURE__ */ a(Kt, { "aria-hidden": !0 }),
|
|
5030
|
-
label:
|
|
5015
|
+
label: z("Pagination.nextLabel", o, (D = u == null ? void 0 : u.pagination) == null ? void 0 : D.next),
|
|
5031
5016
|
variant: "outline",
|
|
5032
5017
|
disabled: e >= t,
|
|
5033
5018
|
onClick: () => b(e + 1)
|
|
@@ -5036,7 +5021,7 @@ const la = () => aa.forEach((e) => e(tt)), na = (e) => {
|
|
|
5036
5021
|
]
|
|
5037
5022
|
}
|
|
5038
5023
|
);
|
|
5039
|
-
}, Nh = /* @__PURE__ */ I(
|
|
5024
|
+
}, Nh = /* @__PURE__ */ I(W_);
|
|
5040
5025
|
export {
|
|
5041
5026
|
sa as ABOVE_MOBILE_MEDIA_QUERY,
|
|
5042
5027
|
lu as ABOVE_TABLET_MEDIA_QUERY,
|
|
@@ -5044,7 +5029,7 @@ export {
|
|
|
5044
5029
|
Lu as Alert,
|
|
5045
5030
|
Su as Avatar,
|
|
5046
5031
|
Ru as Badge,
|
|
5047
|
-
|
|
5032
|
+
Wa as BottomSheet,
|
|
5048
5033
|
Au as Breadcrumb,
|
|
5049
5034
|
Ct as Button,
|
|
5050
5035
|
au as COMPACT_DENSITY,
|
|
@@ -5053,14 +5038,14 @@ export {
|
|
|
5053
5038
|
Pu as CardFooter,
|
|
5054
5039
|
Mu as CardMedia,
|
|
5055
5040
|
Bu as CardOverlay,
|
|
5056
|
-
|
|
5041
|
+
Hu as Carousel,
|
|
5057
5042
|
fu as Checkbox,
|
|
5058
5043
|
gr as Chip,
|
|
5059
5044
|
pu as ChipGroup,
|
|
5060
5045
|
mu as Combobox,
|
|
5061
5046
|
ph as CommandPalette,
|
|
5062
5047
|
mh as ConfirmDialog,
|
|
5063
|
-
|
|
5048
|
+
zu as CopyField,
|
|
5064
5049
|
xn as DARK_THEME,
|
|
5065
5050
|
nu as DEFAULT_FONTS,
|
|
5066
5051
|
wh as DataTable,
|
|
@@ -5089,8 +5074,8 @@ export {
|
|
|
5089
5074
|
Xu as PageHeader,
|
|
5090
5075
|
Nh as Pagination,
|
|
5091
5076
|
Ju as Panel,
|
|
5092
|
-
|
|
5093
|
-
|
|
5077
|
+
Wu as PanelForm,
|
|
5078
|
+
Qu as PanelRow,
|
|
5094
5079
|
hu as Popover,
|
|
5095
5080
|
Zu as Price,
|
|
5096
5081
|
Yi as Progress,
|