@kb.ui/react 0.11.0 → 0.12.1

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 (81) hide show
  1. package/README.md +79 -66
  2. package/dist/components/ConfirmAction/ConfirmAction.d.ts +42 -0
  3. package/dist/components/Dashboard/Dashboard.d.ts +17 -0
  4. package/dist/components/Form/Form.d.ts +19 -0
  5. package/dist/components/FormSection/FormSection.d.ts +26 -0
  6. package/dist/components/Gallery/Gallery.d.ts +26 -0
  7. package/dist/components/PageHeader/PageHeader.d.ts +27 -0
  8. package/dist/components/Panel/Panel.d.ts +3 -1
  9. package/dist/components/Settings/Settings.d.ts +11 -0
  10. package/dist/components/Skeleton/Skeleton.d.ts +8 -6
  11. package/dist/components/Stack/Stack.d.ts +15 -0
  12. package/dist/components/StatsRow/StatsRow.d.ts +33 -0
  13. package/dist/components/SupportingPane/SupportingPane.d.ts +15 -0
  14. package/dist/index.d.ts +10 -0
  15. package/dist/index.js +718 -333
  16. package/dist/index.js.map +1 -1
  17. package/dist/styles.css +1 -1
  18. package/docs/components/Accordion.md +9 -9
  19. package/docs/components/Avatar.md +4 -4
  20. package/docs/components/Badge.md +4 -4
  21. package/docs/components/Button.md +8 -8
  22. package/docs/components/Callout.md +3 -3
  23. package/docs/components/Card.md +4 -4
  24. package/docs/components/Checkbox.md +5 -5
  25. package/docs/components/Code.md +2 -2
  26. package/docs/components/CodeBlock.md +7 -7
  27. package/docs/components/Collection.md +5 -5
  28. package/docs/components/CollectionList.md +6 -6
  29. package/docs/components/CollectionRow.md +11 -11
  30. package/docs/components/Combobox.md +3 -3
  31. package/docs/components/ConfirmAction.md +100 -0
  32. package/docs/components/Container.md +2 -2
  33. package/docs/components/CopyableText.md +9 -9
  34. package/docs/components/Dashboard.md +81 -0
  35. package/docs/components/DescriptionList.md +3 -3
  36. package/docs/components/Dialog.md +7 -7
  37. package/docs/components/Disclosure.md +4 -4
  38. package/docs/components/EmptyState.md +1 -1
  39. package/docs/components/ErrorSummary.md +5 -3
  40. package/docs/components/Fieldset.md +6 -6
  41. package/docs/components/FileInput.md +5 -5
  42. package/docs/components/Form.md +67 -0
  43. package/docs/components/FormActions.md +3 -3
  44. package/docs/components/FormSection.md +57 -0
  45. package/docs/components/Gallery.md +84 -0
  46. package/docs/components/Grid.md +13 -13
  47. package/docs/components/Heading.md +3 -3
  48. package/docs/components/Image.md +3 -3
  49. package/docs/components/Inline.md +3 -3
  50. package/docs/components/Input.md +3 -3
  51. package/docs/components/Link.md +2 -2
  52. package/docs/components/Menu.md +5 -5
  53. package/docs/components/MultiSelect.md +2 -2
  54. package/docs/components/NumberField.md +5 -5
  55. package/docs/components/PageHeader.md +68 -0
  56. package/docs/components/Panel.md +11 -3
  57. package/docs/components/Popover.md +9 -9
  58. package/docs/components/Progress.md +1 -1
  59. package/docs/components/RadioGroup.md +3 -3
  60. package/docs/components/ScrollArea.md +1 -1
  61. package/docs/components/Select.md +2 -2
  62. package/docs/components/Separator.md +3 -3
  63. package/docs/components/Settings.md +57 -0
  64. package/docs/components/Skeleton.md +56 -16
  65. package/docs/components/Spinner.md +9 -4
  66. package/docs/components/Split.md +4 -4
  67. package/docs/components/Stack.md +54 -0
  68. package/docs/components/Stat.md +1 -1
  69. package/docs/components/StatsRow.md +80 -0
  70. package/docs/components/Status.md +7 -6
  71. package/docs/components/SupportingPane.md +59 -0
  72. package/docs/components/Switch.md +5 -5
  73. package/docs/components/Table.md +12 -12
  74. package/docs/components/Tabs.md +10 -10
  75. package/docs/components/Text.md +2 -2
  76. package/docs/components/Textarea.md +4 -4
  77. package/docs/components/Thumbnail.md +7 -7
  78. package/docs/components/Toast.md +9 -9
  79. package/docs/components/Toolbar.md +4 -4
  80. package/docs/components/Tooltip.md +3 -3
  81. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1987,8 +1987,157 @@ var Re = (e) => `Remove ${e.label}`, ze = {
1987
1987
  });
1988
1988
  });
1989
1989
  //#endregion
1990
+ //#region src/components/Dialog/Dialog.tsx
1991
+ function Ue(e) {
1992
+ return /* @__PURE__ */ b(D.Root, { ...e });
1993
+ }
1994
+ function We(e) {
1995
+ return /* @__PURE__ */ b(D.Trigger, { ...e });
1996
+ }
1997
+ function Ge(e) {
1998
+ return /* @__PURE__ */ b(D.Close, { ...e });
1999
+ }
2000
+ function Ke({ className: e, ...t }) {
2001
+ return /* @__PURE__ */ b(D.Title, {
2002
+ ...t,
2003
+ className: v("kb-dialog-title", e)
2004
+ });
2005
+ }
2006
+ function qe({ className: e, ...t }) {
2007
+ return /* @__PURE__ */ b(D.Description, {
2008
+ ...t,
2009
+ className: v("kb-dialog-description", e)
2010
+ });
2011
+ }
2012
+ function Je({ className: e, ...t }) {
2013
+ return /* @__PURE__ */ b("div", {
2014
+ ...t,
2015
+ className: v("kb-dialog-actions", e)
2016
+ });
2017
+ }
2018
+ function Ye({ className: e, ...t }) {
2019
+ return /* @__PURE__ */ b("div", {
2020
+ ...t,
2021
+ className: v("kb-dialog-header", e)
2022
+ });
2023
+ }
2024
+ function Xe({ className: e, ...t }) {
2025
+ return /* @__PURE__ */ b("div", {
2026
+ ...t,
2027
+ className: v("kb-dialog-body", e)
2028
+ });
2029
+ }
2030
+ function Ze({ className: e, ...t }) {
2031
+ return /* @__PURE__ */ b("div", {
2032
+ ...t,
2033
+ className: v("kb-dialog-footer", e)
2034
+ });
2035
+ }
2036
+ function Qe({ layout: e = "center", classNames: t, title: n, description: r, container: i, children: a, className: o, ...s }) {
2037
+ let c = n != null && n !== "", l = r != null && r !== "", u = /* @__PURE__ */ x(y, { children: [c ? /* @__PURE__ */ b(Ke, { children: n }) : null, l ? /* @__PURE__ */ b(qe, { children: r }) : null] });
2038
+ return /* @__PURE__ */ x(D.Portal, {
2039
+ container: i,
2040
+ children: [/* @__PURE__ */ b(D.Backdrop, { className: v("kb-dialog-backdrop", t?.backdrop) }), /* @__PURE__ */ x(D.Popup, {
2041
+ ...s,
2042
+ "data-layout": e,
2043
+ className: v("kb-dialog-popup", o),
2044
+ children: [e === "drawer" && (c || l) ? /* @__PURE__ */ b(Ye, { children: u }) : u, a]
2045
+ })]
2046
+ });
2047
+ }
2048
+ var $e = Object.assign(Ue, {
2049
+ Trigger: We,
2050
+ Content: Qe,
2051
+ Title: Ke,
2052
+ Description: qe,
2053
+ Close: Ge,
2054
+ Actions: Je,
2055
+ Header: Ye,
2056
+ Body: Xe,
2057
+ Footer: Ze
2058
+ }), et = "The action did not complete. Try again.";
2059
+ function tt({ title: e, description: t, details: n, onConfirm: r, onConfirmed: i, confirmLabel: a, pendingLabel: o, cancelLabel: s = "Cancel", errorMessage: c = et, open: l, defaultOpen: u = !1, onOpenChange: f, finalFocus: p, container: m, classNames: h, className: y, children: S, render: C = /* @__PURE__ */ b(Z, { variant: "danger" }), ...w }) {
2060
+ let [T, E] = _(u), [D, O] = _(!1), [k, A] = _(null), j = g(null), M = g(!1), N = g(!1), P = g(!0), F = l ?? T, I = g(F), L = g(i), [R, z] = _(0);
2061
+ d(() => {
2062
+ I.current = F, L.current = i;
2063
+ }), d(() => (P.current = !0, () => {
2064
+ P.current = !1;
2065
+ }), []), d(() => {
2066
+ R > 0 && L.current?.();
2067
+ }, [R]);
2068
+ function B(e) {
2069
+ l === void 0 && E(e), f?.(e);
2070
+ }
2071
+ async function V() {
2072
+ if (!M.current) {
2073
+ M.current = !0, O(!0), A(null);
2074
+ try {
2075
+ if (await r(), !P.current) return;
2076
+ I.current ? (N.current = !0, B(!1)) : z((e) => e + 1);
2077
+ } catch (e) {
2078
+ P.current && A({ reason: e });
2079
+ } finally {
2080
+ M.current = !1, P.current && O(!1);
2081
+ }
2082
+ }
2083
+ }
2084
+ let U = a ?? S, W = k && (typeof c == "function" ? c(k.reason) : c);
2085
+ return /* @__PURE__ */ x($e, {
2086
+ open: F,
2087
+ disablePointerDismissal: !0,
2088
+ onOpenChange: (e, t) => {
2089
+ M.current ? t.cancel() : (N.current = !1, A(null), B(e));
2090
+ },
2091
+ onOpenChangeComplete: (e) => {
2092
+ N.current && (N.current = !1, e || z((e) => e + 1));
2093
+ },
2094
+ children: [/* @__PURE__ */ b($e.Trigger, {
2095
+ ...w,
2096
+ render: C,
2097
+ className: y,
2098
+ children: S
2099
+ }), /* @__PURE__ */ x($e.Content, {
2100
+ title: e,
2101
+ description: t,
2102
+ initialFocus: j,
2103
+ "aria-busy": D || void 0,
2104
+ ...p === void 0 ? {} : { finalFocus: p },
2105
+ ...m === void 0 ? {} : { container: m },
2106
+ ...h?.backdrop ? { classNames: { backdrop: h.backdrop } } : {},
2107
+ ...H("confirmaction", { pending: D }, h?.popup),
2108
+ children: [
2109
+ n == null ? null : /* @__PURE__ */ b("div", {
2110
+ className: v("kb-confirmaction-details", h?.details),
2111
+ children: n
2112
+ }),
2113
+ k ? /* @__PURE__ */ b(re, {
2114
+ tone: "danger",
2115
+ role: "alert",
2116
+ className: v("kb-confirmaction-error", h?.error),
2117
+ children: W
2118
+ }) : null,
2119
+ /* @__PURE__ */ x($e.Actions, { children: [/* @__PURE__ */ b($e.Close, {
2120
+ ref: j,
2121
+ render: /* @__PURE__ */ b(Z, {
2122
+ variant: "ghost",
2123
+ disabled: D,
2124
+ focusableWhenDisabled: !0
2125
+ }),
2126
+ children: s
2127
+ }), /* @__PURE__ */ b(Z, {
2128
+ variant: "danger",
2129
+ disabled: D,
2130
+ focusableWhenDisabled: !0,
2131
+ onClick: () => void V(),
2132
+ children: D ? o ?? U : U
2133
+ })] })
2134
+ ]
2135
+ })]
2136
+ });
2137
+ }
2138
+ //#endregion
1990
2139
  //#region src/components/Container/Container.tsx
1991
- function Ue({ as: e, size: t = "lg", gutter: n = !0, className: r, ...i }) {
2140
+ function nt({ as: e, size: t = "lg", gutter: n = !0, className: r, ...i }) {
1992
2141
  return o(e ?? "div", {
1993
2142
  ...i,
1994
2143
  "data-gutter": void 0,
@@ -2000,27 +2149,27 @@ function Ue({ as: e, size: t = "lg", gutter: n = !0, className: r, ...i }) {
2000
2149
  }
2001
2150
  //#endregion
2002
2151
  //#region src/components/Link/Link.tsx
2003
- var We = a("a");
2004
- function Ge({ component: e, children: t }) {
2005
- return /* @__PURE__ */ b(We.Provider, {
2152
+ var rt = a("a");
2153
+ function it({ component: e, children: t }) {
2154
+ return /* @__PURE__ */ b(rt.Provider, {
2006
2155
  value: e,
2007
2156
  children: t
2008
2157
  });
2009
2158
  }
2010
- function Ke() {
2011
- return u(We);
2159
+ function at() {
2160
+ return u(rt);
2012
2161
  }
2013
- function qe({ className: e, ...t }) {
2014
- let n = Ke();
2162
+ function ot({ className: e, ...t }) {
2163
+ let n = at();
2015
2164
  return /* @__PURE__ */ b(n, {
2016
2165
  ...t,
2017
2166
  ...H("link", {}, e)
2018
2167
  });
2019
2168
  }
2020
- var Je = Object.assign(qe, { Provider: Ge });
2169
+ var st = Object.assign(ot, { Provider: it });
2021
2170
  //#endregion
2022
2171
  //#region src/components/CopyableText/content.tsx
2023
- function Ye(e, t) {
2172
+ function ct(e, t) {
2024
2173
  let n = (typeof t == "string" ? [t] : t ?? []).filter(Boolean), r = [], i = 0;
2025
2174
  for (; i < e.length;) {
2026
2175
  let t;
@@ -2038,7 +2187,7 @@ function Ye(e, t) {
2038
2187
  }
2039
2188
  return r;
2040
2189
  }
2041
- function Xe(e) {
2190
+ function lt(e) {
2042
2191
  let t = [];
2043
2192
  for (let n of e.matchAll(/(?:https?:\/\/|www\.)[^\s<>"'`\p{Cc}\u2018\u2019\u201c\u201d]+/giu)) {
2044
2193
  if (/[a-z0-9@_.-]/i.test(e[n.index - 1] ?? "")) continue;
@@ -2072,7 +2221,7 @@ function Xe(e) {
2072
2221
  }
2073
2222
  return t.sort((e, t) => e.start - t.start);
2074
2223
  }
2075
- var Ze = {
2224
+ var ut = {
2076
2225
  ts: "ts",
2077
2226
  tsx: "tsx",
2078
2227
  typescript: "ts",
@@ -2088,11 +2237,11 @@ var Ze = {
2088
2237
  text: "plain",
2089
2238
  plain: "plain"
2090
2239
  };
2091
- function Qe(e) {
2240
+ function dt(e) {
2092
2241
  let t = e.trim(), n = /^```([^\s`]*)[^\S\r\n]*\r?\n[\s\S]*\r?\n```$/.exec(t);
2093
2242
  if (n) {
2094
2243
  let e = n[1]?.toLowerCase() ?? "";
2095
- return Object.hasOwn(Ze, e) ? Ze[e] : "plain";
2244
+ return Object.hasOwn(ut, e) ? ut[e] : "plain";
2096
2245
  }
2097
2246
  if (/^[{[]/.test(t)) try {
2098
2247
  return JSON.parse(t), "json";
@@ -2103,8 +2252,8 @@ function Qe(e) {
2103
2252
  if (/^(?:(?:\$\s+)?(?:bun|npm|pnpm|yarn)\s+(?:add|install|run|test|exec|dlx|build)\b|(?:\$\s+)?git\s+(?:status|diff|log|add|commit|push|pull|fetch|checkout|switch|clone)\b|(?:\$\s+)?curl\s+(?:-|https?:\/\/))/.test(t)) return "bash";
2104
2253
  if (/^(?:[.#@][\w-]|[a-z][\w-]*[\s:#.])[\s\S]*\{\s*[\w-]+\s*:/i.test(t)) return "css";
2105
2254
  }
2106
- function $e(e, t) {
2107
- let n = Ye(e, t.highlight);
2255
+ function ft(e, t) {
2256
+ let n = ct(e, t.highlight);
2108
2257
  if (!t.linkify && !t.detectCode && !t.codeLanguage && n.length === 0) return e;
2109
2258
  let r = (r, i) => {
2110
2259
  if (r >= i) return null;
@@ -2140,14 +2289,14 @@ function $e(e, t) {
2140
2289
  let a = t.detectCode ? [...e.matchAll(/`([^`\r\n]+)`/g)].map((e) => ({
2141
2290
  start: e.index,
2142
2291
  end: e.index + e[0].length
2143
- })) : [], o = t.linkify ? Xe(e).filter((e) => !a.some((t) => e.start < t.end && e.end > t.start)) : [], s = [...a.map((e) => ({
2292
+ })) : [], o = t.linkify ? lt(e).filter((e) => !a.some((t) => e.start < t.end && e.end > t.start)) : [], s = [...a.map((e) => ({
2144
2293
  ...e,
2145
2294
  kind: "code"
2146
2295
  })), ...o.map((e) => ({
2147
2296
  ...e,
2148
2297
  kind: "link"
2149
2298
  }))].sort((e, t) => e.start - t.start), c = [], l = 0;
2150
- for (let n of s) c.push(r(l, n.start)), n.kind === "code" ? c.push(i(n.start, n.end, Qe(e.slice(n.start + 1, n.end - 1)) ?? "plain")) : c.push(/* @__PURE__ */ b(Je, {
2299
+ for (let n of s) c.push(r(l, n.start)), n.kind === "code" ? c.push(i(n.start, n.end, dt(e.slice(n.start + 1, n.end - 1)) ?? "plain")) : c.push(/* @__PURE__ */ b(st, {
2151
2300
  href: n.href,
2152
2301
  className: v("kb-copyabletext-link", t.linkClassName),
2153
2302
  children: r(n.start, n.end)
@@ -2156,8 +2305,8 @@ function $e(e, t) {
2156
2305
  }
2157
2306
  //#endregion
2158
2307
  //#region src/components/CopyableText/CopyableText.tsx
2159
- function et({ value: e, label: t, appearance: n = "field", size: r = "md", mono: i = !0, tone: a = "neutral", truncate: o = !1, expandLabel: s = "Show full value", collapseLabel: c = "Show less", highlight: l, linkify: u, format: p = "auto", language: m, copyLabel: h = "Copy", copyingLabel: g = "Copying…", copiedLabel: y = "Copied", copyErrorLabel: S = "Retry copy", successMessage: C = "Copied to clipboard", errorMessage: w = "Copy failed. Select and copy the text manually.", disabled: T, feedbackDuration: E, onCopy: D, onCopyError: O, className: k, classNames: A, children: j, ...M }) {
2160
- let N = f(), P = p === "text" ? void 0 : m ?? (p === "code" ? "tsx" : Qe(e)), [F, I] = _({
2308
+ function pt({ value: e, label: t, appearance: n = "field", size: r = "md", mono: i = !0, tone: a = "neutral", truncate: o = !1, expandLabel: s = "Show full value", collapseLabel: c = "Show less", highlight: l, linkify: u, format: p = "auto", language: m, copyLabel: h = "Copy", copyingLabel: g = "Copying…", copiedLabel: y = "Copied", copyErrorLabel: S = "Retry copy", successMessage: C = "Copied to clipboard", errorMessage: w = "Copy failed. Select and copy the text manually.", disabled: T, feedbackDuration: E, onCopy: D, onCopyError: O, className: k, classNames: A, children: j, ...M }) {
2309
+ let N = f(), P = p === "text" ? void 0 : m ?? (p === "code" ? "tsx" : dt(e)), [F, I] = _({
2161
2310
  value: e,
2162
2311
  open: !1
2163
2312
  }), L = o && F.value === e && F.open;
@@ -2203,7 +2352,7 @@ function et({ value: e, label: t, appearance: n = "field", size: r = "md", mono:
2203
2352
  /* @__PURE__ */ b("span", {
2204
2353
  className: v("kb-copyabletext-value", A?.value),
2205
2354
  id: N,
2206
- children: j != null && !L && R.state !== "failed" ? j : $e(e, {
2355
+ children: j != null && !L && R.state !== "failed" ? j : ft(e, {
2207
2356
  highlight: l,
2208
2357
  linkify: (u ?? p !== "text") && (!o || L),
2209
2358
  detectCode: p !== "text",
@@ -2245,8 +2394,35 @@ function et({ value: e, label: t, appearance: n = "field", size: r = "md", mono:
2245
2394
  });
2246
2395
  }
2247
2396
  //#endregion
2397
+ //#region src/components/Dashboard/Dashboard.tsx
2398
+ var mt = ({ ref: e, header: t, metrics: n, primary: r, secondary: i, className: a, classNames: o, ...s }) => /* @__PURE__ */ x("div", {
2399
+ ...s,
2400
+ ref: e,
2401
+ ...H("dashboard", {}, a),
2402
+ children: [
2403
+ t ? /* @__PURE__ */ b("div", {
2404
+ className: v("kb-dashboard-header", o?.header),
2405
+ children: t
2406
+ }) : null,
2407
+ n ? /* @__PURE__ */ b("div", {
2408
+ className: v("kb-dashboard-metrics", o?.metrics),
2409
+ children: n
2410
+ }) : null,
2411
+ r || i ? /* @__PURE__ */ x("div", {
2412
+ className: v("kb-dashboard-panels", o?.panels),
2413
+ children: [r ? /* @__PURE__ */ b("div", {
2414
+ className: v("kb-dashboard-primary", o?.primary),
2415
+ children: r
2416
+ }) : null, i ? /* @__PURE__ */ b("div", {
2417
+ className: v("kb-dashboard-secondary", o?.secondary),
2418
+ children: i
2419
+ }) : null]
2420
+ }) : null
2421
+ ]
2422
+ });
2423
+ //#endregion
2248
2424
  //#region src/components/DescriptionList/DescriptionList.tsx
2249
- function tt({ layout: e = "responsive", density: t = "comfortable", dividers: n = !0, className: r, ...i }) {
2425
+ function ht({ layout: e = "responsive", density: t = "comfortable", dividers: n = !0, className: r, ...i }) {
2250
2426
  return /* @__PURE__ */ b("dl", {
2251
2427
  ...i,
2252
2428
  ...H("descriptionlist", {
@@ -2256,114 +2432,44 @@ function tt({ layout: e = "responsive", density: t = "comfortable", dividers: n
2256
2432
  }, r)
2257
2433
  });
2258
2434
  }
2259
- function nt({ className: e, ...t }) {
2435
+ function gt({ className: e, ...t }) {
2260
2436
  return /* @__PURE__ */ b("div", {
2261
2437
  ...t,
2262
2438
  ...H("descriptionlist-item", {}, e)
2263
2439
  });
2264
2440
  }
2265
- function rt({ className: e, ...t }) {
2441
+ function _t({ className: e, ...t }) {
2266
2442
  return /* @__PURE__ */ b("dt", {
2267
2443
  ...t,
2268
2444
  ...H("descriptionlist-term", {}, e)
2269
2445
  });
2270
2446
  }
2271
- function it({ className: e, ...t }) {
2447
+ function vt({ className: e, ...t }) {
2272
2448
  return /* @__PURE__ */ b("dd", {
2273
2449
  ...t,
2274
2450
  ...H("descriptionlist-detail", {}, e)
2275
2451
  });
2276
2452
  }
2277
- var at = Object.assign(tt, {
2278
- Item: nt,
2279
- Term: rt,
2280
- Detail: it
2281
- });
2282
- //#endregion
2283
- //#region src/components/Dialog/Dialog.tsx
2284
- function ot(e) {
2285
- return /* @__PURE__ */ b(D.Root, { ...e });
2286
- }
2287
- function st(e) {
2288
- return /* @__PURE__ */ b(D.Trigger, { ...e });
2289
- }
2290
- function ct(e) {
2291
- return /* @__PURE__ */ b(D.Close, { ...e });
2292
- }
2293
- function lt({ className: e, ...t }) {
2294
- return /* @__PURE__ */ b(D.Title, {
2295
- ...t,
2296
- className: v("kb-dialog-title", e)
2297
- });
2298
- }
2299
- function ut({ className: e, ...t }) {
2300
- return /* @__PURE__ */ b(D.Description, {
2301
- ...t,
2302
- className: v("kb-dialog-description", e)
2303
- });
2304
- }
2305
- function dt({ className: e, ...t }) {
2306
- return /* @__PURE__ */ b("div", {
2307
- ...t,
2308
- className: v("kb-dialog-actions", e)
2309
- });
2310
- }
2311
- function ft({ className: e, ...t }) {
2312
- return /* @__PURE__ */ b("div", {
2313
- ...t,
2314
- className: v("kb-dialog-header", e)
2315
- });
2316
- }
2317
- function pt({ className: e, ...t }) {
2318
- return /* @__PURE__ */ b("div", {
2319
- ...t,
2320
- className: v("kb-dialog-body", e)
2321
- });
2322
- }
2323
- function mt({ className: e, ...t }) {
2324
- return /* @__PURE__ */ b("div", {
2325
- ...t,
2326
- className: v("kb-dialog-footer", e)
2327
- });
2328
- }
2329
- function ht({ layout: e = "center", classNames: t, title: n, description: r, container: i, children: a, className: o, ...s }) {
2330
- let c = n != null && n !== "", l = r != null && r !== "", u = /* @__PURE__ */ x(y, { children: [c ? /* @__PURE__ */ b(lt, { children: n }) : null, l ? /* @__PURE__ */ b(ut, { children: r }) : null] });
2331
- return /* @__PURE__ */ x(D.Portal, {
2332
- container: i,
2333
- children: [/* @__PURE__ */ b(D.Backdrop, { className: v("kb-dialog-backdrop", t?.backdrop) }), /* @__PURE__ */ x(D.Popup, {
2334
- ...s,
2335
- "data-layout": e,
2336
- className: v("kb-dialog-popup", o),
2337
- children: [e === "drawer" && (c || l) ? /* @__PURE__ */ b(ft, { children: u }) : u, a]
2338
- })]
2339
- });
2340
- }
2341
- var gt = Object.assign(ot, {
2342
- Trigger: st,
2343
- Content: ht,
2344
- Title: lt,
2345
- Description: ut,
2346
- Close: ct,
2347
- Actions: dt,
2348
- Header: ft,
2349
- Body: pt,
2350
- Footer: mt
2453
+ var yt = Object.assign(ht, {
2454
+ Item: gt,
2455
+ Term: _t,
2456
+ Detail: vt
2351
2457
  });
2352
2458
  //#endregion
2353
2459
  //#region src/components/Disclosure/Disclosure.tsx
2354
- function _t({ className: e, ...t }) {
2460
+ function bt({ className: e, ...t }) {
2355
2461
  return /* @__PURE__ */ b(O.Root, {
2356
2462
  ...t,
2357
2463
  ...H("disclosure", {}, e)
2358
2464
  });
2359
2465
  }
2360
- function vt({ className: e, ...t }) {
2466
+ function xt({ className: e, ...t }) {
2361
2467
  return /* @__PURE__ */ b(O.Trigger, {
2362
2468
  ...t,
2363
2469
  ...H("disclosure-trigger", {}, e)
2364
2470
  });
2365
2471
  }
2366
- function yt({ className: e, children: t, render: n, ...r }) {
2472
+ function St({ className: e, children: t, render: n, ...r }) {
2367
2473
  return /* @__PURE__ */ b(O.Panel, {
2368
2474
  ...r,
2369
2475
  ...H("disclosure-panel", {}, e),
@@ -2378,16 +2484,16 @@ function yt({ className: e, children: t, render: n, ...r }) {
2378
2484
  })
2379
2485
  });
2380
2486
  }
2381
- var bt = Object.assign(_t, {
2382
- Trigger: vt,
2383
- Panel: yt
2384
- }), xt = {
2487
+ var Ct = Object.assign(bt, {
2488
+ Trigger: xt,
2489
+ Panel: St
2490
+ }), wt = {
2385
2491
  2: "h2",
2386
2492
  3: "h3",
2387
2493
  4: "h4"
2388
2494
  };
2389
- function St({ title: e, description: t, eyebrow: n, icon: r, actions: i, footer: a, headingLevel: o = 3, size: s = "md", variant: c = "surface", tone: l = "neutral", live: u = !1, className: d, classNames: f, children: p, ...m }) {
2390
- let h = xt[o];
2495
+ function Tt({ title: e, description: t, eyebrow: n, icon: r, actions: i, footer: a, headingLevel: o = 3, size: s = "md", variant: c = "surface", tone: l = "neutral", live: u = !1, className: d, classNames: f, children: p, ...m }) {
2496
+ let h = wt[o];
2391
2497
  return /* @__PURE__ */ x("div", {
2392
2498
  ...m,
2393
2499
  ...u ? { role: "status" } : {},
@@ -2436,14 +2542,14 @@ function St({ title: e, description: t, eyebrow: n, icon: r, actions: i, footer:
2436
2542
  }
2437
2543
  //#endregion
2438
2544
  //#region src/components/ErrorSummary/ErrorSummary.tsx
2439
- var Ct = [
2545
+ var Et = [
2440
2546
  "input:not(:disabled):not([type='hidden']):not([hidden]):not([tabindex='-1']):not([aria-hidden='true'])",
2441
2547
  "textarea:not(:disabled):not([hidden]):not([tabindex='-1']):not([aria-hidden='true'])",
2442
2548
  "select:not(:disabled):not([hidden]):not([tabindex='-1']):not([aria-hidden='true'])",
2443
2549
  "button:not(:disabled):not([hidden]):not([tabindex='-1']):not([aria-hidden='true'])",
2444
2550
  "[tabindex]:not([tabindex='-1']):not(:disabled):not([hidden]):not([aria-hidden='true']):not([aria-disabled='true'])"
2445
2551
  ].join(", ");
2446
- function wt(e, t) {
2552
+ function Dt(e, t) {
2447
2553
  if (!t.startsWith("#") || t.length < 2) return !1;
2448
2554
  let n = t.slice(1), r = n;
2449
2555
  try {
@@ -2453,10 +2559,10 @@ function wt(e, t) {
2453
2559
  }
2454
2560
  let i = e.getElementById(r);
2455
2561
  if (!i) return !1;
2456
- let a = i.matches(Ct) ? i : i.querySelector(Ct) ?? (i.hasAttribute("tabindex") && !i.matches(":disabled") && !i.hidden ? i : null);
2562
+ let a = i.matches(Et) ? i : i.querySelector(Et) ?? (i.hasAttribute("tabindex") && !i.matches(":disabled") && !i.hidden ? i : null);
2457
2563
  return a ? (a.focus(), a.scrollIntoView?.({ block: "nearest" }), !0) : !1;
2458
2564
  }
2459
- var Tt = ({ ref: e, title: t = "There is a problem", description: n, items: r, headingLevel: i = 2, onItemSelect: a, tabIndex: o = -1, className: s, classNames: c, "aria-labelledby": l, "aria-describedby": u, ...d }) => {
2565
+ var Ot = ({ ref: e, title: t = "There is a problem", description: n, items: r, headingLevel: i = 2, onItemSelect: a, tabIndex: o = -1, className: s, classNames: c, "aria-labelledby": l, "aria-describedby": u, ...d }) => {
2460
2566
  let p = f();
2461
2567
  if (r.length === 0) return null;
2462
2568
  let m = d.id ?? `kb-errorsummary-${p}`, h = `${m}-title`, g = n ? `${m}-description` : void 0, _ = l ?? h, y = [g, u].filter(Boolean).join(" ") || void 0, S = `h${i}`, C = /* @__PURE__ */ new Map();
@@ -2491,7 +2597,7 @@ var Tt = ({ ref: e, title: t = "There is a problem", description: n, items: r, h
2491
2597
  href: e.href,
2492
2598
  className: v("kb-errorsummary-link", c?.link),
2493
2599
  onClick: (t) => {
2494
- a?.(e.href, t), !t.defaultPrevented && wt(t.currentTarget.ownerDocument, e.href) && t.preventDefault();
2600
+ a?.(e.href, t), !t.defaultPrevented && Dt(t.currentTarget.ownerDocument, e.href) && t.preventDefault();
2495
2601
  },
2496
2602
  children: e.label
2497
2603
  })
@@ -2500,7 +2606,7 @@ var Tt = ({ ref: e, title: t = "There is a problem", description: n, items: r, h
2500
2606
  })
2501
2607
  ]
2502
2608
  });
2503
- }, Et = ({ ref: e, legend: t, visuallyHidden: n, description: r, error: i, disabled: a, className: o, classNames: s, children: c, "aria-describedby": l, "aria-invalid": u, ...d }) => {
2609
+ }, kt = ({ ref: e, legend: t, visuallyHidden: n, description: r, error: i, disabled: a, className: o, classNames: s, children: c, "aria-describedby": l, "aria-invalid": u, ...d }) => {
2504
2610
  let p = f(), m = d.id ?? `kb-fieldset-${p}`, h = !!i, { invalid: g, ariaInvalid: _ } = U(h, u), y = r ? `${m}-description` : void 0, S = h ? `${m}-error` : void 0, C = [
2505
2611
  y,
2506
2612
  S,
@@ -2537,8 +2643,8 @@ var Tt = ({ ref: e, title: t = "There is a problem", description: n, items: r, h
2537
2643
  }) : null
2538
2644
  ]
2539
2645
  });
2540
- }, Dt = (e) => `Remove ${e.name}`, Ot = (e) => `${e.name} removed.`, kt = (e) => `${e} ${e === 1 ? "file" : "files"} selected.`;
2541
- function At({ classNames: e, label: t, items: n, onFiles: r, onRemove: i, accept: a, multiple: o = !0, disabled: s = !1, readOnly: c = !1, description: l, error: u, visuallyHidden: d, chooseLabel: h = "Choose files", emptyMessage: S = "No files added.", removeLabel: C = Dt, removedMessage: w = Ot, selectionMessage: T = kt, renderItem: E, triggerClassName: D, listClassName: O, itemClassName: k, inputRef: A, triggerRef: j, className: M, onBlurCapture: N, "aria-describedby": P, "aria-invalid": F, ...I }) {
2646
+ }, At = (e) => `Remove ${e.name}`, jt = (e) => `${e.name} removed.`, Mt = (e) => `${e} ${e === 1 ? "file" : "files"} selected.`;
2647
+ function Nt({ classNames: e, label: t, items: n, onFiles: r, onRemove: i, accept: a, multiple: o = !0, disabled: s = !1, readOnly: c = !1, description: l, error: u, visuallyHidden: d, chooseLabel: h = "Choose files", emptyMessage: S = "No files added.", removeLabel: C = At, removedMessage: w = jt, selectionMessage: T = Mt, renderItem: E, triggerClassName: D, listClassName: O, itemClassName: k, inputRef: A, triggerRef: j, className: M, onBlurCapture: N, "aria-describedby": P, "aria-invalid": F, ...I }) {
2542
2648
  let L = f(), R = g(null), z = g(null), B = g(/* @__PURE__ */ new Map()), V = g(null), [W, G] = _("");
2543
2649
  p(A, () => R.current), p(j, () => z.current);
2544
2650
  let { invalid: K, ariaInvalid: q } = U(!!u, F), J = s || c, ee = [
@@ -2676,7 +2782,7 @@ function At({ classNames: e, label: t, items: n, onFiles: r, onRemove: i, accept
2676
2782
  }
2677
2783
  //#endregion
2678
2784
  //#region src/components/FormActions/FormActions.tsx
2679
- var jt = ({ ref: e, align: t = "end", divider: n = !1, className: r, children: i, ...a }) => /* @__PURE__ */ b("div", {
2785
+ var Pt = ({ ref: e, align: t = "end", divider: n = !1, className: r, children: i, ...a }) => /* @__PURE__ */ b("div", {
2680
2786
  ...a,
2681
2787
  ref: e,
2682
2788
  ...H("formactions", {
@@ -2684,10 +2790,97 @@ var jt = ({ ref: e, align: t = "end", divider: n = !1, className: r, children: i
2684
2790
  divider: n
2685
2791
  }, r),
2686
2792
  children: i
2687
- });
2793
+ }), Ft = ({ ref: e, header: t, actions: n, actionsAlign: r = "end", width: i = "md", className: a, classNames: o, children: s, ...c }) => /* @__PURE__ */ x("form", {
2794
+ ...c,
2795
+ ref: e,
2796
+ ...H("form", { width: i }, a),
2797
+ children: [
2798
+ t ? /* @__PURE__ */ b("div", {
2799
+ className: v("kb-form-header", o?.header),
2800
+ children: t
2801
+ }) : null,
2802
+ /* @__PURE__ */ b("div", {
2803
+ className: v("kb-form-body", o?.body),
2804
+ children: s
2805
+ }),
2806
+ n ? /* @__PURE__ */ b(Pt, {
2807
+ align: r,
2808
+ divider: !0,
2809
+ className: v("kb-form-actions", o?.actions),
2810
+ children: n
2811
+ }) : null
2812
+ ]
2813
+ }), It = {
2814
+ 1: "xl",
2815
+ 2: "lg",
2816
+ 3: "md",
2817
+ 4: "sm",
2818
+ 5: "sm",
2819
+ 6: "sm"
2820
+ };
2821
+ function Lt({ level: e = 2, size: t = It[e], className: n, ...r }) {
2822
+ return o(`h${e}`, {
2823
+ ...r,
2824
+ ...H("heading", { size: t }, n)
2825
+ });
2826
+ }
2827
+ //#endregion
2828
+ //#region src/components/FormSection/FormSection.tsx
2829
+ var Rt = ({ ref: e, title: t, headingLevel: n = 2, description: r, error: i, actions: a, actionsAlign: o = "end", layout: s, disabled: c, className: l, classNames: u, children: d, "aria-describedby": p, "aria-invalid": m, ...h }) => {
2830
+ let g = f(), _ = h.id ?? `kb-formsection-${g}`, y = !!i, { invalid: S, ariaInvalid: C } = U(y, m), w = `${_}-title`, T = r ? `${_}-description` : void 0, E = y ? `${_}-error` : void 0, D = [
2831
+ T,
2832
+ E,
2833
+ p
2834
+ ].filter(Boolean).join(" ") || void 0;
2835
+ return /* @__PURE__ */ x("fieldset", {
2836
+ "aria-labelledby": h["aria-label"] ? void 0 : w,
2837
+ ...h,
2838
+ ref: e,
2839
+ disabled: c,
2840
+ "aria-invalid": C,
2841
+ "aria-describedby": D,
2842
+ ...H("formsection", {
2843
+ layout: s,
2844
+ disabled: !!c,
2845
+ invalid: S
2846
+ }, l),
2847
+ children: [/* @__PURE__ */ x("div", {
2848
+ className: v("kb-formsection-header", u?.header),
2849
+ children: [/* @__PURE__ */ b(Lt, {
2850
+ level: n,
2851
+ size: "md",
2852
+ id: w,
2853
+ className: v("kb-formsection-title", u?.title),
2854
+ children: t
2855
+ }), r ? /* @__PURE__ */ b("p", {
2856
+ id: T,
2857
+ className: v("kb-formsection-description", u?.description),
2858
+ children: r
2859
+ }) : null]
2860
+ }), /* @__PURE__ */ x("div", {
2861
+ className: v("kb-formsection-body", u?.body),
2862
+ children: [
2863
+ /* @__PURE__ */ b("div", {
2864
+ className: v("kb-formsection-fields", u?.fields),
2865
+ children: d
2866
+ }),
2867
+ y ? /* @__PURE__ */ b("div", {
2868
+ id: E,
2869
+ className: v("kb-formsection-error", u?.error),
2870
+ children: i
2871
+ }) : null,
2872
+ a ? /* @__PURE__ */ b(Pt, {
2873
+ align: o,
2874
+ className: v("kb-formsection-actions", u?.actions),
2875
+ children: a
2876
+ }) : null
2877
+ ]
2878
+ })]
2879
+ });
2880
+ };
2688
2881
  //#endregion
2689
2882
  //#region src/components/Grid/Grid.tsx
2690
- function Mt({ as: e, layout: t = "auto", columns: n, minItemWidth: r, gap: i, align: a, className: s, ...c }) {
2883
+ function zt({ as: e, layout: t = "auto", columns: n, minItemWidth: r, gap: i, align: a, className: s, ...c }) {
2691
2884
  return o(e ?? "div", {
2692
2885
  ...c,
2693
2886
  ...H("grid", {
@@ -2700,24 +2893,48 @@ function Mt({ as: e, layout: t = "auto", columns: n, minItemWidth: r, gap: i, al
2700
2893
  });
2701
2894
  }
2702
2895
  //#endregion
2703
- //#region src/components/Heading/Heading.tsx
2704
- var Nt = {
2705
- 1: "xl",
2706
- 2: "lg",
2707
- 3: "md",
2708
- 4: "sm",
2709
- 5: "sm",
2710
- 6: "sm"
2711
- };
2712
- function Pt({ level: e = 2, size: t = Nt[e], className: n, ...r }) {
2713
- return o(`h${e}`, {
2714
- ...r,
2715
- ...H("heading", { size: t }, n)
2896
+ //#region src/components/Gallery/Gallery.tsx
2897
+ function Bt(e) {
2898
+ return n.toArray(e).some((e) => c(e) && e.type === r ? Bt(e.props.children) : !0);
2899
+ }
2900
+ function Vt({ ref: e, header: t, filters: n, itemsLabel: r, empty: i, className: a, classNames: o, children: s, ...c }) {
2901
+ let l = i != null && !Bt(s);
2902
+ return /* @__PURE__ */ x("div", {
2903
+ ...c,
2904
+ ref: e,
2905
+ ...H("gallery", {}, a),
2906
+ children: [
2907
+ t == null ? null : /* @__PURE__ */ b("div", {
2908
+ className: v("kb-gallery-header", o?.header),
2909
+ children: t
2910
+ }),
2911
+ n == null ? null : /* @__PURE__ */ b("div", {
2912
+ className: v("kb-gallery-filters", o?.filters),
2913
+ children: n
2914
+ }),
2915
+ l ? /* @__PURE__ */ b("div", {
2916
+ className: v("kb-gallery-empty", o?.empty),
2917
+ children: i
2918
+ }) : /* @__PURE__ */ b(zt, {
2919
+ as: "ul",
2920
+ gap: "lg",
2921
+ "aria-label": r,
2922
+ className: v("kb-gallery-items", o?.items),
2923
+ children: s
2924
+ })
2925
+ ]
2926
+ });
2927
+ }
2928
+ function Ht({ featured: e, className: t, ...n }) {
2929
+ return /* @__PURE__ */ b("li", {
2930
+ ...n,
2931
+ ...H("gallery-item", { featured: e }, t)
2716
2932
  });
2717
2933
  }
2934
+ var Ut = Object.assign(Vt, { Item: Ht });
2718
2935
  //#endregion
2719
2936
  //#region src/components/Inline/Inline.tsx
2720
- function Ft({ as: e, gap: t = "md", align: n = "center", justify: r = "start", className: i, ...a }) {
2937
+ function Wt({ as: e, gap: t = "md", align: n = "center", justify: r = "start", className: i, ...a }) {
2721
2938
  return o(e ?? "div", {
2722
2939
  ...a,
2723
2940
  ...H("inline", {
@@ -2729,8 +2946,8 @@ function Ft({ as: e, gap: t = "md", align: n = "center", justify: r = "start", c
2729
2946
  }
2730
2947
  //#endregion
2731
2948
  //#region src/components/Menu/Menu.tsx
2732
- var It = a(!1);
2733
- function Lt({ onOpenChange: e, ...t }) {
2949
+ var Gt = a(!1);
2950
+ function Kt({ onOpenChange: e, ...t }) {
2734
2951
  let [n, r] = _(!1);
2735
2952
  return d(() => {
2736
2953
  if (!n) return;
@@ -2739,7 +2956,7 @@ function Lt({ onOpenChange: e, ...t }) {
2739
2956
  capture: !0,
2740
2957
  once: !0
2741
2958
  }), () => document.removeEventListener("keydown", e, !0);
2742
- }, [n]), /* @__PURE__ */ b(It.Provider, {
2959
+ }, [n]), /* @__PURE__ */ b(Gt.Provider, {
2743
2960
  value: n,
2744
2961
  children: /* @__PURE__ */ b(k.Root, {
2745
2962
  ...t,
@@ -2750,15 +2967,15 @@ function Lt({ onOpenChange: e, ...t }) {
2750
2967
  })
2751
2968
  });
2752
2969
  }
2753
- function Rt(e) {
2754
- let t = u(It);
2970
+ function qt(e) {
2971
+ let t = u(Gt);
2755
2972
  return /* @__PURE__ */ b(k.Trigger, {
2756
2973
  ...e,
2757
2974
  "data-kb-menu-trigger": "",
2758
2975
  "data-pointer-focus": t || void 0
2759
2976
  });
2760
2977
  }
2761
- function zt({ side: e = "bottom", align: t = "start", className: n, container: r, ...i }) {
2978
+ function Jt({ side: e = "bottom", align: t = "start", className: n, container: r, ...i }) {
2762
2979
  return /* @__PURE__ */ b(k.Portal, {
2763
2980
  container: r,
2764
2981
  children: /* @__PURE__ */ b(k.Positioner, {
@@ -2772,27 +2989,27 @@ function zt({ side: e = "bottom", align: t = "start", className: n, container: r
2772
2989
  })
2773
2990
  });
2774
2991
  }
2775
- function Bt({ className: e, ...t }) {
2992
+ function Yt({ className: e, ...t }) {
2776
2993
  return /* @__PURE__ */ b(k.Item, {
2777
2994
  ...t,
2778
2995
  className: v("kb-menu-item", e)
2779
2996
  });
2780
2997
  }
2781
- function Vt({ className: e, ...t }) {
2998
+ function Xt({ className: e, ...t }) {
2782
2999
  return /* @__PURE__ */ b(A, {
2783
3000
  ...t,
2784
3001
  className: v("kb-menu-separator", e)
2785
3002
  });
2786
3003
  }
2787
- var Ht = Object.assign(Lt, {
2788
- Trigger: Rt,
2789
- Content: zt,
2790
- Item: Bt,
2791
- Separator: Vt
3004
+ var Zt = Object.assign(Kt, {
3005
+ Trigger: qt,
3006
+ Content: Jt,
3007
+ Item: Yt,
3008
+ Separator: Xt
2792
3009
  });
2793
3010
  //#endregion
2794
3011
  //#region src/components/NumberField/NumberField.tsx
2795
- function Ut({ classNames: e, label: t, value: n, onValueChange: r, min: i, max: a, step: o = 1, locale: s, name: c, form: l, required: u, disabled: d = !1, readOnly: p = !1, visuallyHidden: m, description: h, error: g, size: _ = "md", inputClassName: y, groupClassName: S, inputRef: C, inputProps: w, decrementLabel: T = `Decrease ${t}`, incrementLabel: E = `Increase ${t}`, className: D, "aria-describedby": O, "aria-invalid": k, ...A }) {
3012
+ function Qt({ classNames: e, label: t, value: n, onValueChange: r, min: i, max: a, step: o = 1, locale: s, name: c, form: l, required: u, disabled: d = !1, readOnly: p = !1, visuallyHidden: m, description: h, error: g, size: _ = "md", inputClassName: y, groupClassName: S, inputRef: C, inputProps: w, decrementLabel: T = `Decrease ${t}`, incrementLabel: E = `Increase ${t}`, className: D, "aria-describedby": O, "aria-invalid": k, ...A }) {
2796
3013
  let M = f(), { invalid: N, ariaInvalid: P } = U(!!g, w?.["aria-invalid"] ?? k), F = [
2797
3014
  h ? `${M}-description` : null,
2798
3015
  g ? `${M}-error` : null,
@@ -2871,19 +3088,76 @@ function Ut({ classNames: e, label: t, value: n, onValueChange: r, min: i, max:
2871
3088
  });
2872
3089
  }
2873
3090
  //#endregion
3091
+ //#region src/components/PageHeader/PageHeader.tsx
3092
+ var $t = {
3093
+ 1: "h1",
3094
+ 2: "h2",
3095
+ 3: "h3"
3096
+ };
3097
+ function en({ title: e, description: t, eyebrow: n, navigation: r, meta: i, actions: a, headingLevel: o = 1, size: s = "md", divider: c = !1, className: l, classNames: u, children: d, ...f }) {
3098
+ let p = $t[o];
3099
+ return /* @__PURE__ */ x("div", {
3100
+ ...f,
3101
+ ...H("pageheader", {
3102
+ size: s,
3103
+ divider: c
3104
+ }, l),
3105
+ children: [
3106
+ r == null ? null : /* @__PURE__ */ b("div", {
3107
+ className: v("kb-pageheader-navigation", u?.navigation),
3108
+ children: r
3109
+ }),
3110
+ /* @__PURE__ */ x("div", {
3111
+ className: v("kb-pageheader-main", u?.main),
3112
+ children: [/* @__PURE__ */ x("div", {
3113
+ className: v("kb-pageheader-heading", u?.heading),
3114
+ children: [
3115
+ n == null ? null : /* @__PURE__ */ b("p", {
3116
+ className: v("kb-pageheader-eyebrow", u?.eyebrow),
3117
+ children: n
3118
+ }),
3119
+ /* @__PURE__ */ x("div", {
3120
+ className: v("kb-pageheader-headline", u?.headline),
3121
+ children: [/* @__PURE__ */ b(p, {
3122
+ className: v("kb-pageheader-title", u?.title),
3123
+ children: e
3124
+ }), i == null ? null : /* @__PURE__ */ b("div", {
3125
+ className: v("kb-pageheader-meta", u?.meta),
3126
+ children: i
3127
+ })]
3128
+ }),
3129
+ t == null ? null : /* @__PURE__ */ b("p", {
3130
+ className: v("kb-pageheader-description", u?.description),
3131
+ children: t
3132
+ })
3133
+ ]
3134
+ }), a == null ? null : /* @__PURE__ */ b("div", {
3135
+ className: v("kb-pageheader-actions", u?.actions),
3136
+ children: a
3137
+ })]
3138
+ }),
3139
+ d == null ? null : /* @__PURE__ */ b("div", {
3140
+ className: v("kb-pageheader-body", u?.body),
3141
+ children: d
3142
+ })
3143
+ ]
3144
+ });
3145
+ }
3146
+ //#endregion
2874
3147
  //#region src/components/Panel/Panel.tsx
2875
- var Wt = a(!1), Gt = a(!1), Kt = a("column"), qt = (e) => e?.previousElementSibling;
2876
- function Jt({ tone: e = "default", rail: t = "none", density: n = "standard", collapsible: r = !1, open: i, defaultOpen: a, onOpenChange: o, className: s, children: c, ref: l, ...d }) {
2877
- let f = H("panel", {
3148
+ var tn = a(!1), nn = a(!1), rn = a("column"), an = (e) => e?.previousElementSibling;
3149
+ function on({ tone: e = "default", rail: t = "none", density: n = "standard", opaque: r = !1, collapsible: i = !1, open: a, defaultOpen: o, onOpenChange: s, className: c, children: l, ref: d, ...f }) {
3150
+ let p = H("panel", {
2878
3151
  tone: e,
2879
3152
  rail: t,
2880
3153
  density: n,
2881
- nested: u(Wt),
2882
- collapsible: r
2883
- }, s), p = /* @__PURE__ */ b(Wt, {
3154
+ nested: u(tn),
3155
+ opaque: r,
3156
+ collapsible: i
3157
+ }, c), m = /* @__PURE__ */ b(tn, {
2884
3158
  value: !0,
2885
- children: /* @__PURE__ */ x(Gt, {
2886
- value: r,
3159
+ children: /* @__PURE__ */ x(nn, {
3160
+ value: i,
2887
3161
  children: [
2888
3162
  /* @__PURE__ */ b("span", {
2889
3163
  className: "kb-panel-glow",
@@ -2894,65 +3168,65 @@ function Jt({ tone: e = "default", rail: t = "none", density: n = "standard", co
2894
3168
  "aria-hidden": "true",
2895
3169
  children: t === "none" ? null : /* @__PURE__ */ b("span", { className: "kb-panel-rail" })
2896
3170
  }),
2897
- c
3171
+ l
2898
3172
  ]
2899
3173
  })
2900
3174
  });
2901
- return r ? /* @__PURE__ */ b(O.Root, {
2902
- ...d,
2903
- ref: l,
2904
- ...i === void 0 ? {} : { open: i },
2905
- ...a === void 0 ? {} : { defaultOpen: a },
2906
- ...o ? { onOpenChange: (e) => o(e) } : {},
2907
- render: /* @__PURE__ */ b("section", {}),
3175
+ return i ? /* @__PURE__ */ b(O.Root, {
2908
3176
  ...f,
2909
- children: p
3177
+ ref: d,
3178
+ ...a === void 0 ? {} : { open: a },
3179
+ ...o === void 0 ? {} : { defaultOpen: o },
3180
+ ...s ? { onOpenChange: (e) => s(e) } : {},
3181
+ render: /* @__PURE__ */ b("section", {}),
3182
+ ...p,
3183
+ children: m
2910
3184
  }) : /* @__PURE__ */ b("section", {
2911
- ...d,
2912
- ref: l,
2913
3185
  ...f,
2914
- children: p
3186
+ ref: d,
3187
+ ...p,
3188
+ children: m
2915
3189
  });
2916
3190
  }
2917
- function Yt({ className: e, ...t }) {
3191
+ function sn({ className: e, ...t }) {
2918
3192
  return /* @__PURE__ */ b("header", {
2919
3193
  ...t,
2920
3194
  className: v("kb-panel-header", e)
2921
3195
  });
2922
3196
  }
2923
- function Xt({ className: e, ...t }) {
3197
+ function cn({ className: e, ...t }) {
2924
3198
  return /* @__PURE__ */ b("div", {
2925
3199
  ...t,
2926
3200
  className: v("kb-panel-toolbar", e)
2927
3201
  });
2928
3202
  }
2929
- function Zt({ className: e, ...t }) {
2930
- let n = u(Gt), r = v("kb-panel-body", e);
3203
+ function ln({ className: e, ...t }) {
3204
+ let n = u(nn), r = v("kb-panel-body", e);
2931
3205
  return b(n ? O.Panel : "div", {
2932
3206
  ...t,
2933
3207
  className: r
2934
3208
  });
2935
3209
  }
2936
- function Qt({ className: e, ...t }) {
3210
+ function un({ className: e, ...t }) {
2937
3211
  return /* @__PURE__ */ b("footer", {
2938
3212
  ...t,
2939
3213
  className: v("kb-panel-footer", e)
2940
3214
  });
2941
3215
  }
2942
- function $t({ className: e, ...t }) {
3216
+ function dn({ className: e, ...t }) {
2943
3217
  return /* @__PURE__ */ b("div", {
2944
3218
  ...t,
2945
3219
  className: v("kb-panel-well", e)
2946
3220
  });
2947
3221
  }
2948
- function en({ className: e, ...t }) {
3222
+ function fn({ className: e, ...t }) {
2949
3223
  return /* @__PURE__ */ b(O.Trigger, {
2950
3224
  ...t,
2951
3225
  className: v("kb-panel-toggle", e)
2952
3226
  });
2953
3227
  }
2954
- function tn({ direction: e = "column", className: t, ...n }) {
2955
- return /* @__PURE__ */ b(Kt, {
3228
+ function pn({ direction: e = "column", className: t, ...n }) {
3229
+ return /* @__PURE__ */ b(rn, {
2956
3230
  value: e,
2957
3231
  children: /* @__PURE__ */ b("div", {
2958
3232
  ...n,
@@ -2960,13 +3234,13 @@ function tn({ direction: e = "column", className: t, ...n }) {
2960
3234
  })
2961
3235
  });
2962
3236
  }
2963
- function nn({ size: e, defaultSize: t = 50, min: n = 10, max: r = 90, step: i = 5, onSizeChange: a, className: o, ref: s, onKeyDown: c, onPointerDown: l, onPointerMove: d, onPointerUp: p, onPointerCancel: h, ...v }) {
2964
- let y = u(Kt) === "row", x = (e) => Math.min(r, Math.max(n, e)), [S, C] = _(t), w = x(e ?? S), [T, E] = _(), [D, O] = _(!1), k = g(w), A = g(null), j = f();
3237
+ function mn({ size: e, defaultSize: t = 50, min: n = 10, max: r = 90, step: i = 5, onSizeChange: a, className: o, ref: s, onKeyDown: c, onPointerDown: l, onPointerMove: d, onPointerUp: p, onPointerCancel: h, ...v }) {
3238
+ let y = u(rn) === "row", x = (e) => Math.min(r, Math.max(n, e)), [S, C] = _(t), w = x(e ?? S), [T, E] = _(), [D, O] = _(!1), k = g(w), A = g(null), j = f();
2965
3239
  m(() => {
2966
- let e = qt(A.current);
3240
+ let e = an(A.current);
2967
3241
  e && (e.id ||= j, E(e.id));
2968
3242
  }, [j]), m(() => {
2969
- qt(A.current)?.style.setProperty("--kb-panel-size", `${w}%`);
3243
+ an(A.current)?.style.setProperty("--kb-panel-size", `${w}%`);
2970
3244
  }, [w]);
2971
3245
  let M = (t) => {
2972
3246
  let n = x(t);
@@ -2985,7 +3259,7 @@ function nn({ size: e, defaultSize: t = 50, min: n = 10, max: r = 90, step: i =
2985
3259
  l?.(e), !(e.defaultPrevented || e.button !== 0) && (e.preventDefault(), e.currentTarget.setPointerCapture?.(e.pointerId), O(!0));
2986
3260
  }, I = (e) => {
2987
3261
  d?.(e);
2988
- let t = A.current?.parentElement?.getBoundingClientRect(), n = qt(A.current)?.getBoundingClientRect();
3262
+ let t = A.current?.parentElement?.getBoundingClientRect(), n = an(A.current)?.getBoundingClientRect();
2989
3263
  if (!D || !t || !n) return;
2990
3264
  let r = y ? e.clientX - n.left : e.clientY - n.top, i = y ? t.width : t.height;
2991
3265
  i > 0 && M(Math.round(r / i * 1e3) / 10);
@@ -3020,58 +3294,58 @@ function nn({ size: e, defaultSize: t = 50, min: n = 10, max: r = 90, step: i =
3020
3294
  }, o)
3021
3295
  });
3022
3296
  }
3023
- var rn = Object.assign(Jt, {
3024
- Header: Yt,
3025
- Toolbar: Xt,
3026
- Body: Zt,
3027
- Footer: Qt,
3028
- Well: $t,
3029
- Toggle: en,
3030
- Group: tn,
3031
- Handle: nn
3297
+ var hn = Object.assign(on, {
3298
+ Header: sn,
3299
+ Toolbar: cn,
3300
+ Body: ln,
3301
+ Footer: un,
3302
+ Well: dn,
3303
+ Toggle: fn,
3304
+ Group: pn,
3305
+ Handle: mn
3032
3306
  });
3033
3307
  //#endregion
3034
3308
  //#region src/components/Popover/Popover.tsx
3035
- function an(e) {
3309
+ function gn(e) {
3036
3310
  return /* @__PURE__ */ b(M.Root, { ...e });
3037
3311
  }
3038
- function on(e) {
3312
+ function _n(e) {
3039
3313
  return /* @__PURE__ */ b(M.Trigger, { ...e });
3040
3314
  }
3041
- function sn(e) {
3315
+ function vn(e) {
3042
3316
  return /* @__PURE__ */ b(M.Close, { ...e });
3043
3317
  }
3044
- function cn({ className: e, ...t }) {
3318
+ function yn({ className: e, ...t }) {
3045
3319
  return /* @__PURE__ */ b(M.Title, {
3046
3320
  ...t,
3047
3321
  ...H("popover-title", {}, e)
3048
3322
  });
3049
3323
  }
3050
- function ln({ className: e, ...t }) {
3324
+ function bn({ className: e, ...t }) {
3051
3325
  return /* @__PURE__ */ b(M.Description, {
3052
3326
  ...t,
3053
3327
  ...H("popover-description", {}, e)
3054
3328
  });
3055
3329
  }
3056
- function un({ className: e, ...t }) {
3330
+ function xn({ className: e, ...t }) {
3057
3331
  return /* @__PURE__ */ b("div", {
3058
3332
  ...t,
3059
3333
  ...H("popover-header", {}, e)
3060
3334
  });
3061
3335
  }
3062
- function dn({ className: e, ...t }) {
3336
+ function Sn({ className: e, ...t }) {
3063
3337
  return /* @__PURE__ */ b("div", {
3064
3338
  ...t,
3065
3339
  ...H("popover-body", {}, e)
3066
3340
  });
3067
3341
  }
3068
- function fn({ className: e, ...t }) {
3342
+ function Cn({ className: e, ...t }) {
3069
3343
  return /* @__PURE__ */ b("div", {
3070
3344
  ...t,
3071
3345
  ...H("popover-footer", {}, e)
3072
3346
  });
3073
3347
  }
3074
- function pn({ title: e, description: t, container: n, side: r = "bottom", align: i = "start", sideOffset: a = 6, positionerProps: o, classNames: s, className: c, children: l, ...u }) {
3348
+ function wn({ title: e, description: t, container: n, side: r = "bottom", align: i = "start", sideOffset: a = 6, positionerProps: o, classNames: s, className: c, children: l, ...u }) {
3075
3349
  let d = e != null && e !== "", f = t != null && t !== "";
3076
3350
  return /* @__PURE__ */ b(M.Portal, {
3077
3351
  container: n,
@@ -3084,24 +3358,24 @@ function pn({ title: e, description: t, container: n, side: r = "bottom", align:
3084
3358
  children: /* @__PURE__ */ x(M.Popup, {
3085
3359
  ...u,
3086
3360
  ...H("popover", {}, c),
3087
- children: [d || f ? /* @__PURE__ */ x(un, { children: [d ? /* @__PURE__ */ b(cn, { children: e }) : null, f ? /* @__PURE__ */ b(ln, { children: t }) : null] }) : null, l]
3361
+ children: [d || f ? /* @__PURE__ */ x(xn, { children: [d ? /* @__PURE__ */ b(yn, { children: e }) : null, f ? /* @__PURE__ */ b(bn, { children: t }) : null] }) : null, l]
3088
3362
  })
3089
3363
  })
3090
3364
  });
3091
3365
  }
3092
- var mn = Object.assign(an, {
3093
- Trigger: on,
3094
- Content: pn,
3095
- Title: cn,
3096
- Description: ln,
3097
- Close: sn,
3098
- Header: un,
3099
- Body: dn,
3100
- Footer: fn
3366
+ var Tn = Object.assign(gn, {
3367
+ Trigger: _n,
3368
+ Content: wn,
3369
+ Title: yn,
3370
+ Description: bn,
3371
+ Close: vn,
3372
+ Header: xn,
3373
+ Body: Sn,
3374
+ Footer: Cn
3101
3375
  });
3102
3376
  //#endregion
3103
3377
  //#region src/components/Progress/Progress.tsx
3104
- function hn({ classNames: e, label: t, value: n, valueText: r, className: i, ...a }) {
3378
+ function En({ classNames: e, label: t, value: n, valueText: r, className: i, ...a }) {
3105
3379
  return /* @__PURE__ */ x(N.Root, {
3106
3380
  ...a,
3107
3381
  value: n,
@@ -3124,8 +3398,8 @@ function hn({ classNames: e, label: t, value: n, valueText: r, className: i, ...
3124
3398
  }
3125
3399
  //#endregion
3126
3400
  //#region src/components/RadioGroup/RadioGroup.tsx
3127
- var gn = a(null);
3128
- function _n({ segmented: e, className: t, children: n }) {
3401
+ var Dn = a(null);
3402
+ function On({ segmented: e, className: t, children: n }) {
3129
3403
  let r = g(null), [i, a] = _(null);
3130
3404
  return m(() => {
3131
3405
  let t = r.current;
@@ -3171,8 +3445,8 @@ function _n({ segmented: e, className: t, children: n }) {
3171
3445
  }), n]
3172
3446
  });
3173
3447
  }
3174
- function vn({ checked: e, disabled: t, customTabIndex: n, ...r }) {
3175
- let i = u(gn), a = i?.update, o = i?.remove, s = f(), c = !t && (n === void 0 || n >= 0);
3448
+ function kn({ checked: e, disabled: t, customTabIndex: n, ...r }) {
3449
+ let i = u(Dn), a = i?.update, o = i?.remove, s = f(), c = !t && (n === void 0 || n >= 0);
3176
3450
  m(() => () => {
3177
3451
  o?.(s);
3178
3452
  }, [o, s]), m(() => {
@@ -3197,7 +3471,7 @@ function vn({ checked: e, disabled: t, customTabIndex: n, ...r }) {
3197
3471
  }
3198
3472
  });
3199
3473
  }
3200
- function yn({ classNames: e, label: t, value: n, onValueChange: r, disabled: i = !1, appearance: a = "standard", selectionMotion: o = "slide", selectionTone: s = "primary", name: c, description: u, error: d, visuallyHidden: p, className: m, children: h, onFocusCapture: y, onBlurCapture: S, "aria-invalid": C, ...w }) {
3474
+ function An({ classNames: e, label: t, value: n, onValueChange: r, disabled: i = !1, appearance: a = "standard", selectionMotion: o = "slide", selectionTone: s = "primary", name: c, description: u, error: d, visuallyHidden: p, className: m, children: h, onFocusCapture: y, onBlurCapture: S, "aria-invalid": C, ...w }) {
3201
3475
  let T = f(), { invalid: E, ariaInvalid: D } = U(!!d, C), O = g(null), [k, A] = _(!1), j = l((e) => {
3202
3476
  O.current = e;
3203
3477
  }, []), [M, N] = _(() => /* @__PURE__ */ new Map()), P = l((e, t) => {
@@ -3216,7 +3490,7 @@ function yn({ classNames: e, label: t, value: n, onValueChange: r, disabled: i =
3216
3490
  d ? `${T}-error` : null,
3217
3491
  w["aria-describedby"]
3218
3492
  ].filter(Boolean).join(" ") || void 0;
3219
- return /* @__PURE__ */ b(gn.Provider, {
3493
+ return /* @__PURE__ */ b(Dn.Provider, {
3220
3494
  value: {
3221
3495
  target: R,
3222
3496
  update: P,
@@ -3254,7 +3528,7 @@ function yn({ classNames: e, label: t, value: n, onValueChange: r, disabled: i =
3254
3528
  id: `${T}-label`,
3255
3529
  children: t
3256
3530
  }),
3257
- /* @__PURE__ */ b(_n, {
3531
+ /* @__PURE__ */ b(On, {
3258
3532
  segmented: a === "segmented",
3259
3533
  className: e?.options,
3260
3534
  children: h
@@ -3273,13 +3547,13 @@ function yn({ classNames: e, label: t, value: n, onValueChange: r, disabled: i =
3273
3547
  })
3274
3548
  });
3275
3549
  }
3276
- function bn({ classNames: e, className: t, children: n, controlClassName: r, ...i }) {
3550
+ function jn({ classNames: e, className: t, children: n, controlClassName: r, ...i }) {
3277
3551
  return /* @__PURE__ */ x("label", {
3278
3552
  className: v("kb-radiogroup-item", e?.item, t),
3279
3553
  children: [/* @__PURE__ */ b(P.Root, {
3280
3554
  ...i,
3281
3555
  className: v("kb-radiogroup-control", e?.control, r),
3282
- render: (e, t) => /* @__PURE__ */ b(vn, {
3556
+ render: (e, t) => /* @__PURE__ */ b(kn, {
3283
3557
  ...e,
3284
3558
  checked: t.checked,
3285
3559
  disabled: t.disabled,
@@ -3292,10 +3566,10 @@ function bn({ classNames: e, className: t, children: n, controlClassName: r, ...
3292
3566
  })]
3293
3567
  });
3294
3568
  }
3295
- var xn = Object.assign(yn, { Item: bn });
3569
+ var Mn = Object.assign(An, { Item: jn });
3296
3570
  //#endregion
3297
3571
  //#region src/components/ScrollArea/ScrollArea.tsx
3298
- function Sn({ classNames: e, label: t, maxHeight: n, className: r, style: i, children: a, ...o }) {
3572
+ function Nn({ classNames: e, label: t, maxHeight: n, className: r, style: i, children: a, ...o }) {
3299
3573
  let s = n ? { "--_scrollarea-max-height": n } : {};
3300
3574
  return /* @__PURE__ */ x(I.Root, {
3301
3575
  ...o,
@@ -3319,7 +3593,7 @@ function Sn({ classNames: e, label: t, maxHeight: n, className: r, style: i, chi
3319
3593
  }
3320
3594
  //#endregion
3321
3595
  //#region src/components/Separator/Separator.tsx
3322
- function Cn({ orientation: e = "horizontal", decorative: t = !1, className: n, ...r }) {
3596
+ function Pn({ orientation: e = "horizontal", decorative: t = !1, className: n, ...r }) {
3323
3597
  return /* @__PURE__ */ b("hr", {
3324
3598
  ...r,
3325
3599
  ...H("separator", { orientation: e }, n),
@@ -3329,46 +3603,67 @@ function Cn({ orientation: e = "horizontal", decorative: t = !1, className: n, .
3329
3603
  });
3330
3604
  }
3331
3605
  //#endregion
3606
+ //#region src/components/Settings/Settings.tsx
3607
+ var Fn = ({ ref: e, header: t, className: n, classNames: r, children: i, ...a }) => /* @__PURE__ */ x("div", {
3608
+ ...a,
3609
+ ref: e,
3610
+ ...H("settings", {}, n),
3611
+ children: [t ? /* @__PURE__ */ b("div", {
3612
+ className: v("kb-settings-header", r?.header),
3613
+ children: t
3614
+ }) : null, /* @__PURE__ */ b("div", {
3615
+ className: v("kb-settings-sections", r?.sections),
3616
+ children: i
3617
+ })]
3618
+ });
3619
+ //#endregion
3332
3620
  //#region src/components/Skeleton/Skeleton.tsx
3333
- function wn(e) {
3621
+ function In(e) {
3334
3622
  if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
3335
3623
  }
3336
- var Tn = s(function({ variant: e = "text", size: t = "md", lines: n = 1, animated: r = !0, animation: i = "shimmer", tone: a = "default", loading: o = !0, width: s, height: c, style: l, className: u, classNames: d, children: f, ...p }, m) {
3337
- let h = e === "text" ? Math.max(1, Math.trunc(n)) : 1, g = wn(s), _ = wn(c), y = r && i !== "none", x = g === void 0 ? l : {
3338
- ...l,
3339
- inlineSize: g
3340
- }, S = _ === void 0 ? void 0 : { blockSize: _ }, C = Array.from({ length: h }, (e, t) => t);
3341
- return /* @__PURE__ */ b("div", {
3342
- ref: m,
3343
- "aria-hidden": o ? "true" : void 0,
3344
- style: x,
3345
- ...p,
3624
+ var Ln = s(function({ variant: e = "text", size: t = "md", lines: n = 1, animated: r = !0, animation: i = "shimmer", tone: a = "default", loading: o = !0, label: s = "Loading", width: c, height: l, style: u, className: d, classNames: f, children: p, ...m }, h) {
3625
+ let g = e === "auto" && p != null && typeof p != "boolean", _ = e === "auto" && !g ? "text" : e, y = o && !g, S = o && g, C = _ === "text" ? Math.max(1, Math.trunc(n)) : 1, w = In(c), T = In(l), E = r && i !== "none", D = w === void 0 ? u : {
3626
+ ...u,
3627
+ inlineSize: w
3628
+ }, O = T === void 0 ? void 0 : { blockSize: T }, k = Array.from({ length: C }, (e, t) => t);
3629
+ return /* @__PURE__ */ x("div", {
3630
+ ref: h,
3631
+ "aria-hidden": y ? "true" : void 0,
3632
+ "aria-busy": S ? "true" : void 0,
3633
+ style: D,
3634
+ ...m,
3346
3635
  ...H("skeleton", {
3347
- variant: e,
3636
+ variant: _,
3348
3637
  size: t,
3349
3638
  tone: a,
3350
- animation: y ? i : !1,
3351
- animated: y,
3639
+ animation: E ? i : !1,
3640
+ animated: E,
3352
3641
  loaded: !o
3353
- }, d?.root ?? u),
3354
- children: o ? C.map((e) => /* @__PURE__ */ b("span", {
3355
- style: S,
3356
- className: v("kb-skeleton-line", d?.line)
3642
+ }, f?.root ?? d),
3643
+ children: [y ? k.map((e) => /* @__PURE__ */ b("span", {
3644
+ style: O,
3645
+ className: v("kb-skeleton-line", f?.line)
3357
3646
  }, `line-${e}`)) : /* @__PURE__ */ b("div", {
3358
- className: v("kb-skeleton-content", d?.content),
3359
- children: f
3360
- })
3647
+ className: v("kb-skeleton-content", f?.content),
3648
+ inert: S,
3649
+ "aria-hidden": S ? "true" : void 0,
3650
+ children: p
3651
+ }), S ? /* @__PURE__ */ b("span", {
3652
+ role: "status",
3653
+ className: v("kb-sr-only", f?.status),
3654
+ children: s
3655
+ }) : null]
3361
3656
  });
3362
- }), En = [
3657
+ }), Rn = [
3363
3658
  5,
3364
3659
  12,
3365
3660
  19
3366
- ], Dn = [
3661
+ ], zn = [
3367
3662
  3.5,
3368
3663
  8.25,
3369
3664
  13,
3370
3665
  17.75
3371
- ], On = s(function({ label: e = "Loading", showLabel: t = !1, decorative: n = !1, size: r = "md", tone: i = "accent", variant: a = "ring", appearance: o = "plain", className: s, classNames: c, ...l }, u) {
3666
+ ], Bn = s(function({ label: e = "Loading", showLabel: t = !1, decorative: n = !1, size: r = "md", tone: i = "accent", variant: a = "ring", appearance: o = "plain", className: s, classNames: c, ...l }, u) {
3372
3667
  return /* @__PURE__ */ x("span", {
3373
3668
  ref: u,
3374
3669
  role: n ? void 0 : "status",
@@ -3394,7 +3689,8 @@ var Tn = s(function({ variant: e = "text", size: t = "md", lines: n = 1, animate
3394
3689
  r: "9.5",
3395
3690
  className: v("kb-spinner-track", c?.track)
3396
3691
  }), /* @__PURE__ */ b("path", {
3397
- d: "M12 2.5a9.5 9.5 0 0 1 9.5 9.5",
3692
+ d: "M12 2.5a9.5 9.5 0 1 1 0 19a9.5 9.5 0 1 1 0 -19",
3693
+ pathLength: 100,
3398
3694
  className: v("kb-spinner-arc", c?.arc)
3399
3695
  })] }),
3400
3696
  a === "orbit" && /* @__PURE__ */ x(y, { children: [
@@ -3411,11 +3707,13 @@ var Tn = s(function({ variant: e = "text", size: t = "md", lines: n = 1, animate
3411
3707
  className: v("kb-spinner-track", c?.track)
3412
3708
  }),
3413
3709
  /* @__PURE__ */ b("path", {
3414
- d: "M12 2.5a9.5 9.5 0 0 1 9.5 9.5",
3710
+ d: "M12 2.5a9.5 9.5 0 1 1 0 19a9.5 9.5 0 1 1 0 -19",
3711
+ pathLength: 100,
3415
3712
  className: v("kb-spinner-arc", c?.arc)
3416
3713
  }),
3417
3714
  /* @__PURE__ */ b("path", {
3418
- d: "M12 17.5a5.5 5.5 0 0 1 -5.5 -5.5",
3715
+ d: "M12 17.5a5.5 5.5 0 1 1 0 -11a5.5 5.5 0 1 1 0 11",
3716
+ pathLength: 100,
3419
3717
  className: v("kb-spinner-arc", c?.arc)
3420
3718
  }),
3421
3719
  /* @__PURE__ */ b("circle", {
@@ -3425,13 +3723,13 @@ var Tn = s(function({ variant: e = "text", size: t = "md", lines: n = 1, animate
3425
3723
  className: v("kb-spinner-core", c?.core)
3426
3724
  })
3427
3725
  ] }),
3428
- a === "dots" && En.map((e) => /* @__PURE__ */ b("circle", {
3726
+ a === "dots" && Rn.map((e) => /* @__PURE__ */ b("circle", {
3429
3727
  cx: e,
3430
3728
  cy: "12",
3431
3729
  r: "2.25",
3432
3730
  className: v("kb-spinner-dot", c?.dot)
3433
3731
  }, e)),
3434
- a === "bars" && Dn.map((e) => /* @__PURE__ */ b("rect", {
3732
+ a === "bars" && zn.map((e) => /* @__PURE__ */ b("rect", {
3435
3733
  x: e,
3436
3734
  y: "5",
3437
3735
  width: "2.5",
@@ -3448,7 +3746,7 @@ var Tn = s(function({ variant: e = "text", size: t = "md", lines: n = 1, animate
3448
3746
  });
3449
3747
  //#endregion
3450
3748
  //#region src/components/Split/Split.tsx
3451
- function kn({ as: e, ratio: t = "equal", collapse: r = "md", gap: i = "md", align: a = "stretch", className: s, classNames: c, children: l, ...u }) {
3749
+ function Vn({ as: e, ratio: t = "equal", collapse: r = "md", gap: i = "md", align: a = "stretch", className: s, classNames: c, children: l, ...u }) {
3452
3750
  let d = v("kb-split-track", c?.track);
3453
3751
  return o(e ?? "div", {
3454
3752
  ...u,
@@ -3464,8 +3762,20 @@ function kn({ as: e, ratio: t = "equal", collapse: r = "md", gap: i = "md", alig
3464
3762
  })));
3465
3763
  }
3466
3764
  //#endregion
3765
+ //#region src/components/Stack/Stack.tsx
3766
+ function Hn({ as: e, gap: t = "md", align: n = "stretch", justify: r = "start", className: i, ...a }) {
3767
+ return o(e ?? "div", {
3768
+ ...a,
3769
+ ...H("stack", {
3770
+ gap: t,
3771
+ align: n,
3772
+ justify: r
3773
+ }, i)
3774
+ });
3775
+ }
3776
+ //#endregion
3467
3777
  //#region src/components/Stat/Stat.tsx
3468
- function An({ classNames: e, label: t, value: n, size: r = "md", className: i, ...a }) {
3778
+ function Un({ classNames: e, label: t, value: n, size: r = "md", className: i, ...a }) {
3469
3779
  return /* @__PURE__ */ x("div", {
3470
3780
  ...a,
3471
3781
  ...H("stat", { size: r }, i),
@@ -3479,8 +3789,67 @@ function An({ classNames: e, label: t, value: n, size: r = "md", className: i, .
3479
3789
  });
3480
3790
  }
3481
3791
  //#endregion
3792
+ //#region src/components/StatsRow/StatsRow.tsx
3793
+ function Wn({ appearance: e = "plain", className: t, ...n }) {
3794
+ return /* @__PURE__ */ b("ul", {
3795
+ role: "list",
3796
+ ...n,
3797
+ ...H("statsrow", { appearance: e }, t)
3798
+ });
3799
+ }
3800
+ var Gn = {
3801
+ up: "M8 3.5 13 10H3z",
3802
+ down: "M8 12.5 3 6h10z",
3803
+ flat: "M3 7h10v2H3z"
3804
+ };
3805
+ function Kn({ label: e, value: t, change: n, trend: r, tone: i = "neutral", context: a, link: o, className: s, classNames: c, ...l }) {
3806
+ let u = n != null || a != null;
3807
+ return /* @__PURE__ */ x("li", {
3808
+ ...l,
3809
+ ...H("statsrow-item", {}, s),
3810
+ children: [
3811
+ /* @__PURE__ */ b(Un, {
3812
+ label: e,
3813
+ value: t,
3814
+ className: c?.stat,
3815
+ classNames: c ?? {}
3816
+ }),
3817
+ u ? /* @__PURE__ */ x("p", {
3818
+ className: v("kb-statsrow-trend", c?.trend),
3819
+ children: [
3820
+ n == null ? null : /* @__PURE__ */ x("span", {
3821
+ className: v("kb-statsrow-change", c?.change),
3822
+ "data-tone": i,
3823
+ "data-trend": r,
3824
+ children: [r === void 0 ? null : /* @__PURE__ */ b("svg", {
3825
+ className: v("kb-statsrow-glyph", c?.glyph),
3826
+ viewBox: "0 0 16 16",
3827
+ "aria-hidden": "true",
3828
+ focusable: "false",
3829
+ children: /* @__PURE__ */ b("path", {
3830
+ d: Gn[r],
3831
+ fill: "currentColor"
3832
+ })
3833
+ }), n]
3834
+ }),
3835
+ n != null && a != null ? " " : null,
3836
+ a == null ? null : /* @__PURE__ */ b("span", {
3837
+ className: v("kb-statsrow-context", c?.context),
3838
+ children: a
3839
+ })
3840
+ ]
3841
+ }) : null,
3842
+ o == null ? null : /* @__PURE__ */ b("div", {
3843
+ className: v("kb-statsrow-link", c?.link),
3844
+ children: o
3845
+ })
3846
+ ]
3847
+ });
3848
+ }
3849
+ var qn = Object.assign(Wn, { Item: Kn });
3850
+ //#endregion
3482
3851
  //#region src/components/Status/Status.tsx
3483
- function jn({ classNames: e, tone: t = "neutral", appearance: n = "plain", icon: r, live: i = !1, compact: a = !1, className: o, children: s, ...c }) {
3852
+ function Jn({ classNames: e, tone: t = "neutral", appearance: n = "plain", icon: r, live: i = !1, compact: a = !1, className: o, children: s, ...c }) {
3484
3853
  return /* @__PURE__ */ x("span", {
3485
3854
  ...c,
3486
3855
  ...i ? { role: "status" } : {},
@@ -3500,8 +3869,24 @@ function jn({ classNames: e, tone: t = "neutral", appearance: n = "plain", icon:
3500
3869
  });
3501
3870
  }
3502
3871
  //#endregion
3872
+ //#region src/components/SupportingPane/SupportingPane.tsx
3873
+ var Yn = ({ ref: e, aside: t, asideLabel: n, asideLabelledBy: r, className: i, classNames: a, children: o, ...s }) => /* @__PURE__ */ x("div", {
3874
+ ...s,
3875
+ ref: e,
3876
+ ...H("supportingpane", {}, i),
3877
+ children: [/* @__PURE__ */ b("div", {
3878
+ className: v("kb-supportingpane-main", a?.main),
3879
+ children: o
3880
+ }), t ? /* @__PURE__ */ b("aside", {
3881
+ className: v("kb-supportingpane-aside", a?.aside),
3882
+ "aria-label": r ? void 0 : n,
3883
+ "aria-labelledby": r,
3884
+ children: t
3885
+ }) : null]
3886
+ });
3887
+ //#endregion
3503
3888
  //#region src/components/Switch/Switch.tsx
3504
- function Mn({ classNames: e, label: t, checked: n, onCheckedChange: r, size: i, tone: a, offTone: o, onTone: s, offColor: c, onColor: l, description: u, error: d, visuallyHidden: p, offIcon: m, onIcon: h, controlClassName: g, className: _, style: y, id: S, disabled: C, readOnly: w, "aria-describedby": T, "aria-invalid": E, ...D }) {
3889
+ function Xn({ classNames: e, label: t, checked: n, onCheckedChange: r, size: i, tone: a, offTone: o, onTone: s, offColor: c, onColor: l, description: u, error: d, visuallyHidden: p, offIcon: m, onIcon: h, controlClassName: g, className: _, style: y, id: S, disabled: C, readOnly: w, "aria-describedby": T, "aria-invalid": E, ...D }) {
3505
3890
  let O = {
3506
3891
  ...Object.fromEntries(Object.entries(y ?? {}).filter(([e]) => e.startsWith("--"))),
3507
3892
  ...c ? { "--kb-switch-off-color": c } : {},
@@ -3580,7 +3965,7 @@ function Mn({ classNames: e, label: t, checked: n, onCheckedChange: r, size: i,
3580
3965
  }
3581
3966
  //#endregion
3582
3967
  //#region src/components/Table/Table.tsx
3583
- function Nn({ density: e = "comfortable", stickyHeader: t = !1, layout: n = "auto", className: r, ...i }) {
3968
+ function Zn({ density: e = "comfortable", stickyHeader: t = !1, layout: n = "auto", className: r, ...i }) {
3584
3969
  return /* @__PURE__ */ b("table", {
3585
3970
  ...i,
3586
3971
  ...H("table", {
@@ -3590,7 +3975,7 @@ function Nn({ density: e = "comfortable", stickyHeader: t = !1, layout: n = "aut
3590
3975
  }, r)
3591
3976
  });
3592
3977
  }
3593
- function Pn(e, t) {
3978
+ function Qn(e, t) {
3594
3979
  let n = [...e.querySelectorAll(".kb-table")].find((n) => n.contains(t) && n.closest(".kb-table-scroll") === e);
3595
3980
  if (!n) return;
3596
3981
  let r = e.getBoundingClientRect(), i = r.left + e.clientLeft, a = r.top + e.clientTop, o;
@@ -3608,7 +3993,7 @@ function Pn(e, t) {
3608
3993
  let u = n.tHead, d = u && n.hasAttribute("data-sticky-header") && !u.contains(t) ? Math.max(a, u.getBoundingClientRect().bottom) : a, f = a + e.clientHeight, p = t.getBoundingClientRect();
3609
3994
  c > s && (p.left < s ? e.scrollLeft += Math.floor(p.left - s) : p.right > c && (e.scrollLeft += Math.ceil(p.right - c))), f > d && (p.top < d ? e.scrollTop += Math.floor(p.top - d) : p.bottom > f && (e.scrollTop += Math.ceil(p.bottom - f)));
3610
3995
  }
3611
- function Fn({ label: e, maxHeight: t, onFocus: n, className: r, style: i, ...a }) {
3996
+ function $n({ label: e, maxHeight: t, onFocus: n, className: r, style: i, ...a }) {
3612
3997
  return /* @__PURE__ */ b("section", {
3613
3998
  ...a,
3614
3999
  "aria-label": e,
@@ -3619,41 +4004,41 @@ function Fn({ label: e, maxHeight: t, onFocus: n, className: r, style: i, ...a }
3619
4004
  ...i
3620
4005
  },
3621
4006
  onFocus: (e) => {
3622
- n?.(e), !e.defaultPrevented && e.target instanceof HTMLElement && Pn(e.currentTarget, e.target);
4007
+ n?.(e), !e.defaultPrevented && e.target instanceof HTMLElement && Qn(e.currentTarget, e.target);
3623
4008
  }
3624
4009
  });
3625
4010
  }
3626
- function In({ className: e, ...t }) {
4011
+ function er({ className: e, ...t }) {
3627
4012
  return /* @__PURE__ */ b("caption", {
3628
4013
  ...t,
3629
4014
  ...H("table-caption", {}, e)
3630
4015
  });
3631
4016
  }
3632
- function Ln({ className: e, ...t }) {
4017
+ function tr({ className: e, ...t }) {
3633
4018
  return /* @__PURE__ */ b("thead", {
3634
4019
  ...t,
3635
4020
  ...H("table-head", {}, e)
3636
4021
  });
3637
4022
  }
3638
- function Rn({ className: e, ...t }) {
4023
+ function nr({ className: e, ...t }) {
3639
4024
  return /* @__PURE__ */ b("tbody", {
3640
4025
  ...t,
3641
4026
  ...H("table-body", {}, e)
3642
4027
  });
3643
4028
  }
3644
- function zn({ className: e, ...t }) {
4029
+ function rr({ className: e, ...t }) {
3645
4030
  return /* @__PURE__ */ b("tfoot", {
3646
4031
  ...t,
3647
4032
  ...H("table-foot", {}, e)
3648
4033
  });
3649
4034
  }
3650
- function Bn({ selected: e = !1, className: t, ...n }) {
4035
+ function ir({ selected: e = !1, className: t, ...n }) {
3651
4036
  return /* @__PURE__ */ b("tr", {
3652
4037
  ...n,
3653
4038
  ...H("table-row", { selected: e }, t)
3654
4039
  });
3655
4040
  }
3656
- function Vn({ align: e = "start", sticky: t, sortDirection: n, onSortChange: r, sortDisabled: i, className: a, classNames: o, children: s, scope: c = "col", "aria-sort": l, ...u }) {
4041
+ function ar({ align: e = "start", sticky: t, sortDirection: n, onSortChange: r, sortDisabled: i, className: a, classNames: o, children: s, scope: c = "col", "aria-sort": l, ...u }) {
3657
4042
  let d = n ?? (l === "ascending" || l === "descending" ? l : "none");
3658
4043
  return /* @__PURE__ */ b("th", {
3659
4044
  ...u,
@@ -3677,7 +4062,7 @@ function Vn({ align: e = "start", sticky: t, sortDirection: n, onSortChange: r,
3677
4062
  }) : s
3678
4063
  });
3679
4064
  }
3680
- function Hn({ align: e = "start", sticky: t, scope: n = "row", className: r, ...i }) {
4065
+ function or({ align: e = "start", sticky: t, scope: n = "row", className: r, ...i }) {
3681
4066
  return /* @__PURE__ */ b("th", {
3682
4067
  ...i,
3683
4068
  scope: n,
@@ -3687,7 +4072,7 @@ function Hn({ align: e = "start", sticky: t, scope: n = "row", className: r, ...
3687
4072
  }, r)
3688
4073
  });
3689
4074
  }
3690
- function Un({ align: e = "start", sticky: t, className: n, ...r }) {
4075
+ function sr({ align: e = "start", sticky: t, className: n, ...r }) {
3691
4076
  return /* @__PURE__ */ b("td", {
3692
4077
  ...r,
3693
4078
  ...H("table-cell", {
@@ -3696,30 +4081,30 @@ function Un({ align: e = "start", sticky: t, className: n, ...r }) {
3696
4081
  }, n)
3697
4082
  });
3698
4083
  }
3699
- function Wn({ className: e, ...t }) {
4084
+ function cr({ className: e, ...t }) {
3700
4085
  return /* @__PURE__ */ b("div", {
3701
4086
  ...t,
3702
4087
  ...H("table-rowactions", {}, e)
3703
4088
  });
3704
4089
  }
3705
- var Gn = Object.assign(Nn, {
3706
- ScrollContainer: Fn,
3707
- Caption: In,
3708
- Head: Ln,
3709
- Body: Rn,
3710
- Foot: zn,
3711
- Row: Bn,
3712
- ColumnHeader: Vn,
3713
- RowHeader: Hn,
3714
- Cell: Un,
4090
+ var lr = Object.assign(Zn, {
4091
+ ScrollContainer: $n,
4092
+ Caption: er,
4093
+ Head: tr,
4094
+ Body: nr,
4095
+ Foot: rr,
4096
+ Row: ir,
4097
+ ColumnHeader: ar,
4098
+ RowHeader: or,
4099
+ Cell: sr,
3715
4100
  SelectionCheckbox: ae,
3716
- RowActions: Wn
3717
- }), Kn = a({
4101
+ RowActions: cr
4102
+ }), ur = a({
3718
4103
  variant: "line",
3719
4104
  size: "md",
3720
4105
  orientation: "horizontal"
3721
- }), qn = s(function({ className: e, ...t }, n) {
3722
- let { classNames: r, variant: i, size: a, orientation: o } = u(Kn);
4106
+ }), dr = s(function({ className: e, ...t }, n) {
4107
+ let { classNames: r, variant: i, size: a, orientation: o } = u(ur);
3723
4108
  return /* @__PURE__ */ b(L.Indicator, {
3724
4109
  ...t,
3725
4110
  "data-variant": i,
@@ -3728,8 +4113,8 @@ var Gn = Object.assign(Nn, {
3728
4113
  ref: n,
3729
4114
  className: v("kb-tabs-indicator", r?.indicator, e)
3730
4115
  });
3731
- }), Jn = s(function({ activateOnFocus: e = !0, loopFocus: t = !0, showIndicator: r = !0, className: i, children: a, ...o }, s) {
3732
- let { classNames: l, variant: d, size: f, orientation: p } = u(Kn), m = n.toArray(a).some((e) => c(e) && e.type === qn);
4116
+ }), fr = s(function({ activateOnFocus: e = !0, loopFocus: t = !0, showIndicator: r = !0, className: i, children: a, ...o }, s) {
4117
+ let { classNames: l, variant: d, size: f, orientation: p } = u(ur), m = n.toArray(a).some((e) => c(e) && e.type === dr);
3733
4118
  return /* @__PURE__ */ x(L.List, {
3734
4119
  ...o,
3735
4120
  "data-variant": d,
@@ -3739,10 +4124,10 @@ var Gn = Object.assign(Nn, {
3739
4124
  activateOnFocus: e,
3740
4125
  loopFocus: t,
3741
4126
  className: v("kb-tabs-list", l?.list, i),
3742
- children: [a, r && !m ? /* @__PURE__ */ b(qn, {}) : null]
4127
+ children: [a, r && !m ? /* @__PURE__ */ b(dr, {}) : null]
3743
4128
  });
3744
- }), Yn = s(function({ value: e, disabled: t = !1, icon: n, badge: r, className: i, children: a, ...o }, s) {
3745
- let { classNames: c, variant: l, size: d, orientation: f } = u(Kn);
4129
+ }), pr = s(function({ value: e, disabled: t = !1, icon: n, badge: r, className: i, children: a, ...o }, s) {
4130
+ let { classNames: c, variant: l, size: d, orientation: f } = u(ur);
3746
4131
  return /* @__PURE__ */ x(L.Tab, {
3747
4132
  ...o,
3748
4133
  "data-variant": l,
@@ -3768,8 +4153,8 @@ var Gn = Object.assign(Nn, {
3768
4153
  })
3769
4154
  ]
3770
4155
  });
3771
- }), Xn = s(function({ value: e, keepMounted: t = !1, className: n, children: r, ...i }, a) {
3772
- let { classNames: o, variant: s, size: c, orientation: l } = u(Kn);
4156
+ }), mr = s(function({ value: e, keepMounted: t = !1, className: n, children: r, ...i }, a) {
4157
+ let { classNames: o, variant: s, size: c, orientation: l } = u(ur);
3773
4158
  return /* @__PURE__ */ b(L.Panel, {
3774
4159
  ...i,
3775
4160
  "data-variant": s,
@@ -3781,8 +4166,8 @@ var Gn = Object.assign(Nn, {
3781
4166
  className: v("kb-tabs-panel", o?.panel, n),
3782
4167
  children: r
3783
4168
  });
3784
- }), Zn = s(function({ value: e, defaultValue: t, onValueChange: n, orientation: r = "horizontal", variant: i = "line", size: a = "md", className: o, classNames: s, children: c, ...l }, u) {
3785
- return /* @__PURE__ */ b(Kn.Provider, {
4169
+ }), hr = s(function({ value: e, defaultValue: t, onValueChange: n, orientation: r = "horizontal", variant: i = "line", size: a = "md", className: o, classNames: s, children: c, ...l }, u) {
4170
+ return /* @__PURE__ */ b(ur.Provider, {
3786
4171
  value: {
3787
4172
  classNames: s,
3788
4173
  variant: i,
@@ -3802,15 +4187,15 @@ var Gn = Object.assign(Nn, {
3802
4187
  children: c
3803
4188
  })
3804
4189
  });
3805
- }), Qn = Object.assign(Zn, {
3806
- List: Jn,
3807
- Tab: Yn,
3808
- Indicator: qn,
3809
- Panel: Xn
4190
+ }), gr = Object.assign(hr, {
4191
+ List: fr,
4192
+ Tab: pr,
4193
+ Indicator: dr,
4194
+ Panel: mr
3810
4195
  });
3811
4196
  //#endregion
3812
4197
  //#region src/components/Text/Text.tsx
3813
- function $n({ as: e, size: t = "md", tone: n = "default", className: r, ...i }) {
4198
+ function _r({ as: e, size: t = "md", tone: n = "default", className: r, ...i }) {
3814
4199
  return o(e ?? "p", {
3815
4200
  ...i,
3816
4201
  ...H("text", {
@@ -3821,7 +4206,7 @@ function $n({ as: e, size: t = "md", tone: n = "default", className: r, ...i })
3821
4206
  }
3822
4207
  //#endregion
3823
4208
  //#region src/components/Textarea/Textarea.tsx
3824
- var er = ({ ref: e, id: t, label: n, visuallyHidden: r, description: i, error: a, resize: o = "vertical", rows: s = 4, disabled: c, readOnly: l, onChange: u, onValueChange: d, className: p, classNames: m, "aria-describedby": h, "aria-invalid": g, ..._ }) => {
4209
+ var vr = ({ ref: e, id: t, label: n, visuallyHidden: r, description: i, error: a, resize: o = "vertical", rows: s = 4, disabled: c, readOnly: l, onChange: u, onValueChange: d, className: p, classNames: m, "aria-describedby": h, "aria-invalid": g, ..._ }) => {
3825
4210
  let y = f(), S = t ?? `kb-textarea-${y}`, { invalid: C, ariaInvalid: w } = U(!!a, g), T = i ? `${S}-description` : void 0, E = a ? `${S}-error` : void 0, D = [
3826
4211
  T,
3827
4212
  E,
@@ -3869,7 +4254,7 @@ var er = ({ ref: e, id: t, label: n, visuallyHidden: r, description: i, error: a
3869
4254
  };
3870
4255
  //#endregion
3871
4256
  //#region src/components/Thumbnail/Thumbnail.tsx
3872
- function tr({ src: e, alt: t, ratio: n, fit: r, position: i, fallback: a, caption: o, description: s, imageProps: c, className: l, classNames: u, ...d }) {
4257
+ function yr({ src: e, alt: t, ratio: n, fit: r, position: i, fallback: a, caption: o, description: s, imageProps: c, className: l, classNames: u, ...d }) {
3873
4258
  let p = f(), m = o != null && o !== !1;
3874
4259
  return /* @__PURE__ */ x("figure", {
3875
4260
  ...d,
@@ -3902,37 +4287,37 @@ function tr({ src: e, alt: t, ratio: n, fit: r, position: i, fallback: a, captio
3902
4287
  }
3903
4288
  //#endregion
3904
4289
  //#region src/components/Toast/Toast.tsx
3905
- function nr() {
4290
+ function br() {
3906
4291
  return R.createToastManager();
3907
4292
  }
3908
- function rr() {
4293
+ function xr() {
3909
4294
  return R.useToastManager();
3910
4295
  }
3911
- function ir({ className: e, ...t }) {
4296
+ function Sr({ className: e, ...t }) {
3912
4297
  return /* @__PURE__ */ b(R.Content, {
3913
4298
  ...t,
3914
4299
  className: v("kb-toast-content", e)
3915
4300
  });
3916
4301
  }
3917
- function ar({ className: e, ...t }) {
4302
+ function Cr({ className: e, ...t }) {
3918
4303
  return /* @__PURE__ */ b(R.Title, {
3919
4304
  ...t,
3920
4305
  className: v("kb-toast-title", e)
3921
4306
  });
3922
4307
  }
3923
- function or({ className: e, ...t }) {
4308
+ function wr({ className: e, ...t }) {
3924
4309
  return /* @__PURE__ */ b(R.Description, {
3925
4310
  ...t,
3926
4311
  className: v("kb-toast-description", e)
3927
4312
  });
3928
4313
  }
3929
- function sr({ className: e, ...t }) {
4314
+ function Tr({ className: e, ...t }) {
3930
4315
  return /* @__PURE__ */ b(R.Action, {
3931
4316
  ...t,
3932
4317
  className: v("kb-toast-action", e)
3933
4318
  });
3934
4319
  }
3935
- function cr({ className: e, ...t }) {
4320
+ function Er({ className: e, ...t }) {
3936
4321
  return /* @__PURE__ */ b(R.Close, {
3937
4322
  "aria-label": "Dismiss notification",
3938
4323
  "aria-hidden": !1,
@@ -3940,25 +4325,25 @@ function cr({ className: e, ...t }) {
3940
4325
  className: v("kb-toast-close", e)
3941
4326
  });
3942
4327
  }
3943
- function lr(e) {
4328
+ function Dr(e) {
3944
4329
  return e === "error" ? "danger" : e === "loading" ? "info" : e === "info" || e === "success" || e === "warning" || e === "danger" ? e : "neutral";
3945
4330
  }
3946
- function ur({ toast: e, tone: t = lr(e.type), closeLabel: n = "Dismiss notification", classNames: r, className: i, children: a, ...o }) {
4331
+ function Or({ toast: e, tone: t = Dr(e.type), closeLabel: n = "Dismiss notification", classNames: r, className: i, children: a, ...o }) {
3947
4332
  return /* @__PURE__ */ b(R.Root, {
3948
4333
  ...o,
3949
4334
  toast: e,
3950
4335
  ...H("toast", { tone: t }, i),
3951
- children: a === void 0 ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x(ir, {
4336
+ children: a === void 0 ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x(Sr, {
3952
4337
  className: r?.content,
3953
4338
  children: [
3954
- /* @__PURE__ */ b(ar, {
4339
+ /* @__PURE__ */ b(Cr, {
3955
4340
  className: r?.title,
3956
4341
  children: e.title ?? e.description
3957
4342
  }),
3958
- e.title != null && /* @__PURE__ */ b(or, { className: r?.description }),
3959
- /* @__PURE__ */ b(sr, { className: r?.action })
4343
+ e.title != null && /* @__PURE__ */ b(wr, { className: r?.description }),
4344
+ /* @__PURE__ */ b(Tr, { className: r?.action })
3960
4345
  ]
3961
- }), /* @__PURE__ */ b(cr, {
4346
+ }), /* @__PURE__ */ b(Er, {
3962
4347
  className: r?.close,
3963
4348
  "aria-label": n,
3964
4349
  children: /* @__PURE__ */ b("span", {
@@ -3968,41 +4353,41 @@ function ur({ toast: e, tone: t = lr(e.type), closeLabel: n = "Dismiss notificat
3968
4353
  })] }) : a
3969
4354
  });
3970
4355
  }
3971
- function dr({ placement: e = "bottom-end", container: t, renderToast: n, className: r, children: i, ...a }) {
3972
- let { toasts: o } = rr(), s = /* @__PURE__ */ b(R.Viewport, {
4356
+ function kr({ placement: e = "bottom-end", container: t, renderToast: n, className: r, children: i, ...a }) {
4357
+ let { toasts: o } = xr(), s = /* @__PURE__ */ b(R.Viewport, {
3973
4358
  ...a,
3974
4359
  ...H("toast-viewport", { placement: e }, r),
3975
- children: i === void 0 ? o.map((e) => n ? n(e) : /* @__PURE__ */ b(ur, { toast: e }, e.id)) : i
4360
+ children: i === void 0 ? o.map((e) => n ? n(e) : /* @__PURE__ */ b(Or, { toast: e }, e.id)) : i
3976
4361
  });
3977
4362
  return e === "inline" ? s : /* @__PURE__ */ b(R.Portal, {
3978
4363
  container: t,
3979
4364
  children: s
3980
4365
  });
3981
4366
  }
3982
- var fr = Object.assign(ur, {
4367
+ var Ar = Object.assign(Or, {
3983
4368
  Provider: R.Provider,
3984
- Viewport: dr,
3985
- Content: ir,
3986
- Title: ar,
3987
- Description: or,
3988
- Action: sr,
3989
- Close: cr
4369
+ Viewport: kr,
4370
+ Content: Sr,
4371
+ Title: Cr,
4372
+ Description: wr,
4373
+ Action: Tr,
4374
+ Close: Er
3990
4375
  });
3991
4376
  //#endregion
3992
4377
  //#region src/components/Toolbar/Toolbar.tsx
3993
- function pr({ className: e, ...t }) {
4378
+ function jr({ className: e, ...t }) {
3994
4379
  return /* @__PURE__ */ b(z.Root, {
3995
4380
  ...t,
3996
4381
  className: v("kb-toolbar", e)
3997
4382
  });
3998
4383
  }
3999
- function mr({ className: e, ...t }) {
4384
+ function Mr({ className: e, ...t }) {
4000
4385
  return /* @__PURE__ */ b(z.Group, {
4001
4386
  ...t,
4002
4387
  className: v("kb-toolbar-group", e)
4003
4388
  });
4004
4389
  }
4005
- function hr({ variant: e = "ghost", className: t, ...n }) {
4390
+ function Nr({ variant: e = "ghost", className: t, ...n }) {
4006
4391
  return /* @__PURE__ */ b(z.Button, {
4007
4392
  ...n,
4008
4393
  render: /* @__PURE__ */ b(Z, {
@@ -4012,20 +4397,20 @@ function hr({ variant: e = "ghost", className: t, ...n }) {
4012
4397
  })
4013
4398
  });
4014
4399
  }
4015
- function gr({ className: e, ...t }) {
4400
+ function Pr({ className: e, ...t }) {
4016
4401
  return /* @__PURE__ */ b(z.Separator, {
4017
4402
  ...t,
4018
4403
  className: v("kb-toolbar-separator", e)
4019
4404
  });
4020
4405
  }
4021
- var _r = Object.assign(pr, {
4022
- Group: mr,
4023
- Button: hr,
4024
- Separator: gr
4406
+ var Fr = Object.assign(jr, {
4407
+ Group: Mr,
4408
+ Button: Nr,
4409
+ Separator: Pr
4025
4410
  });
4026
4411
  //#endregion
4027
4412
  //#region src/components/Tooltip/Tooltip.tsx
4028
- function vr({ content: e, children: t, side: n = "top", delay: r = 400, container: i, className: a, ref: o }) {
4413
+ function Ir({ content: e, children: t, side: n = "top", delay: r = 400, container: i, className: a, ref: o }) {
4029
4414
  return /* @__PURE__ */ x(B.Root, { children: [/* @__PURE__ */ b(B.Trigger, {
4030
4415
  delay: r,
4031
4416
  render: t
@@ -4043,6 +4428,6 @@ function vr({ content: e, children: t, side: n = "top", delay: r = 400, containe
4043
4428
  })] });
4044
4429
  }
4045
4430
  //#endregion
4046
- export { ee as Accordion, te as Avatar, ne as Badge, Z as Button, re as Callout, ie as Card, ae as Checkbox, Te as Code, Ee as CodeBlock, Fe as Collection, Ie as CollectionList, Le as CollectionRow, Ve as Combobox, Ue as Container, et as CopyableText, at as DescriptionList, gt as Dialog, bt as Disclosure, St as EmptyState, Tt as ErrorSummary, Et as Fieldset, At as FileInput, jt as FormActions, Mt as Grid, Pt as Heading, Y as Image, Ft as Inline, De as Input, Je as Link, Ht as Menu, Be as MultiSelect, Ut as NumberField, rn as Panel, mn as Popover, hn as Progress, xn as RadioGroup, Sn as ScrollArea, Oe as Select, Cn as Separator, Tn as Skeleton, On as Spinner, kn as Split, An as Stat, jn as Status, Mn as Switch, Gn as Table, Qn as Tabs, $n as Text, er as Textarea, tr as Thumbnail, fr as Toast, _r as Toolbar, vr as Tooltip, nr as createToastManager, H as kb, Ce as tokenizeCode, je as useCollection, Ke as useLinkComponent, rr as useToastManager };
4431
+ export { ee as Accordion, te as Avatar, ne as Badge, Z as Button, re as Callout, ie as Card, ae as Checkbox, Te as Code, Ee as CodeBlock, Fe as Collection, Ie as CollectionList, Le as CollectionRow, Ve as Combobox, tt as ConfirmAction, nt as Container, pt as CopyableText, mt as Dashboard, yt as DescriptionList, $e as Dialog, Ct as Disclosure, Tt as EmptyState, Ot as ErrorSummary, kt as Fieldset, Nt as FileInput, Ft as Form, Pt as FormActions, Rt as FormSection, Ut as Gallery, zt as Grid, Lt as Heading, Y as Image, Wt as Inline, De as Input, st as Link, Zt as Menu, Be as MultiSelect, Qt as NumberField, en as PageHeader, hn as Panel, Tn as Popover, En as Progress, Mn as RadioGroup, Nn as ScrollArea, Oe as Select, Pn as Separator, Fn as Settings, Ln as Skeleton, Bn as Spinner, Vn as Split, Hn as Stack, Un as Stat, qn as StatsRow, Jn as Status, Yn as SupportingPane, Xn as Switch, lr as Table, gr as Tabs, _r as Text, vr as Textarea, yr as Thumbnail, Ar as Toast, Fr as Toolbar, Ir as Tooltip, br as createToastManager, H as kb, Ce as tokenizeCode, je as useCollection, at as useLinkComponent, xr as useToastManager };
4047
4432
 
4048
4433
  //# sourceMappingURL=index.js.map