@sakaniui/react 0.3.24 → 0.3.26

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  An open-source, token-driven React component library for SaaS products — **1,500+ accessible components and variants**, built 1:1 from a Figma design system and now spanning **1,500+ components and variants** across light and dark modes.
4
4
 
5
- **[Live Storybook →](https://main--6a5a658b3681fcc010430db5.chromatic.com)** · **[Figma file →](https://www.figma.com/design/Fd3uY263mEQKnaTEfrzQxh/)**
5
+ **[Live Storybook →](https://main--6a5a658b3681fcc010430db5.chromatic.com)** · **[Figma file →](https://www.figma.com/community/file/1661001585975776295/sakani-design-system-v1-8)**
6
6
 
7
7
  ![npm](https://img.shields.io/npm/v/@sakaniui/react) ![License](https://img.shields.io/badge/license-MIT-blue) ![React](https://img.shields.io/badge/React-19-61dafb) ![TypeScript](https://img.shields.io/badge/TypeScript-strict-3178c6) ![Storybook](https://img.shields.io/badge/Storybook-10-ff4785)
8
8
 
@@ -3001,50 +3001,73 @@ var J = {
3001
3001
  arrow: "_arrow_on2nb_9",
3002
3002
  "page--active": "_page--active_on2nb_26",
3003
3003
  ellipsis: "_ellipsis_on2nb_40"
3004
- };
3005
- //#endregion
3006
- //#region src/components/Pagination/Pagination.tsx
3007
- function yn(e, t, n) {
3008
- let r = t, i = Math.min(t + n, e), a = /* @__PURE__ */ new Set([1, e]);
3009
- for (let e = r; e <= i; e++) a.add(e);
3010
- let o = Array.from(a).sort((e, t) => e - t), s = [];
3011
- return o.forEach((e, t) => {
3012
- t > 0 && e - o[t - 1] > 1 && s.push("ellipsis"), s.push(e);
3013
- }), s;
3004
+ }, yn = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
3005
+ function bn(e, t, n) {
3006
+ let r = n * 2 + 5;
3007
+ if (e <= r) return yn(1, e);
3008
+ let i = r - 2, a = n * 2 + 1;
3009
+ if (t <= i) return [
3010
+ ...yn(1, i),
3011
+ "end-ellipsis",
3012
+ e
3013
+ ];
3014
+ let o = i + 1 + Math.floor((t - i - 1) / a) * a, s = o + a - 1;
3015
+ return s <= e - 3 ? [
3016
+ 1,
3017
+ "start-ellipsis",
3018
+ ...yn(o, s),
3019
+ "end-ellipsis",
3020
+ e
3021
+ ] : [
3022
+ 1,
3023
+ "start-ellipsis",
3024
+ ...yn(e - i + 1, e)
3025
+ ];
3014
3026
  }
3015
- var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o }) => {
3016
- let s = yn(e, t, r);
3017
- return /* @__PURE__ */ a("nav", {
3018
- className: [vn.pagination, o ?? ""].filter(Boolean).join(" "),
3027
+ var xn = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s }) => {
3028
+ let c = e.useRef(null);
3029
+ if (t < 1) return null;
3030
+ let l = Math.min(Math.max(n, 1), t), u = Math.max(0, o), d = bn(t, l, u), m = c.current;
3031
+ if (m && m.total === t && m.siblings === u) {
3032
+ let e = m.tokens, n = e.includes(l), r = l === 1 && e[1] === "start-ellipsis" || l === t && e[e.length - 2] === "end-ellipsis";
3033
+ n && !r && (d = e);
3034
+ }
3035
+ return c.current = {
3036
+ total: t,
3037
+ siblings: u,
3038
+ tokens: d
3039
+ }, /* @__PURE__ */ a("nav", {
3040
+ className: [vn.pagination, s ?? ""].filter(Boolean).join(" "),
3019
3041
  "aria-label": "Pagination",
3020
3042
  children: [
3021
3043
  /* @__PURE__ */ i("button", {
3022
3044
  type: "button",
3023
3045
  className: vn.arrow,
3024
- disabled: t <= 1,
3025
- onClick: () => n(t - 1),
3046
+ disabled: l <= 1,
3047
+ onClick: () => r(l - 1),
3026
3048
  "aria-label": "Previous page",
3027
3049
  children: /* @__PURE__ */ i(f, {
3028
3050
  size: 16,
3029
3051
  strokeWidth: A(16)
3030
3052
  })
3031
3053
  }),
3032
- s.map((e, r) => e === "ellipsis" ? /* @__PURE__ */ i("span", {
3054
+ d.map((e) => typeof e == "number" ? /* @__PURE__ */ i("button", {
3055
+ type: "button",
3056
+ className: [vn.page, e === l ? vn["page--active"] : ""].filter(Boolean).join(" "),
3057
+ "aria-current": e === l ? "page" : void 0,
3058
+ "aria-label": `Page ${e}`,
3059
+ onClick: () => e !== l && r(e),
3060
+ children: e
3061
+ }, e) : /* @__PURE__ */ i("span", {
3033
3062
  className: vn.ellipsis,
3034
3063
  "aria-hidden": "true",
3035
3064
  children: "…"
3036
- }, `e${r}`) : /* @__PURE__ */ i("button", {
3037
- type: "button",
3038
- className: [vn.page, e === t ? vn["page--active"] : ""].filter(Boolean).join(" "),
3039
- "aria-current": e === t ? "page" : void 0,
3040
- onClick: () => n(e),
3041
- children: e
3042
3065
  }, e)),
3043
3066
  /* @__PURE__ */ i("button", {
3044
3067
  type: "button",
3045
3068
  className: vn.arrow,
3046
- disabled: t >= e,
3047
- onClick: () => n(t + 1),
3069
+ disabled: l >= t,
3070
+ onClick: () => r(l + 1),
3048
3071
  "aria-label": "Next page",
3049
3072
  children: /* @__PURE__ */ i(p, {
3050
3073
  size: 16,
@@ -3053,14 +3076,14 @@ var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
3053
3076
  })
3054
3077
  ]
3055
3078
  });
3056
- }, xn = {
3079
+ }, Sn = {
3057
3080
  track: "_track_1br5v_2",
3058
3081
  segment: "_segment_1br5v_12",
3059
3082
  "segment--active": "_segment--active_1br5v_38",
3060
3083
  thumb: "_thumb_1br5v_44",
3061
3084
  "thumb--animated": "_thumb--animated_1br5v_62",
3062
3085
  "track--fullWidth": "_track--fullWidth_1br5v_68"
3063
- }, Sn = ({ options: t, value: n, defaultValue: r, onChange: o, fullWidth: s, className: c }) => {
3086
+ }, Cn = ({ options: t, value: n, defaultValue: r, onChange: o, fullWidth: s, className: c }) => {
3064
3087
  let l = n !== void 0, [u, d] = e.useState(r ?? t[0]?.value), f = l ? n : u, p = (e) => {
3065
3088
  l || d(e), o?.(e);
3066
3089
  }, m = e.useRef(null), h = e.useRef({}), [g, _] = e.useState(null), [v, y] = e.useState(!1);
@@ -3081,13 +3104,13 @@ var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
3081
3104
  ref: m,
3082
3105
  role: "tablist",
3083
3106
  className: [
3084
- xn.track,
3085
- s ? xn["track--fullWidth"] : "",
3107
+ Sn.track,
3108
+ s ? Sn["track--fullWidth"] : "",
3086
3109
  c ?? ""
3087
3110
  ].filter(Boolean).join(" "),
3088
3111
  children: [g && /* @__PURE__ */ i("span", {
3089
3112
  "aria-hidden": "true",
3090
- className: [xn.thumb, v ? xn["thumb--animated"] : ""].filter(Boolean).join(" "),
3113
+ className: [Sn.thumb, v ? Sn["thumb--animated"] : ""].filter(Boolean).join(" "),
3091
3114
  style: {
3092
3115
  transform: `translateX(${g.left}px)`,
3093
3116
  width: g.width
@@ -3101,7 +3124,7 @@ var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
3101
3124
  role: "tab",
3102
3125
  type: "button",
3103
3126
  "aria-selected": t,
3104
- className: [xn.segment, t ? xn["segment--active"] : ""].filter(Boolean).join(" "),
3127
+ className: [Sn.segment, t ? Sn["segment--active"] : ""].filter(Boolean).join(" "),
3105
3128
  onClick: () => p(e.value),
3106
3129
  children: e.label
3107
3130
  }, e.value);
@@ -3137,7 +3160,7 @@ var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
3137
3160
  option__check: "_option__check_1b512_179",
3138
3161
  optionHighlight: "_optionHighlight_1b512_151",
3139
3162
  "optionHighlight--animated": "_optionHighlight--animated_1b512_201"
3140
- }, Cn = ({ label: t, description: n, error: r, size: o = "md", placeholder: s = "Select an option", options: c, value: l, defaultValue: u, onChange: d, disabled: f, id: p, className: m }) => {
3163
+ }, wn = ({ label: t, description: n, error: r, size: o = "md", placeholder: s = "Select an option", options: c, value: l, defaultValue: u, onChange: d, disabled: f, id: p, className: m }) => {
3141
3164
  let h = e.useId(), g = `${p ?? h}-trigger`, _ = `${p ?? h}-panel`, v = !!r, [y, b] = e.useState(u), x = l === void 0 ? y : l, S = c.find((e) => e.value === x), [C, w] = e.useState(!1), [T, E] = e.useState(!1), [D, O] = e.useState(0), ee = e.useRef(null), te = e.useRef(null), k = e.useRef(null), ne = e.useRef({}), [re, ie] = e.useState(null), [ae, oe] = e.useState(!1);
3142
3165
  e.useLayoutEffect(() => {
3143
3166
  let e = ne.current[D];
@@ -3343,27 +3366,27 @@ var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
3343
3366
  })
3344
3367
  ]
3345
3368
  });
3346
- }, wn = {
3369
+ }, Tn = {
3347
3370
  sidebar: "_sidebar_m27tb_4",
3348
3371
  "sidebar--collapsed": "_sidebar--collapsed_m27tb_21"
3349
- }, Tn = ({ collapsed: e = !1, children: t, className: n }) => {
3372
+ }, En = ({ collapsed: e = !1, children: t, className: n }) => {
3350
3373
  let r = Zt();
3351
3374
  return /* @__PURE__ */ a("nav", {
3352
3375
  ref: r.ref,
3353
3376
  ...r.groupProps,
3354
3377
  className: [
3355
- wn.sidebar,
3356
- e ? wn["sidebar--collapsed"] : "",
3378
+ Tn.sidebar,
3379
+ e ? Tn["sidebar--collapsed"] : "",
3357
3380
  n ?? ""
3358
3381
  ].filter(Boolean).join(" "),
3359
3382
  "data-collapsed": e,
3360
3383
  children: [r.highlight, t]
3361
3384
  });
3362
- }, En = { divider: "_divider_18c5j_1" }, Dn = () => /* @__PURE__ */ i("div", {
3363
- className: En.divider,
3385
+ }, Dn = { divider: "_divider_18c5j_1" }, On = () => /* @__PURE__ */ i("div", {
3386
+ className: Dn.divider,
3364
3387
  role: "separator"
3365
- }), On = { groupLabel: "_groupLabel_62q1j_2" }, kn = ({ children: e }) => /* @__PURE__ */ i("div", {
3366
- className: On.groupLabel,
3388
+ }), kn = { groupLabel: "_groupLabel_62q1j_2" }, An = ({ children: e }) => /* @__PURE__ */ i("div", {
3389
+ className: kn.groupLabel,
3367
3390
  children: e
3368
3391
  }), X = {
3369
3392
  header: "_header_1wyz2_2",
@@ -3377,7 +3400,7 @@ var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
3377
3400
  header__title: "_header__title_1wyz2_65",
3378
3401
  header__subtitle: "_header__subtitle_1wyz2_66",
3379
3402
  header__toggle: "_header__toggle_1wyz2_67"
3380
- }, An = ({ type: e = "brand", title: t, subtitle: n, logo: r, collapsed: o, onToggle: s, toggleIcon: c = T }) => /* @__PURE__ */ a("div", {
3403
+ }, jn = ({ type: e = "brand", title: t, subtitle: n, logo: r, collapsed: o, onToggle: s, toggleIcon: c = T }) => /* @__PURE__ */ a("div", {
3381
3404
  className: [X.header, o ? X["header--collapsed"] : ""].filter(Boolean).join(" "),
3382
3405
  children: [
3383
3406
  r && (o && e === "brand-toggle" && s ? /* @__PURE__ */ i("button", {
@@ -3440,7 +3463,7 @@ var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
3440
3463
  "item--collapsed": "_item--collapsed_1ukig_98",
3441
3464
  item__label: "_item__label_1ukig_137",
3442
3465
  "item__label--collapsed": "_item__label--collapsed_1ukig_146"
3443
- }, jn = ({ icon: e, label: t, active: n, activeIndicator: o = !0, disabled: s, badge: c, hasSubmenu: l, collapsed: u, onClick: d, href: f, nativeTooltip: m = !0 }) => {
3466
+ }, Mn = ({ icon: e, label: t, active: n, activeIndicator: o = !0, disabled: s, badge: c, hasSubmenu: l, collapsed: u, onClick: d, href: f, nativeTooltip: m = !0 }) => {
3444
3467
  let h = n && o, g = n && !o, _ = [
3445
3468
  Z.item,
3446
3469
  h ? Z["item--active"] : "",
@@ -3494,26 +3517,26 @@ var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
3494
3517
  ...y,
3495
3518
  children: v
3496
3519
  });
3497
- }, Mn = {
3520
+ }, Nn = {
3498
3521
  subItem: "_subItem_1sz05_2",
3499
3522
  "subItem--disabled": "_subItem--disabled_1sz05_26",
3500
3523
  "subItem--active": "_subItem--active_1sz05_27",
3501
3524
  subItem__dot: "_subItem__dot_1sz05_31",
3502
3525
  subItem__label: "_subItem__label_1sz05_41"
3503
- }, Nn = ({ label: e, active: t, disabled: n, onClick: o, href: s }) => {
3526
+ }, Pn = ({ label: e, active: t, disabled: n, onClick: o, href: s }) => {
3504
3527
  let c = {
3505
3528
  className: [
3506
- Mn.subItem,
3507
- t ? Mn["subItem--active"] : "",
3508
- n ? Mn["subItem--disabled"] : ""
3529
+ Nn.subItem,
3530
+ t ? Nn["subItem--active"] : "",
3531
+ n ? Nn["subItem--disabled"] : ""
3509
3532
  ].filter(Boolean).join(" "),
3510
3533
  "data-hover-item": "",
3511
3534
  "aria-current": t ? "page" : void 0
3512
3535
  }, l = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("span", {
3513
- className: Mn.subItem__dot,
3536
+ className: Nn.subItem__dot,
3514
3537
  "aria-hidden": "true"
3515
3538
  }), /* @__PURE__ */ i("span", {
3516
- className: Mn.subItem__label,
3539
+ className: Nn.subItem__label,
3517
3540
  children: e
3518
3541
  })] });
3519
3542
  return s && !n ? /* @__PURE__ */ i("a", {
@@ -3527,41 +3550,41 @@ var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
3527
3550
  ...c,
3528
3551
  children: l
3529
3552
  });
3530
- }, Pn = {
3553
+ }, Fn = {
3531
3554
  skeleton: "_skeleton_94hr3_9",
3532
3555
  "skeleton-shimmer": "_skeleton-shimmer_94hr3_1",
3533
3556
  "skeleton--text": "_skeleton--text_94hr3_22",
3534
3557
  "skeleton--rect": "_skeleton--rect_94hr3_29",
3535
3558
  "skeleton--circle": "_skeleton--circle_94hr3_35"
3536
- }, Fn = ({ variant: e = "text", width: t, height: n, className: r }) => {
3559
+ }, In = ({ variant: e = "text", width: t, height: n, className: r }) => {
3537
3560
  let a = {};
3538
3561
  return t !== void 0 && (a.width = typeof t == "number" ? `${t}px` : t), n !== void 0 && (a.height = typeof n == "number" ? `${n}px` : n), /* @__PURE__ */ i("span", {
3539
3562
  "aria-hidden": "true",
3540
3563
  className: [
3541
- Pn.skeleton,
3542
- Pn[`skeleton--${e}`],
3564
+ Fn.skeleton,
3565
+ Fn[`skeleton--${e}`],
3543
3566
  r ?? ""
3544
3567
  ].filter(Boolean).join(" "),
3545
3568
  style: a
3546
3569
  });
3547
- }, In = {
3570
+ }, Ln = {
3548
3571
  field: "_field_drnb1_3",
3549
3572
  header: "_header_drnb1_4",
3550
3573
  label: "_label_drnb1_5",
3551
3574
  value: "_value_drnb1_6",
3552
3575
  slider: "_slider_drnb1_8"
3553
- }, Ln = e.forwardRef(({ label: t, showValue: n, min: r = 0, max: o = 100, value: s, defaultValue: c, disabled: l, id: u, className: d, onChange: f, ...p }, m) => {
3576
+ }, Rn = e.forwardRef(({ label: t, showValue: n, min: r = 0, max: o = 100, value: s, defaultValue: c, disabled: l, id: u, className: d, onChange: f, ...p }, m) => {
3554
3577
  let h = e.useId(), g = u ?? h, _ = Number(s ?? c ?? r), [v, y] = e.useState(_), b = s === void 0 ? v : Number(s), x = (b - r) / (o - r) * 100;
3555
3578
  return /* @__PURE__ */ a("div", {
3556
- className: [In.field, d ?? ""].filter(Boolean).join(" "),
3579
+ className: [Ln.field, d ?? ""].filter(Boolean).join(" "),
3557
3580
  children: [(t || n) && /* @__PURE__ */ a("div", {
3558
- className: In.header,
3581
+ className: Ln.header,
3559
3582
  children: [t && /* @__PURE__ */ i("label", {
3560
3583
  htmlFor: g,
3561
- className: In.label,
3584
+ className: Ln.label,
3562
3585
  children: t
3563
3586
  }), n && /* @__PURE__ */ i("span", {
3564
- className: In.value,
3587
+ className: Ln.value,
3565
3588
  children: b
3566
3589
  })]
3567
3590
  }), /* @__PURE__ */ i("input", {
@@ -3576,13 +3599,13 @@ var bn = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: o })
3576
3599
  onChange: (e) => {
3577
3600
  s === void 0 && y(Number(e.target.value)), f?.(e);
3578
3601
  },
3579
- className: In.slider,
3602
+ className: Ln.slider,
3580
3603
  style: { "--pct": `${x}%` },
3581
3604
  ...p
3582
3605
  })]
3583
3606
  });
3584
3607
  });
3585
- Ln.displayName = "Slider";
3608
+ Rn.displayName = "Slider";
3586
3609
  var Q = {
3587
3610
  wrap: "_wrap_1hulo_6",
3588
3611
  "wrap--bordered": "_wrap--bordered_1hulo_20",
@@ -3611,18 +3634,18 @@ var Q = {
3611
3634
  "bodyRow--dropTarget": "_bodyRow--dropTarget_1hulo_224",
3612
3635
  dragCell: "_dragCell_1hulo_231",
3613
3636
  dragHandle: "_dragHandle_1hulo_247"
3614
- }, Rn = 640;
3615
- function zn(t) {
3637
+ }, zn = 640;
3638
+ function Bn(t) {
3616
3639
  let [n, r] = e.useState(!1);
3617
3640
  return e.useEffect(() => {
3618
3641
  if (t !== "auto") return;
3619
- let e = window.matchMedia(`(max-width: ${Rn}px)`);
3642
+ let e = window.matchMedia(`(max-width: ${zn}px)`);
3620
3643
  r(e.matches);
3621
3644
  let n = (e) => r(e.matches);
3622
3645
  return e.addEventListener("change", n), () => e.removeEventListener("change", n);
3623
3646
  }, [t]), t === "default" ? "default" : t === "stacked" || n ? "stacked" : "default";
3624
3647
  }
3625
- var Bn = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
3648
+ var Vn = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
3626
3649
  let s = e.useRef(null);
3627
3650
  return e.useEffect(() => {
3628
3651
  s.current && (s.current.indeterminate = !!n);
@@ -3653,8 +3676,8 @@ var Bn = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
3653
3676
  })]
3654
3677
  });
3655
3678
  };
3656
- function Vn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionChange: s, rowKey: c, reorderable: l, onReorder: u, bordered: d = !0, responsive: f = "auto", className: p }) {
3657
- let m = zn(f), h = o !== void 0, [g, _] = e.useState([]), v = h ? o : g, y = (e) => {
3679
+ function Hn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionChange: s, rowKey: c, reorderable: l, onReorder: u, bordered: d = !0, responsive: f = "auto", className: p }) {
3680
+ let m = Bn(f), h = o !== void 0, [g, _] = e.useState([]), v = h ? o : g, y = (e) => {
3658
3681
  h || _(e), s?.(e);
3659
3682
  }, x = n.length > 0 && v.length === n.length, S = v.length > 0 && !x, [C, w] = e.useState(null), [T, E] = e.useState(null), D = Zt(), O = () => {
3660
3683
  if (C === null || T === null || C === T) {
@@ -3681,7 +3704,7 @@ function Vn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
3681
3704
  ].filter(Boolean).join(" "),
3682
3705
  children: [r && /* @__PURE__ */ i("div", {
3683
3706
  className: Q.card__selectRow,
3684
- children: /* @__PURE__ */ i(Bn, {
3707
+ children: /* @__PURE__ */ i(Vn, {
3685
3708
  checked: o,
3686
3709
  onChange: () => te(n),
3687
3710
  label: `Select row ${n + 1}`
@@ -3717,7 +3740,7 @@ function Vn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
3717
3740
  }),
3718
3741
  r && /* @__PURE__ */ i("th", {
3719
3742
  className: Q.checkCell,
3720
- children: /* @__PURE__ */ i(Bn, {
3743
+ children: /* @__PURE__ */ i(Vn, {
3721
3744
  checked: x,
3722
3745
  indeterminate: S,
3723
3746
  onChange: ee,
@@ -3770,7 +3793,7 @@ function Vn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
3770
3793
  }),
3771
3794
  r && /* @__PURE__ */ i("td", {
3772
3795
  className: Q.checkCell,
3773
- children: /* @__PURE__ */ i(Bn, {
3796
+ children: /* @__PURE__ */ i(Vn, {
3774
3797
  checked: o,
3775
3798
  onChange: () => te(n),
3776
3799
  label: `Select row ${n + 1}`
@@ -3787,7 +3810,7 @@ function Vn({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
3787
3810
  })]
3788
3811
  });
3789
3812
  }
3790
- var Hn = {
3813
+ var Un = {
3791
3814
  tabs: "_tabs_1122j_3",
3792
3815
  "tabs--borderless": "_tabs--borderless_1122j_16",
3793
3816
  "tabs--fill": "_tabs--fill_1122j_21",
@@ -3796,7 +3819,7 @@ var Hn = {
3796
3819
  "tab--active": "_tab--active_1122j_63",
3797
3820
  indicator: "_indicator_1122j_74",
3798
3821
  "indicator--animated": "_indicator--animated_1122j_88"
3799
- }, Un = ({ items: t, value: n, defaultValue: r, onChange: o, bordered: s = !0, fill: c = !1, className: l }) => {
3822
+ }, Wn = ({ items: t, value: n, defaultValue: r, onChange: o, bordered: s = !0, fill: c = !1, className: l }) => {
3800
3823
  let u = n !== void 0, [d, f] = e.useState(r ?? t[0]?.value), p = u ? n : d, m = (e) => {
3801
3824
  u || f(e), o?.(e);
3802
3825
  }, h = e.useRef(null), g = e.useRef({}), [_, v] = e.useState(null), [y, b] = e.useState(!1);
@@ -3817,9 +3840,9 @@ var Hn = {
3817
3840
  ref: h,
3818
3841
  role: "tablist",
3819
3842
  className: [
3820
- Hn.tabs,
3821
- s ? "" : Hn["tabs--borderless"],
3822
- c ? Hn["tabs--fill"] : "",
3843
+ Un.tabs,
3844
+ s ? "" : Un["tabs--borderless"],
3845
+ c ? Un["tabs--fill"] : "",
3823
3846
  l ?? ""
3824
3847
  ].filter(Boolean).join(" "),
3825
3848
  children: [t.map((e) => {
@@ -3833,9 +3856,9 @@ var Hn = {
3833
3856
  "aria-selected": t,
3834
3857
  disabled: e.disabled,
3835
3858
  className: [
3836
- Hn.tab,
3837
- t ? Hn["tab--active"] : "",
3838
- e.disabled ? Hn["tab--disabled"] : ""
3859
+ Un.tab,
3860
+ t ? Un["tab--active"] : "",
3861
+ e.disabled ? Un["tab--disabled"] : ""
3839
3862
  ].filter(Boolean).join(" "),
3840
3863
  onClick: () => m(e.value),
3841
3864
  children: [n && /* @__PURE__ */ i(n, {
@@ -3846,14 +3869,14 @@ var Hn = {
3846
3869
  }, e.value);
3847
3870
  }), _ && /* @__PURE__ */ i("span", {
3848
3871
  "aria-hidden": "true",
3849
- className: [Hn.indicator, y ? Hn["indicator--animated"] : ""].filter(Boolean).join(" "),
3872
+ className: [Un.indicator, y ? Un["indicator--animated"] : ""].filter(Boolean).join(" "),
3850
3873
  style: {
3851
3874
  transform: `translateX(${_.left}px)`,
3852
3875
  width: _.width
3853
3876
  }
3854
3877
  })]
3855
3878
  });
3856
- }, Wn = {
3879
+ }, Gn = {
3857
3880
  wrapper: "_wrapper_w6wtp_8",
3858
3881
  bubble: "_bubble_w6wtp_8",
3859
3882
  bubble__title: "_bubble__title_w6wtp_46",
@@ -3875,7 +3898,7 @@ var Hn = {
3875
3898
  "caret--center-left": "_caret--center-left_w6wtp_121",
3876
3899
  "bubble--center-right": "_bubble--center-right_w6wtp_131",
3877
3900
  "caret--center-right": "_caret--center-right_w6wtp_139"
3878
- }, Gn = ({ title: t, subtitle: n, pointer: r = "top-center", children: o, className: s }) => {
3901
+ }, Kn = ({ title: t, subtitle: n, pointer: r = "top-center", children: o, className: s }) => {
3879
3902
  let [c, l] = e.useState(!1);
3880
3903
  return e.useEffect(() => {
3881
3904
  let e = (e) => {
@@ -3883,24 +3906,24 @@ var Hn = {
3883
3906
  };
3884
3907
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
3885
3908
  }, []), /* @__PURE__ */ a("span", {
3886
- className: [Wn.wrapper, s ?? ""].filter(Boolean).join(" "),
3909
+ className: [Gn.wrapper, s ?? ""].filter(Boolean).join(" "),
3887
3910
  "data-dismissed": c || void 0,
3888
3911
  onMouseLeave: () => l(!1),
3889
3912
  onBlur: () => l(!1),
3890
3913
  children: [o, /* @__PURE__ */ a("span", {
3891
3914
  role: "tooltip",
3892
- className: [Wn.bubble, Wn[`bubble--${r}`]].join(" "),
3915
+ className: [Gn.bubble, Gn[`bubble--${r}`]].join(" "),
3893
3916
  children: [
3894
3917
  /* @__PURE__ */ i("span", {
3895
- className: Wn.bubble__title,
3918
+ className: Gn.bubble__title,
3896
3919
  children: t
3897
3920
  }),
3898
3921
  n && /* @__PURE__ */ i("span", {
3899
- className: Wn.bubble__subtitle,
3922
+ className: Gn.bubble__subtitle,
3900
3923
  children: n
3901
3924
  }),
3902
3925
  /* @__PURE__ */ i("span", {
3903
- className: [Wn.caret, Wn[`caret--${r}`]].join(" "),
3926
+ className: [Gn.caret, Gn[`caret--${r}`]].join(" "),
3904
3927
  "aria-hidden": "true"
3905
3928
  })
3906
3929
  ]
@@ -3929,7 +3952,7 @@ var Hn = {
3929
3952
  "bar__left--search": "_bar__left--search_yqi1k_84",
3930
3953
  bar__accountChevron: "_bar__accountChevron_yqi1k_98",
3931
3954
  "bar__accountChevron--open": "_bar__accountChevron--open_yqi1k_104"
3932
- }, Kn = ({ type: e = "search", density: t = "md", left: n, showToggle: s = !0, onToggle: c, toggleIcon: l = w, showActions: u = !0, showHelp: f = !0, hasUnread: p = !1, rightSlot: m, account: g, accountOpen: _ = !1, avatar: v, title: y, subtitle: b, actions: x, className: S }) => {
3955
+ }, qn = ({ type: e = "search", density: t = "md", left: n, showToggle: s = !0, onToggle: c, toggleIcon: l = w, showActions: u = !0, showHelp: f = !0, hasUnread: p = !1, rightSlot: m, account: g, accountOpen: _ = !1, avatar: v, title: y, subtitle: b, actions: x, className: S }) => {
3933
3956
  let C = Zt(), T = Zt(), E = t === "md" ? 20 : 18, D = A(E);
3934
3957
  return /* @__PURE__ */ i("header", {
3935
3958
  className: [
@@ -4031,4 +4054,4 @@ var Hn = {
4031
4054
  });
4032
4055
  };
4033
4056
  //#endregion
4034
- export { Ke as $, Vt as A, St as B, nn as C, Kt as D, Zt as E, At as F, ft as G, yt as H, kt as I, rt as J, ot as K, Ot as L, Lt as M, Ft as N, Gt as O, Nt as P, Je as Q, Dt as R, an as S, Qt as T, _t as U, xt as V, mt as W, $e as X, tt as Y, Ze as Z, gn as _, Ln as a, N as at, cn as b, jn as c, Ce as ct, Dn as d, he as dt, Ge as et, Tn as f, me as ft, _n as g, bn as h, Vn as i, ke as it, zt as j, Ht as k, An as l, be as lt, Sn as m, Gn as n, Be as nt, Fn as o, Oe as ot, Cn as p, A as pt, at as q, Un as r, Re as rt, Nn as s, Te as st, Kn as t, We as tt, kn as u, ye as ut, pn as v, en as w, sn as x, dn as y, wt as z };
4057
+ export { Ke as $, Vt as A, St as B, nn as C, Kt as D, Zt as E, At as F, ft as G, yt as H, kt as I, rt as J, ot as K, Ot as L, Lt as M, Ft as N, Gt as O, Nt as P, Je as Q, Dt as R, an as S, Qt as T, _t as U, xt as V, mt as W, $e as X, tt as Y, Ze as Z, gn as _, Rn as a, N as at, cn as b, Mn as c, Ce as ct, On as d, he as dt, Ge as et, En as f, me as ft, _n as g, xn as h, Hn as i, ke as it, zt as j, Ht as k, jn as l, be as lt, Cn as m, Kn as n, Be as nt, In as o, Oe as ot, wn as p, A as pt, at as q, Wn as r, Re as rt, Pn as s, Te as st, qn as t, We as tt, An as u, ye as ut, pn as v, en as w, sn as x, dn as y, wt as z };