@logicplanes/kaeso-ui 0.3.6 → 0.3.8

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.
Files changed (141) hide show
  1. package/ai/component-guides.md +5 -4
  2. package/ai/component-registry.json +15 -8
  3. package/ai/component-registry.md +9 -8
  4. package/ai/icons.md +1 -1
  5. package/ai/tokens.md +1 -1
  6. package/dist/blocks/delete-resource.js +1 -1
  7. package/dist/blocks/pages.js +2 -2
  8. package/dist/blocks/resource-list.js +2 -2
  9. package/dist/chunks/{app-frame-B9vrgwaE.js → app-frame-Cj_gCbmu.js} +6 -6
  10. package/dist/chunks/{app-frame-B9vrgwaE.js.map → app-frame-Cj_gCbmu.js.map} +1 -1
  11. package/dist/chunks/{banner-BBlNFHd-.js → banner-DY1jSc9Y.js} +2 -2
  12. package/dist/chunks/{banner-BBlNFHd-.js.map → banner-DY1jSc9Y.js.map} +1 -1
  13. package/dist/chunks/{button-CAPyW-v8.js → button-h2IFCER2.js} +2 -2
  14. package/dist/chunks/{button-CAPyW-v8.js.map → button-h2IFCER2.js.map} +1 -1
  15. package/dist/chunks/{calendar-CBeptQFq.js → calendar-cVuezHQ6.js} +5 -2
  16. package/dist/chunks/calendar-cVuezHQ6.js.map +1 -0
  17. package/dist/chunks/{code-block-DREsvJ-g.js → code-block-BU8gYeZQ.js} +2 -2
  18. package/dist/chunks/{code-block-DREsvJ-g.js.map → code-block-BU8gYeZQ.js.map} +1 -1
  19. package/dist/chunks/{combobox-DqtzsAKG.js → combobox-B9ttar4C.js} +3 -3
  20. package/dist/chunks/{combobox-DqtzsAKG.js.map → combobox-B9ttar4C.js.map} +1 -1
  21. package/dist/chunks/{command-list-D5k0uvkR.js → command-list-DZMVrXWD.js} +2 -2
  22. package/dist/chunks/{command-list-D5k0uvkR.js.map → command-list-DZMVrXWD.js.map} +1 -1
  23. package/dist/chunks/{copy-button-CNpEnS04.js → copy-button-CXJ7fA9z.js} +3 -3
  24. package/dist/chunks/{copy-button-CNpEnS04.js.map → copy-button-CXJ7fA9z.js.map} +1 -1
  25. package/dist/chunks/{core-CqLWVMDI.js → core-Bu6iq5uh.js} +2 -2
  26. package/dist/chunks/{core-CqLWVMDI.js.map → core-Bu6iq5uh.js.map} +1 -1
  27. package/dist/chunks/{date-popup-BgDz6SUj.js → date-popup-BJPA_fBm.js} +3 -3
  28. package/dist/chunks/{date-popup-BgDz6SUj.js.map → date-popup-BJPA_fBm.js.map} +1 -1
  29. package/dist/chunks/{de-CkXZKaBD.js → de-BnNQtBSV.js} +3 -3
  30. package/dist/chunks/{de-CkXZKaBD.js.map → de-BnNQtBSV.js.map} +1 -1
  31. package/dist/chunks/{dialog-truWH0qe.js → dialog-BLcP7v24.js} +5 -5
  32. package/dist/chunks/{dialog-truWH0qe.js.map → dialog-BLcP7v24.js.map} +1 -1
  33. package/dist/chunks/hidden-description-B2zSmLcn.js +23 -0
  34. package/dist/chunks/hidden-description-B2zSmLcn.js.map +1 -0
  35. package/dist/chunks/{icon-button-D4O4puwH.js → icon-button-DmKFxQbP.js} +3 -3
  36. package/dist/chunks/{icon-button-D4O4puwH.js.map → icon-button-DmKFxQbP.js.map} +1 -1
  37. package/dist/chunks/{identity-CsZvAUwu.js → identity-Chj7fW89.js} +3 -3
  38. package/dist/chunks/{identity-CsZvAUwu.js.map → identity-Chj7fW89.js.map} +1 -1
  39. package/dist/chunks/{input-B0wtkcNh.js → input-9y3afoiq.js} +2 -2
  40. package/dist/chunks/{input-B0wtkcNh.js.map → input-9y3afoiq.js.map} +1 -1
  41. package/dist/chunks/{input-group-BQLw06B0.js → input-group-BoxjnN8I.js} +2 -2
  42. package/dist/chunks/{input-group-BQLw06B0.js.map → input-group-BoxjnN8I.js.map} +1 -1
  43. package/dist/chunks/{iso-field-BUXgY1dB.js → iso-field-DAa6iPWn.js} +2 -2
  44. package/dist/chunks/{iso-field-BUXgY1dB.js.map → iso-field-DAa6iPWn.js.map} +1 -1
  45. package/dist/chunks/{list-wXZIZo_s.js → list-7VARol_x.js} +4 -4
  46. package/dist/chunks/{list-wXZIZo_s.js.map → list-7VARol_x.js.map} +1 -1
  47. package/dist/chunks/{markdown-DWyxjsSY.js → markdown-DBVNULWg.js} +4 -4
  48. package/dist/chunks/{markdown-DWyxjsSY.js.map → markdown-DBVNULWg.js.map} +1 -1
  49. package/dist/chunks/{nav-sheet-QqNRHo-y.js → nav-sheet-D7wIF_OU.js} +2 -2
  50. package/dist/chunks/{nav-sheet-QqNRHo-y.js.map → nav-sheet-D7wIF_OU.js.map} +1 -1
  51. package/dist/chunks/{page-header-Ccnrspbp.js → page-header-B3tV8Wog.js} +2 -2
  52. package/dist/chunks/{page-header-Ccnrspbp.js.map → page-header-B3tV8Wog.js.map} +1 -1
  53. package/dist/chunks/{pagination-CEmWZNjp.js → pagination-CLfsofo3.js} +3 -3
  54. package/dist/chunks/{pagination-CEmWZNjp.js.map → pagination-CLfsofo3.js.map} +1 -1
  55. package/dist/chunks/picker-popover-B5YdOxNm.js +105 -0
  56. package/dist/chunks/picker-popover-B5YdOxNm.js.map +1 -0
  57. package/dist/chunks/{range-popup-CG9Jo5B7.js → range-popup-ZunS8QSH.js} +4 -4
  58. package/dist/chunks/{range-popup-CG9Jo5B7.js.map → range-popup-ZunS8QSH.js.map} +1 -1
  59. package/dist/chunks/{resize-motion-BWGMchyP.js → resize-motion-DS3rIIqy.js} +2 -2
  60. package/dist/chunks/resize-motion-DS3rIIqy.js.map +1 -0
  61. package/dist/chunks/{rights-hMoaFasn.js → rights-CiIBzT9o.js} +4 -4
  62. package/dist/chunks/{rights-hMoaFasn.js.map → rights-CiIBzT9o.js.map} +1 -1
  63. package/dist/chunks/{segmented-DXKVF-nY.js → segmented-DxjnIuww.js} +3 -3
  64. package/dist/chunks/{segmented-DXKVF-nY.js.map → segmented-DxjnIuww.js.map} +1 -1
  65. package/dist/chunks/{sidebar-Dey1ZfGt.js → sidebar-ZSTPK9Jn.js} +210 -206
  66. package/dist/chunks/sidebar-ZSTPK9Jn.js.map +1 -0
  67. package/dist/chunks/{switch-CSKMEomo.js → switch-Cq1OfeBr.js} +2 -2
  68. package/dist/chunks/{switch-CSKMEomo.js.map → switch-Cq1OfeBr.js.map} +1 -1
  69. package/dist/chunks/{tag-CwDKXVHj.js → tag-XgPXKoxi.js} +2 -2
  70. package/dist/chunks/{tag-CwDKXVHj.js.map → tag-XgPXKoxi.js.map} +1 -1
  71. package/dist/chunks/{text-Dvvgg5Jt.js → text-IoDy3Vxi.js} +2 -2
  72. package/dist/chunks/{text-Dvvgg5Jt.js.map → text-IoDy3Vxi.js.map} +1 -1
  73. package/dist/chunks/{textarea-2d373OyU.js → textarea-jOiTkfMf.js} +3 -3
  74. package/dist/chunks/{textarea-2d373OyU.js.map → textarea-jOiTkfMf.js.map} +1 -1
  75. package/dist/chunks/{timeseries-LRDAZHV0.js → timeseries-BBWsSM4Q.js} +51 -51
  76. package/dist/chunks/timeseries-BBWsSM4Q.js.map +1 -0
  77. package/dist/chunks/{tooltip-S1DmyLVl.js → tooltip-CTBnfiDH.js} +30 -30
  78. package/dist/chunks/tooltip-CTBnfiDH.js.map +1 -0
  79. package/dist/chunks/{tooltip-root-vjylFUqw.js → tooltip-root-B0zWodAJ.js} +2 -2
  80. package/dist/chunks/{tooltip-root-vjylFUqw.js.map → tooltip-root-B0zWodAJ.js.map} +1 -1
  81. package/dist/chunks/{zh-CN-CqEA4PCM.js → zh-CN-CKffAT7j.js} +3 -3
  82. package/dist/chunks/{zh-CN-CqEA4PCM.js.map → zh-CN-CKffAT7j.js.map} +1 -1
  83. package/dist/components/app-frame.js +2 -2
  84. package/dist/components/banner.js +1 -1
  85. package/dist/components/button-group.js +2 -2
  86. package/dist/components/button.js +1 -1
  87. package/dist/components/calendar.js +1 -1
  88. package/dist/components/charts/bar.js +1 -1
  89. package/dist/components/charts/donut.js +1 -1
  90. package/dist/components/charts/gauge.js +1 -1
  91. package/dist/components/charts/sankey.js +1 -1
  92. package/dist/components/charts/timeseries.js +1 -1
  93. package/dist/components/charts.js +2 -2
  94. package/dist/components/code-block.js +1 -1
  95. package/dist/components/combobox.js +1 -1
  96. package/dist/components/command-list.js +2 -2
  97. package/dist/components/command-palette.js +2 -2
  98. package/dist/components/copy-button.js +1 -1
  99. package/dist/components/data-table.js +4 -4
  100. package/dist/components/date-picker.js +112 -110
  101. package/dist/components/date-picker.js.map +1 -1
  102. package/dist/components/dialog.js +3 -3
  103. package/dist/components/display-options.js +4 -4
  104. package/dist/components/filter-chip.js +2 -2
  105. package/dist/components/icon-button.js +1 -1
  106. package/dist/components/input.js +5 -5
  107. package/dist/components/kaeso/conversation.js +2 -2
  108. package/dist/components/kaeso/identity.js +1 -1
  109. package/dist/components/kaeso/moments.js +3 -3
  110. package/dist/components/kaeso/rights.js +1 -1
  111. package/dist/components/kaeso/usage.js +1 -1
  112. package/dist/components/kaeso.js +5 -5
  113. package/dist/components/key-value.js +2 -2
  114. package/dist/components/list.js +1 -1
  115. package/dist/components/markdown.js +1 -1
  116. package/dist/components/page-header.js +1 -1
  117. package/dist/components/pagination.js +1 -1
  118. package/dist/components/playground.js +10 -10
  119. package/dist/components/segmented.js +1 -1
  120. package/dist/components/sheet.js +2 -2
  121. package/dist/components/sidebar.js +1 -1
  122. package/dist/components/switch.js +1 -1
  123. package/dist/components/tag.js +1 -1
  124. package/dist/components/text.js +1 -1
  125. package/dist/components/theme-menu.js +1 -1
  126. package/dist/components/tooltip.js +1 -1
  127. package/dist/i18n-provider.js +1 -1
  128. package/dist/index.js +28 -28
  129. package/dist/kaeso.css +2 -4
  130. package/dist/styles.css +1 -1
  131. package/dist/types/components/command-list/docs.d.ts +1 -0
  132. package/dist/types/components/command-list/picker-popover.d.ts +1 -0
  133. package/dist/types/utils/hidden-description.d.ts +9 -0
  134. package/package.json +13 -13
  135. package/dist/chunks/calendar-CBeptQFq.js.map +0 -1
  136. package/dist/chunks/picker-popover-C4ElNk7t.js +0 -102
  137. package/dist/chunks/picker-popover-C4ElNk7t.js.map +0 -1
  138. package/dist/chunks/resize-motion-BWGMchyP.js.map +0 -1
  139. package/dist/chunks/sidebar-Dey1ZfGt.js.map +0 -1
  140. package/dist/chunks/timeseries-LRDAZHV0.js.map +0 -1
  141. package/dist/chunks/tooltip-S1DmyLVl.js.map +0 -1
@@ -3,28 +3,29 @@ import { t as e } from "./cn-DUDmdLpZ.js";
3
3
  import { r as t } from "./link-provider-BsUxhZKG.js";
4
4
  import { i as n } from "./context-BELWW79w.js";
5
5
  import { t as r } from "./icon-BqujXDUc.js";
6
- import { a as i, l as a, o, r as s, s as c } from "./tooltip-S1DmyLVl.js";
6
+ import { a as i, l as a, o, r as s, s as c } from "./tooltip-CTBnfiDH.js";
7
7
  import { t as l } from "./observe-resize-DhxhmoyB.js";
8
8
  import { t as u } from "./nav-wordmark-DmbT1Aiw.js";
9
9
  import { r as d } from "./skeleton-BM797MAg.js";
10
- import { t as f } from "./when-idle-Cy3pinqO.js";
11
- import { createContext as p, forwardRef as m, useCallback as h, useContext as g, useEffect as _, useId as v, useLayoutEffect as y, useMemo as b, useRef as x, useState as S, useSyncExternalStore as C } from "react";
12
- import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
13
- import { ArrowLeft01Icon as D, SidebarLeftIcon as O, UnfoldMoreIcon as k } from "@hugeicons/core-free-icons";
14
- import { Collapsible as A } from "@base-ui/react/collapsible";
10
+ import { n as f, r as p } from "./hidden-description-B2zSmLcn.js";
11
+ import { t as m } from "./when-idle-Cy3pinqO.js";
12
+ import { createContext as h, forwardRef as g, useCallback as _, useContext as v, useEffect as y, useLayoutEffect as b, useMemo as x, useRef as S, useState as C, useSyncExternalStore as w } from "react";
13
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
14
+ import { ArrowLeft01Icon as O, SidebarLeftIcon as k, UnfoldMoreIcon as A } from "@hugeicons/core-free-icons";
15
+ import { Collapsible as j } from "@base-ui/react/collapsible";
15
16
  //#region src/hooks/use-stored-state.ts
16
- var j, M;
17
+ var M, N;
17
18
  function ee(e) {
18
19
  try {
19
20
  let t = localStorage.getItem(e);
20
21
  if (t !== null) return t;
21
22
  } catch {}
22
- return M?.get(e) ?? null;
23
+ return N?.get(e) ?? null;
23
24
  }
24
25
  function te(e, t) {
25
- j ??= /* @__PURE__ */ new Map();
26
- let n = j.get(e);
27
- n || j.set(e, n = /* @__PURE__ */ new Set()), n.add(t);
26
+ M ??= /* @__PURE__ */ new Map();
27
+ let n = M.get(e);
28
+ n || M.set(e, n = /* @__PURE__ */ new Set()), n.add(t);
28
29
  let r = (n) => {
29
30
  n.key === e && t();
30
31
  };
@@ -33,14 +34,14 @@ function te(e, t) {
33
34
  };
34
35
  }
35
36
  var ne = () => () => void 0, re = () => null;
36
- function N(e, t) {
37
- let n = e ? `kaeso:${e}` : void 0, [r, i] = S(t), a = h((e) => n ? te(n, e) : () => void 0, [n]), o = h(() => n ? ee(n) : null, [n]), s = C(n ? a : ne, o, re), c = b(() => {
37
+ function P(e, t) {
38
+ let n = e ? `kaeso:${e}` : void 0, [r, i] = C(t), a = _((e) => n ? te(n, e) : () => void 0, [n]), o = _(() => n ? ee(n) : null, [n]), s = w(n ? a : ne, o, re), c = x(() => {
38
39
  if (s !== null) try {
39
40
  return { value: JSON.parse(s) };
40
41
  } catch {
41
42
  return;
42
43
  }
43
- }, [s]), l = h((e) => {
44
+ }, [s]), l = _((e) => {
44
45
  if (!n) {
45
46
  i(e);
46
47
  return;
@@ -49,18 +50,18 @@ function N(e, t) {
49
50
  try {
50
51
  localStorage.setItem(n, t);
51
52
  } catch {
52
- (M ??= /* @__PURE__ */ new Map()).set(n, t);
53
+ (N ??= /* @__PURE__ */ new Map()).set(n, t);
53
54
  }
54
- j?.get(n)?.forEach((e) => e());
55
+ M?.get(n)?.forEach((e) => e());
55
56
  }, [n]);
56
57
  return [n ? c ? c.value : t : r, l];
57
58
  }
58
59
  //#endregion
59
60
  //#region src/components/sidebar/sidebar.tsx
60
- var P = (e) => e.split("**").map((e, t) => t % 2 ? /* @__PURE__ */ T("span", {
61
+ var F = (e) => e.split("**").map((e, t) => t % 2 ? /* @__PURE__ */ E("span", {
61
62
  className: "font-semibold text-fg",
62
63
  children: e
63
- }, t) : e), F = {
64
+ }, t) : e), I = {
64
65
  mode: {
65
66
  expanded: { classes: "w-(--k-sidebar-width)" },
66
67
  rail: { classes: "w-60" }
@@ -77,7 +78,7 @@ var P = (e) => e.split("**").map((e, t) => t % 2 ? /* @__PURE__ */ T("span", {
77
78
  mode: "expanded",
78
79
  item: "default",
79
80
  caption: "secondary"
80
- }, I = /* @__PURE__ */ p({
81
+ }, L = /* @__PURE__ */ h({
81
82
  rail: !1,
82
83
  setRail: () => void 0,
83
84
  collapsed: !1,
@@ -88,29 +89,29 @@ var P = (e) => e.split("**").map((e, t) => t % 2 ? /* @__PURE__ */ T("span", {
88
89
  setWidth: () => void 0,
89
90
  previewWidth: () => void 0,
90
91
  storageKey: void 0
91
- }), L = () => g(I), R = /* @__PURE__ */ p(!1), z = /* @__PURE__ */ p(null);
92
- function B({ children: e, storageKey: t, defaultRail: n = !1, shortcut: r = !0 }) {
93
- let [i, a] = N(t ? `${t}:rail` : void 0, n), [o, s] = N(t ? `${t}:width` : void 0, 248), [c, l] = S(null), u = V(c ?? o), [d, f] = N(t ? `${t}:collapsed` : void 0, !1), [p, m] = S(!1), g = h((e) => {
92
+ }), R = () => v(L), z = /* @__PURE__ */ h(!1), B = /* @__PURE__ */ h(null);
93
+ function V({ children: e, storageKey: t, defaultRail: n = !1, shortcut: r = !0 }) {
94
+ let [i, a] = P(t ? `${t}:rail` : void 0, n), [o, s] = P(t ? `${t}:width` : void 0, 248), [c, l] = C(null), u = H(c ?? o), [d, f] = P(t ? `${t}:collapsed` : void 0, !1), [p, m] = C(!1), h = _((e) => {
94
95
  let t = e && !!document.activeElement?.closest("[data-sidebar-root]");
95
96
  f(e), m(!1), t && requestAnimationFrame(() => document.querySelector("[data-sidebar-expand]")?.focus());
96
97
  }, [f]);
97
- _(() => {
98
+ y(() => {
98
99
  if (!r) return;
99
100
  let e = (e) => {
100
101
  let t = e.target;
101
- e.key !== "[" || e.metaKey || e.ctrlKey || e.altKey || t instanceof Element && t.closest("input, textarea, select, [contenteditable=true]") || g(!d);
102
+ e.key !== "[" || e.metaKey || e.ctrlKey || e.altKey || t instanceof Element && t.closest("input, textarea, select, [contenteditable=true]") || h(!d);
102
103
  };
103
104
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
104
105
  }, [
105
106
  d,
106
- g,
107
+ h,
107
108
  r
108
109
  ]);
109
- let v = b(() => ({
110
+ let g = x(() => ({
110
111
  rail: i,
111
112
  setRail: a,
112
113
  collapsed: d,
113
- setCollapsed: g,
114
+ setCollapsed: h,
114
115
  peeking: p,
115
116
  setPeeking: m,
116
117
  width: u,
@@ -121,43 +122,43 @@ function B({ children: e, storageKey: t, defaultRail: n = !1, shortcut: r = !0 }
121
122
  i,
122
123
  a,
123
124
  d,
124
- g,
125
+ h,
125
126
  p,
126
127
  u,
127
128
  s,
128
129
  t
129
130
  ]);
130
- return /* @__PURE__ */ T(I.Provider, {
131
- value: v,
131
+ return /* @__PURE__ */ E(L.Provider, {
132
+ value: g,
132
133
  children: e
133
134
  });
134
135
  }
135
- process.env.NODE_ENV !== "production" && (B.displayName = "Sidebar.Provider");
136
- var ae = 232, oe = 280, V = (e) => Math.round(Math.min(280, Math.max(232, Number.isFinite(e) ? e : 248))), H = /* @__PURE__ */ m(function({ resizable: t = !0, className: r, children: i, style: a, "aria-label": o, ...s }, c) {
137
- let { rail: l, width: u, setWidth: d, previewWidth: f, collapsed: p, setCollapsed: m } = L(), v = n(), [y, b] = S(null), [C, w] = S(!1), D = x(null);
138
- _(() => () => D.current?.(), []);
139
- let O = h((e) => {
136
+ process.env.NODE_ENV !== "production" && (V.displayName = "Sidebar.Provider");
137
+ var ae = 232, oe = 280, H = (e) => Math.round(Math.min(280, Math.max(232, Number.isFinite(e) ? e : 248))), U = /* @__PURE__ */ g(function({ resizable: t = !0, className: r, children: i, style: a, "aria-label": o, ...s }, c) {
138
+ let { rail: l, width: u, setWidth: d, previewWidth: f, collapsed: p, setCollapsed: m } = R(), h = n(), [g, b] = C(null), [x, w] = C(!1), T = S(null);
139
+ y(() => () => T.current?.(), []);
140
+ let O = _((e) => {
140
141
  if (e.button !== 0) return;
141
- e.preventDefault(), D.current?.();
142
+ e.preventDefault(), T.current?.();
142
143
  let t = e.currentTarget, n = e.clientX, r = u, i = !1, a = r, o = (e) => {
143
- Math.abs(e.clientX - n) > 3 && (i = !0, w(!0)), i && (a = V(r + e.clientX - n), f(a));
144
+ Math.abs(e.clientX - n) > 3 && (i = !0, w(!0)), i && (a = H(r + e.clientX - n), f(a));
144
145
  }, s = () => {
145
- t.removeEventListener("pointermove", o), t.removeEventListener("pointerup", c), t.removeEventListener("pointercancel", s), document.body.style.cursor = "", document.body.style.userSelect = "", D.current = null, w(!1), i && d(a), f(null);
146
+ t.removeEventListener("pointermove", o), t.removeEventListener("pointerup", c), t.removeEventListener("pointercancel", s), document.body.style.cursor = "", document.body.style.userSelect = "", T.current = null, w(!1), i && d(a), f(null);
146
147
  }, c = () => {
147
148
  s(), i || m(!0);
148
149
  };
149
- t.setPointerCapture(e.pointerId), t.addEventListener("pointermove", o), t.addEventListener("pointerup", c), t.addEventListener("pointercancel", s), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", D.current = s;
150
+ t.setPointerCapture(e.pointerId), t.addEventListener("pointermove", o), t.addEventListener("pointerup", c), t.addEventListener("pointercancel", s), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", T.current = s;
150
151
  }, [
151
152
  u,
152
153
  d,
153
154
  f,
154
155
  m
155
- ]), k = g(R), A = p && !k, j = /* @__PURE__ */ T("nav", {
156
+ ]), k = v(z), A = p && !k, j = /* @__PURE__ */ E("nav", {
156
157
  ref: c,
157
- "aria-label": o ?? v("sidebar.main", "Main"),
158
+ "aria-label": o ?? h("sidebar.main", "Main"),
158
159
  "data-rail": l || void 0,
159
160
  "data-sidebar-root": "",
160
- className: e("group/sidebar relative flex h-full shrink-0 flex-col bg-chrome text-fg", l ? F.mode.rail.classes : F.mode.expanded.classes, r),
161
+ className: e("group/sidebar relative flex h-full shrink-0 flex-col bg-chrome text-fg", l ? I.mode.rail.classes : I.mode.expanded.classes, r),
161
162
  style: {
162
163
  "--k-sidebar-width": `${u}px`,
163
164
  ...a
@@ -165,9 +166,9 @@ var ae = 232, oe = 280, V = (e) => Math.round(Math.min(280, Math.max(232, Number
165
166
  ...s,
166
167
  children: i
167
168
  });
168
- return k ? j : /* @__PURE__ */ E("div", {
169
+ return k ? j : /* @__PURE__ */ D("div", {
169
170
  className: "relative flex h-full shrink-0",
170
- children: [/* @__PURE__ */ T("div", {
171
+ children: [/* @__PURE__ */ E("div", {
171
172
  className: "sidebar-motion relative h-full shrink-0",
172
173
  style: { width: A ? 8 : l ? 60 : u },
173
174
  ...A ? {
@@ -175,15 +176,15 @@ var ae = 232, oe = 280, V = (e) => Math.round(Math.min(280, Math.max(232, Number
175
176
  inert: !0,
176
177
  "aria-hidden": !0
177
178
  } : {},
178
- children: /* @__PURE__ */ T("div", {
179
+ children: /* @__PURE__ */ E("div", {
179
180
  className: "sidebar-content-motion h-full",
180
181
  style: { width: l ? 60 : u },
181
182
  children: j
182
183
  })
183
- }), t && !l && !A && /* @__PURE__ */ T("div", {
184
+ }), t && !l && !A && /* @__PURE__ */ E("div", {
184
185
  role: "separator",
185
186
  "aria-orientation": "vertical",
186
- "aria-label": v("sidebar.resizeOrCollapse", "Resize sidebar; click to collapse"),
187
+ "aria-label": h("sidebar.resizeOrCollapse", "Resize sidebar; click to collapse"),
187
188
  "aria-valuemin": 232,
188
189
  "aria-valuemax": 280,
189
190
  "aria-valuenow": u,
@@ -192,65 +193,65 @@ var ae = 232, oe = 280, V = (e) => Math.round(Math.min(280, Math.max(232, Number
192
193
  onPointerMove: (e) => b(Math.round(e.clientY - e.currentTarget.getBoundingClientRect().top)),
193
194
  onPointerLeave: () => b(null),
194
195
  onKeyDown: (e) => {
195
- e.key === "ArrowLeft" && d(V(u - 8)), e.key === "ArrowRight" && d(V(u + 8)), (e.key === "Enter" || e.key === " ") && m(!0);
196
+ e.key === "ArrowLeft" && d(H(u - 8)), e.key === "ArrowRight" && d(H(u + 8)), (e.key === "Enter" || e.key === " ") && m(!0);
196
197
  },
197
198
  className: "absolute top-0 right-0 z-10 h-full w-8 cursor-col-resize rounded-pill focus-ring-inset",
198
- children: y !== null && !C && /* @__PURE__ */ E("span", {
199
+ children: g !== null && !x && /* @__PURE__ */ D("span", {
199
200
  "aria-hidden": !0,
200
201
  className: "pointer-events-none absolute left-16 flex w-max flex-col gap-2 rounded-tooltip bg-tooltip px-12 py-8 text-small text-fg-secondary shadow-raised",
201
- style: { top: Math.max(8, (y ?? 0) - 24) },
202
- children: [/* @__PURE__ */ T("span", { children: P(v("sidebar.dragToResize", "**Drag** to resize")) }), /* @__PURE__ */ T("span", { children: P(v("sidebar.clickToCollapse", "**Click** to collapse")) })]
202
+ style: { top: Math.max(8, (g ?? 0) - 24) },
203
+ children: [/* @__PURE__ */ E("span", { children: F(h("sidebar.dragToResize", "**Drag** to resize")) }), /* @__PURE__ */ E("span", { children: F(h("sidebar.clickToCollapse", "**Click** to collapse")) })]
203
204
  })
204
205
  })]
205
206
  });
206
207
  });
207
- process.env.NODE_ENV !== "production" && (H.displayName = "Sidebar");
208
- var U = /* @__PURE__ */ m(function({ className: t, ...n }, r) {
209
- return /* @__PURE__ */ T("div", {
208
+ process.env.NODE_ENV !== "production" && (U.displayName = "Sidebar");
209
+ var W = /* @__PURE__ */ g(function({ className: t, ...n }, r) {
210
+ return /* @__PURE__ */ E("div", {
210
211
  ref: r,
211
212
  className: e("mt-8 flex h-52 shrink-0 items-center gap-4 px-8", t),
212
213
  ...n
213
214
  });
214
215
  });
215
- process.env.NODE_ENV !== "production" && (U.displayName = "Sidebar.Header");
216
- var W = /* @__PURE__ */ m(function({ href: t, label: n = "Kaeso", children: r, className: i }, a) {
217
- let { rail: o } = L();
218
- return o ? /* @__PURE__ */ T(U, {
216
+ process.env.NODE_ENV !== "production" && (W.displayName = "Sidebar.Header");
217
+ var G = /* @__PURE__ */ g(function({ href: t, label: n = "Kaeso", children: r, className: i }, a) {
218
+ let { rail: o } = R();
219
+ return o ? /* @__PURE__ */ E(W, {
219
220
  ref: a,
220
221
  className: e("justify-center px-0", i),
221
222
  children: r
222
- }) : /* @__PURE__ */ E(U, {
223
+ }) : /* @__PURE__ */ D(W, {
223
224
  ref: a,
224
225
  className: e("justify-between pr-16 pl-28", i),
225
- children: [/* @__PURE__ */ T(G, {
226
+ children: [/* @__PURE__ */ E(K, {
226
227
  href: t,
227
228
  label: n
228
- }), r && /* @__PURE__ */ T("span", {
229
+ }), r && /* @__PURE__ */ E("span", {
229
230
  className: "flex items-center",
230
231
  children: r
231
232
  })]
232
233
  });
233
234
  });
234
- process.env.NODE_ENV !== "production" && (W.displayName = "Sidebar.Brand");
235
- function G({ href: e, label: n = "Kaeso" }) {
235
+ process.env.NODE_ENV !== "production" && (G.displayName = "Sidebar.Brand");
236
+ function K({ href: e, label: n = "Kaeso" }) {
236
237
  let r = t();
237
- return e ? /* @__PURE__ */ T(r, {
238
+ return e ? /* @__PURE__ */ E(r, {
238
239
  href: e,
239
240
  "aria-label": n,
240
241
  className: "-mx-4 flex h-32 items-center rounded-code px-4 text-fg focus-ring",
241
- children: /* @__PURE__ */ T(u, { decorative: !0 })
242
- }) : /* @__PURE__ */ T(u, {
242
+ children: /* @__PURE__ */ E(u, { decorative: !0 })
243
+ }) : /* @__PURE__ */ E(u, {
243
244
  title: n,
244
245
  className: "text-fg"
245
246
  });
246
247
  }
247
- process.env.NODE_ENV !== "production" && (G.displayName = "Sidebar.BrandWordmark");
248
+ process.env.NODE_ENV !== "production" && (K.displayName = "Sidebar.BrandWordmark");
248
249
  var se = /* @__PURE__ */ c(() => import("./sidebar-menu-ct8IiL4z.js"), { base: () => import.meta.url });
249
- function K({ trigger: e, side: t, header: n, footer: r, children: s }) {
250
- let [c, l] = S(!1), [u, d] = S(!1), p = a(se, u || c, () => {
250
+ function q({ trigger: e, side: t, header: n, footer: r, children: s }) {
251
+ let [c, l] = C(!1), [u, d] = C(!1), f = a(se, u || c, () => {
251
252
  d(!1), l(!1);
252
- }), [m] = S(o), h = x(null), g = c && !p;
253
- _(() => f(() => d(!0)), []), _(() => {
253
+ }), [p] = C(o), h = S(null), g = c && !f;
254
+ y(() => m(() => d(!0)), []), y(() => {
254
255
  if (!g) return;
255
256
  let e = h.current?.ownerDocument ?? document, t = (e) => {
256
257
  e.key === "Escape" && (e.stopPropagation(), l(!1));
@@ -261,13 +262,13 @@ function K({ trigger: e, side: t, header: n, footer: r, children: s }) {
261
262
  e.removeEventListener("keydown", t, !0), e.removeEventListener("pointerdown", n, !0);
262
263
  };
263
264
  }, [g]);
264
- let v = () => d(!0), y = p ? { ref: h } : {
265
+ let _ = () => d(!0), v = f ? { ref: h } : {
265
266
  ref: h,
266
267
  "aria-haspopup": "menu",
267
268
  "aria-expanded": c,
268
269
  ...c ? { "data-popup-open": "" } : {},
269
- onPointerEnter: v,
270
- onFocus: v,
270
+ onPointerEnter: _,
271
+ onFocus: _,
271
272
  onClick: () => l((e) => !e),
272
273
  onKeyDown: (e) => {
273
274
  (e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), l(!0));
@@ -276,208 +277,212 @@ function K({ trigger: e, side: t, header: n, footer: r, children: s }) {
276
277
  c && e.relatedTarget && !e.currentTarget.contains(e.relatedTarget) && l(!1);
277
278
  }
278
279
  };
279
- return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(i, {
280
- store: m,
281
- merge: p?.mergeTriggerProps,
282
- extra: y,
280
+ return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(i, {
281
+ store: p,
282
+ merge: f?.mergeTriggerProps,
283
+ extra: v,
283
284
  children: e
284
- }), p && /* @__PURE__ */ T(p.SidebarMenuRoot, {
285
+ }), f && /* @__PURE__ */ E(f.SidebarMenuRoot, {
285
286
  open: c,
286
287
  onOpenChange: l,
287
- triggerProps: m,
288
+ triggerProps: p,
288
289
  side: t,
289
290
  header: n,
290
291
  footer: r,
291
292
  children: s
292
293
  })] });
293
294
  }
294
- process.env.NODE_ENV !== "production" && (K.displayName = "Sidebar.Menu");
295
- function q({ avatar: t, label: i, trailing: a, caption: o, captionTone: s = "secondary", children: c, header: l, footer: u, "aria-label": d, className: f, "data-force": p }) {
296
- let { rail: m } = L(), h = n(), g = v(), _ = o != null && o !== !1 && o !== "";
297
- return /* @__PURE__ */ T(K, {
295
+ process.env.NODE_ENV !== "production" && (q.displayName = "Sidebar.Menu");
296
+ function J({ avatar: t, label: i, trailing: a, caption: o, captionTone: s = "secondary", children: c, header: l, footer: u, "aria-label": d, className: m, "data-force": h }) {
297
+ let { rail: g } = R(), _ = n(), v = f(o), y = f(i), b = d ?? _("sidebar.switchOrOpenSettings", "Switch or open settings"), x = p(y ? b : void 0);
298
+ return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(q, {
298
299
  side: "top",
299
300
  header: l,
300
301
  footer: u,
301
- trigger: /* @__PURE__ */ E("button", {
302
+ trigger: /* @__PURE__ */ D("button", {
302
303
  type: "button",
303
- "aria-label": d ?? (typeof i == "string" ? h("sidebar.switchOrOpenSettings", "{label}: switch or open settings", { label: i }) : void 0),
304
- ..._ ? { "aria-describedby": g } : {},
305
- ...p ? { "data-force": p } : {},
306
- className: e("group/sw flex h-36 w-full min-w-0 cursor-pointer items-center gap-8 rounded-pill px-12 text-left text-body font-medium text-fg transition-control hover:bg-fill-2 open:bg-fill-3 focus-ring-inset", m && "justify-center px-0", f),
304
+ ...y ? { "aria-describedby": x.id } : { "aria-label": b },
305
+ ...h ? { "data-force": h } : {},
306
+ className: e("group/sw flex h-36 w-full min-w-0 cursor-pointer items-center gap-8 rounded-pill px-12 text-left text-body font-medium text-fg transition-control hover:bg-fill-2 open:bg-fill-3 focus-ring-inset", g && "justify-center px-0", m),
307
307
  children: [
308
308
  t,
309
- !m && (_ ? /* @__PURE__ */ E("span", {
309
+ !g && (v ? /* @__PURE__ */ D("span", {
310
310
  className: "flex min-w-0 flex-1 flex-col",
311
- children: [/* @__PURE__ */ T("span", {
311
+ children: [/* @__PURE__ */ E("span", {
312
312
  className: "truncate",
313
313
  children: i
314
- }), /* @__PURE__ */ T("span", {
315
- id: g,
316
- className: e("truncate text-caption font-regular", F.caption[s].classes),
314
+ }), /* @__PURE__ */ E("span", {
315
+ className: e("truncate text-caption font-regular", I.caption[s].classes),
317
316
  children: o
318
317
  })]
319
- }) : /* @__PURE__ */ T("span", {
318
+ }) : /* @__PURE__ */ E("span", {
320
319
  className: "min-w-0 flex-1 truncate",
321
320
  children: i
322
321
  })),
323
- m && _ && /* @__PURE__ */ T("span", {
324
- id: g,
322
+ g && y && /* @__PURE__ */ E("span", {
323
+ className: "sr-only",
324
+ children: i
325
+ }),
326
+ g && v && /* @__PURE__ */ E("span", {
325
327
  className: "sr-only",
326
328
  children: o
327
329
  }),
328
- !m && a,
329
- !m && /* @__PURE__ */ T(r, {
330
- icon: k,
330
+ !g && a,
331
+ !g && /* @__PURE__ */ E(r, {
332
+ icon: A,
331
333
  size: "sm",
332
334
  className: "text-fg-tertiary transition-control group-hover/sw:text-fg-secondary"
333
335
  })
334
336
  ]
335
337
  }),
336
338
  children: c
337
- });
339
+ }), x.node] });
338
340
  }
339
- process.env.NODE_ENV !== "production" && (q.displayName = "Sidebar.Switcher");
340
- function J({ avatar: i, label: a, children: o, href: c, header: l, footer: u, "aria-label": d, className: f, "data-force": p }) {
341
- let { rail: m } = L(), h = n(), g = t(), _ = e("group/place flex h-36 w-full min-w-0 items-center gap-8 rounded-pill px-12 text-left text-body font-semibold text-fg", (o || c) && "cursor-pointer transition-control hover:bg-fill-2 open:bg-fill-3 focus-ring-inset", m && "justify-center px-0", f), v = /* @__PURE__ */ E(w, { children: [
342
- /* @__PURE__ */ T("span", {
341
+ process.env.NODE_ENV !== "production" && (J.displayName = "Sidebar.Switcher");
342
+ function Y({ avatar: i, label: a, children: o, href: c, header: l, footer: u, "aria-label": d, className: m, "data-force": h }) {
343
+ let { rail: g } = R(), _ = n(), v = t(), y = f(a), b = o ? d ?? _("sidebar.switchPlace", "Switch") : d, x = p(y ? b : void 0), S = y ? x.id ? { "aria-describedby": x.id } : {} : b ? { "aria-label": b } : {}, C = e("group/place flex h-36 w-full min-w-0 items-center gap-8 rounded-pill px-12 text-left text-body font-semibold text-fg", (o || c) && "cursor-pointer transition-control hover:bg-fill-2 open:bg-fill-3 focus-ring-inset", g && "justify-center px-0", m), w = /* @__PURE__ */ D(T, { children: [
344
+ /* @__PURE__ */ E("span", {
343
345
  className: "flex size-18 shrink-0 items-center justify-center",
344
346
  children: i
345
347
  }),
346
- m ? /* @__PURE__ */ T("span", {
348
+ g ? /* @__PURE__ */ E("span", {
347
349
  className: "sr-only",
348
350
  children: a
349
- }) : /* @__PURE__ */ T(ce, { label: a }),
350
- !m && o && /* @__PURE__ */ T(r, {
351
- icon: k,
351
+ }) : /* @__PURE__ */ E(ce, { label: a }),
352
+ !g && o && /* @__PURE__ */ E(r, {
353
+ icon: A,
352
354
  size: "sm",
353
355
  className: "text-fg-tertiary transition-control group-hover/place:text-fg-secondary"
354
356
  })
355
- ] }), y = {
356
- className: _,
357
- ...p ? { "data-force": p } : {}
357
+ ] }), O = {
358
+ className: C,
359
+ ...h ? { "data-force": h } : {}
358
360
  };
359
- if (o) return /* @__PURE__ */ T(K, {
361
+ if (o) return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(q, {
360
362
  side: "bottom",
361
363
  header: l,
362
364
  footer: u,
363
- trigger: /* @__PURE__ */ T("button", {
365
+ trigger: /* @__PURE__ */ E("button", {
364
366
  type: "button",
365
- "aria-label": d ?? h("sidebar.switchPlace", "{label}: switch", { label: a }),
366
- ...y,
367
- children: v
367
+ ...S,
368
+ ...O,
369
+ children: w
368
370
  }),
369
371
  children: o
370
- });
371
- let b = c ? /* @__PURE__ */ T(g, {
372
+ }), x.node] });
373
+ let k = c ? /* @__PURE__ */ E(v, {
372
374
  href: c,
373
- ...d ? { "aria-label": d } : {},
374
- ...y,
375
- children: v
376
- }) : /* @__PURE__ */ T("div", {
377
- ...y,
378
- children: v
375
+ ...S,
376
+ ...O,
377
+ children: w
378
+ }) : /* @__PURE__ */ E("div", {
379
+ ...O,
380
+ children: w
379
381
  });
380
- return m ? /* @__PURE__ */ T(s, {
382
+ return /* @__PURE__ */ D(T, { children: [g ? /* @__PURE__ */ E(s, {
381
383
  content: a,
382
384
  side: "right",
383
- children: b
384
- }) : b;
385
+ children: k
386
+ }) : k, c && x.node] });
385
387
  }
386
- process.env.NODE_ENV !== "production" && (J.displayName = "Sidebar.Place");
388
+ process.env.NODE_ENV !== "production" && (Y.displayName = "Sidebar.Place");
387
389
  function ce({ label: e }) {
388
- let t = x(null), [n, r] = S(!1);
389
- return y(() => {
390
+ let t = S(null), [n, r] = C(!1);
391
+ return b(() => {
390
392
  let e = t.current;
391
393
  if (!e || typeof ResizeObserver > "u") return;
392
394
  let n = () => r(e.scrollWidth > e.clientWidth);
393
395
  return n(), l([e], n);
394
- }, [e]), /* @__PURE__ */ T(s, {
396
+ }, [e]), /* @__PURE__ */ E(s, {
395
397
  content: e,
396
398
  side: "right",
397
399
  disabled: !n,
398
- children: /* @__PURE__ */ T("span", {
400
+ children: /* @__PURE__ */ E("span", {
399
401
  ref: t,
400
402
  className: "min-w-0 flex-1 truncate",
401
403
  children: e
402
404
  })
403
405
  });
404
406
  }
405
- var Y = /* @__PURE__ */ m(function({ className: t, ...n }, r) {
406
- let { rail: i } = L();
407
- return /* @__PURE__ */ T("div", {
407
+ var X = /* @__PURE__ */ g(function({ className: t, ...n }, r) {
408
+ let { rail: i } = R();
409
+ return /* @__PURE__ */ E("div", {
408
410
  ref: r,
409
411
  className: e("flex min-h-0 flex-1 flex-col gap-16 overflow-y-auto overscroll-contain pt-8 pb-16 scrollbar-quiet", i ? "px-8" : "px-16", t),
410
412
  ...n
411
413
  });
412
414
  });
413
- process.env.NODE_ENV !== "production" && (Y.displayName = "Sidebar.Content");
414
- var X = /* @__PURE__ */ m(function({ className: t, ...n }, r) {
415
- let { rail: i } = L();
416
- return /* @__PURE__ */ T("div", {
415
+ process.env.NODE_ENV !== "production" && (X.displayName = "Sidebar.Content");
416
+ var Z = /* @__PURE__ */ g(function({ className: t, ...n }, r) {
417
+ let { rail: i } = R();
418
+ return /* @__PURE__ */ E("div", {
417
419
  ref: r,
418
420
  className: e("flex shrink-0 items-center gap-4 pt-8 pb-12", i ? "px-8" : "px-16", t),
419
421
  ...n
420
422
  });
421
423
  });
422
- process.env.NODE_ENV !== "production" && (X.displayName = "Sidebar.Footer");
423
- var Z = /* @__PURE__ */ m(function({ label: t, id: n, defaultOpen: r = !0, collapsible: i = !0, children: a, className: o }, s) {
424
- let { storageKey: c, rail: l } = L(), [u, d] = N(c && n ? `${c}:group:${n}` : void 0, r);
425
- return !t || !i || l ? /* @__PURE__ */ E("div", {
424
+ process.env.NODE_ENV !== "production" && (Z.displayName = "Sidebar.Footer");
425
+ var Q = /* @__PURE__ */ g(function({ label: t, id: n, defaultOpen: r = !0, collapsible: i = !0, children: a, className: o }, s) {
426
+ let { storageKey: c, rail: l } = R(), [u, d] = P(c && n ? `${c}:group:${n}` : void 0, r);
427
+ return !t || !i || l ? /* @__PURE__ */ D("div", {
426
428
  ref: s,
427
429
  role: "group",
428
430
  className: e("flex flex-col", o),
429
- children: [t && !l && /* @__PURE__ */ T("div", {
431
+ children: [t && !l && /* @__PURE__ */ E("div", {
430
432
  className: "flex h-28 items-center px-12 text-caption font-medium text-fg-secondary",
431
433
  children: t
432
- }), /* @__PURE__ */ T("ul", {
434
+ }), /* @__PURE__ */ E("ul", {
433
435
  className: "flex flex-col gap-2",
434
436
  children: a
435
437
  })]
436
- }) : /* @__PURE__ */ E(A.Root, {
438
+ }) : /* @__PURE__ */ D(j.Root, {
437
439
  ref: s,
438
440
  open: u,
439
441
  onOpenChange: (e) => d(e),
440
442
  className: e("flex flex-col", o),
441
- children: [/* @__PURE__ */ E(A.Trigger, {
443
+ children: [/* @__PURE__ */ D(j.Trigger, {
442
444
  className: "group/gl relative -mx-0 flex h-28 w-full cursor-pointer items-center gap-4 rounded-pill px-12 text-left text-caption font-medium text-fg-secondary transition-control hover:text-fg focus-ring tap-target",
443
- children: [/* @__PURE__ */ T("span", { children: t }), /* @__PURE__ */ T("svg", {
445
+ children: [/* @__PURE__ */ E("span", { children: t }), /* @__PURE__ */ E("svg", {
444
446
  viewBox: "0 0 8 8",
445
447
  className: "size-8 text-fg-tertiary transition-transform duration-180 group-data-panel-open/gl:rotate-90",
446
448
  "aria-hidden": !0,
447
- children: /* @__PURE__ */ T("path", {
449
+ children: /* @__PURE__ */ E("path", {
448
450
  d: "M2.5 1.5 5.5 4l-3 2.5z",
449
451
  fill: "currentColor"
450
452
  })
451
453
  })]
452
- }), /* @__PURE__ */ T(A.Panel, {
454
+ }), /* @__PURE__ */ E(j.Panel, {
453
455
  className: "collapse-motion",
454
- children: /* @__PURE__ */ T("ul", {
456
+ children: /* @__PURE__ */ E("ul", {
455
457
  className: "flex flex-col gap-2 pt-2",
456
458
  children: a
457
459
  })
458
460
  })]
459
461
  });
460
462
  });
461
- process.env.NODE_ENV !== "production" && (Z.displayName = "Sidebar.Group");
463
+ process.env.NODE_ENV !== "production" && (Q.displayName = "Sidebar.Group");
462
464
  var le = [
463
465
  "",
464
466
  "pl-32",
465
467
  "pl-52"
466
- ], Q = /* @__PURE__ */ m(function({ children: n, icon: i, leading: a, href: o, onClick: c, active: l, count: u, trailing: d, depth: f = 0, shortcut: p, className: m, "data-force": h }, g) {
467
- let { rail: _ } = L(), v = t(), y = e("group/si flex h-32 w-full min-w-0 cursor-pointer items-center gap-8 rounded-pill px-12 text-left text-body font-medium transition-control focus-ring-inset", l ? F.item.active.classes : F.item.default.classes, !_ && le[f], _ && "justify-center px-0", m), b = /* @__PURE__ */ E(w, { children: [
468
- a ? /* @__PURE__ */ T("span", {
468
+ ], $ = /* @__PURE__ */ g(function({ children: n, icon: i, leading: a, href: o, onClick: c, active: l, count: u, trailing: d, depth: f = 0, shortcut: p, className: m, "data-force": h }, g) {
469
+ let { rail: _ } = R(), v = t(), y = e("group/si flex h-32 w-full min-w-0 cursor-pointer items-center gap-8 rounded-pill px-12 text-left text-body font-medium transition-control focus-ring-inset", l ? I.item.active.classes : I.item.default.classes, !_ && le[f], _ && "justify-center px-0", m), b = /* @__PURE__ */ D(T, { children: [
470
+ a ? /* @__PURE__ */ E("span", {
469
471
  className: "flex size-18 shrink-0 items-center justify-center",
470
472
  children: a
471
- }) : i && /* @__PURE__ */ T(r, {
473
+ }) : i && /* @__PURE__ */ E(r, {
472
474
  icon: i,
473
475
  size: "md",
474
476
  className: e("text-fg-secondary transition-control group-hover/si:text-fg", l && "text-fg")
475
477
  }),
476
- !_ && /* @__PURE__ */ T("span", {
478
+ _ ? /* @__PURE__ */ E("span", {
479
+ className: "sr-only",
480
+ children: n
481
+ }) : /* @__PURE__ */ E("span", {
477
482
  className: "min-w-0 flex-1 truncate",
478
483
  children: n
479
484
  }),
480
- !_ && u !== void 0 && /* @__PURE__ */ T("span", {
485
+ !_ && u !== void 0 && /* @__PURE__ */ E("span", {
481
486
  className: e("text-caption font-medium tabular", l ? "text-fg" : "text-fg-tertiary"),
482
487
  children: u
483
488
  }),
@@ -485,24 +490,23 @@ var le = [
485
490
  ] }), x = {
486
491
  className: y,
487
492
  ...l ? { "aria-current": "page" } : {},
488
- ...h ? { "data-force": h } : {},
489
- ..._ && typeof n == "string" ? { "aria-label": n } : {}
490
- }, S = o ? /* @__PURE__ */ T(v, {
493
+ ...h ? { "data-force": h } : {}
494
+ }, S = o ? /* @__PURE__ */ E(v, {
491
495
  ref: g,
492
496
  href: o,
493
497
  ...x,
494
498
  ...c ? { onClick: c } : {},
495
499
  children: b
496
- }) : /* @__PURE__ */ T("button", {
500
+ }) : /* @__PURE__ */ E("button", {
497
501
  ref: g,
498
502
  type: "button",
499
503
  ...x,
500
504
  ...c ? { onClick: c } : {},
501
505
  children: b
502
506
  });
503
- return /* @__PURE__ */ T("li", {
507
+ return /* @__PURE__ */ E("li", {
504
508
  className: "flex",
505
- children: _ ? /* @__PURE__ */ T(s, {
509
+ children: _ ? /* @__PURE__ */ E(s, {
506
510
  content: n,
507
511
  side: "right",
508
512
  ...p ? { shortcut: p } : {},
@@ -510,90 +514,90 @@ var le = [
510
514
  }) : S
511
515
  });
512
516
  });
513
- process.env.NODE_ENV !== "production" && (Q.displayName = "Sidebar.Item");
514
- var $ = /* @__PURE__ */ m(function({ href: i, children: a, className: o }, s) {
517
+ process.env.NODE_ENV !== "production" && ($.displayName = "Sidebar.Item");
518
+ var ue = /* @__PURE__ */ g(function({ href: i, children: a, className: o }, s) {
515
519
  let c = t(), l = n();
516
- return /* @__PURE__ */ E(c, {
520
+ return /* @__PURE__ */ D(c, {
517
521
  ref: s,
518
522
  href: i,
519
523
  className: e("flex h-32 items-center gap-8 rounded-pill px-12 text-body font-medium text-fg-secondary transition-control hover:bg-fill-2 hover:text-fg focus-ring-inset", o),
520
- children: [/* @__PURE__ */ T(r, {
521
- icon: D,
524
+ children: [/* @__PURE__ */ E(r, {
525
+ icon: O,
522
526
  size: "md"
523
527
  }), a ?? l("sidebar.backToApp", "Back to app")]
524
528
  });
525
529
  });
526
- process.env.NODE_ENV !== "production" && ($.displayName = "Sidebar.BackLink");
527
- function ue({ rows: e = 5 }) {
528
- return /* @__PURE__ */ T("div", {
530
+ process.env.NODE_ENV !== "production" && (ue.displayName = "Sidebar.BackLink");
531
+ function de({ rows: e = 5 }) {
532
+ return /* @__PURE__ */ E("div", {
529
533
  className: "flex flex-col gap-2",
530
534
  "aria-busy": !0,
531
- children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ E("div", {
535
+ children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ D("div", {
532
536
  className: "flex h-32 items-center gap-8 px-12",
533
- children: [/* @__PURE__ */ T(d, { className: "size-18 rounded-pill" }), /* @__PURE__ */ T(d, {
537
+ children: [/* @__PURE__ */ E(d, { className: "size-18 rounded-pill" }), /* @__PURE__ */ E(d, {
534
538
  className: "h-12 rounded-pill",
535
539
  style: { width: `${48 + t * 37 % 40}%` }
536
540
  })]
537
541
  }, t))
538
542
  });
539
543
  }
540
- process.env.NODE_ENV !== "production" && (ue.displayName = "Sidebar.Loading");
541
- function de({ className: t }) {
542
- let { collapsed: i, setCollapsed: a } = L(), o = g(z), c = n(), l = o ? o.peek ? c("sidebar.keepOpen", "Keep sidebar open") : c("sidebar.closeNavigation", "Close navigation") : i ? c("sidebar.expand", "Expand sidebar") : c("sidebar.collapse", "Collapse sidebar"), u = () => {
544
+ process.env.NODE_ENV !== "production" && (de.displayName = "Sidebar.Loading");
545
+ function fe({ className: t }) {
546
+ let { collapsed: i, setCollapsed: a } = R(), o = v(B), c = n(), l = o ? o.peek ? c("sidebar.keepOpen", "Keep sidebar open") : c("sidebar.closeNavigation", "Close navigation") : i ? c("sidebar.expand", "Expand sidebar") : c("sidebar.collapse", "Collapse sidebar"), u = () => {
543
547
  o?.peek ? a(!1) : o ? o.close() : a(!i);
544
548
  };
545
- return /* @__PURE__ */ T(s, {
549
+ return /* @__PURE__ */ E(s, {
546
550
  content: l,
547
551
  ...o && !o.peek ? {} : { shortcut: ["["] },
548
- children: /* @__PURE__ */ T("button", {
552
+ children: /* @__PURE__ */ E("button", {
549
553
  type: "button",
550
554
  "aria-label": l,
551
555
  ...o ? {} : { "aria-expanded": !i },
552
556
  onClick: u,
553
557
  className: e("inline-flex size-32 cursor-pointer items-center justify-center rounded-pill text-fg-secondary transition-control hover:bg-fill-2 hover:text-fg focus-ring", t),
554
- children: /* @__PURE__ */ T(r, {
555
- icon: O,
558
+ children: /* @__PURE__ */ E(r, {
559
+ icon: k,
556
560
  size: "sm"
557
561
  })
558
562
  })
559
563
  });
560
564
  }
561
- process.env.NODE_ENV !== "production" && (de.displayName = "Sidebar.CollapseToggle");
562
- function fe({ className: t }) {
563
- let { rail: i, setRail: a } = L(), o = n(), c = i ? o("sidebar.expand", "Expand sidebar") : o("sidebar.collapse", "Collapse sidebar");
564
- return /* @__PURE__ */ T(s, {
565
+ process.env.NODE_ENV !== "production" && (fe.displayName = "Sidebar.CollapseToggle");
566
+ function pe({ className: t }) {
567
+ let { rail: i, setRail: a } = R(), o = n(), c = i ? o("sidebar.expand", "Expand sidebar") : o("sidebar.collapse", "Collapse sidebar");
568
+ return /* @__PURE__ */ E(s, {
565
569
  content: c,
566
570
  side: "right",
567
- children: /* @__PURE__ */ T("button", {
571
+ children: /* @__PURE__ */ E("button", {
568
572
  type: "button",
569
573
  "aria-label": c,
570
574
  "aria-pressed": i,
571
575
  onClick: () => a(!i),
572
576
  className: e("inline-flex size-32 items-center justify-center rounded-pill text-fg-secondary transition-control hover:bg-fill-2 hover:text-fg focus-ring", t),
573
- children: /* @__PURE__ */ T(r, {
574
- icon: O,
577
+ children: /* @__PURE__ */ E(r, {
578
+ icon: k,
575
579
  size: "sm"
576
580
  })
577
581
  })
578
582
  });
579
583
  }
580
- process.env.NODE_ENV !== "production" && (fe.displayName = "Sidebar.RailToggle");
581
- var pe = /* @__PURE__ */ Object.assign(H, {
582
- Provider: B,
583
- Header: U,
584
- Brand: W,
585
- Switcher: q,
586
- Place: J,
587
- Content: Y,
588
- Footer: X,
589
- Group: Z,
590
- Item: Q,
591
- BackLink: $,
592
- Loading: ue,
593
- RailToggle: fe,
594
- CollapseToggle: de
584
+ process.env.NODE_ENV !== "production" && (pe.displayName = "Sidebar.RailToggle");
585
+ var me = /* @__PURE__ */ Object.assign(U, {
586
+ Provider: V,
587
+ Header: W,
588
+ Brand: G,
589
+ Switcher: J,
590
+ Place: Y,
591
+ Content: X,
592
+ Footer: Z,
593
+ Group: Q,
594
+ Item: $,
595
+ BackLink: ue,
596
+ Loading: de,
597
+ RailToggle: pe,
598
+ CollapseToggle: fe
595
599
  });
596
600
  //#endregion
597
- export { ae as a, z as c, oe as i, L as l, ie as n, pe as o, F as r, R as s, G as t };
601
+ export { ae as a, B as c, oe as i, R as l, ie as n, me as o, I as r, z as s, K as t };
598
602
 
599
- //# sourceMappingURL=sidebar-Dey1ZfGt.js.map
603
+ //# sourceMappingURL=sidebar-ZSTPK9Jn.js.map