@ahmetilhn/hanui 5.3.2 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { jsx as a, jsxs as v, Fragment as we } from "react/jsx-runtime";
3
3
  import { useContext as Pn, createContext as Hn, useMemo as Ct, useEffect as R, useRef as A, useCallback as j, useState as B, useLayoutEffect as nn, memo as T, forwardRef as Ce, useId as V, isValidElement as Ta, cloneElement as rn, useImperativeHandle as Kn, Children as Un } from "react";
4
4
  import { isClient as me, isDefined as mt, normalize as Pa, isNumber as Ha } from "@ahmetilhn/handy-utils";
5
- import { ArrowRight as zn, XLg as Ze, Search as on, CaretDownFill as sn, CheckLg as la, StarFill as wa, DashLg as cn, PlusLg as jn, EyeSlashFill as Yn, EyeFill as qn, ExclamationCircleFill as ra, CloudArrowUpFill as Wn, XCircleFill as ln, ExclamationTriangleFill as Da, CheckCircleFill as dn, InfoCircleFill as un, CaretRightFill as da, CaretLeftFill as _n, ClipboardCheckFill as hn, ClipboardFill as pn, StarHalf as Gn, ArrowDownShort as Xn, ArrowUpShort as Jn, QuestionCircleFill as Vn, TrashFill as Qn } from "react-bootstrap-icons";
5
+ import { ArrowRight as zn, XLg as tt, Search as on, CaretDownFill as sn, CheckLg as la, StarFill as wa, DashLg as cn, PlusLg as jn, EyeSlashFill as Yn, EyeFill as qn, ExclamationCircleFill as ra, CloudArrowUpFill as Wn, XCircleFill as ln, ExclamationTriangleFill as Da, CheckCircleFill as dn, InfoCircleFill as un, CaretRightFill as da, CaretLeftFill as _n, ClipboardCheckFill as hn, ClipboardFill as pn, StarHalf as Gn, ArrowDownShort as Xn, ArrowUpShort as Jn, QuestionCircleFill as Vn, TrashFill as Qn } from "react-bootstrap-icons";
6
6
  import { createPortal as ft } from "react-dom";
7
7
  const ht = {
8
8
  pine: "#00322a",
@@ -56,7 +56,7 @@ const ht = {
56
56
  darkActive: "#30b464",
57
57
  darkSoft: "#466e51",
58
58
  on: "#021407"
59
- }, Je = {
59
+ }, Qe = {
60
60
  base: "#1f7b56",
61
61
  hover: "#176446",
62
62
  text: "#17704e",
@@ -105,7 +105,7 @@ const ht = {
105
105
  dark: "#f53039",
106
106
  darkHover: "#f26a64",
107
107
  onDark: "#1b0102"
108
- }, Ve = {
108
+ }, Ze = {
109
109
  red: "#de1b2c",
110
110
  redDark: "#f64f4e",
111
111
  green: "#18904c",
@@ -140,7 +140,7 @@ const ht = {
140
140
  }, Ka = 360, Zn = 1280, er = 16, Vt = (e) => String(Number(e.toFixed(4))), Ea = (e, t) => {
141
141
  const n = (t - e) / (Zn - Ka), r = (e - n * Ka) / er;
142
142
  return `clamp(${Vt(e)}px, ${Vt(r)}rem + ${Vt(n * 100)}vw, ${Vt(t)}px)`;
143
- }, gn = (e, t) => `calc(${e} * var(--hanui-${t}))`, $e = (e, t) => gn(Ea(e, t), "type-scale"), at = (e, t) => gn(Ea(e, t), "space-scale"), se = K.inset, tr = {
143
+ }, gn = (e, t) => `calc(${e} * var(--hanui-${t}))`, $e = (e, t) => gn(Ea(e, t), "type-scale"), rt = (e, t) => gn(Ea(e, t), "space-scale"), se = K.inset, tr = {
144
144
  // --- Yüzey ---
145
145
  /*
146
146
  * SAYFA KREM (`#faf9f5`), KART BEYAZA YAKIN — kart sayfadan bir kademe AÇIK. Ayrımın asıl
@@ -204,8 +204,8 @@ const ht = {
204
204
  "selected-tint": S.n150,
205
205
  "selected-line": S.n900,
206
206
  /* BAĞLANTI — yeşil kalan üç yerden biri (eylem, bağlantı, odak). Alt çizgi ZORUNLU: gövde metnine 3,04:1. */
207
- link: Je.text,
208
- "link-hover": Je.hover,
207
+ link: Qe.text,
208
+ "link-hover": Qe.hover,
209
209
  // --- Durum: tint zemin + koyu metin + eşleşen hairline ---
210
210
  "ok-bg": U.okBg,
211
211
  "ok-fg": U.okFg,
@@ -228,10 +228,10 @@ const ht = {
228
228
  "sale-bg": sa.bg,
229
229
  "sale-fg": sa.fg,
230
230
  // --- İkon vurguları:
231
- "red-accent": Ve.red,
232
- "green-accent": Ve.green,
233
- "green-accent-hover": Ve.greenHover,
234
- "on-green": Ve.onGreen,
231
+ "red-accent": Ze.red,
232
+ "green-accent": Ze.green,
233
+ "green-accent-hover": Ze.greenHover,
234
+ "on-green": Ze.onGreen,
235
235
  star: bn.light,
236
236
  // --- Yıkıcı eylem: durum tinti DEĞİL, gerçek bir dolgu ---
237
237
  "danger-solid": pt.base,
@@ -272,8 +272,8 @@ const ht = {
272
272
  /** Yapışkan alt bar; gölge YUKARI düşer. */
273
273
  "shadow-up": `0 -2px 4px ${H(S.n900, 0.03)}, 0 -8px 24px ${H(S.n900, 0.08)}`,
274
274
  /** Odak halkası BAĞLANTI YEŞİLİ: odak bir gezinme olayıdır. Çam DEĞİL — birincil dolguyla aynı ton. */
275
- ring: `0 0 0 3px ${H(Je.base, 0.28)}`,
276
- "ring-color": Je.base,
275
+ ring: `0 0 0 3px ${H(Qe.base, 0.28)}`,
276
+ "ring-color": Qe.base,
277
277
  "ring-danger": `0 0 0 3px ${H(pt.base, 0.24)}`,
278
278
  "ring-ok": `0 0 0 4px ${H(U.okFg, 0.16)}`,
279
279
  // --- Örtü ve cam: görsel üzerine binen yüzeyler ---
@@ -351,8 +351,8 @@ const ht = {
351
351
  "on-selected": S.n900,
352
352
  "selected-tint": K.surfaceThree,
353
353
  "selected-line": K.text,
354
- link: Je.dark,
355
- "link-hover": Je.darkHover,
354
+ link: Qe.dark,
355
+ "link-hover": Qe.darkHover,
356
356
  "ok-bg": U.okBgDark,
357
357
  "ok-fg": U.okFgDark,
358
358
  "ok-line": U.okLineDark,
@@ -373,10 +373,10 @@ const ht = {
373
373
  "alt-line": U.altLineDark,
374
374
  "sale-bg": sa.bgDark,
375
375
  "sale-fg": sa.fgDark,
376
- "red-accent": Ve.redDark,
377
- "green-accent": Ve.greenDark,
378
- "green-accent-hover": Ve.greenHoverDark,
379
- "on-green": Ve.onGreen,
376
+ "red-accent": Ze.redDark,
377
+ "green-accent": Ze.greenDark,
378
+ "green-accent-hover": Ze.greenHoverDark,
379
+ "on-green": Ze.onGreen,
380
380
  star: bn.dark,
381
381
  "danger-solid": pt.dark,
382
382
  "danger-solid-hover": pt.darkHover,
@@ -411,8 +411,8 @@ const ht = {
411
411
  "shadow-lg": `0 4px 8px ${H(se, 0.4)}, 0 16px 32px ${H(se, 0.55)}`,
412
412
  "shadow-xl": `0 8px 16px ${H(se, 0.45)}, 0 28px 56px ${H(se, 0.6)}`,
413
413
  "shadow-up": `0 -2px 4px ${H(se, 0.3)}, 0 -8px 24px ${H(se, 0.45)}`,
414
- ring: `0 0 0 3px ${H(Je.dark, 0.36)}`,
415
- "ring-color": Je.dark,
414
+ ring: `0 0 0 3px ${H(Qe.dark, 0.36)}`,
415
+ "ring-color": Qe.dark,
416
416
  "ring-danger": `0 0 0 3px ${H(pt.dark, 0.32)}`,
417
417
  "ring-ok": `0 0 0 4px ${H(U.okFgDark, 0.2)}`,
418
418
  scrim: H(se, 0.68),
@@ -451,13 +451,13 @@ const ht = {
451
451
  "space-0": "0",
452
452
  "space-1": "4px",
453
453
  "space-2": "8px",
454
- "space-3": at(10, 12),
455
- "space-4": at(13, 16),
456
- "space-5": at(17, 24),
457
- "space-6": at(22, 32),
458
- "space-7": at(30, 48),
459
- "space-8": at(40, 64),
460
- "space-9": at(52, 96),
454
+ "space-3": rt(10, 12),
455
+ "space-4": rt(13, 16),
456
+ "space-5": rt(17, 24),
457
+ "space-6": rt(22, 32),
458
+ "space-7": rt(30, 48),
459
+ "space-8": rt(40, 64),
460
+ "space-9": rt(52, 96),
461
461
  /*
462
462
  * TİPOGRAFİ ÖLÇEĞİ — AKIŞKAN. ⚠ Ölçüldü: vitrinde 446 `font-size` bildirimi vardı ve yalnızca
463
463
  * 6'sı viewport'a tepki veriyordu.
@@ -817,9 +817,9 @@ ${n(
817
817
  anchorWidth: 0,
818
818
  isPositioned: !1
819
819
  }), d = A(0), c = j(() => {
820
- const p = e.current, g = t.current;
821
- if (!p || !g) return;
822
- const k = p.getBoundingClientRect(), m = g.getBoundingClientRect(), f = { width: window.innerWidth, height: window.innerHeight }, D = ma(k, m, n, r, o), x = Ya(D, m, n, i, f) ? n : Ya(
820
+ const p = e.current, b = t.current;
821
+ if (!p || !b) return;
822
+ const k = p.getBoundingClientRect(), m = b.getBoundingClientRect(), f = { width: window.innerWidth, height: window.innerHeight }, D = ma(k, m, n, r, o), x = Ya(D, m, n, i, f) ? n : Ya(
823
823
  ma(k, m, pa[n], r, o),
824
824
  m,
825
825
  pa[n],
@@ -842,12 +842,12 @@ ${n(
842
842
  }));
843
843
  }, [c]);
844
844
  return (me() ? nn : R)(() => {
845
- var g, k;
845
+ var b, k;
846
846
  if (!s) {
847
847
  _((m) => m.isPositioned ? { ...m, isPositioned: !1 } : m);
848
848
  return;
849
849
  }
850
- c(), window.addEventListener("resize", h), (g = window.visualViewport) == null || g.addEventListener("resize", h), (k = window.visualViewport) == null || k.addEventListener("scroll", h), document.addEventListener("scroll", h, !0);
850
+ c(), window.addEventListener("resize", h), (b = window.visualViewport) == null || b.addEventListener("resize", h), (k = window.visualViewport) == null || k.addEventListener("scroll", h), document.addEventListener("scroll", h, !0);
851
851
  const p = typeof ResizeObserver > "u" ? null : new ResizeObserver(h);
852
852
  return p && t.current && p.observe(t.current), p && e.current && p.observe(e.current), () => {
853
853
  var m, f;
@@ -862,8 +862,8 @@ ${n(
862
862
  offset: 0
863
863
  }), l = j(() => {
864
864
  const d = o.current, c = !r || !d || d.clientHeight === 0 ? { start: 0, end: e, totalHeight: e * t, offset: 0 } : (() => {
865
- const h = Math.ceil(d.clientHeight / t), u = Math.floor(d.scrollTop / t), p = Math.max(0, u - n), g = Math.min(e, u + h + n);
866
- return { start: p, end: g, totalHeight: e * t, offset: p * t };
865
+ const h = Math.ceil(d.clientHeight / t), u = Math.floor(d.scrollTop / t), p = Math.max(0, u - n), b = Math.min(e, u + h + n);
866
+ return { start: p, end: b, totalHeight: e * t, offset: p * t };
867
867
  })();
868
868
  s(
869
869
  (h) => h.start === c.start && h.end === c.end && h.totalHeight === c.totalHeight && h.offset === c.offset ? h : c
@@ -948,7 +948,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
948
948
  isExternal: h,
949
949
  linkProps: u,
950
950
  testId: p,
951
- ...g
951
+ ...b
952
952
  }, k) => {
953
953
  const m = w(
954
954
  Ie.button,
@@ -966,20 +966,20 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
966
966
  ] }), D = !!d || !!r, x = {
967
967
  "aria-busy": r,
968
968
  "aria-disabled": D || void 0,
969
- tabIndex: D ? -1 : g.tabIndex,
969
+ tabIndex: D ? -1 : b.tabIndex,
970
970
  onClick: ($) => {
971
971
  var L;
972
972
  if (D) {
973
973
  $.preventDefault();
974
974
  return;
975
975
  }
976
- (L = g.onClick) == null || L.call(g, $);
976
+ (L = b.onClick) == null || L.call(b, $);
977
977
  }
978
978
  };
979
979
  return c && h ? /* @__PURE__ */ a(
980
980
  "a",
981
981
  {
982
- ...g,
982
+ ...b,
983
983
  ...x,
984
984
  href: c,
985
985
  className: m,
@@ -991,7 +991,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
991
991
  ) : c ? /* @__PURE__ */ a(
992
992
  de,
993
993
  {
994
- ...g,
994
+ ...b,
995
995
  ...x,
996
996
  href: c,
997
997
  className: m,
@@ -1007,7 +1007,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1007
1007
  disabled: d || r,
1008
1008
  "aria-busy": r,
1009
1009
  "data-testid": p,
1010
- ...g,
1010
+ ...b,
1011
1011
  children: f
1012
1012
  }
1013
1013
  );
@@ -1052,13 +1052,13 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1052
1052
  "aria-label": t,
1053
1053
  "aria-disabled": p || void 0,
1054
1054
  tabIndex: p ? -1 : c.tabIndex,
1055
- onClick: (g) => {
1055
+ onClick: (b) => {
1056
1056
  var k;
1057
1057
  if (p) {
1058
- g.preventDefault();
1058
+ b.preventDefault();
1059
1059
  return;
1060
1060
  }
1061
- (k = c.onClick) == null || k.call(c, g);
1061
+ (k = c.onClick) == null || k.call(c, b);
1062
1062
  },
1063
1063
  "data-testid": d,
1064
1064
  ..._,
@@ -1173,7 +1173,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1173
1173
  openDelay: o = Jr,
1174
1174
  className: i
1175
1175
  }) => {
1176
- const [s, l] = B(!1), _ = V(), d = n ?? r ?? "top", c = A(null), h = A(null), u = A(0), p = A(0), g = Ct(() => {
1176
+ const [s, l] = B(!1), _ = V(), d = n ?? r ?? "top", c = A(null), h = A(null), u = A(0), p = A(0), b = Ct(() => {
1177
1177
  if (!Ta(t)) return !1;
1178
1178
  const C = t.type, y = t.props;
1179
1179
  return y.tabIndex !== void 0 ? !0 : y.disabled === !0 || typeof C != "string" ? !1 : C === "a" ? y.href !== void 0 : ["button", "input", "select", "textarea"].includes(C);
@@ -1186,7 +1186,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1186
1186
  )
1187
1187
  );
1188
1188
  }, [t]);
1189
- const f = g || k, D = Wt(c, h, {
1189
+ const f = b || k, D = Wt(c, h, {
1190
1190
  side: d,
1191
1191
  align: "center",
1192
1192
  isOpen: s
@@ -1218,7 +1218,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1218
1218
  };
1219
1219
  return document.addEventListener("pointerdown", C), () => document.removeEventListener("pointerdown", C);
1220
1220
  }, [s, F]);
1221
- const b = () => {
1221
+ const g = () => {
1222
1222
  p.current && window.clearTimeout(p.current), p.current = 0;
1223
1223
  }, I = (C) => {
1224
1224
  C.pointerType !== "mouse" && (p.current = window.setTimeout(() => l(!0), Xr));
@@ -1232,11 +1232,11 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1232
1232
  tabIndex: f ? void 0 : 0,
1233
1233
  onPointerEnter: (C) => C.pointerType === "mouse" && L(o),
1234
1234
  onPointerLeave: (C) => {
1235
- b(), C.pointerType === "mouse" && F();
1235
+ g(), C.pointerType === "mouse" && F();
1236
1236
  },
1237
1237
  onPointerDown: I,
1238
- onPointerUp: b,
1239
- onPointerCancel: b,
1238
+ onPointerUp: g,
1239
+ onPointerCancel: g,
1240
1240
  onFocus: () => L(0),
1241
1241
  onBlur: () => F(0),
1242
1242
  onContextMenu: (C) => {
@@ -1284,7 +1284,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1284
1284
  className: i,
1285
1285
  testId: s
1286
1286
  }) => {
1287
- const l = V(), _ = A(null), d = A(null), c = A(null), h = A({ text: "", at: 0 }), [u, p] = B(!1), [g, k] = B(0), m = Wt(_, d, { side: r, align: o, isOpen: u }), f = to(t), D = Gt(u, _, d), x = j(
1287
+ const l = V(), _ = A(null), d = A(null), c = A(null), h = A({ text: "", at: 0 }), [u, p] = B(!1), [b, k] = B(0), m = Wt(_, d, { side: r, align: o, isOpen: u }), f = to(t), D = Gt(u, _, d), x = j(
1288
1288
  (y) => {
1289
1289
  f.length !== 0 && (c.current = Lt(), k(y === "first" ? f[0] : f[f.length - 1]), p(!0));
1290
1290
  },
@@ -1301,8 +1301,8 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1301
1301
  []
1302
1302
  ), R(() => {
1303
1303
  var y, E;
1304
- u && ((E = (y = d.current) == null ? void 0 : y.querySelector(`[data-index="${g}"]`)) == null || E.focus({ preventScroll: !0 }));
1305
- }, [u, g]), R(() => {
1304
+ u && ((E = (y = d.current) == null ? void 0 : y.querySelector(`[data-index="${b}"]`)) == null || E.focus({ preventScroll: !0 }));
1305
+ }, [u, b]), R(() => {
1306
1306
  if (!u) return;
1307
1307
  const y = (E) => {
1308
1308
  var G, Q;
@@ -1312,7 +1312,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1312
1312
  return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
1313
1313
  }, [u, $]);
1314
1314
  const L = (y) => {
1315
- const O = (f.indexOf(g) + y + f.length) % f.length;
1315
+ const O = (f.indexOf(b) + y + f.length) % f.length;
1316
1316
  k(f[O]);
1317
1317
  }, F = (y) => {
1318
1318
  const E = Date.now(), O = E - h.current.at > 500 ? y : h.current.text + y;
@@ -1344,7 +1344,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1344
1344
  default:
1345
1345
  y.key.length === 1 && !y.metaKey && !y.ctrlKey && F(y.key);
1346
1346
  }
1347
- }, b = (y) => {
1347
+ }, g = (y) => {
1348
1348
  if (y.key === "ArrowUp") {
1349
1349
  y.preventDefault(), x("last");
1350
1350
  return;
@@ -1363,7 +1363,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1363
1363
  },
1364
1364
  onKeyDown: (y) => {
1365
1365
  var E;
1366
- (E = I.onKeyDown) == null || E.call(I, y), u || b(y);
1366
+ (E = I.onKeyDown) == null || E.call(I, y), u || g(y);
1367
1367
  }
1368
1368
  });
1369
1369
  return /* @__PURE__ */ v(we, { children: [
@@ -1391,7 +1391,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1391
1391
  type: "button",
1392
1392
  role: "menuitem",
1393
1393
  "data-index": E,
1394
- tabIndex: E === g ? 0 : -1,
1394
+ tabIndex: E === b ? 0 : -1,
1395
1395
  disabled: y.isDisabled,
1396
1396
  className: w(At.menu__item, y.isDanger && At["menu__item--danger"]),
1397
1397
  onClick: () => {
@@ -1426,9 +1426,9 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1426
1426
  className: l,
1427
1427
  testId: _
1428
1428
  }) => {
1429
- const d = V(), c = A(null), h = A(null), u = A(null), [p, g] = B(!1), k = i !== void 0, m = k ? i : p, f = Wt(c, h, { side: r, align: o, isOpen: m }), D = Gt(m, c, h), x = j(
1429
+ const d = V(), c = A(null), h = A(null), u = A(null), [p, b] = B(!1), k = i !== void 0, m = k ? i : p, f = Wt(c, h, { side: r, align: o, isOpen: m }), D = Gt(m, c, h), x = j(
1430
1430
  (N) => {
1431
- k || g(N), s == null || s(N);
1431
+ k || b(N), s == null || s(N);
1432
1432
  },
1433
1433
  [k, s]
1434
1434
  );
@@ -1437,16 +1437,16 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1437
1437
  u.current = Lt();
1438
1438
  const N = h.current;
1439
1439
  return N && ua(N), () => {
1440
- var b;
1441
- (b = u.current) == null || b.call(u), u.current = null;
1440
+ var g;
1441
+ (g = u.current) == null || g.call(u), u.current = null;
1442
1442
  };
1443
1443
  }, [m]);
1444
1444
  const $ = j(() => x(!1), [x]);
1445
1445
  if (Aa(m, $), R(() => {
1446
1446
  if (!m) return;
1447
- const N = (b) => {
1447
+ const N = (g) => {
1448
1448
  var C, y;
1449
- const I = b.target;
1449
+ const I = g.target;
1450
1450
  (C = h.current) != null && C.contains(I) || (y = c.current) != null && y.contains(I) || x(!1);
1451
1451
  };
1452
1452
  return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
@@ -1457,8 +1457,8 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1457
1457
  "aria-haspopup": "dialog",
1458
1458
  "aria-controls": m ? d : void 0,
1459
1459
  onClick: (N) => {
1460
- var b;
1461
- (b = L.onClick) == null || b.call(L, N), x(!m);
1460
+ var g;
1461
+ (g = L.onClick) == null || g.call(L, N), x(!m);
1462
1462
  }
1463
1463
  });
1464
1464
  return /* @__PURE__ */ v(we, { children: [
@@ -1481,8 +1481,8 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1481
1481
  "data-testid": _,
1482
1482
  onBlur: (N) => {
1483
1483
  var I;
1484
- const b = N.relatedTarget;
1485
- b && (N.currentTarget.contains(b) || (I = c.current) != null && I.contains(b) || b.closest('[role="listbox"],[role="menu"],[role="dialog"]') || x(!1));
1484
+ const g = N.relatedTarget;
1485
+ g && (N.currentTarget.contains(g) || (I = c.current) != null && I.contains(g) || g.closest('[role="listbox"],[role="menu"],[role="dialog"]') || x(!1));
1486
1486
  },
1487
1487
  children: t
1488
1488
  }
@@ -1515,7 +1515,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1515
1515
  role: h,
1516
1516
  testId: u,
1517
1517
  ...p
1518
- }, g) => {
1518
+ }, b) => {
1519
1519
  const k = w(
1520
1520
  qe.chip,
1521
1521
  qe[`chip--${i}`],
@@ -1542,7 +1542,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1542
1542
  ) : /* @__PURE__ */ a(
1543
1543
  "button",
1544
1544
  {
1545
- ref: g,
1545
+ ref: b,
1546
1546
  type: c,
1547
1547
  role: h,
1548
1548
  className: k,
@@ -1568,7 +1568,7 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1568
1568
  var h;
1569
1569
  const s = A(null), l = (u) => i.isMultiple ? i.value.includes(u) : i.value === u, _ = (u) => {
1570
1570
  if (i.isMultiple) {
1571
- const p = i.value.includes(u) ? i.value.filter((g) => g !== u) : [...i.value, u];
1571
+ const p = i.value.includes(u) ? i.value.filter((b) => b !== u) : [...i.value, u];
1572
1572
  i.onChange(p);
1573
1573
  return;
1574
1574
  }
@@ -1579,9 +1579,9 @@ const Nr = 640, Kh = 768, kr = 1024, Uh = `(min-width: ${kr + 1}px)`, Ra = `(min
1579
1579
  const p = u.key === "ArrowRight" || u.key === "ArrowDown" ? 1 : u.key === "ArrowLeft" || u.key === "ArrowUp" ? -1 : 0;
1580
1580
  if (p === 0) return;
1581
1581
  u.preventDefault();
1582
- const g = e.filter((x) => !x.isDisabled);
1583
- if (g.length === 0) return;
1584
- const k = g.findIndex((x) => x.value === i.value), m = g[(k + p + g.length) % g.length];
1582
+ const b = e.filter((x) => !x.isDisabled);
1583
+ if (b.length === 0) return;
1584
+ const k = b.findIndex((x) => x.value === i.value), m = b[(k + p + b.length) % b.length];
1585
1585
  i.onChange(m.value), (D = (f = s.current) == null ? void 0 : f.querySelector(`[data-chip-value="${m.value}"]`)) == null || D.focus();
1586
1586
  }, c = i.isMultiple ? null : i.value ?? ((h = e.find((u) => !u.isDisabled)) == null ? void 0 : h.value) ?? null;
1587
1587
  return /* @__PURE__ */ a(
@@ -1670,7 +1670,7 @@ const fo = 240, In = () => {
1670
1670
  ea -= 1, !(ea > 0) && (t.removeEventListener("resize", yt), t.removeEventListener("scroll", yt), window.removeEventListener("orientationchange", yt), Ja(), document.documentElement.style.removeProperty($n), document.documentElement.style.removeProperty(kn));
1671
1671
  };
1672
1672
  }, [e]);
1673
- }, vo = "hanui-sheet-GEvdE", yo = "hanui-sheet__header-NJgw-", wo = "hanui-sheet__title-f-b07", xo = "hanui-sheet__toolbar-eyhmW", No = "hanui-sheet__body-eJ2KB", ko = "hanui-sheet__footer-NpsY5", nt = {
1673
+ }, vo = "hanui-sheet-GEvdE", yo = "hanui-sheet__header-NJgw-", wo = "hanui-sheet__title-f-b07", xo = "hanui-sheet__toolbar-eyhmW", No = "hanui-sheet__body-eJ2KB", ko = "hanui-sheet__footer-NpsY5", ot = {
1674
1674
  sheet: vo,
1675
1675
  sheet__header: yo,
1676
1676
  sheet__title: wo,
@@ -1690,21 +1690,21 @@ const fo = 240, In = () => {
1690
1690
  }) => {
1691
1691
  const { labels: d } = Y(), c = V(), h = A(null);
1692
1692
  Tn(), _a(), R(() => {
1693
- const g = Lt(), { token: k, pop: m } = Yt();
1693
+ const b = Lt(), { token: k, pop: m } = Yt();
1694
1694
  return h.current = k, () => {
1695
- m(), h.current = null, g();
1695
+ m(), h.current = null, b();
1696
1696
  };
1697
1697
  }, []), R(() => {
1698
- const g = window.matchMedia(s), k = (m) => {
1698
+ const b = window.matchMedia(s), k = (m) => {
1699
1699
  m.matches && n();
1700
1700
  };
1701
- return g.addEventListener("change", k), () => g.removeEventListener("change", k);
1701
+ return b.addEventListener("change", k), () => b.removeEventListener("change", k);
1702
1702
  }, [s, n]);
1703
- const u = j((g) => {
1704
- !g || g.open || (g.showModal(), ua(g, `.${nt.sheet__header} button`), Ca(g));
1703
+ const u = j((b) => {
1704
+ !b || b.open || (b.showModal(), ua(b, `.${ot.sheet__header} button`), Ca(b));
1705
1705
  }, []), p = j(
1706
- (g) => {
1707
- g.target === g.currentTarget && n();
1706
+ (b) => {
1707
+ b.target === b.currentTarget && n();
1708
1708
  },
1709
1709
  [n]
1710
1710
  );
@@ -1713,20 +1713,20 @@ const fo = 240, In = () => {
1713
1713
  "dialog",
1714
1714
  {
1715
1715
  ref: u,
1716
- className: w(nt.sheet, l),
1716
+ className: w(ot.sheet, l),
1717
1717
  "aria-labelledby": c,
1718
1718
  "data-testid": _,
1719
- onCancel: (g) => {
1720
- g.preventDefault(), !(h.current && !qt(h.current)) && n();
1719
+ onCancel: (b) => {
1720
+ b.preventDefault(), !(h.current && !qt(h.current)) && n();
1721
1721
  },
1722
1722
  onClick: p,
1723
1723
  children: [
1724
- /* @__PURE__ */ v("header", { className: nt.sheet__header, children: [
1725
- /* @__PURE__ */ a("h2", { id: c, className: nt.sheet__title, children: e }),
1724
+ /* @__PURE__ */ v("header", { className: ot.sheet__header, children: [
1725
+ /* @__PURE__ */ a("h2", { id: c, className: ot.sheet__title, children: e }),
1726
1726
  /* @__PURE__ */ a(
1727
1727
  Ke,
1728
1728
  {
1729
- icon: /* @__PURE__ */ a(Ze, { "aria-hidden": !0 }),
1729
+ icon: /* @__PURE__ */ a(tt, { "aria-hidden": !0 }),
1730
1730
  label: z("BottomSheet.closeLabel", t, d == null ? void 0 : d.close),
1731
1731
  variant: "ghost",
1732
1732
  size: "sm",
@@ -1734,9 +1734,9 @@ const fo = 240, In = () => {
1734
1734
  }
1735
1735
  )
1736
1736
  ] }),
1737
- o && /* @__PURE__ */ a("div", { className: nt.sheet__toolbar, children: o }),
1738
- /* @__PURE__ */ a("div", { className: nt.sheet__body, children: r }),
1739
- i && /* @__PURE__ */ a("div", { className: nt.sheet__footer, children: i })
1737
+ o && /* @__PURE__ */ a("div", { className: ot.sheet__toolbar, children: o }),
1738
+ /* @__PURE__ */ a("div", { className: ot.sheet__body, children: r }),
1739
+ i && /* @__PURE__ */ a("div", { className: ot.sheet__footer, children: i })
1740
1740
  ]
1741
1741
  }
1742
1742
  ),
@@ -1785,7 +1785,7 @@ const fo = 240, In = () => {
1785
1785
  required: h,
1786
1786
  className: u,
1787
1787
  testId: p,
1788
- "aria-describedby": g,
1788
+ "aria-describedby": b,
1789
1789
  "aria-invalid": k
1790
1790
  }) => {
1791
1791
  const { labels: m } = Y(), f = {
@@ -1817,7 +1817,7 @@ const fo = 240, In = () => {
1817
1817
  var P;
1818
1818
  return z("Combobox.clearLabel", r.clearLabel, (P = m == null ? void 0 : m.combobox) == null ? void 0 : P.clearLabel);
1819
1819
  }
1820
- }, D = V(), x = c ?? D, $ = `${x}-listbox`, L = A(null), F = A(null), N = A(null), b = A(null), [I, C] = B(null), y = I !== null, [E, O] = B(""), [G, Q] = B(null), X = Ct(() => {
1820
+ }, D = V(), x = c ?? D, $ = `${x}-listbox`, L = A(null), F = A(null), N = A(null), g = A(null), [I, C] = B(null), y = I !== null, [E, O] = B(""), [G, Q] = B(null), X = Ct(() => {
1821
1821
  if (i || E.trim() === "") return e;
1822
1822
  const P = E.trim();
1823
1823
  return e.filter(
@@ -1844,7 +1844,7 @@ const fo = 240, In = () => {
1844
1844
  return document.addEventListener("mousedown", P), () => document.removeEventListener("mousedown", P);
1845
1845
  }, [I, Le]), R(() => {
1846
1846
  var P;
1847
- I === "popover" && ((P = b.current) == null || P.focus({ preventScroll: !0 }));
1847
+ I === "popover" && ((P = g.current) == null || P.focus({ preventScroll: !0 }));
1848
1848
  }, [I]);
1849
1849
  const Xt = (P) => {
1850
1850
  P.isDisabled || (Q(P.label), n(P.value), Le());
@@ -1857,7 +1857,7 @@ const fo = 240, In = () => {
1857
1857
  side: "bottom",
1858
1858
  align: "start",
1859
1859
  isOpen: y && I === "popover"
1860
- }), et = Gt(I === "popover", F, N), { activeIndex: ze, setActiveIndex: q, listRef: oe, handleKeyDown: xe } = xn({
1860
+ }), at = Gt(I === "popover", F, N), { activeIndex: ze, setActiveIndex: q, listRef: oe, handleKeyDown: xe } = xn({
1861
1861
  count: X.length,
1862
1862
  isOpen: y,
1863
1863
  initialIndex: Math.max(
@@ -1870,7 +1870,7 @@ const fo = 240, In = () => {
1870
1870
  },
1871
1871
  /* Odagi geri vermek kapanisi izleyen etkinin isi (bkz. `wasOpenRef`). */
1872
1872
  onClose: Le
1873
- }), je = X.some((P) => !!P.description), Ne = I === "popover" && !je && X.length > Io, { scrollRef: Rn, range: tt, scrollToIndex: Ba } = xr(X.length, {
1873
+ }), je = X.some((P) => !!P.description), Ne = I === "popover" && !je && X.length > Io, { scrollRef: Rn, range: nt, scrollToIndex: Ba } = xr(X.length, {
1874
1874
  rowHeight: Va,
1875
1875
  isEnabled: Ne
1876
1876
  });
@@ -1894,7 +1894,7 @@ const fo = 240, In = () => {
1894
1894
  /* @__PURE__ */ a(
1895
1895
  "input",
1896
1896
  {
1897
- ref: b,
1897
+ ref: g,
1898
1898
  type: "text",
1899
1899
  role: "combobox",
1900
1900
  className: W.combobox__searchInput,
@@ -1914,7 +1914,7 @@ const fo = 240, In = () => {
1914
1914
  ),
1915
1915
  s && /* @__PURE__ */ a(Nn, { size: "sm", label: "" })
1916
1916
  ] }), Oa = (P) => {
1917
- const ke = X.slice(tt.start, tt.end);
1917
+ const ke = X.slice(nt.start, nt.end);
1918
1918
  return /* @__PURE__ */ v(
1919
1919
  "ul",
1920
1920
  {
@@ -1923,9 +1923,9 @@ const fo = 240, In = () => {
1923
1923
  role: "listbox",
1924
1924
  className: w(W.combobox__list, P && W["combobox__list--sheet"]),
1925
1925
  children: [
1926
- Ne && tt.offset > 0 && /* @__PURE__ */ a("li", { "aria-hidden": !0, style: { height: tt.offset } }),
1926
+ Ne && nt.offset > 0 && /* @__PURE__ */ a("li", { "aria-hidden": !0, style: { height: nt.offset } }),
1927
1927
  ke.map((ge, Jt) => {
1928
- const Ye = tt.start + Jt, On = Ye === ze, ha = ge.value === t;
1928
+ const Ye = nt.start + Jt, On = Ye === ze, ha = ge.value === t;
1929
1929
  return (
1930
1930
  /* ⚠ `role="option"` ` `NIN KENDISINDE. */
1931
1931
  /* @__PURE__ */ v(
@@ -1958,7 +1958,7 @@ const fo = 240, In = () => {
1958
1958
  )
1959
1959
  );
1960
1960
  }),
1961
- Ne && tt.end < X.length && /* @__PURE__ */ a("li", { "aria-hidden": !0, style: { height: (X.length - tt.end) * Va } }),
1961
+ Ne && nt.end < X.length && /* @__PURE__ */ a("li", { "aria-hidden": !0, style: { height: (X.length - nt.end) * Va } }),
1962
1962
  X.length === 0 && /* @__PURE__ */ a("li", { className: W.combobox__empty, children: s ? f.loading : f.empty })
1963
1963
  ]
1964
1964
  }
@@ -1983,7 +1983,7 @@ const fo = 240, In = () => {
1983
1983
  "aria-expanded": y,
1984
1984
  "aria-controls": y ? $ : void 0,
1985
1985
  "aria-labelledby": be ? `${x}-name ${x}-value` : `${x}-name`,
1986
- "aria-describedby": g,
1986
+ "aria-describedby": b,
1987
1987
  "aria-required": h || void 0,
1988
1988
  onClick: () => y ? Le() : Ue(),
1989
1989
  onKeyDown: Bn,
@@ -2008,19 +2008,19 @@ const fo = 240, In = () => {
2008
2008
  className: W.combobox__clear,
2009
2009
  "aria-label": f.clear,
2010
2010
  onClick: Fn,
2011
- children: /* @__PURE__ */ a(Ze, { "aria-hidden": !0 })
2011
+ children: /* @__PURE__ */ a(tt, { "aria-hidden": !0 })
2012
2012
  }
2013
2013
  ),
2014
- I === "popover" && et.container && ft(
2014
+ I === "popover" && at.container && ft(
2015
2015
  /* @__PURE__ */ v(
2016
2016
  "div",
2017
2017
  {
2018
2018
  ref: N,
2019
2019
  className: W.combobox__panel,
2020
- ...et.attributes,
2020
+ ...at.attributes,
2021
2021
  style: {
2022
2022
  ...St.style,
2023
- ...et.style,
2023
+ ...at.style,
2024
2024
  /*
2025
2025
  * Panel tetikleyiciyle AYNI genislikte: sabit konum + portal onu kapsayicidan
2026
2026
  * kopardigi icin genislik artik miras alinmiyor.
@@ -2035,7 +2035,7 @@ const fo = 240, In = () => {
2035
2035
  ]
2036
2036
  }
2037
2037
  ),
2038
- et.container
2038
+ at.container
2039
2039
  ),
2040
2040
  I === "sheet" && /* @__PURE__ */ a(
2041
2041
  Dn,
@@ -2073,8 +2073,8 @@ const fo = 240, In = () => {
2073
2073
  c.preventDefault();
2074
2074
  const u = e.filter((f) => !f.isDisabled);
2075
2075
  if (u.length === 0) return;
2076
- const p = u.findIndex((f) => f.value === t), g = u[(p + h + u.length) % u.length];
2077
- n(g.value), (m = (k = _.current) == null ? void 0 : k.querySelector(`[data-value="${g.value}"]`)) == null || m.focus({ preventScroll: !0 });
2076
+ const p = u.findIndex((f) => f.value === t), b = u[(p + h + u.length) % u.length];
2077
+ n(b.value), (m = (k = _.current) == null ? void 0 : k.querySelector(`[data-value="${b.value}"]`)) == null || m.focus({ preventScroll: !0 });
2078
2078
  };
2079
2079
  return /* @__PURE__ */ a(
2080
2080
  "div",
@@ -2150,14 +2150,14 @@ const fo = 240, In = () => {
2150
2150
  className: h,
2151
2151
  testId: u,
2152
2152
  required: p,
2153
- "aria-describedby": g,
2153
+ "aria-describedby": b,
2154
2154
  "aria-invalid": k
2155
2155
  }) => {
2156
- const { labels: m } = Y(), f = z("Select.placeholder", o, m == null ? void 0 : m.selectPlaceholder), D = V(), x = c ?? D, $ = `${x}-listbox`, L = (q) => `${x}-option-${q}`, F = A(null), N = A(null), b = A(null), [I, C] = B(null), y = Wt(N, b, {
2156
+ const { labels: m } = Y(), f = z("Select.placeholder", o, m == null ? void 0 : m.selectPlaceholder), D = V(), x = c ?? D, $ = `${x}-listbox`, L = (q) => `${x}-option-${q}`, F = A(null), N = A(null), g = A(null), [I, C] = B(null), y = Wt(N, g, {
2157
2157
  side: "bottom",
2158
2158
  align: _,
2159
2159
  isOpen: I === "popover"
2160
- }), E = Gt(I === "popover", N, b), O = I !== null, G = e.findIndex((q) => q.value === t), Q = G >= 0 ? e[G] : null, X = j(() => C(null), []), ee = j(() => {
2160
+ }), E = Gt(I === "popover", N, g), O = I !== null, G = e.findIndex((q) => q.value === t), Q = G >= 0 ? e[G] : null, X = j(() => C(null), []), ee = j(() => {
2161
2161
  d || e.length === 0 || C(window.matchMedia(Ra).matches ? "popover" : "sheet");
2162
2162
  }, [d, e.length]), be = (q) => {
2163
2163
  q.isDisabled || (n(q.value), X());
@@ -2170,7 +2170,7 @@ const fo = 240, In = () => {
2170
2170
  const q = (oe) => {
2171
2171
  var je, Ne;
2172
2172
  const xe = oe.target;
2173
- (je = F.current) != null && je.contains(xe) || (Ne = b.current) != null && Ne.contains(xe) || X();
2173
+ (je = F.current) != null && je.contains(xe) || (Ne = g.current) != null && Ne.contains(xe) || X();
2174
2174
  };
2175
2175
  return document.addEventListener("mousedown", q), () => document.removeEventListener("mousedown", q);
2176
2176
  }, [I, X]);
@@ -2188,7 +2188,7 @@ const fo = 240, In = () => {
2188
2188
  var q;
2189
2189
  I === "sheet" && ((q = vt.current) == null || q.focus({ preventScroll: !0 }));
2190
2190
  }, [I, vt]);
2191
- const et = (q) => {
2191
+ const at = (q) => {
2192
2192
  if (!O) {
2193
2193
  ["ArrowDown", "ArrowUp", "Enter", " "].includes(q.key) && (q.preventDefault(), ee());
2194
2194
  return;
@@ -2204,7 +2204,7 @@ const fo = 240, In = () => {
2204
2204
  "aria-activedescendant": q && e[Ue] ? L(Ue) : void 0,
2205
2205
  tabIndex: q ? 0 : -1,
2206
2206
  className: w(J.list, q && J["list--sheet"]),
2207
- onKeyDown: q ? et : void 0,
2207
+ onKeyDown: q ? at : void 0,
2208
2208
  children: e.map((oe, xe) => {
2209
2209
  const je = oe.value === t;
2210
2210
  return /* @__PURE__ */ v(
@@ -2254,11 +2254,11 @@ const fo = 240, In = () => {
2254
2254
  "aria-controls": O ? $ : void 0,
2255
2255
  "aria-activedescendant": I === "popover" && e[Ue] ? L(Ue) : void 0,
2256
2256
  "aria-labelledby": Q ? `${x}-name ${x}-value` : `${x}-name`,
2257
- "aria-describedby": g,
2257
+ "aria-describedby": b,
2258
2258
  "aria-invalid": k,
2259
2259
  "aria-required": p || void 0,
2260
2260
  onClick: () => O ? X() : ee(),
2261
- onKeyDown: et,
2261
+ onKeyDown: at,
2262
2262
  children: [
2263
2263
  s && /* @__PURE__ */ a("span", { className: J.trigger__icon, "aria-hidden": !0, children: s }),
2264
2264
  /* @__PURE__ */ a("span", { id: `${x}-name`, className: J.trigger__srName, children: r }),
@@ -2277,7 +2277,7 @@ const fo = 240, In = () => {
2277
2277
  /* @__PURE__ */ a(
2278
2278
  "div",
2279
2279
  {
2280
- ref: b,
2280
+ ref: g,
2281
2281
  className: J.panel,
2282
2282
  ...E.attributes,
2283
2283
  style: {
@@ -2463,13 +2463,13 @@ const fo = 240, In = () => {
2463
2463
  testId: u
2464
2464
  }) => {
2465
2465
  var I, C;
2466
- const { labels: p } = Y(), g = z("RangeSlider.minLabel", _, (I = p == null ? void 0 : p.range) == null ? void 0 : I.min), k = z("RangeSlider.maxLabel", d, (C = p == null ? void 0 : p.range) == null ? void 0 : C.max), [m, f] = r, D = j(
2466
+ const { labels: p } = Y(), b = z("RangeSlider.minLabel", _, (I = p == null ? void 0 : p.range) == null ? void 0 : I.min), k = z("RangeSlider.maxLabel", d, (C = p == null ? void 0 : p.range) == null ? void 0 : C.max), [m, f] = r, D = j(
2467
2467
  (y) => o([Math.min(y, f), f]),
2468
2468
  [f, o]
2469
2469
  ), x = j(
2470
2470
  (y) => o([m, Math.max(y, m)]),
2471
2471
  [m, o]
2472
- ), $ = j(() => i == null ? void 0 : i([m, f]), [m, f, i]), L = t - e, F = L === 0 ? 0 : Pa(m - e, L), N = L === 0 ? 0 : Pa(f - e, L), b = F > 50;
2472
+ ), $ = j(() => i == null ? void 0 : i([m, f]), [m, f, i]), L = t - e, F = L === 0 ? 0 : Pa(m - e, L), N = L === 0 ? 0 : Pa(f - e, L), g = F > 50;
2473
2473
  return /* @__PURE__ */ v(
2474
2474
  "div",
2475
2475
  {
@@ -2497,13 +2497,13 @@ const fo = 240, In = () => {
2497
2497
  {
2498
2498
  type: "range",
2499
2499
  className: fe.range__input,
2500
- style: { zIndex: b ? 4 : 3 },
2500
+ style: { zIndex: g ? 4 : 3 },
2501
2501
  min: e,
2502
2502
  max: t,
2503
2503
  step: n,
2504
2504
  value: m,
2505
2505
  disabled: c,
2506
- "aria-label": `${l} — ${g}`,
2506
+ "aria-label": `${l} — ${b}`,
2507
2507
  "aria-valuetext": s(m),
2508
2508
  onChange: (y) => D(Number(y.target.value)),
2509
2509
  onPointerUp: $,
@@ -2515,7 +2515,7 @@ const fo = 240, In = () => {
2515
2515
  {
2516
2516
  type: "range",
2517
2517
  className: fe.range__input,
2518
- style: { zIndex: b ? 3 : 4 },
2518
+ style: { zIndex: g ? 3 : 4 },
2519
2519
  min: e,
2520
2520
  max: t,
2521
2521
  step: n,
@@ -2556,8 +2556,8 @@ const fo = 240, In = () => {
2556
2556
  className: s,
2557
2557
  testId: l
2558
2558
  }) => {
2559
- var g;
2560
- const { labels: _ } = Y(), d = r ?? ((g = _ == null ? void 0 : _.rating) == null ? void 0 : g.scale), c = V(), [h, u] = B(null), p = h ?? e;
2559
+ var b;
2560
+ const { labels: _ } = Y(), d = r ?? ((b = _ == null ? void 0 : _.rating) == null ? void 0 : b.scale), c = V(), [h, u] = B(null), p = h ?? e;
2561
2561
  return /* @__PURE__ */ v(
2562
2562
  "fieldset",
2563
2563
  {
@@ -2628,8 +2628,8 @@ const fo = 240, In = () => {
2628
2628
  testId: c
2629
2629
  }) => {
2630
2630
  var f, D, x;
2631
- const { labels: h } = Y(), u = z("QuantityStepper.label", n, (f = h == null ? void 0 : h.quantity) == null ? void 0 : f.label), [p, g] = B(null), k = ($) => Math.min(Math.max($, i), s), m = ($) => {
2632
- g(null);
2631
+ const { labels: h } = Y(), u = z("QuantityStepper.label", n, (f = h == null ? void 0 : h.quantity) == null ? void 0 : f.label), [p, b] = B(null), k = ($) => Math.min(Math.max($, i), s), m = ($) => {
2632
+ b(null);
2633
2633
  const L = $.replace(/\D/g, "");
2634
2634
  L !== "" && t(k(Number(L)));
2635
2635
  };
@@ -2661,21 +2661,21 @@ const fo = 240, In = () => {
2661
2661
  {
2662
2662
  className: Bt.stepper__input,
2663
2663
  value: p ?? String(e),
2664
- onChange: ($) => g($.target.value.replace(/\D/g, "").slice(0, 2)),
2664
+ onChange: ($) => b($.target.value.replace(/\D/g, "").slice(0, 2)),
2665
2665
  onBlur: ($) => m($.target.value),
2666
2666
  onKeyDown: ($) => {
2667
2667
  const L = $.key === "ArrowUp" ? 1 : $.key === "ArrowDown" ? -1 : 0;
2668
2668
  if (L !== 0) {
2669
- $.preventDefault(), g(null), t(k(e + L));
2669
+ $.preventDefault(), b(null), t(k(e + L));
2670
2670
  return;
2671
2671
  }
2672
2672
  const F = $.key === "PageUp" ? 10 : $.key === "PageDown" ? -10 : 0;
2673
2673
  if (F !== 0) {
2674
- $.preventDefault(), g(null), t(k(e + F));
2674
+ $.preventDefault(), b(null), t(k(e + F));
2675
2675
  return;
2676
2676
  }
2677
2677
  if ($.key === "Home" || $.key === "End") {
2678
- $.preventDefault(), g(null), t($.key === "Home" ? i : s);
2678
+ $.preventDefault(), b(null), t($.key === "Home" ? i : s);
2679
2679
  return;
2680
2680
  }
2681
2681
  $.key === "Enter" && ($.preventDefault(), m($.target.value));
@@ -2729,36 +2729,38 @@ const fo = 240, In = () => {
2729
2729
  }
2730
2730
  ), rp = /* @__PURE__ */ T(
2731
2731
  /* @__PURE__ */ M(ri, "TableCheckbox")
2732
- ), oi = "hanui-wrapper-IAI4E", si = "hanui-wrapper__prefix-XKDlV", ii = "hanui-wrapper__suffix-lT35q", ci = "hanui-input-pIS2u", rt = {
2732
+ ), oi = "hanui-wrapper-IAI4E", si = "hanui-wrapper__prefix-XKDlV", ii = "hanui-wrapper__suffix-lT35q", ci = "hanui-input-pIS2u", Ge = {
2733
2733
  wrapper: oi,
2734
2734
  wrapper__prefix: si,
2735
2735
  wrapper__suffix: ii,
2736
2736
  input: ci,
2737
+ "input--sm": "hanui-input--sm-v1rrv",
2737
2738
  "input--hasPrefix": "hanui-input--hasPrefix-nsrWh",
2738
2739
  "input--hasSuffix": "hanui-input--hasSuffix-OrE5A",
2739
2740
  "input--technical": "hanui-input--technical---DCD"
2740
2741
  }, li = /* @__PURE__ */ Ce(
2741
- ({ prefix: e, suffix: t, isTechnical: n, className: r, testId: o, ...i }, s) => /* @__PURE__ */ v("span", { className: w(rt.wrapper, r), children: [
2742
- e && /* @__PURE__ */ a("span", { className: rt.wrapper__prefix, "aria-hidden": !0, children: e }),
2742
+ ({ prefix: e, suffix: t, isTechnical: n, size: r = "md", className: o, testId: i, ...s }, l) => /* @__PURE__ */ v("span", { className: w(Ge.wrapper, o), children: [
2743
+ e && /* @__PURE__ */ a("span", { className: Ge.wrapper__prefix, "aria-hidden": !0, children: e }),
2743
2744
  /* @__PURE__ */ a(
2744
2745
  "input",
2745
2746
  {
2746
- ref: s,
2747
+ ref: l,
2747
2748
  className: w(
2748
- rt.input,
2749
+ Ge.input,
2750
+ r === "sm" && Ge["input--sm"],
2749
2751
  /*
2750
2752
  * `Boolean(...)`: `prefix` bir `ReactNode` ve `0` da gecerli bir deger — `prefix &&`
2751
2753
  * ifadesi o durumda dize degil sayi donuyordu.
2752
2754
  */
2753
- !!e && rt["input--hasPrefix"],
2754
- !!t && rt["input--hasSuffix"],
2755
- n && rt["input--technical"]
2755
+ !!e && Ge["input--hasPrefix"],
2756
+ !!t && Ge["input--hasSuffix"],
2757
+ n && Ge["input--technical"]
2756
2758
  ),
2757
- "data-testid": o,
2758
- ...i
2759
+ "data-testid": i,
2760
+ ...s
2759
2761
  }
2760
2762
  ),
2761
- t && /* @__PURE__ */ a("span", { className: rt.wrapper__suffix, "aria-hidden": !0, children: t })
2763
+ t && /* @__PURE__ */ a("span", { className: Ge.wrapper__suffix, "aria-hidden": !0, children: t })
2762
2764
  ] })
2763
2765
  ), En = /* @__PURE__ */ T(/* @__PURE__ */ M(li, "Input")), di = "hanui-password-viMea", ui = "hanui-password__field-WI1h1", _i = "hanui-password__toggle-O6R2a", ga = {
2764
2766
  password: di,
@@ -2789,7 +2791,7 @@ const fo = 240, In = () => {
2789
2791
  ] });
2790
2792
  }, op = /* @__PURE__ */ T(
2791
2793
  /* @__PURE__ */ M(hi, "PasswordInput")
2792
- ), pi = "hanui-tagInput-QraZR", mi = "hanui-tagInput__field-HeWrC", bi = "hanui-tagInput__tag-D-ZWB", gi = "hanui-tagInput__remove-bpjGG", ot = {
2794
+ ), pi = "hanui-tagInput-QraZR", mi = "hanui-tagInput__field-HeWrC", bi = "hanui-tagInput__tag-D-ZWB", gi = "hanui-tagInput__remove-bpjGG", st = {
2793
2795
  tagInput: pi,
2794
2796
  tagInput__field: mi,
2795
2797
  "tagInput--invalid": "hanui-tagInput--invalid-NQogL",
@@ -2813,14 +2815,14 @@ const fo = 240, In = () => {
2813
2815
  "aria-describedby": u,
2814
2816
  "aria-invalid": p
2815
2817
  }) => {
2816
- const g = V(), k = _ ?? g, m = A(null), f = A(0);
2818
+ const b = V(), k = _ ?? b, m = A(null), f = A(0);
2817
2819
  R(
2818
2820
  () => () => {
2819
2821
  f.current && window.clearTimeout(f.current);
2820
2822
  },
2821
2823
  []
2822
2824
  );
2823
- const { labels: D } = Y(), x = La(), [$, L] = B(""), [F, N] = B(null), b = s !== void 0 && e.length >= s, I = (E) => {
2825
+ const { labels: D } = Y(), x = La(), [$, L] = B(""), [F, N] = B(null), g = s !== void 0 && e.length >= s, I = (E) => {
2824
2826
  var G;
2825
2827
  const O = E.trim();
2826
2828
  if (O !== "") {
@@ -2828,7 +2830,7 @@ const fo = 240, In = () => {
2828
2830
  N(O), f.current && window.clearTimeout(f.current), f.current = window.setTimeout(() => N(null), 1e3), x(`${O} zaten ekli`, "assertive"), L("");
2829
2831
  return;
2830
2832
  }
2831
- b || (t([...e, O]), L(""), x(ye("TagInput.added", (G = D == null ? void 0 : D.tagInput) == null ? void 0 : G.added, O)));
2833
+ g || (t([...e, O]), L(""), x(ye("TagInput.added", (G = D == null ? void 0 : D.tagInput) == null ? void 0 : G.added, O)));
2832
2834
  }
2833
2835
  }, C = (E) => {
2834
2836
  var O;
@@ -2847,9 +2849,9 @@ const fo = 240, In = () => {
2847
2849
  "div",
2848
2850
  {
2849
2851
  className: w(
2850
- ot.tagInput,
2851
- l && ot["tagInput--disabled"],
2852
- p && ot["tagInput--invalid"],
2852
+ st.tagInput,
2853
+ l && st["tagInput--disabled"],
2854
+ p && st["tagInput--invalid"],
2853
2855
  c
2854
2856
  ),
2855
2857
  "data-testid": h,
@@ -2862,8 +2864,8 @@ const fo = 240, In = () => {
2862
2864
  "span",
2863
2865
  {
2864
2866
  className: w(
2865
- ot.tagInput__tag,
2866
- F === E && ot["tagInput__tag--duplicate"]
2867
+ st.tagInput__tag,
2868
+ F === E && st["tagInput__tag--duplicate"]
2867
2869
  ),
2868
2870
  children: [
2869
2871
  E,
@@ -2871,13 +2873,13 @@ const fo = 240, In = () => {
2871
2873
  "button",
2872
2874
  {
2873
2875
  type: "button",
2874
- className: ot.tagInput__remove,
2876
+ className: st.tagInput__remove,
2875
2877
  "aria-label": `${E} — ${o}`,
2876
2878
  disabled: l,
2877
2879
  onClick: (O) => {
2878
2880
  O.stopPropagation(), C(E);
2879
2881
  },
2880
- children: /* @__PURE__ */ a(Ze, { "aria-hidden": !0 })
2882
+ children: /* @__PURE__ */ a(tt, { "aria-hidden": !0 })
2881
2883
  }
2882
2884
  )
2883
2885
  ]
@@ -2890,14 +2892,14 @@ const fo = 240, In = () => {
2890
2892
  ref: m,
2891
2893
  id: k,
2892
2894
  type: "text",
2893
- className: ot.tagInput__field,
2895
+ className: st.tagInput__field,
2894
2896
  value: $,
2895
2897
  placeholder: e.length === 0 ? r : void 0,
2896
2898
  "aria-label": n,
2897
2899
  "aria-describedby": u,
2898
2900
  "aria-invalid": p,
2899
2901
  "aria-required": d || void 0,
2900
- disabled: l || b,
2902
+ disabled: l || g,
2901
2903
  onChange: (E) => L(E.target.value),
2902
2904
  onKeyDown: y,
2903
2905
  onBlur: () => I($)
@@ -2928,7 +2930,7 @@ const fo = 240, In = () => {
2928
2930
  testId: c,
2929
2931
  ...h
2930
2932
  }, u) => {
2931
- const p = A(null), [g, k] = B(String(_ ?? "").length), m = l === void 0 ? g : String(l).length, f = j(
2933
+ const p = A(null), [b, k] = B(String(_ ?? "").length), m = l === void 0 ? b : String(l).length, f = j(
2932
2934
  (x) => {
2933
2935
  p.current = x, typeof u == "function" ? u(x) : u && (u.current = x);
2934
2936
  },
@@ -2970,22 +2972,23 @@ const fo = 240, In = () => {
2970
2972
  ] })
2971
2973
  ] });
2972
2974
  }
2973
- ), Ni = /* @__PURE__ */ T(/* @__PURE__ */ M(xi, "Textarea")), ki = "hanui-dateField-UnUwe", $i = "hanui-range-nGuRH", Ii = "hanui-range__row--debA", Ti = "hanui-range__separator-fEqqr", Di = "hanui-range__field-tmoNH", Ei = "hanui-range__summary-L6v1T", _t = {
2975
+ ), Ni = /* @__PURE__ */ T(/* @__PURE__ */ M(xi, "Textarea")), ki = "hanui-dateField-UnUwe", $i = "hanui-range-nGuRH", Ii = "hanui-range__row--debA", Ti = "hanui-range__separator-fEqqr", Di = "hanui-range__field-tmoNH", Ei = "hanui-range__summary-L6v1T", Ve = {
2974
2976
  dateField: ki,
2977
+ "dateField--sm": "hanui-dateField--sm-bcDe9",
2975
2978
  range: $i,
2976
2979
  range__row: Ii,
2977
2980
  range__separator: Ti,
2978
2981
  range__field: Di,
2979
2982
  range__summary: Ei
2980
2983
  }, ka = Ce(
2981
- ({ type: e = "date", className: t, testId: n, ...r }, o) => /* @__PURE__ */ a(
2984
+ ({ type: e = "date", size: t = "md", className: n, testId: r, ...o }, i) => /* @__PURE__ */ a(
2982
2985
  "input",
2983
2986
  {
2984
- ref: o,
2987
+ ref: i,
2985
2988
  type: e,
2986
- className: w(_t.dateField, t),
2987
- "data-testid": n,
2988
- ...r
2989
+ className: w(Ve.dateField, t === "sm" && Ve["dateField--sm"], n),
2990
+ "data-testid": r,
2991
+ ...o
2989
2992
  }
2990
2993
  )
2991
2994
  ), ip = /* @__PURE__ */ T(/* @__PURE__ */ M(ka, "DateField")), Ci = ({
@@ -2997,50 +3000,53 @@ const fo = 240, In = () => {
2997
3000
  min: i,
2998
3001
  max: s,
2999
3002
  isSummaryVisible: l,
3000
- isDisabled: _,
3001
- className: d,
3002
- testId: c
3003
+ size: _,
3004
+ isDisabled: d,
3005
+ className: c,
3006
+ testId: h
3003
3007
  }) => {
3004
- const { labels: h } = Y(), u = (() => {
3005
- if (!l || !(h != null && h.locale) || e.start === "" || e.end === "") return null;
3008
+ const { labels: u } = Y(), p = (() => {
3009
+ if (!l || !(u != null && u.locale) || e.start === "" || e.end === "") return null;
3006
3010
  try {
3007
- const p = new Intl.DateTimeFormat(h.locale, { dateStyle: "medium" });
3008
- return `${p.format(new Date(e.start))} ${o} ${p.format(new Date(e.end))}`;
3011
+ const b = new Intl.DateTimeFormat(u.locale, { dateStyle: "medium" });
3012
+ return `${b.format(new Date(e.start))} ${o} ${b.format(new Date(e.end))}`;
3009
3013
  } catch {
3010
3014
  return null;
3011
3015
  }
3012
3016
  })();
3013
- return /* @__PURE__ */ v("div", { className: w(_t.range, d), "data-testid": c, children: [
3014
- /* @__PURE__ */ v("div", { className: _t.range__row, children: [
3017
+ return /* @__PURE__ */ v("div", { className: w(Ve.range, c), "data-testid": h, children: [
3018
+ /* @__PURE__ */ v("div", { className: Ve.range__row, children: [
3015
3019
  /* @__PURE__ */ a(
3016
3020
  ka,
3017
3021
  {
3018
- className: _t.range__field,
3022
+ className: Ve.range__field,
3019
3023
  "aria-label": n,
3024
+ size: _,
3020
3025
  value: e.start,
3021
3026
  min: i,
3022
3027
  max: e.end || s,
3023
- disabled: _,
3024
- onChange: (p) => t({ ...e, start: p.target.value })
3028
+ disabled: d,
3029
+ onChange: (b) => t({ ...e, start: b.target.value })
3025
3030
  }
3026
3031
  ),
3027
- /* @__PURE__ */ a("span", { className: _t.range__separator, "aria-hidden": !0, children: o }),
3032
+ /* @__PURE__ */ a("span", { className: Ve.range__separator, "aria-hidden": !0, children: o }),
3028
3033
  /* @__PURE__ */ a(
3029
3034
  ka,
3030
3035
  {
3031
- className: _t.range__field,
3036
+ className: Ve.range__field,
3032
3037
  "aria-label": r,
3038
+ size: _,
3033
3039
  value: e.end,
3034
3040
  min: e.start || i,
3035
3041
  max: s,
3036
- disabled: _,
3037
- onChange: (p) => t({ ...e, end: p.target.value })
3042
+ disabled: d,
3043
+ onChange: (b) => t({ ...e, end: b.target.value })
3038
3044
  }
3039
3045
  )
3040
3046
  ] }),
3041
- u && /* @__PURE__ */ a("span", { className: _t.range__summary, children: u })
3047
+ p && /* @__PURE__ */ a("span", { className: Ve.range__summary, children: p })
3042
3048
  ] });
3043
- }, cp = /* @__PURE__ */ M(/* @__PURE__ */ T(Ci), "DateRange"), Li = "hanui-field-KKvre", Si = "hanui-field__label-9dlYd", Ri = "hanui-field__required-hbDJk", Ai = "hanui-field__srOnly-2WQFH", Mi = "hanui-field__hint-SQPiL", Bi = "hanui-field__error-gLlZ-", Fi = "hanui-field__errorIcon-uA3o8", Ge = {
3049
+ }, cp = /* @__PURE__ */ M(/* @__PURE__ */ T(Ci), "DateRange"), Li = "hanui-field-KKvre", Si = "hanui-field__label-9dlYd", Ri = "hanui-field__required-hbDJk", Ai = "hanui-field__srOnly-2WQFH", Mi = "hanui-field__hint-SQPiL", Bi = "hanui-field__error-gLlZ-", Fi = "hanui-field__errorIcon-uA3o8", Xe = {
3044
3050
  field: Li,
3045
3051
  field__label: Si,
3046
3052
  "field__label--hidden": "hanui-field__label--hidden-ufuVt",
@@ -3060,17 +3066,17 @@ const fo = 240, In = () => {
3060
3066
  className: l
3061
3067
  }) => {
3062
3068
  const { labels: _ } = Y(), d = V(), c = `${d}-error`, h = `${d}-hint`;
3063
- return /* @__PURE__ */ v("div", { className: w(Ge.field, l), children: [
3069
+ return /* @__PURE__ */ v("div", { className: w(Xe.field, l), children: [
3064
3070
  /* @__PURE__ */ v(
3065
3071
  "label",
3066
3072
  {
3067
3073
  htmlFor: d,
3068
- className: w(Ge.field__label, s && Ge["field__label--hidden"]),
3074
+ className: w(Xe.field__label, s && Xe["field__label--hidden"]),
3069
3075
  children: [
3070
3076
  e,
3071
3077
  o && /* @__PURE__ */ v(we, { children: [
3072
- /* @__PURE__ */ a("span", { className: Ge.field__required, "aria-hidden": !0, children: "*" }),
3073
- /* @__PURE__ */ a("span", { className: Ge.field__srOnly, children: z("Field.requiredLabel", i, _ == null ? void 0 : _.required) })
3078
+ /* @__PURE__ */ a("span", { className: Xe.field__required, "aria-hidden": !0, children: "*" }),
3079
+ /* @__PURE__ */ a("span", { className: Xe.field__srOnly, children: z("Field.requiredLabel", i, _ == null ? void 0 : _.required) })
3074
3080
  ] })
3075
3081
  ]
3076
3082
  }
@@ -3082,11 +3088,11 @@ const fo = 240, In = () => {
3082
3088
  /* HATA VE YARDIM BIRLIKTE baglanir, biri digerini EZMEZ. */
3083
3089
  "aria-describedby": [r && c, n && h].filter(Boolean).join(" ") || void 0
3084
3090
  }),
3085
- r && /* @__PURE__ */ v("p", { id: c, className: Ge.field__error, role: "alert", children: [
3086
- /* @__PURE__ */ a(ra, { "aria-hidden": !0, className: Ge.field__errorIcon }),
3091
+ r && /* @__PURE__ */ v("p", { id: c, className: Xe.field__error, role: "alert", children: [
3092
+ /* @__PURE__ */ a(ra, { "aria-hidden": !0, className: Xe.field__errorIcon }),
3087
3093
  r
3088
3094
  ] }),
3089
- n && /* @__PURE__ */ a("p", { id: h, className: Ge.field__hint, children: n })
3095
+ n && /* @__PURE__ */ a("p", { id: h, className: Xe.field__hint, children: n })
3090
3096
  ] });
3091
3097
  }, Pi = /* @__PURE__ */ T(Oi), Hi = "hanui-progress-99MrX", Ki = "hanui-progress__track-Qbp9t", Ui = "hanui-progress__fill-Bam55", zi = "hanui-progress__value-3FYxj", ji = "hanui-circle-9cn2w", Yi = "hanui-circle__svg-0IwkR", qi = "hanui-circle__track-zY2qc", Wi = "hanui-circle__fill-Jbde6", Gi = "hanui-circle__label-A3nJB", re = {
3092
3098
  progress: Hi,
@@ -3252,10 +3258,10 @@ const fo = 240, In = () => {
3252
3258
  isDisabled: h,
3253
3259
  error: u,
3254
3260
  children: p,
3255
- className: g,
3261
+ className: b,
3256
3262
  testId: k
3257
3263
  }) => {
3258
- const m = V(), f = V(), D = A(null), { labels: x } = Y(), $ = La(), [L, F] = B(!1), [N, b] = B([]), I = (y) => {
3264
+ const m = V(), f = V(), D = A(null), { labels: x } = Y(), $ = La(), [L, F] = B(!1), [N, g] = B([]), I = (y) => {
3259
3265
  var X;
3260
3266
  if (!y || y.length === 0) return;
3261
3267
  const E = [...y], O = l === void 0 ? [] : E.filter((ee) => ee.size > l), G = E.filter((ee) => !O.includes(ee)), Q = O.map(
@@ -3269,11 +3275,11 @@ const fo = 240, In = () => {
3269
3275
  ) : c.replace("{name}", ee.name).replace("{max}", fa(l ?? 0));
3270
3276
  }
3271
3277
  );
3272
- b(Q), G.length > 0 && (t(G), $(ye("FileUpload.added", (X = x == null ? void 0 : x.fileUpload) == null ? void 0 : X.added, G.length))), Q.length > 0 && $(Q.join(" "), "assertive");
3278
+ g(Q), G.length > 0 && (t(G), $(ye("FileUpload.added", (X = x == null ? void 0 : x.fileUpload) == null ? void 0 : X.added, G.length))), Q.length > 0 && $(Q.join(" "), "assertive");
3273
3279
  }, C = (y) => {
3274
3280
  y.preventDefault(), F(!1), !h && I(y.dataTransfer.files);
3275
3281
  };
3276
- return /* @__PURE__ */ v("div", { className: w(Z.upload, g), "data-testid": k, children: [
3282
+ return /* @__PURE__ */ v("div", { className: w(Z.upload, b), "data-testid": k, children: [
3277
3283
  /* @__PURE__ */ v(
3278
3284
  "label",
3279
3285
  {
@@ -3349,7 +3355,7 @@ const fo = 240, In = () => {
3349
3355
  /* @__PURE__ */ a(
3350
3356
  Ke,
3351
3357
  {
3352
- icon: /* @__PURE__ */ a(Ze, { "aria-hidden": !0 }),
3358
+ icon: /* @__PURE__ */ a(tt, { "aria-hidden": !0 }),
3353
3359
  label: `${y.name} — ${_}`,
3354
3360
  variant: "ghost",
3355
3361
  size: "sm",
@@ -3365,7 +3371,7 @@ const fo = 240, In = () => {
3365
3371
  ] });
3366
3372
  }, dp = /* @__PURE__ */ T(
3367
3373
  /* @__PURE__ */ M(_c, "FileUpload")
3368
- ), hc = "hanui-alert-gHI-9", pc = "hanui-alert__icon-DhiCT", mc = "hanui-alert__body-52-z2", bc = "hanui-alert__title-I8BAh", gc = "hanui-alert__content-lhBEo", fc = "hanui-alert__action-1mTje", st = {
3374
+ ), hc = "hanui-alert-gHI-9", pc = "hanui-alert__icon-DhiCT", mc = "hanui-alert__body-52-z2", bc = "hanui-alert__title-I8BAh", gc = "hanui-alert__content-lhBEo", fc = "hanui-alert__action-1mTje", it = {
3369
3375
  alert: hc,
3370
3376
  alert__icon: pc,
3371
3377
  alert__body: mc,
@@ -3384,19 +3390,19 @@ const fo = 240, In = () => {
3384
3390
  }, yc = ({ children: e, tone: t = "info", title: n, action: r, className: o, testId: i }) => /* @__PURE__ */ v(
3385
3391
  "div",
3386
3392
  {
3387
- className: w(st.alert, st[`alert--${t}`], o),
3393
+ className: w(it.alert, it[`alert--${t}`], o),
3388
3394
  role: t === "danger" || t === "warning" ? "alert" : void 0,
3389
3395
  "data-testid": i,
3390
3396
  children: [
3391
- /* @__PURE__ */ a("span", { className: st.alert__icon, children: vc[t] }),
3392
- /* @__PURE__ */ v("div", { className: st.alert__body, children: [
3393
- n && /* @__PURE__ */ a("strong", { className: st.alert__title, children: n }),
3394
- /* @__PURE__ */ a("div", { className: st.alert__content, children: e })
3397
+ /* @__PURE__ */ a("span", { className: it.alert__icon, children: vc[t] }),
3398
+ /* @__PURE__ */ v("div", { className: it.alert__body, children: [
3399
+ n && /* @__PURE__ */ a("strong", { className: it.alert__title, children: n }),
3400
+ /* @__PURE__ */ a("div", { className: it.alert__content, children: e })
3395
3401
  ] }),
3396
- r && /* @__PURE__ */ a("div", { className: st.alert__action, children: r })
3402
+ r && /* @__PURE__ */ a("div", { className: it.alert__action, children: r })
3397
3403
  ]
3398
3404
  }
3399
- ), up = /* @__PURE__ */ T(yc), wc = "hanui-avatar-qoh3P", xc = "hanui-avatar__image-uAyAX", Nc = "hanui-avatar__icon-CVOYs", it = {
3405
+ ), up = /* @__PURE__ */ T(yc), wc = "hanui-avatar-qoh3P", xc = "hanui-avatar__image-uAyAX", Nc = "hanui-avatar__icon-CVOYs", ct = {
3400
3406
  avatar: wc,
3401
3407
  avatar__image: xc,
3402
3408
  avatar__icon: Nc,
@@ -3436,15 +3442,15 @@ const fo = 240, In = () => {
3436
3442
  "span",
3437
3443
  {
3438
3444
  className: w(
3439
- it.avatar,
3440
- it[`avatar--${o}`],
3441
- i === "rounded" && it["avatar--rounded"],
3442
- s === "brand" && it["avatar--brand"],
3445
+ ct.avatar,
3446
+ ct[`avatar--${o}`],
3447
+ i === "rounded" && ct["avatar--rounded"],
3448
+ s === "brand" && ct["avatar--brand"],
3443
3449
  /*
3444
3450
  * Karma ton yalnizca BAS HARF madalyonunda: gorselin uzerine renk basmak fotografi bozuyordu,
3445
3451
  * ikon ise bir kisi degil.
3446
3452
  */
3447
- s === "auto" && !t && !n && it[`avatar--tone-${$c(e, Ic)}`],
3453
+ s === "auto" && !t && !n && ct[`avatar--tone-${$c(e, Ic)}`],
3448
3454
  l
3449
3455
  ),
3450
3456
  role: "img",
@@ -3452,8 +3458,8 @@ const fo = 240, In = () => {
3452
3458
  "data-testid": _,
3453
3459
  children: t ? (
3454
3460
  /* `alt=""`: ad zaten kökte `aria-label` ile duyuruluyor, iki kez okunmasın. */
3455
- /* @__PURE__ */ a("img", { className: it.avatar__image, src: t, alt: "" })
3456
- ) : n ? /* @__PURE__ */ a("span", { className: it.avatar__icon, "aria-hidden": !0, children: n }) : kc(e, r ?? (d == null ? void 0 : d.locale))
3461
+ /* @__PURE__ */ a("img", { className: ct.avatar__image, src: t, alt: "" })
3462
+ ) : n ? /* @__PURE__ */ a("span", { className: ct.avatar__icon, "aria-hidden": !0, children: n }) : kc(e, r ?? (d == null ? void 0 : d.locale))
3457
3463
  }
3458
3464
  );
3459
3465
  }, _p = /* @__PURE__ */ T(/* @__PURE__ */ M(Tc, "Avatar")), Dc = "hanui-badge-uLAaI", Ec = "hanui-badge__icon-R2goZ", ta = {
@@ -3571,7 +3577,7 @@ const fo = 240, In = () => {
3571
3577
  ), fp = /* @__PURE__ */ M(
3572
3578
  /* @__PURE__ */ T(({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: w(Ee.footer, t), children: e })),
3573
3579
  "CardFooter"
3574
- ), vp = /* @__PURE__ */ T(jc), qc = "hanui-carousel-GJXkW", Wc = "hanui-carousel__controls-hm5ij", Gc = "hanui-carousel__arrowIcon-adFey", Xc = "hanui-carousel__track-mAux5", Jc = "hanui-carousel__dots-iU8RJ", Vc = "hanui-carousel__dot-JTLCB", Xe = {
3580
+ ), vp = /* @__PURE__ */ T(jc), qc = "hanui-carousel-GJXkW", Wc = "hanui-carousel__controls-hm5ij", Gc = "hanui-carousel__arrowIcon-adFey", Xc = "hanui-carousel__track-mAux5", Jc = "hanui-carousel__dots-iU8RJ", Vc = "hanui-carousel__dot-JTLCB", Je = {
3575
3581
  carousel: qc,
3576
3582
  carousel__controls: Wc,
3577
3583
  carousel__arrowIcon: Gc,
@@ -3590,11 +3596,11 @@ const fo = 240, In = () => {
3590
3596
  className: l,
3591
3597
  testId: _
3592
3598
  }) => {
3593
- const d = A(null), [c, h] = B(!1), [u, p] = B(!1), [g, k] = B(0), [m, f] = B(1), [D, x] = B(!1), $ = j(() => {
3599
+ const d = A(null), [c, h] = B(!1), [u, p] = B(!1), [b, k] = B(0), [m, f] = B(1), [D, x] = B(!1), $ = j(() => {
3594
3600
  const N = d.current;
3595
3601
  if (!N) return;
3596
- const { scrollLeft: b, scrollWidth: I, clientWidth: C } = N;
3597
- h(b > 1), p(b + C < I - 1), k(C > 0 ? Math.round(b / C) : 0), f(C > 0 ? Math.max(1, Math.ceil(I / C)) : 1), x(
3602
+ const { scrollLeft: g, scrollWidth: I, clientWidth: C } = N;
3603
+ h(g > 1), p(g + C < I - 1), k(C > 0 ? Math.round(g / C) : 0), f(C > 0 ? Math.max(1, Math.ceil(I / C)) : 1), x(
3598
3604
  I > C && N.querySelector("a, button, input, select, textarea, [tabindex]") === null
3599
3605
  );
3600
3606
  }, []);
@@ -3602,27 +3608,27 @@ const fo = 240, In = () => {
3602
3608
  const N = d.current;
3603
3609
  if (!N) return;
3604
3610
  $(), N.addEventListener("scroll", $, { passive: !0 });
3605
- const b = typeof ResizeObserver > "u" ? null : new ResizeObserver($);
3606
- return b == null || b.observe(N), () => {
3607
- N.removeEventListener("scroll", $), b == null || b.disconnect();
3611
+ const g = typeof ResizeObserver > "u" ? null : new ResizeObserver($);
3612
+ return g == null || g.observe(N), () => {
3613
+ N.removeEventListener("scroll", $), g == null || g.disconnect();
3608
3614
  };
3609
3615
  }, [$, e]);
3610
3616
  const L = () => {
3611
3617
  var N;
3612
3618
  return typeof window < "u" && ((N = window.matchMedia) != null && N.call(window, "(prefers-reduced-motion: reduce)").matches) ? "auto" : "smooth";
3613
3619
  }, F = (N) => {
3614
- var b;
3615
- return (b = d.current) == null ? void 0 : b.scrollBy({
3620
+ var g;
3621
+ return (g = d.current) == null ? void 0 : g.scrollBy({
3616
3622
  left: N * d.current.clientWidth,
3617
3623
  behavior: L()
3618
3624
  });
3619
3625
  };
3620
- return /* @__PURE__ */ v("section", { className: w(Xe.carousel, l), "aria-label": t, "data-testid": _, children: [
3621
- /* @__PURE__ */ v("div", { className: Xe.carousel__controls, children: [
3626
+ return /* @__PURE__ */ v("section", { className: w(Je.carousel, l), "aria-label": t, "data-testid": _, children: [
3627
+ /* @__PURE__ */ v("div", { className: Je.carousel__controls, children: [
3622
3628
  /* @__PURE__ */ a(
3623
3629
  Ke,
3624
3630
  {
3625
- icon: /* @__PURE__ */ a(_n, { "aria-hidden": !0, className: Xe.carousel__arrowIcon }),
3631
+ icon: /* @__PURE__ */ a(_n, { "aria-hidden": !0, className: Je.carousel__arrowIcon }),
3626
3632
  label: n,
3627
3633
  variant: "outline",
3628
3634
  size: "sm",
@@ -3633,7 +3639,7 @@ const fo = 240, In = () => {
3633
3639
  /* @__PURE__ */ a(
3634
3640
  Ke,
3635
3641
  {
3636
- icon: /* @__PURE__ */ a(da, { "aria-hidden": !0, className: Xe.carousel__arrowIcon }),
3642
+ icon: /* @__PURE__ */ a(da, { "aria-hidden": !0, className: Je.carousel__arrowIcon }),
3637
3643
  label: r,
3638
3644
  variant: "outline",
3639
3645
  size: "sm",
@@ -3646,7 +3652,7 @@ const fo = 240, In = () => {
3646
3652
  "div",
3647
3653
  {
3648
3654
  ref: d,
3649
- className: Xe.carousel__track,
3655
+ className: Je.carousel__track,
3650
3656
  style: {
3651
3657
  "--hanui-carousel-item-default": `${i ?? s ?? 240}px`
3652
3658
  },
@@ -3656,25 +3662,25 @@ const fo = 240, In = () => {
3656
3662
  children: e
3657
3663
  }
3658
3664
  ),
3659
- o && m > 1 && /* @__PURE__ */ a("div", { className: Xe.carousel__dots, children: Array.from({ length: m }, (N, b) => /* @__PURE__ */ a(
3665
+ o && m > 1 && /* @__PURE__ */ a("div", { className: Je.carousel__dots, children: Array.from({ length: m }, (N, g) => /* @__PURE__ */ a(
3660
3666
  "button",
3661
3667
  {
3662
3668
  type: "button",
3663
3669
  className: w(
3664
- Xe.carousel__dot,
3665
- b === g && Xe["carousel__dot--active"]
3670
+ Je.carousel__dot,
3671
+ g === b && Je["carousel__dot--active"]
3666
3672
  ),
3667
- "aria-label": o(b + 1, m),
3668
- "aria-current": b === g ? "true" : void 0,
3673
+ "aria-label": o(g + 1, m),
3674
+ "aria-current": g === b ? "true" : void 0,
3669
3675
  onClick: () => {
3670
3676
  var I;
3671
3677
  return (I = d.current) == null ? void 0 : I.scrollTo({
3672
- left: b * d.current.clientWidth,
3678
+ left: g * d.current.clientWidth,
3673
3679
  behavior: L()
3674
3680
  });
3675
3681
  }
3676
3682
  },
3677
- b
3683
+ g
3678
3684
  )) })
3679
3685
  ] });
3680
3686
  }, yp = /* @__PURE__ */ T(/* @__PURE__ */ M(Qc, "Carousel")), Zc = 1600, Ln = (e) => {
@@ -3722,7 +3728,7 @@ const fo = 240, In = () => {
3722
3728
  testId: h
3723
3729
  }) => {
3724
3730
  var D, x, $;
3725
- const { labels: u } = Y(), { isCopied: p, copy: g, nodeRef: k } = Ln(e), m = !!(s || l), f = /* @__PURE__ */ a("span", { className: Re.badge__code, ref: k, children: e });
3731
+ const { labels: u } = Y(), { isCopied: p, copy: b, nodeRef: k } = Ln(e), m = !!(s || l), f = /* @__PURE__ */ a("span", { className: Re.badge__code, ref: k, children: e });
3726
3732
  return /* @__PURE__ */ v(
3727
3733
  "span",
3728
3734
  {
@@ -3740,7 +3746,7 @@ const fo = 240, In = () => {
3740
3746
  {
3741
3747
  type: "button",
3742
3748
  className: w(Re.badge__button, p && Re["badge__button--done"]),
3743
- onClick: g,
3749
+ onClick: b,
3744
3750
  "aria-label": p ? r ?? ye("CodeBadge.copiedLabel", (D = u == null ? void 0 : u.copyField) == null ? void 0 : D.copied, e) : n ?? ye("CodeBadge.copyLabel", (x = u == null ? void 0 : u.copyField) == null ? void 0 : x.copy, e),
3745
3751
  children: p ? /* @__PURE__ */ a(hn, { "aria-hidden": !0 }) : /* @__PURE__ */ a(pn, { "aria-hidden": !0 })
3746
3752
  }
@@ -3801,7 +3807,7 @@ const fo = 240, In = () => {
3801
3807
  className: s,
3802
3808
  testId: l
3803
3809
  }) => {
3804
- var u, p, g;
3810
+ var u, p, b;
3805
3811
  const { labels: _ } = Y(), { isCopied: d, copy: c, nodeRef: h } = Ln(e);
3806
3812
  return /* @__PURE__ */ v("span", { className: w($t.copy, $t[`copy--${o}`], s), "data-testid": l, children: [
3807
3813
  /* @__PURE__ */ a("span", { className: $t.copy__code, ref: h, children: e }),
@@ -3818,7 +3824,7 @@ const fo = 240, In = () => {
3818
3824
  /* @__PURE__ */ a("span", { "aria-live": "polite", className: $t.copy__srOnly, children: d ? z(
3819
3825
  "CopyField.copiedAnnouncement",
3820
3826
  r,
3821
- (g = _ == null ? void 0 : _.copyField) == null ? void 0 : g.announcement
3827
+ (b = _ == null ? void 0 : _.copyField) == null ? void 0 : b.announcement
3822
3828
  ) : "" })
3823
3829
  ] });
3824
3830
  }, Np = /* @__PURE__ */ T(yl), wl = "hanui-divider-RJqCw", xl = "hanui-divider__label-M8sBA", na = {
@@ -3883,7 +3889,7 @@ const fo = 240, In = () => {
3883
3889
  );
3884
3890
  }),
3885
3891
  "DirectoryJump"
3886
- ), Dp = /* @__PURE__ */ T(Fl), Ol = "hanui-empty-47qZR", Pl = "hanui-empty__icon-okfEc", Hl = "hanui-empty__title-Z7Dzd", Kl = "hanui-empty__description-6BoCk", Ul = "hanui-empty__actions-ARk-k", ct = {
3892
+ ), Dp = /* @__PURE__ */ T(Fl), Ol = "hanui-empty-47qZR", Pl = "hanui-empty__icon-okfEc", Hl = "hanui-empty__title-Z7Dzd", Kl = "hanui-empty__description-6BoCk", Ul = "hanui-empty__actions-ARk-k", lt = {
3887
3893
  empty: Ol,
3888
3894
  empty__icon: Pl,
3889
3895
  empty__title: Hl,
@@ -3904,14 +3910,14 @@ const fo = 240, In = () => {
3904
3910
  }) => /* @__PURE__ */ v(
3905
3911
  "div",
3906
3912
  {
3907
- className: w(ct.empty, ct[`empty--${s}`], ct[`empty--${i}`], l),
3913
+ className: w(lt.empty, lt[`empty--${s}`], lt[`empty--${i}`], l),
3908
3914
  role: i === "error" ? "alert" : void 0,
3909
3915
  "data-testid": _,
3910
3916
  children: [
3911
- n && /* @__PURE__ */ a("span", { className: ct.empty__icon, children: n }),
3912
- /* @__PURE__ */ a("h3", { className: ct.empty__title, children: e }),
3913
- t && /* @__PURE__ */ a("p", { className: ct.empty__description, children: t }),
3914
- (r || o) && /* @__PURE__ */ v("div", { className: ct.empty__actions, children: [
3917
+ n && /* @__PURE__ */ a("span", { className: lt.empty__icon, children: n }),
3918
+ /* @__PURE__ */ a("h3", { className: lt.empty__title, children: e }),
3919
+ t && /* @__PURE__ */ a("p", { className: lt.empty__description, children: t }),
3920
+ (r || o) && /* @__PURE__ */ v("div", { className: lt.empty__actions, children: [
3915
3921
  r,
3916
3922
  o
3917
3923
  ] })
@@ -4014,7 +4020,7 @@ const fo = 240, In = () => {
4014
4020
  ), Sp = /* @__PURE__ */ M(
4015
4021
  /* @__PURE__ */ T(({ children: e, className: t }) => /* @__PURE__ */ a("div", { className: w(te.row, t), children: e })),
4016
4022
  "PanelRow"
4017
- ), Rp = /* @__PURE__ */ T(pd), md = "hanui-price-Oc5Nr", bd = "hanui-price__current-2Xup2", gd = "hanui-price__currency-32NLN", fd = "hanui-price__list-MlQgT", vd = "hanui-price__discount-5Yc6W", lt = {
4023
+ ), Rp = /* @__PURE__ */ T(pd), md = "hanui-price-Oc5Nr", bd = "hanui-price__current-2Xup2", gd = "hanui-price__currency-32NLN", fd = "hanui-price__list-MlQgT", vd = "hanui-price__discount-5Yc6W", dt = {
4018
4024
  price: md,
4019
4025
  price__current: bd,
4020
4026
  price__currency: gd,
@@ -4047,16 +4053,16 @@ const fo = 240, In = () => {
4047
4053
  return u;
4048
4054
  }
4049
4055
  };
4050
- return /* @__PURE__ */ v("span", { className: w(lt.price, lt[`price--${s}`], l), "data-testid": _, children: [
4051
- /* @__PURE__ */ v("span", { className: lt.price__current, children: [
4056
+ return /* @__PURE__ */ v("span", { className: w(dt.price, dt[`price--${s}`], l), "data-testid": _, children: [
4057
+ /* @__PURE__ */ v("span", { className: dt.price__current, children: [
4052
4058
  h(e),
4053
- /* @__PURE__ */ a("span", { className: lt.price__currency, children: c })
4059
+ /* @__PURE__ */ a("span", { className: dt.price__currency, children: c })
4054
4060
  ] }),
4055
- n && /* @__PURE__ */ v("s", { className: lt.price__list, children: [
4061
+ n && /* @__PURE__ */ v("s", { className: dt.price__list, children: [
4056
4062
  h(n),
4057
- /* @__PURE__ */ a("span", { className: lt.price__currency, children: c })
4063
+ /* @__PURE__ */ a("span", { className: dt.price__currency, children: c })
4058
4064
  ] }),
4059
- r !== void 0 && r > 0 && /* @__PURE__ */ a("span", { className: lt.price__discount, children: o(r) })
4065
+ r !== void 0 && r > 0 && /* @__PURE__ */ a("span", { className: dt.price__discount, children: o(r) })
4060
4066
  ] });
4061
4067
  }, Ap = /* @__PURE__ */ T(yd), wd = "hanui-rating-94dke", xd = "hanui-rating__stars-QkpVU", Nd = "hanui-rating__empty-Wf6-K", kd = "hanui-rating__count-pIoEs", $d = "hanui-rating__srOnly-E9h0d", It = {
4062
4068
  rating: wd,
@@ -4081,7 +4087,7 @@ const fo = 240, In = () => {
4081
4087
  ")"
4082
4088
  ] })
4083
4089
  ] });
4084
- }, Mp = /* @__PURE__ */ T(Id), Td = "hanui-header-a08Jh", Dd = "hanui-header__text-ArJkA", Ed = "hanui-header__overline-X5Epo", Cd = "hanui-header__title-nQQQJ", Ld = "hanui-header__description-08oCr", Sd = "hanui-header__action-xsxQF", dt = {
4090
+ }, Mp = /* @__PURE__ */ T(Id), Td = "hanui-header-a08Jh", Dd = "hanui-header__text-ArJkA", Ed = "hanui-header__overline-X5Epo", Cd = "hanui-header__title-nQQQJ", Ld = "hanui-header__description-08oCr", Sd = "hanui-header__action-xsxQF", ut = {
4085
4091
  header: Td,
4086
4092
  header__text: Dd,
4087
4093
  header__overline: Ed,
@@ -4099,13 +4105,13 @@ const fo = 240, In = () => {
4099
4105
  size: i = "md",
4100
4106
  className: s,
4101
4107
  testId: l
4102
- }) => /* @__PURE__ */ v("header", { className: w(dt.header, dt[`header--${i}`], s), "data-testid": l, children: [
4103
- /* @__PURE__ */ v("div", { className: dt.header__text, children: [
4104
- n && /* @__PURE__ */ a("span", { className: dt.header__overline, children: n }),
4105
- /* @__PURE__ */ a(o, { className: dt.header__title, children: e }),
4106
- t && /* @__PURE__ */ a("p", { className: dt.header__description, children: t })
4108
+ }) => /* @__PURE__ */ v("header", { className: w(ut.header, ut[`header--${i}`], s), "data-testid": l, children: [
4109
+ /* @__PURE__ */ v("div", { className: ut.header__text, children: [
4110
+ n && /* @__PURE__ */ a("span", { className: ut.header__overline, children: n }),
4111
+ /* @__PURE__ */ a(o, { className: ut.header__title, children: e }),
4112
+ t && /* @__PURE__ */ a("p", { className: ut.header__description, children: t })
4107
4113
  ] }),
4108
- r && /* @__PURE__ */ a("div", { className: dt.header__action, children: r })
4114
+ r && /* @__PURE__ */ a("div", { className: ut.header__action, children: r })
4109
4115
  ] }), Bp = /* @__PURE__ */ T(Rd), Ad = "hanui-scrollArea-Ly-yT", va = {
4110
4116
  scrollArea: Ad,
4111
4117
  "scrollArea--vertical": "hanui-scrollArea--vertical-2ujC7",
@@ -4128,7 +4134,7 @@ const fo = 240, In = () => {
4128
4134
  return R(() => {
4129
4135
  const p = _.current;
4130
4136
  if (!p || typeof ResizeObserver > "u") return;
4131
- const g = () => {
4137
+ const b = () => {
4132
4138
  const m = p.scrollHeight > p.clientHeight, f = p.scrollWidth > p.clientWidth;
4133
4139
  c(
4134
4140
  n === "horizontal" ? f : n === "vertical" ? m : m || f
@@ -4136,12 +4142,12 @@ const fo = 240, In = () => {
4136
4142
  const D = n === "horizontal", x = D ? p.clientWidth : p.clientHeight, $ = D ? p.scrollWidth : p.scrollHeight, L = Math.abs(D ? p.scrollLeft : p.scrollTop);
4137
4143
  u({ start: L > 1, end: L + x < $ - 1 });
4138
4144
  };
4139
- g();
4140
- const k = new ResizeObserver(g);
4145
+ b();
4146
+ const k = new ResizeObserver(b);
4141
4147
  k.observe(p);
4142
4148
  for (const m of p.children) k.observe(m);
4143
- return p.addEventListener("scroll", g, { passive: !0 }), () => {
4144
- k.disconnect(), p.removeEventListener("scroll", g);
4149
+ return p.addEventListener("scroll", b, { passive: !0 }), () => {
4150
+ k.disconnect(), p.removeEventListener("scroll", b);
4145
4151
  };
4146
4152
  }, [n, e]), /* @__PURE__ */ a(
4147
4153
  "div",
@@ -4179,7 +4185,7 @@ const fo = 240, In = () => {
4179
4185
  row__text: zd,
4180
4186
  table: jd,
4181
4187
  table__row: Yd
4182
- }, Qe = ({ width: e, height: t, variant: n = "block", lines: r = 1, className: o }) => {
4188
+ }, et = ({ width: e, height: t, variant: n = "block", lines: r = 1, className: o }) => {
4183
4189
  const i = {
4184
4190
  width: Ha(e) ? `${e}px` : e,
4185
4191
  height: Ha(t) ? `${t}px` : t
@@ -4199,23 +4205,23 @@ const fo = 240, In = () => {
4199
4205
  "aria-hidden": !0
4200
4206
  }
4201
4207
  );
4202
- }, Op = /* @__PURE__ */ T(Qe), qd = ({ count: e = 1, className: t }) => /* @__PURE__ */ a(we, { children: Array.from({ length: e }, (n, r) => /* @__PURE__ */ v("div", { className: w(le.card, t), "aria-hidden": !0, children: [
4203
- /* @__PURE__ */ a(Qe, { className: le.card__media }),
4208
+ }, Op = /* @__PURE__ */ T(et), qd = ({ count: e = 1, className: t }) => /* @__PURE__ */ a(we, { children: Array.from({ length: e }, (n, r) => /* @__PURE__ */ v("div", { className: w(le.card, t), "aria-hidden": !0, children: [
4209
+ /* @__PURE__ */ a(et, { className: le.card__media }),
4204
4210
  /* @__PURE__ */ v("div", { className: le.card__body, children: [
4205
- /* @__PURE__ */ a(Qe, { variant: "text", width: "70%" }),
4206
- /* @__PURE__ */ a(Qe, { variant: "text", width: "40%" })
4211
+ /* @__PURE__ */ a(et, { variant: "text", width: "70%" }),
4212
+ /* @__PURE__ */ a(et, { variant: "text", width: "40%" })
4207
4213
  ] })
4208
4214
  ] }, r)) }), Wd = ({ count: e = 3, className: t }) => /* @__PURE__ */ a("div", { className: w(le.rows, t), "aria-hidden": !0, children: Array.from({ length: e }, (n, r) => /* @__PURE__ */ v("div", { className: le.row, children: [
4209
- /* @__PURE__ */ a(Qe, { variant: "circle", width: 36, height: 36 }),
4215
+ /* @__PURE__ */ a(et, { variant: "circle", width: 36, height: 36 }),
4210
4216
  /* @__PURE__ */ v("div", { className: le.row__text, children: [
4211
- /* @__PURE__ */ a(Qe, { variant: "text", width: "45%" }),
4212
- /* @__PURE__ */ a(Qe, { variant: "text", width: "25%" })
4217
+ /* @__PURE__ */ a(et, { variant: "text", width: "45%" }),
4218
+ /* @__PURE__ */ a(et, { variant: "text", width: "25%" })
4213
4219
  ] })
4214
4220
  ] }, r)) }), Gd = ({
4215
4221
  count: e = 5,
4216
4222
  columns: t = 4,
4217
4223
  className: n
4218
- }) => /* @__PURE__ */ a("div", { className: w(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(Qe, { variant: "text" }, s)) }, o)) }), Pp = /* @__PURE__ */ M(/* @__PURE__ */ T(qd), "SkeletonCard"), Hp = /* @__PURE__ */ M(/* @__PURE__ */ T(Wd), "SkeletonRows"), Kp = /* @__PURE__ */ M(/* @__PURE__ */ T(Gd), "SkeletonTable"), Xd = "hanui-stat-Xb7wp", Jd = "hanui-stat__icon-MB8NU", Vd = "hanui-stat__label-kUX2m", Qd = "hanui-stat__value--6p13", Zd = "hanui-stat__unit-mjHVk", eu = "hanui-stat__delta-YKpOu", tu = "hanui-stat__description-Yvw6J", au = "hanui-stat__srOnly-YKebA", ue = {
4224
+ }) => /* @__PURE__ */ a("div", { className: w(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(et, { variant: "text" }, s)) }, o)) }), Pp = /* @__PURE__ */ M(/* @__PURE__ */ T(qd), "SkeletonCard"), Hp = /* @__PURE__ */ M(/* @__PURE__ */ T(Wd), "SkeletonRows"), Kp = /* @__PURE__ */ M(/* @__PURE__ */ T(Gd), "SkeletonTable"), Xd = "hanui-stat-Xb7wp", Jd = "hanui-stat__icon-MB8NU", Vd = "hanui-stat__label-kUX2m", Qd = "hanui-stat__value--6p13", Zd = "hanui-stat__unit-mjHVk", eu = "hanui-stat__delta-YKpOu", tu = "hanui-stat__description-Yvw6J", au = "hanui-stat__srOnly-YKebA", ue = {
4219
4225
  stat: Xd,
4220
4226
  "stat--sm": "hanui-stat--sm-XnK8p",
4221
4227
  "stat--plain": "hanui-stat--plain-N-3RC",
@@ -4251,7 +4257,7 @@ const fo = 240, In = () => {
4251
4257
  className: c,
4252
4258
  testId: h
4253
4259
  }) => {
4254
- var g;
4260
+ var b;
4255
4261
  const { labels: u } = Y(), p = o === "flat" ? void 0 : o === "up" === i;
4256
4262
  return (
4257
4263
  /* `card` icin ayri bir sinif YOK: taban sinifin kendisi kart. */
@@ -4278,7 +4284,7 @@ const fo = 240, In = () => {
4278
4284
  children: [
4279
4285
  nu[o],
4280
4286
  r,
4281
- /* @__PURE__ */ a("span", { className: ue.stat__srOnly, children: z(`Stat.${Za[o]}`, (g = u == null ? void 0 : u.stat) == null ? void 0 : g[Za[o]]) })
4287
+ /* @__PURE__ */ a("span", { className: ue.stat__srOnly, children: z(`Stat.${Za[o]}`, (b = u == null ? void 0 : u.stat) == null ? void 0 : b[Za[o]]) })
4282
4288
  ]
4283
4289
  }
4284
4290
  ),
@@ -4287,7 +4293,7 @@ const fo = 240, In = () => {
4287
4293
  }
4288
4294
  )
4289
4295
  );
4290
- }, Up = /* @__PURE__ */ T(/* @__PURE__ */ M(ru, "Stat")), ou = "hanui-card-wkzhi", su = "hanui-card__media--Lm-v", iu = "hanui-card__content-8uHkm", cu = "hanui-card__title-1EwbD", lu = "hanui-card__link-mhY-M", du = "hanui-card__description-3O0R7", uu = "hanui-card__meta-Xzk4q", ut = {
4296
+ }, Up = /* @__PURE__ */ T(/* @__PURE__ */ M(ru, "Stat")), ou = "hanui-card-wkzhi", su = "hanui-card__media--Lm-v", iu = "hanui-card__content-8uHkm", cu = "hanui-card__title-1EwbD", lu = "hanui-card__link-mhY-M", du = "hanui-card__description-3O0R7", uu = "hanui-card__meta-Xzk4q", _t = {
4291
4297
  card: ou,
4292
4298
  card__media: su,
4293
4299
  card__content: iu,
@@ -4307,12 +4313,12 @@ const fo = 240, In = () => {
4307
4313
  testId: _
4308
4314
  }) => {
4309
4315
  const d = `h${i}`;
4310
- return /* @__PURE__ */ v("article", { className: w(ut.card, l), "data-testid": _, children: [
4311
- o && /* @__PURE__ */ a("span", { className: ut.card__media, "aria-hidden": !0, children: o }),
4312
- /* @__PURE__ */ v("div", { className: ut.card__content, children: [
4313
- /* @__PURE__ */ a(d, { className: ut.card__title, children: /* @__PURE__ */ a(de, { href: t, className: ut.card__link, ...s, children: e }) }),
4314
- n && /* @__PURE__ */ a("p", { className: ut.card__description, children: n }),
4315
- r && /* @__PURE__ */ a("div", { className: ut.card__meta, children: r })
4316
+ return /* @__PURE__ */ v("article", { className: w(_t.card, l), "data-testid": _, children: [
4317
+ o && /* @__PURE__ */ a("span", { className: _t.card__media, "aria-hidden": !0, children: o }),
4318
+ /* @__PURE__ */ v("div", { className: _t.card__content, children: [
4319
+ /* @__PURE__ */ a(d, { className: _t.card__title, children: /* @__PURE__ */ a(de, { href: t, className: _t.card__link, ...s, children: e }) }),
4320
+ n && /* @__PURE__ */ a("p", { className: _t.card__description, children: n }),
4321
+ r && /* @__PURE__ */ a("div", { className: _t.card__meta, children: r })
4316
4322
  ] })
4317
4323
  ] });
4318
4324
  }, zp = /* @__PURE__ */ T(
@@ -4400,7 +4406,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4400
4406
  /* @__PURE__ */ a(
4401
4407
  Ke,
4402
4408
  {
4403
- icon: /* @__PURE__ */ a(Ze, { "aria-hidden": !0 }),
4409
+ icon: /* @__PURE__ */ a(tt, { "aria-hidden": !0 }),
4404
4410
  label: t,
4405
4411
  variant: "ghost",
4406
4412
  size: "sm",
@@ -4475,13 +4481,13 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4475
4481
  className: _,
4476
4482
  testId: d
4477
4483
  }) => {
4478
- const [c, h] = B(o), u = r !== void 0, p = u ? r : c, g = A(null);
4484
+ const [c, h] = B(o), u = r !== void 0, p = u ? r : c, b = A(null);
4479
4485
  return R(() => {
4480
- g.current && (g.current.open = p);
4486
+ b.current && (b.current.open = p);
4481
4487
  }), /* @__PURE__ */ v(
4482
4488
  "details",
4483
4489
  {
4484
- ref: g,
4490
+ ref: b,
4485
4491
  className: w(
4486
4492
  Ae.disclosure,
4487
4493
  Ae[`disclosure--${l}`],
@@ -4529,8 +4535,8 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4529
4535
  }) => {
4530
4536
  const [l, _] = B(n ?? []), d = r !== void 0, c = d ? r : l, h = j(
4531
4537
  (u, p) => {
4532
- const g = p ? t ? [u] : [...c.filter((k) => k !== u), u] : c.filter((k) => k !== u);
4533
- d || _(g), o == null || o(g);
4538
+ const b = p ? t ? [u] : [...c.filter((k) => k !== u), u] : c.filter((k) => k !== u);
4539
+ d || _(b), o == null || o(b);
4534
4540
  },
4535
4541
  [d, t, o, c]
4536
4542
  );
@@ -4635,35 +4641,35 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4635
4641
  testId: l
4636
4642
  }) => {
4637
4643
  var N;
4638
- const _ = V(), [d, c] = B(t ?? ((N = e[0]) == null ? void 0 : N.id)), h = mt(n), u = h ? n : d, p = e.findIndex((b) => b.id === u), [g, k] = B(p < 0 ? 0 : p), m = A(null), f = e[p] ?? e[0], D = g >= 0 && g < e.length ? g : Math.max(p, 0);
4644
+ const _ = V(), [d, c] = B(t ?? ((N = e[0]) == null ? void 0 : N.id)), h = mt(n), u = h ? n : d, p = e.findIndex((g) => g.id === u), [b, k] = B(p < 0 ? 0 : p), m = A(null), f = e[p] ?? e[0], D = b >= 0 && b < e.length ? b : Math.max(p, 0);
4639
4645
  R(() => {
4640
4646
  k(p < 0 ? 0 : p);
4641
4647
  }, [p]);
4642
4648
  const x = A(!1);
4643
4649
  R(() => {
4644
- var b;
4650
+ var g;
4645
4651
  if (!x.current) {
4646
4652
  x.current = !0;
4647
4653
  return;
4648
4654
  }
4649
- Sa((b = m.current) == null ? void 0 : b.querySelector('[aria-selected="true"]'), {
4655
+ Sa((g = m.current) == null ? void 0 : g.querySelector('[aria-selected="true"]'), {
4650
4656
  block: "nearest",
4651
4657
  inline: "nearest"
4652
4658
  });
4653
4659
  }, [u]);
4654
- const $ = (b) => {
4655
- h || c(b), r == null || r(b);
4656
- }, L = (b) => {
4660
+ const $ = (g) => {
4661
+ h || c(g), r == null || r(g);
4662
+ }, L = (g) => {
4657
4663
  var y;
4658
- if (i && (b.key === "Enter" || b.key === " ")) {
4659
- b.preventDefault();
4664
+ if (i && (g.key === "Enter" || g.key === " ")) {
4665
+ g.preventDefault();
4660
4666
  const E = e[D];
4661
4667
  E && $(E.id);
4662
4668
  return;
4663
4669
  }
4664
- const I = b.key === "ArrowRight" ? 1 : b.key === "ArrowLeft" ? -1 : 0;
4670
+ const I = g.key === "ArrowRight" ? 1 : g.key === "ArrowLeft" ? -1 : 0;
4665
4671
  if (I === 0) return;
4666
- b.preventDefault();
4672
+ g.preventDefault();
4667
4673
  const C = ((i ? D : p) + I + e.length) % e.length;
4668
4674
  k(C), i || $(e[C].id), (y = document.getElementById(`${_}-tab-${e[C].id}`)) == null || y.focus();
4669
4675
  };
@@ -4678,26 +4684,26 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4678
4684
  role: "tablist",
4679
4685
  "aria-label": o,
4680
4686
  onKeyDown: L,
4681
- children: e.map((b) => {
4687
+ children: e.map((g) => {
4682
4688
  var C;
4683
- const I = b.id === f.id;
4689
+ const I = g.id === f.id;
4684
4690
  return /* @__PURE__ */ v(
4685
4691
  "button",
4686
4692
  {
4687
- id: `${_}-tab-${b.id}`,
4693
+ id: `${_}-tab-${g.id}`,
4688
4694
  type: "button",
4689
4695
  role: "tab",
4690
4696
  "aria-selected": I,
4691
- "aria-controls": I && F ? `${_}-panel-${b.id}` : void 0,
4692
- tabIndex: (i ? ((C = e[D]) == null ? void 0 : C.id) === b.id : I) ? 0 : -1,
4697
+ "aria-controls": I && F ? `${_}-panel-${g.id}` : void 0,
4698
+ tabIndex: (i ? ((C = e[D]) == null ? void 0 : C.id) === g.id : I) ? 0 : -1,
4693
4699
  className: w(Tt.tabs__tab, I && Tt["tabs__tab--active"]),
4694
- onClick: () => $(b.id),
4700
+ onClick: () => $(g.id),
4695
4701
  children: [
4696
- b.label,
4697
- mt(b.count) && /* @__PURE__ */ a("span", { className: Tt.tabs__count, children: b.count })
4702
+ g.label,
4703
+ mt(g.count) && /* @__PURE__ */ a("span", { className: Tt.tabs__count, children: g.count })
4698
4704
  ]
4699
4705
  },
4700
- b.id
4706
+ g.id
4701
4707
  );
4702
4708
  })
4703
4709
  }
@@ -4749,7 +4755,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4749
4755
  timeline__srOnly: h_
4750
4756
  }, p_ = {
4751
4757
  done: /* @__PURE__ */ a(la, {}),
4752
- failed: /* @__PURE__ */ a(Ze, {}),
4758
+ failed: /* @__PURE__ */ a(tt, {}),
4753
4759
  current: null,
4754
4760
  pending: null
4755
4761
  }, ya = {
@@ -4823,9 +4829,9 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4823
4829
  className: h,
4824
4830
  testId: u
4825
4831
  }) => {
4826
- const { labels: p } = Y(), g = A(null), k = A(null), m = V(), f = V();
4832
+ const { labels: p } = Y(), b = A(null), k = A(null), m = V(), f = V();
4827
4833
  R(() => {
4828
- const x = g.current;
4834
+ const x = b.current;
4829
4835
  if (!x) return;
4830
4836
  if (!e) {
4831
4837
  x.open && x.close();
@@ -4838,7 +4844,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4838
4844
  F(), k.current = null, $();
4839
4845
  };
4840
4846
  }, [e]), _a(e), R(() => {
4841
- const x = g.current;
4847
+ const x = b.current;
4842
4848
  if (!x) return;
4843
4849
  const $ = (L) => {
4844
4850
  L.preventDefault(), c && (k.current && !qt(k.current) || t());
@@ -4847,14 +4853,14 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4847
4853
  }, [t, c]);
4848
4854
  const D = j(
4849
4855
  (x) => {
4850
- c && x.target === g.current && t();
4856
+ c && x.target === b.current && t();
4851
4857
  },
4852
4858
  [c, t]
4853
4859
  );
4854
4860
  return /* @__PURE__ */ a(
4855
4861
  "dialog",
4856
4862
  {
4857
- ref: g,
4863
+ ref: b,
4858
4864
  className: w(ie.modal, ie[`modal--${d}`], h),
4859
4865
  "aria-labelledby": m,
4860
4866
  "aria-describedby": i ? f : void 0,
@@ -4870,7 +4876,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4870
4876
  c && /* @__PURE__ */ a(
4871
4877
  Ke,
4872
4878
  {
4873
- icon: /* @__PURE__ */ a(Ze, { "aria-hidden": !0 }),
4879
+ icon: /* @__PURE__ */ a(tt, { "aria-hidden": !0 }),
4874
4880
  label: z("Modal.closeLabel", r, p == null ? void 0 : p.close),
4875
4881
  variant: "ghost",
4876
4882
  size: "sm",
@@ -4911,11 +4917,11 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4911
4917
  className: _,
4912
4918
  testId: d
4913
4919
  }) => {
4914
- const c = V(), h = `${c}-listbox`, u = A(null), p = A(null), g = A(null), k = A(null), [m, f] = B(""), [D, x] = B(0), $ = Ct(() => {
4920
+ const c = V(), h = `${c}-listbox`, u = A(null), p = A(null), b = A(null), k = A(null), [m, f] = B(""), [D, x] = B(0), $ = Ct(() => {
4915
4921
  if (m.trim() === "") return n;
4916
4922
  const N = m.trim();
4917
4923
  return n.filter(
4918
- (b) => ia(b.label, N) || (b.description ? ia(b.description, N) : !1)
4924
+ (g) => ia(g.label, N) || (g.description ? ia(g.description, N) : !1)
4919
4925
  );
4920
4926
  }, [n, m]);
4921
4927
  _a(e), R(() => {
@@ -4926,19 +4932,19 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4926
4932
  N.open && N.close();
4927
4933
  return;
4928
4934
  }
4929
- const b = Lt();
4935
+ const g = Lt();
4930
4936
  N.open || N.showModal(), (y = p.current) == null || y.focus({ preventScroll: !0 }), f(""), x(0);
4931
4937
  const { token: I, pop: C } = Yt();
4932
- return g.current = I, () => {
4933
- N.open && N.close(), C(), g.current = null, b();
4938
+ return b.current = I, () => {
4939
+ N.open && N.close(), C(), b.current = null, g();
4934
4940
  const E = k.current;
4935
4941
  k.current = null, E == null || E();
4936
4942
  };
4937
4943
  }, [e]), R(() => {
4938
4944
  if (!s) return;
4939
- const N = s.toLowerCase().split("+"), b = N.at(-1), I = (E) => N.includes(E), C = /Mac|iPhone|iPad/.test(navigator.platform), y = (E) => {
4945
+ const N = s.toLowerCase().split("+"), g = N.at(-1), I = (E) => N.includes(E), C = /Mac|iPhone|iPad/.test(navigator.platform), y = (E) => {
4940
4946
  const O = C ? E.metaKey : E.ctrlKey;
4941
- if (E.key.toLowerCase() === b && !(I("mod") !== O || I("shift") !== E.shiftKey || I("alt") !== E.altKey)) {
4947
+ if (E.key.toLowerCase() === g && !(I("mod") !== O || I("shift") !== E.shiftKey || I("alt") !== E.altKey)) {
4942
4948
  if (e) {
4943
4949
  E.preventDefault(), t();
4944
4950
  return;
@@ -4950,10 +4956,10 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4950
4956
  }, [s, e, t, l]), R(() => {
4951
4957
  const N = u.current;
4952
4958
  if (!N) return;
4953
- const b = (I) => {
4954
- I.preventDefault(), !(g.current && !qt(g.current)) && t();
4959
+ const g = (I) => {
4960
+ I.preventDefault(), !(b.current && !qt(b.current)) && t();
4955
4961
  };
4956
- return N.addEventListener("cancel", b), () => N.removeEventListener("cancel", b);
4962
+ return N.addEventListener("cancel", g), () => N.removeEventListener("cancel", g);
4957
4963
  }, [t]), R(() => {
4958
4964
  var N;
4959
4965
  Sa((N = u.current) == null ? void 0 : N.querySelector(`[data-index="${D}"]`), {
@@ -4963,19 +4969,19 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
4963
4969
  const L = (N) => {
4964
4970
  k.current = N.onSelect, t();
4965
4971
  }, F = (N) => {
4966
- const b = $.length - 1;
4972
+ const g = $.length - 1;
4967
4973
  switch (N.key) {
4968
4974
  case "ArrowDown":
4969
- N.preventDefault(), x((I) => I >= b ? 0 : I + 1);
4975
+ N.preventDefault(), x((I) => I >= g ? 0 : I + 1);
4970
4976
  break;
4971
4977
  case "ArrowUp":
4972
- N.preventDefault(), x((I) => I <= 0 ? b : I - 1);
4978
+ N.preventDefault(), x((I) => I <= 0 ? g : I - 1);
4973
4979
  break;
4974
4980
  case "Home":
4975
4981
  N.preventDefault(), x(0);
4976
4982
  break;
4977
4983
  case "End":
4978
- N.preventDefault(), x(b);
4984
+ N.preventDefault(), x(g);
4979
4985
  break;
4980
4986
  case "Enter": {
4981
4987
  N.preventDefault();
@@ -5019,9 +5025,9 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5019
5025
  )
5020
5026
  ] }),
5021
5027
  /* @__PURE__ */ v("ul", { id: h, role: "listbox", "aria-label": r, className: ae.palette__list, children: [
5022
- $.map((N, b) => {
5028
+ $.map((N, g) => {
5023
5029
  var C;
5024
- const I = N.group !== void 0 && N.group !== ((C = $[b - 1]) == null ? void 0 : C.group);
5030
+ const I = N.group !== void 0 && N.group !== ((C = $[g - 1]) == null ? void 0 : C.group);
5025
5031
  return (
5026
5032
  /* ⚠ `role="presentation"` ZORUNLU. */
5027
5033
  /* @__PURE__ */ v("li", { role: "presentation", children: [
@@ -5033,15 +5039,15 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5033
5039
  /* @__PURE__ */ v(
5034
5040
  "div",
5035
5041
  {
5036
- id: `${c}-option-${b}`,
5042
+ id: `${c}-option-${g}`,
5037
5043
  role: "option",
5038
- "data-index": b,
5039
- "aria-selected": b === D,
5044
+ "data-index": g,
5045
+ "aria-selected": g === D,
5040
5046
  className: w(
5041
5047
  ae.palette__item,
5042
- b === D && ae["palette__item--active"]
5048
+ g === D && ae["palette__item--active"]
5043
5049
  ),
5044
- onMouseEnter: () => x(b),
5050
+ onMouseEnter: () => x(g),
5045
5051
  onClick: () => L(N),
5046
5052
  children: [
5047
5053
  N.icon && /* @__PURE__ */ a("span", { className: ae.palette__icon, "aria-hidden": !0, children: N.icon }),
@@ -5088,7 +5094,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5088
5094
  kind: d,
5089
5095
  children: c
5090
5096
  }) => {
5091
- const { labels: h } = Y(), [u, p] = B(!1), g = _ ?? d ?? "neutral", k = async () => {
5097
+ const { labels: h } = Y(), [u, p] = B(!1), b = _ ?? d ?? "neutral", k = async () => {
5092
5098
  p(!0);
5093
5099
  try {
5094
5100
  await n();
@@ -5104,8 +5110,8 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5104
5110
  title: r,
5105
5111
  closeLabel: l ?? (h == null ? void 0 : h.close),
5106
5112
  description: o,
5107
- icon: K_[g],
5108
- tone: U_[g],
5113
+ icon: K_[b],
5114
+ tone: U_[b],
5109
5115
  size: "sm",
5110
5116
  isDismissable: !u,
5111
5117
  footer: /* @__PURE__ */ v(we, { children: [
@@ -5122,7 +5128,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5122
5128
  /* @__PURE__ */ a(
5123
5129
  jt,
5124
5130
  {
5125
- variant: z_[g],
5131
+ variant: z_[b],
5126
5132
  size: bt.MEDIUM,
5127
5133
  onClick: k,
5128
5134
  isLoading: u,
@@ -5159,7 +5165,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5159
5165
  className: d,
5160
5166
  testId: c
5161
5167
  }) => {
5162
- const { labels: h } = Y(), u = A(null), p = A(null), g = V();
5168
+ const { labels: h } = Y(), u = A(null), p = A(null), b = V();
5163
5169
  R(() => {
5164
5170
  const m = u.current;
5165
5171
  if (!m) return;
@@ -5192,16 +5198,16 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5192
5198
  {
5193
5199
  ref: u,
5194
5200
  className: w(De.drawer, De[`drawer--${i}`], De[`drawer--${s}`], d),
5195
- "aria-labelledby": g,
5201
+ "aria-labelledby": b,
5196
5202
  "data-testid": c,
5197
5203
  onClick: k,
5198
5204
  children: [
5199
5205
  /* @__PURE__ */ v("header", { className: De.drawer__header, children: [
5200
- /* @__PURE__ */ a("h2", { id: g, className: De.drawer__title, children: n }),
5206
+ /* @__PURE__ */ a("h2", { id: b, className: De.drawer__title, children: n }),
5201
5207
  /* @__PURE__ */ a(
5202
5208
  Ke,
5203
5209
  {
5204
- icon: /* @__PURE__ */ a(Ze, { "aria-hidden": !0 }),
5210
+ icon: /* @__PURE__ */ a(tt, { "aria-hidden": !0 }),
5205
5211
  label: z("Drawer.closeLabel", r, h == null ? void 0 : h.close),
5206
5212
  variant: "ghost",
5207
5213
  size: "sm",
@@ -5233,7 +5239,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5233
5239
  defaultValue: h = "",
5234
5240
  isRequired: u,
5235
5241
  requiredLabel: p,
5236
- inputMode: g = "text",
5242
+ inputMode: b = "text",
5237
5243
  maxLength: k,
5238
5244
  rows: m = 4
5239
5245
  }) => {
@@ -5241,7 +5247,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5241
5247
  R(() => {
5242
5248
  e && !N.current && $(h), N.current = e;
5243
5249
  }, [e, h]);
5244
- const b = x.trim(), I = !!u && b === "", C = (E) => g === "multiline" ? /* @__PURE__ */ a(
5250
+ const g = x.trim(), I = !!u && g === "", C = (E) => b === "multiline" ? /* @__PURE__ */ a(
5245
5251
  Ni,
5246
5252
  {
5247
5253
  ...E,
@@ -5255,7 +5261,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5255
5261
  En,
5256
5262
  {
5257
5263
  ...E,
5258
- type: g === "number" ? "number" : "text",
5264
+ type: b === "number" ? "number" : "text",
5259
5265
  value: x,
5260
5266
  onChange: (O) => $(O.target.value),
5261
5267
  placeholder: c,
@@ -5265,7 +5271,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5265
5271
  if (!(I || L)) {
5266
5272
  F(!0);
5267
5273
  try {
5268
- await n(b), t();
5274
+ await n(g), t();
5269
5275
  } catch {
5270
5276
  } finally {
5271
5277
  F(!1);
@@ -5404,7 +5410,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5404
5410
  testId: h
5405
5411
  }) => {
5406
5412
  var k, m;
5407
- const { labels: u } = Y(), p = Un.count(n), g = (f, D) => /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
5413
+ const { labels: u } = Y(), p = Un.count(n), b = (f, D) => /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
5408
5414
  "td",
5409
5415
  {
5410
5416
  colSpan: e.length,
@@ -5461,19 +5467,19 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5461
5467
  f.key
5462
5468
  );
5463
5469
  }) }) }),
5464
- /* @__PURE__ */ a("tbody", { children: o ? g(
5470
+ /* @__PURE__ */ a("tbody", { children: o ? b(
5465
5471
  /* @__PURE__ */ v("span", { role: "alert", className: ne.state__message, children: [
5466
5472
  /* @__PURE__ */ a(ra, { "aria-hidden": !0 }),
5467
5473
  o
5468
5474
  ] }),
5469
5475
  "error"
5470
- ) : r ? g(
5476
+ ) : r ? b(
5471
5477
  z(
5472
5478
  "DataTable.loadingMessage",
5473
5479
  s,
5474
5480
  (k = u == null ? void 0 : u.dataTable) == null ? void 0 : k.loading
5475
5481
  )
5476
- ) : p === 0 ? g(
5482
+ ) : p === 0 ? b(
5477
5483
  z("DataTable.emptyMessage", i, (m = u == null ? void 0 : u.dataTable) == null ? void 0 : m.empty)
5478
5484
  ) : n })
5479
5485
  ] })
@@ -5540,28 +5546,28 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5540
5546
  testId: h
5541
5547
  }) => {
5542
5548
  var L, F, N;
5543
- const { labels: u } = Y(), p = La(), g = A(e);
5549
+ const { labels: u } = Y(), p = La(), b = A(e);
5544
5550
  R(() => {
5545
- g.current !== e && (g.current = e, _ && p(_(e, t)));
5551
+ b.current !== e && (b.current = e, _ && p(_(e, t)));
5546
5552
  }, [e, t, _, p]);
5547
5553
  const k = Ct(() => $h(e, t), [e, t]);
5548
5554
  if (t <= 1) return null;
5549
- const m = (b) => {
5550
- d === "top" && b !== e && vr();
5551
- }, f = (b) => {
5552
- s && (s(b), m(b));
5553
- }, D = l == null ? void 0 : l.onClick, x = (b, I) => {
5554
- D == null || D(b), !(b.defaultPrevented || b.button !== 0) && (b.metaKey || b.ctrlKey || b.shiftKey || b.altKey || m(I));
5555
- }, $ = (b, I, C) => {
5556
- const y = b < 1 || b > t;
5555
+ const m = (g) => {
5556
+ d === "top" && g !== e && vr();
5557
+ }, f = (g) => {
5558
+ s && (s(g), m(g));
5559
+ }, D = l == null ? void 0 : l.onClick, x = (g, I) => {
5560
+ D == null || D(g), !(g.defaultPrevented || g.button !== 0) && (g.metaKey || g.ctrlKey || g.shiftKey || g.altKey || m(I));
5561
+ }, $ = (g, I, C) => {
5562
+ const y = g < 1 || g > t;
5557
5563
  return i && !y ? /* @__PURE__ */ a(
5558
5564
  de,
5559
5565
  {
5560
- href: i(b),
5566
+ href: i(g),
5561
5567
  className: Be.pagination__arrow,
5562
5568
  "aria-label": I,
5563
5569
  ...l,
5564
- onClick: (E) => x(E, b),
5570
+ onClick: (E) => x(E, g),
5565
5571
  children: C
5566
5572
  }
5567
5573
  ) : /* @__PURE__ */ a(
@@ -5572,7 +5578,7 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5572
5578
  label: I,
5573
5579
  variant: "outline",
5574
5580
  disabled: y,
5575
- onClick: () => f(b)
5581
+ onClick: () => f(g)
5576
5582
  }
5577
5583
  );
5578
5584
  };
@@ -5589,18 +5595,18 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5589
5595
  /* @__PURE__ */ a(_n, { "aria-hidden": !0 })
5590
5596
  ),
5591
5597
  /* @__PURE__ */ a("ul", { className: Be.pagination__list, children: k.map(
5592
- (b, I) => b === "gap" ? /* @__PURE__ */ a("li", { className: Be.pagination__gap, "aria-hidden": !0, children: "…" }, `gap-${I}`) : /* @__PURE__ */ a("li", { children: i ? /* @__PURE__ */ a(
5598
+ (g, I) => g === "gap" ? /* @__PURE__ */ a("li", { className: Be.pagination__gap, "aria-hidden": !0, children: "…" }, `gap-${I}`) : /* @__PURE__ */ a("li", { children: i ? /* @__PURE__ */ a(
5593
5599
  de,
5594
5600
  {
5595
- href: i(b),
5601
+ href: i(g),
5596
5602
  className: w(
5597
5603
  Be.pagination__page,
5598
- b === e && Be["pagination__page--active"]
5604
+ g === e && Be["pagination__page--active"]
5599
5605
  ),
5600
- "aria-current": b === e ? "page" : void 0,
5606
+ "aria-current": g === e ? "page" : void 0,
5601
5607
  ...l,
5602
- onClick: (C) => x(C, b),
5603
- children: b
5608
+ onClick: (C) => x(C, g),
5609
+ children: g
5604
5610
  }
5605
5611
  ) : /* @__PURE__ */ a(
5606
5612
  jt,
@@ -5609,13 +5615,13 @@ const Ma = () => $a.forEach((e) => e(gt)), Ia = (e) => {
5609
5615
  size: bt.SMALL,
5610
5616
  className: w(
5611
5617
  Be.pagination__page,
5612
- b === e && Be["pagination__page--active"]
5618
+ g === e && Be["pagination__page--active"]
5613
5619
  ),
5614
- "aria-current": b === e ? "page" : void 0,
5615
- onClick: () => f(b),
5616
- children: b
5620
+ "aria-current": g === e ? "page" : void 0,
5621
+ onClick: () => f(g),
5622
+ children: g
5617
5623
  }
5618
- ) }, b)
5624
+ ) }, g)
5619
5625
  ) }),
5620
5626
  $(
5621
5627
  e + 1,