@kb.ui/react 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,10 +20,13 @@ import { RadioGroup as F } from "@base-ui/react/radio-group";
20
20
  import { ScrollArea as I } from "@base-ui/react/scroll-area";
21
21
  import { Tabs as L } from "@base-ui/react/tabs";
22
22
  import { Toast as R } from "@base-ui/react/toast";
23
- import { Toolbar as z } from "@base-ui/react/toolbar";
24
- import { Tooltip as B } from "@base-ui/react/tooltip";
23
+ import { Toggle as z } from "@base-ui/react/toggle";
24
+ import { DirectionProvider as B } from "@base-ui/react/direction-provider";
25
+ import { ToggleGroup as V } from "@base-ui/react/toggle-group";
26
+ import { Toolbar as H } from "@base-ui/react/toolbar";
27
+ import { Tooltip as U } from "@base-ui/react/tooltip";
25
28
  //#region src/utils/CollapsiblePanel.tsx
26
- function V({ nativeProps: e, state: n, render: r }) {
29
+ function W({ nativeProps: e, state: n, render: r }) {
27
30
  let a = !n.open && !e.hidden;
28
31
  return t({
29
32
  props: {
@@ -35,12 +38,12 @@ function V({ nativeProps: e, state: n, render: r }) {
35
38
  }
36
39
  //#endregion
37
40
  //#region src/utils/kb.ts
38
- function H(e, t = {}, n) {
41
+ function G(e, t = {}, n) {
39
42
  let r = { className: v(`kb-${e}`, n) };
40
43
  for (let [e, n] of Object.entries(t)) n !== void 0 && n !== !1 && (r[`data-${e}`] = n === !0 ? "" : n);
41
44
  return r;
42
45
  }
43
- function U(e, t) {
46
+ function K(e, t) {
44
47
  let n = t !== void 0 && t !== !1 && t !== "false", r = e || n;
45
48
  return {
46
49
  invalid: r,
@@ -49,35 +52,35 @@ function U(e, t) {
49
52
  }
50
53
  //#endregion
51
54
  //#region src/components/Accordion/Accordion.tsx
52
- function W({ className: t, ...n }) {
55
+ function q({ className: t, ...n }) {
53
56
  return /* @__PURE__ */ b(e.Root, {
54
57
  ...n,
55
- ...H("accordion", {}, t)
58
+ ...G("accordion", {}, t)
56
59
  });
57
60
  }
58
- function G({ className: t, ...n }) {
61
+ function J({ className: t, ...n }) {
59
62
  return /* @__PURE__ */ b(e.Item, {
60
63
  ...n,
61
- ...H("accordion-item", {}, t)
64
+ ...G("accordion-item", {}, t)
62
65
  });
63
66
  }
64
- function K({ className: t, ...n }) {
67
+ function ee({ className: t, ...n }) {
65
68
  return /* @__PURE__ */ b(e.Header, {
66
69
  ...n,
67
- ...H("accordion-header", {}, t)
70
+ ...G("accordion-header", {}, t)
68
71
  });
69
72
  }
70
- function q({ className: t, ...n }) {
73
+ function Y({ className: t, ...n }) {
71
74
  return /* @__PURE__ */ b(e.Trigger, {
72
75
  ...n,
73
- ...H("accordion-trigger", {}, t)
76
+ ...G("accordion-trigger", {}, t)
74
77
  });
75
78
  }
76
- function J({ className: t, children: n, render: r, ...i }) {
79
+ function X({ className: t, children: n, render: r, ...i }) {
77
80
  return /* @__PURE__ */ b(e.Panel, {
78
81
  ...i,
79
- ...H("accordion-panel", {}, t),
80
- render: (e, t) => /* @__PURE__ */ b(V, {
82
+ ...G("accordion-panel", {}, t),
83
+ render: (e, t) => /* @__PURE__ */ b(W, {
81
84
  nativeProps: e,
82
85
  state: t,
83
86
  render: r
@@ -88,26 +91,26 @@ function J({ className: t, children: n, render: r, ...i }) {
88
91
  })
89
92
  });
90
93
  }
91
- var ee = Object.assign(W, {
92
- Item: G,
93
- Header: K,
94
- Trigger: q,
95
- Panel: J
94
+ var te = Object.assign(q, {
95
+ Item: J,
96
+ Header: ee,
97
+ Trigger: Y,
98
+ Panel: X
96
99
  });
97
100
  //#endregion
98
101
  //#region src/components/Image/Image.tsx
99
- function Y(e) {
100
- return /* @__PURE__ */ b(X, { ...e }, JSON.stringify([
102
+ function ne(e) {
103
+ return /* @__PURE__ */ b(re, { ...e }, JSON.stringify([
101
104
  e.src,
102
105
  e.srcSet,
103
106
  e.sizes
104
107
  ]));
105
108
  }
106
- function X({ src: e, srcSet: t, sizes: n, width: r, height: i, loading: a, decoding: o = "async", crossOrigin: s, referrerPolicy: c, fetchPriority: l, onLoad: u, onError: d, alt: f, ratio: p = "landscape", fit: m = "cover", position: h, fallback: g, className: v, classNames: y, style: S, ...C }) {
109
+ function re({ src: e, srcSet: t, sizes: n, width: r, height: i, loading: a, decoding: o = "async", crossOrigin: s, referrerPolicy: c, fetchPriority: l, onLoad: u, onError: d, alt: f, ratio: p = "landscape", fit: m = "cover", position: h, fallback: g, className: v, classNames: y, style: S, ...C }) {
107
110
  let w = !!(e?.trim() || t?.trim()), [T, E] = _("loading"), D = Number(r) > 0 && Number(i) > 0 ? `${r} / ${i}` : void 0;
108
111
  return /* @__PURE__ */ x("span", {
109
112
  ...C,
110
- ...H("image", {
113
+ ...G("image", {
111
114
  ratio: p,
112
115
  fit: m,
113
116
  state: w ? T : "empty"
@@ -120,7 +123,7 @@ function X({ src: e, srcSet: t, sizes: n, width: r, height: i, loading: a, decod
120
123
  ...S
121
124
  },
122
125
  children: [/* @__PURE__ */ b("span", {
123
- ...H("image-fallback", {}, y?.fallback),
126
+ ...G("image-fallback", {}, y?.fallback),
124
127
  "aria-hidden": "true",
125
128
  children: g ?? /* @__PURE__ */ x("svg", {
126
129
  viewBox: "0 0 32 32",
@@ -145,7 +148,7 @@ function X({ src: e, srcSet: t, sizes: n, width: r, height: i, loading: a, decod
145
148
  ]
146
149
  })
147
150
  }), w && /* @__PURE__ */ b("img", {
148
- ...H("image-image", {}, y?.image),
151
+ ...G("image-image", {}, y?.image),
149
152
  src: e?.trim() || void 0,
150
153
  srcSet: t?.trim() || void 0,
151
154
  sizes: n,
@@ -173,19 +176,19 @@ function X({ src: e, srcSet: t, sizes: n, width: r, height: i, loading: a, decod
173
176
  }
174
177
  //#endregion
175
178
  //#region src/components/Avatar/Avatar.tsx
176
- function te({ name: e, initials: t, decorative: n = !1, size: r = "md", shape: i = "circle", src: a, srcSet: o, sizes: s, loading: c, onLoad: l, onError: u, className: d, classNames: f, ...p }) {
179
+ function ie({ name: e, initials: t, decorative: n = !1, size: r = "md", shape: i = "circle", src: a, srcSet: o, sizes: s, loading: c, onLoad: l, onError: u, className: d, classNames: f, ...p }) {
177
180
  let m = e.trim().split(/\s+/).filter(Boolean), h = [m[0], ...m.length > 1 ? [m.at(-1)] : []].map((e) => Array.from(e ?? "")[0] ?? "").join("").toLocaleUpperCase();
178
181
  return /* @__PURE__ */ b("span", {
179
182
  ...p,
180
- ...H("avatar", {
183
+ ...G("avatar", {
181
184
  size: r,
182
185
  shape: i
183
186
  }, f?.root ?? d),
184
187
  role: "img",
185
188
  "aria-label": n ? void 0 : p["aria-label"] ?? (e.trim() || "Unknown person"),
186
189
  "aria-hidden": n ? !0 : p["aria-hidden"],
187
- children: /* @__PURE__ */ b(Y, {
188
- ...H("avatar-media", {}, f?.media),
190
+ children: /* @__PURE__ */ b(ne, {
191
+ ...G("avatar-media", {}, f?.media),
189
192
  src: a,
190
193
  srcSet: o,
191
194
  sizes: s,
@@ -195,7 +198,7 @@ function te({ name: e, initials: t, decorative: n = !1, size: r = "md", shape: i
195
198
  alt: "",
196
199
  ratio: "square",
197
200
  fallback: /* @__PURE__ */ b("span", {
198
- ...H("avatar-initials", {}, f?.initials),
201
+ ...G("avatar-initials", {}, f?.initials),
199
202
  children: t?.trim() || h || "?"
200
203
  })
201
204
  })
@@ -203,10 +206,10 @@ function te({ name: e, initials: t, decorative: n = !1, size: r = "md", shape: i
203
206
  }
204
207
  //#endregion
205
208
  //#region src/components/Badge/Badge.tsx
206
- function ne({ tone: e = "neutral", appearance: t = "chip", mono: n = !1, preserveCase: r = !1, className: i, ...a }) {
209
+ function ae({ tone: e = "neutral", appearance: t = "chip", mono: n = !1, preserveCase: r = !1, className: i, ...a }) {
207
210
  return /* @__PURE__ */ b("span", {
208
211
  ...a,
209
- ...H("badge", {
212
+ ...G("badge", {
210
213
  tone: e,
211
214
  appearance: t,
212
215
  mono: n,
@@ -215,23 +218,148 @@ function ne({ tone: e = "neutral", appearance: t = "chip", mono: n = !1, preserv
215
218
  });
216
219
  }
217
220
  //#endregion
218
- //#region src/components/Button/Button.tsx
219
- function Z({ variant: e = "primary", size: t = "md", className: n, ...r }) {
221
+ //#region src/components/Spinner/Spinner.tsx
222
+ var oe = [
223
+ 5,
224
+ 12,
225
+ 19
226
+ ], se = [
227
+ 3.5,
228
+ 8.25,
229
+ 13,
230
+ 17.75
231
+ ], ce = 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) {
232
+ return /* @__PURE__ */ x("span", {
233
+ ref: u,
234
+ role: n ? void 0 : "status",
235
+ "aria-live": n ? void 0 : "polite",
236
+ "aria-hidden": n ? "true" : void 0,
237
+ ...l,
238
+ ...G("spinner", {
239
+ size: r,
240
+ tone: i,
241
+ variant: a,
242
+ appearance: o,
243
+ "show-label": t
244
+ }, c?.root ?? s),
245
+ children: [/* @__PURE__ */ x("svg", {
246
+ viewBox: "0 0 24 24",
247
+ "aria-hidden": "true",
248
+ focusable: "false",
249
+ className: v("kb-spinner-icon", c?.icon),
250
+ children: [
251
+ a === "ring" && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("circle", {
252
+ cx: "12",
253
+ cy: "12",
254
+ r: "9.5",
255
+ className: v("kb-spinner-track", c?.track)
256
+ }), /* @__PURE__ */ b("path", {
257
+ d: "M12 2.5a9.5 9.5 0 1 1 0 19a9.5 9.5 0 1 1 0 -19",
258
+ pathLength: 100,
259
+ className: v("kb-spinner-arc", c?.arc)
260
+ })] }),
261
+ a === "orbit" && /* @__PURE__ */ x(y, { children: [
262
+ /* @__PURE__ */ b("circle", {
263
+ cx: "12",
264
+ cy: "12",
265
+ r: "9.5",
266
+ className: v("kb-spinner-track", c?.track)
267
+ }),
268
+ /* @__PURE__ */ b("circle", {
269
+ cx: "12",
270
+ cy: "12",
271
+ r: "5.5",
272
+ className: v("kb-spinner-track", c?.track)
273
+ }),
274
+ /* @__PURE__ */ b("path", {
275
+ d: "M12 2.5a9.5 9.5 0 1 1 0 19a9.5 9.5 0 1 1 0 -19",
276
+ pathLength: 100,
277
+ className: v("kb-spinner-arc", c?.arc)
278
+ }),
279
+ /* @__PURE__ */ b("path", {
280
+ d: "M12 17.5a5.5 5.5 0 1 1 0 -11a5.5 5.5 0 1 1 0 11",
281
+ pathLength: 100,
282
+ className: v("kb-spinner-arc", c?.arc)
283
+ }),
284
+ /* @__PURE__ */ b("circle", {
285
+ cx: "12",
286
+ cy: "12",
287
+ r: "1.75",
288
+ className: v("kb-spinner-core", c?.core)
289
+ })
290
+ ] }),
291
+ a === "dots" && oe.map((e) => /* @__PURE__ */ b("circle", {
292
+ cx: e,
293
+ cy: "12",
294
+ r: "2.25",
295
+ className: v("kb-spinner-dot", c?.dot)
296
+ }, e)),
297
+ a === "bars" && se.map((e) => /* @__PURE__ */ b("rect", {
298
+ x: e,
299
+ y: "5",
300
+ width: "2.5",
301
+ height: "14",
302
+ rx: "1.25",
303
+ className: v("kb-spinner-bar", c?.bar)
304
+ }, e))
305
+ ]
306
+ }), !n && /* @__PURE__ */ b("span", {
307
+ className: v("kb-spinner-label", !t && "kb-sr-only", c?.label),
308
+ children: e
309
+ })]
310
+ });
311
+ }), le = {
312
+ "aria-busy": !0,
313
+ "aria-disabled": !0
314
+ };
315
+ function ue(e) {
316
+ return /* @__PURE__ */ x(y, { children: [e, /* @__PURE__ */ b(ce, {
317
+ className: "kb-button-spinner",
318
+ decorative: !0,
319
+ size: "sm",
320
+ tone: "current"
321
+ })] });
322
+ }
323
+ function de(e) {
324
+ e.preventDefault(), e.stopPropagation();
325
+ }
326
+ function fe(e, t) {
327
+ let r = c(e) ? e : n.toArray(e)[0];
328
+ return c(r) ? i(r, {
329
+ ...le,
330
+ onClickCapture: de,
331
+ onAuxClickCapture: de,
332
+ children: ue(r.props.children === void 0 ? t : r.props.children)
333
+ }) : e;
334
+ }
335
+ function Z({ variant: e = "primary", size: t = "md", className: n, loading: r = !1, ...i }) {
336
+ let a = G("button", {
337
+ variant: e,
338
+ size: t,
339
+ loading: r
340
+ }, n);
341
+ if (!r) return /* @__PURE__ */ b(S, {
342
+ ...i,
343
+ ...a
344
+ });
345
+ let { children: o, disabled: s, focusableWhenDisabled: c, render: l, ...u } = i, d = typeof l == "function" ? (e, t) => fe(l(e, t), o) : l && fe(l, o);
220
346
  return /* @__PURE__ */ b(S, {
221
- ...r,
222
- ...H("button", {
223
- variant: e,
224
- size: t
225
- }, n)
347
+ ...u,
348
+ ...a,
349
+ ...le,
350
+ disabled: !0,
351
+ focusableWhenDisabled: !s || c,
352
+ render: d,
353
+ children: d ? o : ue(o)
226
354
  });
227
355
  }
228
356
  //#endregion
229
357
  //#region src/components/Callout/Callout.tsx
230
- function re({ classNames: e, tone: t = "neutral", title: n, icon: r, actions: i, live: a = !1, className: o, children: s, ...c }) {
358
+ function pe({ classNames: e, tone: t = "neutral", title: n, icon: r, actions: i, live: a = !1, className: o, children: s, ...c }) {
231
359
  return /* @__PURE__ */ x("div", {
232
360
  ...c,
233
361
  ...a ? { role: "status" } : {},
234
- ...H("callout", { tone: t }, o),
362
+ ...G("callout", { tone: t }, o),
235
363
  children: [r == null ? null : /* @__PURE__ */ b("span", {
236
364
  className: v("kb-callout-icon", e?.icon),
237
365
  "aria-hidden": "true",
@@ -257,26 +385,26 @@ function re({ classNames: e, tone: t = "neutral", title: n, icon: r, actions: i,
257
385
  }
258
386
  //#endregion
259
387
  //#region src/components/Card/Card.tsx
260
- function ie({ as: e, appearance: t = "outlined", className: n, ...r }) {
388
+ function me({ as: e, appearance: t = "outlined", className: n, ...r }) {
261
389
  return o(e ?? "article", {
262
390
  ...r,
263
- ...H("card", { appearance: t }, n)
391
+ ...G("card", { appearance: t }, n)
264
392
  });
265
393
  }
266
394
  //#endregion
267
395
  //#region src/components/Checkbox/Checkbox.tsx
268
- function ae({ classNames: e, label: t, checked: n, onCheckedChange: r, indeterminate: i = !1, visuallyHidden: a, description: o, error: s, disabled: c, readOnly: l, className: u, controlClassName: d, id: h, ref: _, style: y, "aria-invalid": S, ...C }) {
396
+ function he({ classNames: e, label: t, checked: n, onCheckedChange: r, indeterminate: i = !1, visuallyHidden: a, description: o, error: s, disabled: c, readOnly: l, className: u, controlClassName: d, id: h, ref: _, style: y, "aria-invalid": S, ...C }) {
269
397
  let w = f(), T = h ?? w, E = g(null);
270
398
  p(_, () => E.current), m(() => {
271
399
  E.current && (E.current.indeterminate = i);
272
400
  });
273
- let { invalid: D, ariaInvalid: O } = U(!!s, S), k = [
401
+ let { invalid: D, ariaInvalid: O } = K(!!s, S), k = [
274
402
  o ? `${T}-description` : null,
275
403
  s ? `${T}-error` : null,
276
404
  C["aria-describedby"]
277
405
  ].filter(Boolean).join(" ") || void 0, A = Object.fromEntries(Object.entries(y ?? {}).filter(([e]) => e.startsWith("--")));
278
406
  return /* @__PURE__ */ x("div", {
279
- ...H("checkbox", {
407
+ ...G("checkbox", {
280
408
  disabled: c,
281
409
  invalid: D
282
410
  }, u),
@@ -338,7 +466,7 @@ function ae({ classNames: e, label: t, checked: n, onCheckedChange: r, indetermi
338
466
  }
339
467
  //#endregion
340
468
  //#region src/utils/useClipboard.ts
341
- function oe(e, { disabled: t = !1, feedbackDuration: n = 2e3, onCopy: r, onCopyError: i }) {
469
+ function ge(e, { disabled: t = !1, feedbackDuration: n = 2e3, onCopy: r, onCopyError: i }) {
342
470
  let [a, o] = _({
343
471
  value: e,
344
472
  disabled: t,
@@ -394,7 +522,7 @@ function oe(e, { disabled: t = !1, feedbackDuration: n = 2e3, onCopy: r, onCopyE
394
522
  }
395
523
  //#endregion
396
524
  //#region src/components/Code/tokenize.ts
397
- var se = {
525
+ var _e = {
398
526
  tsx: "TSX",
399
527
  ts: "TS",
400
528
  typescript: "TS",
@@ -411,10 +539,10 @@ var se = {
411
539
  plain: void 0,
412
540
  text: void 0
413
541
  };
414
- function ce(e) {
415
- if (e) return e in se ? se[e] : String(e).toUpperCase();
542
+ function ve(e) {
543
+ if (e) return e in _e ? _e[e] : String(e).toUpperCase();
416
544
  }
417
- var le = /* @__PURE__ */ new Set(/* @__PURE__ */ "as.async.await.break.case.catch.class.const.continue.default.delete.do.else.enum.export.extends.false.finally.for.from.function.if.implements.import.in.infer.instanceof.interface.keyof.let.new.null.of.private.protected.public.readonly.return.satisfies.static.super.switch.this.throw.true.try.type.typeof.undefined.var.void.while.yield".split(".")), ue = /* @__PURE__ */ new Set(/* @__PURE__ */ "Array.Boolean.CSSProperties.ComponentProps.Date.Error.Exclude.Extract.HTMLButtonElement.HTMLDivElement.HTMLElement.HTMLInputElement.Map.NonNullable.Number.Omit.Parameters.Partial.Pick.Promise.ReactElement.ReactNode.Readonly.ReadonlyArray.Record.Ref.RegExp.Required.ReturnType.Set.String.Symbol.any.bigint.boolean.never.number.object.string.symbol.unknown".split(".")), de = /* @__PURE__ */ new Set([
545
+ var ye = /* @__PURE__ */ new Set(/* @__PURE__ */ "as.async.await.break.case.catch.class.const.continue.default.delete.do.else.enum.export.extends.false.finally.for.from.function.if.implements.import.in.infer.instanceof.interface.keyof.let.new.null.of.private.protected.public.readonly.return.satisfies.static.super.switch.this.throw.true.try.type.typeof.undefined.var.void.while.yield".split(".")), be = /* @__PURE__ */ new Set(/* @__PURE__ */ "Array.Boolean.CSSProperties.ComponentProps.Date.Error.Exclude.Extract.HTMLButtonElement.HTMLDivElement.HTMLElement.HTMLInputElement.Map.NonNullable.Number.Omit.Parameters.Partial.Pick.Promise.ReactElement.ReactNode.Readonly.ReadonlyArray.Record.Ref.RegExp.Required.ReturnType.Set.String.Symbol.any.bigint.boolean.never.number.object.string.symbol.unknown".split(".")), xe = /* @__PURE__ */ new Set([
418
546
  "await",
419
547
  "case",
420
548
  "delete",
@@ -428,7 +556,7 @@ var le = /* @__PURE__ */ new Set(/* @__PURE__ */ "as.async.await.break.case.catc
428
556
  "typeof",
429
557
  "void",
430
558
  "yield"
431
- ]), fe = /* @__PURE__ */ new Set([
559
+ ]), Se = /* @__PURE__ */ new Set([
432
560
  "as",
433
561
  "class",
434
562
  "enum",
@@ -437,7 +565,7 @@ var le = /* @__PURE__ */ new Set(/* @__PURE__ */ "as.async.await.break.case.catc
437
565
  "interface",
438
566
  "satisfies",
439
567
  "type"
440
- ]), pe = /* @__PURE__ */ new Set(/* @__PURE__ */ "!important.absolute. anywhere.auto.baseline.block.bold.border-box.both.break-spaces.center.clone.column.contain.content-box.currentColor.dashed.dotted.ease.ease-in.ease-in-out.ease-out.end.fixed.flex.grid.hidden.inberg.inherit.initial.inline.inline-block.inline-flex.inset.italic.linear.max-content.min-content.none.normal.nowrap.pointer.relative.revert.row. scroll.slice.solid.space-between.start.static.sticky. stretch.tabular-nums.transparent.unset.uppercase.visible.wrap".split(".")), me = /* @__PURE__ */ new Set([
568
+ ]), Ce = /* @__PURE__ */ new Set(/* @__PURE__ */ "!important.absolute. anywhere.auto.baseline.block.bold.border-box.both.break-spaces.center.clone.column.contain.content-box.currentColor.dashed.dotted.ease.ease-in.ease-in-out.ease-out.end.fixed.flex.grid.hidden.inberg.inherit.initial.inline.inline-block.inline-flex.inset.italic.linear.max-content.min-content.none.normal.nowrap.pointer.relative.revert.row. scroll.slice.solid.space-between.start.static.sticky. stretch.tabular-nums.transparent.unset.uppercase.visible.wrap".split(".")), we = /* @__PURE__ */ new Set([
441
569
  "case",
442
570
  "do",
443
571
  "done",
@@ -462,10 +590,10 @@ var le = /* @__PURE__ */ new Set(/* @__PURE__ */ "as.async.await.break.case.catc
462
590
  "until",
463
591
  "while"
464
592
  ]);
465
- function he(e) {
593
+ function Te(e) {
466
594
  return e !== void 0 && /[A-Za-z_$]/.test(e);
467
595
  }
468
- function ge(e) {
596
+ function Ee(e) {
469
597
  return e !== void 0 && /[\w$]/.test(e);
470
598
  }
471
599
  function Q(e, t, n) {
@@ -481,7 +609,7 @@ function Q(e, t, n) {
481
609
  }
482
610
  return e.length;
483
611
  }
484
- function _e(e, t) {
612
+ function De(e, t) {
485
613
  let n = 1, r = t + 1;
486
614
  for (; r < e.length && n > 0;) {
487
615
  let t = e[r];
@@ -495,7 +623,7 @@ function _e(e, t) {
495
623
  }
496
624
  return r - 1;
497
625
  }
498
- function ve(e, t = 0) {
626
+ function Oe(e, t = 0) {
499
627
  let n = [], r = 0, i = "", a = "", o = 0, s = (e, r, i) => {
500
628
  r > e && n.push([
501
629
  t + e,
@@ -507,11 +635,11 @@ function ve(e, t = 0) {
507
635
  let c = e.charAt(r);
508
636
  if (o > 0) {
509
637
  if (c === "{") {
510
- let i = _e(e, r), a = i > r ? i : e.length;
511
- n.push(...ve(e.slice(r + 1, a), t + r + 1)), r = i < e.length ? i + 1 : e.length;
638
+ let i = De(e, r), a = i > r ? i : e.length;
639
+ n.push(...Oe(e.slice(r + 1, a), t + r + 1)), r = i < e.length ? i + 1 : e.length;
512
640
  continue;
513
641
  }
514
- if (c !== "<" || e[r + 1] !== "/" && e[r + 1] !== ">" && !he(e[r + 1])) {
642
+ if (c !== "<" || e[r + 1] !== "/" && e[r + 1] !== ">" && !Te(e[r + 1])) {
515
643
  r += 1;
516
644
  continue;
517
645
  }
@@ -547,8 +675,8 @@ function ve(e, t = 0) {
547
675
  }
548
676
  if (r === "$" && e[c + 1] === "{") {
549
677
  s(o, c + 2, "string");
550
- let r = _e(e, c + 1), i = r >= c + 2 ? r : e.length, a = e.slice(c + 2, i);
551
- n.push(...ve(a, t + c + 2)), r < e.length && e[r] === "}" ? (o = r, c = r + 1) : (o = e.length, c = e.length);
678
+ let r = De(e, c + 1), i = r >= c + 2 ? r : e.length, a = e.slice(c + 2, i);
679
+ n.push(...Oe(a, t + c + 2)), r < e.length && e[r] === "}" ? (o = r, c = r + 1) : (o = e.length, c = e.length);
552
680
  } else c += 1;
553
681
  }
554
682
  }
@@ -566,7 +694,7 @@ function ve(e, t = 0) {
566
694
  e[r] === ">" && (s(r, r + 1, "operator"), r += 1), o = Math.max(0, o - 1), a = ">", i = "";
567
695
  continue;
568
696
  }
569
- if (c === "<" && he(e[r + 1]) && (o !== 0 || !ge(a) || de.has(i))) {
697
+ if (c === "<" && Te(e[r + 1]) && (o !== 0 || !Ee(a) || xe.has(i))) {
570
698
  s(r, r + 1, "operator"), r += 1;
571
699
  let c = /^[A-Za-z_$][\w$.-]*/.exec(e.slice(r));
572
700
  c && (s(r, r + c[0].length, "tag"), r += c[0].length);
@@ -590,8 +718,8 @@ function ve(e, t = 0) {
590
718
  continue;
591
719
  }
592
720
  if (e[r] === "{") {
593
- let i = _e(e, r), a = i > r ? i : e.length;
594
- n.push(...ve(e.slice(r + 1, a), t + r + 1)), r = i < e.length ? i + 1 : e.length;
721
+ let i = De(e, r), a = i > r ? i : e.length;
722
+ n.push(...Oe(e.slice(r + 1, a), t + r + 1)), r = i < e.length ? i + 1 : e.length;
595
723
  continue;
596
724
  }
597
725
  if (e[r] === "=") {
@@ -610,9 +738,9 @@ function ve(e, t = 0) {
610
738
  s(r, r + t, "number"), a = e.charAt(r + t - 1), i = "", r += t;
611
739
  continue;
612
740
  }
613
- if (he(c)) {
741
+ if (Te(c)) {
614
742
  let t = /^[A-Za-z_$][\w$]*/.exec(e.slice(r)), n = t ? t[0] : c, o = r + n.length, l = e.slice(o), u = /^\s*(?:<[^>\n]+>\s*)?\(/.test(l), d = (a === "{" || a === ",") && /^\s*:(?!:)/.test(l);
615
- a === "." ? s(r, o, u ? "function" : "property") : d ? s(r, o, "property") : le.has(n) ? s(r, o, "keyword") : ue.has(n) || fe.has(i) || a === ":" && /^[A-Z]/.test(n) || a === "<" && /^[A-Z]/.test(n) ? s(r, o, "type") : u ? s(r, o, "function") : /^[A-Z]/.test(n) && s(r, o, "type"), a = n.charAt(n.length - 1), i = n, r = o;
743
+ a === "." ? s(r, o, u ? "function" : "property") : d ? s(r, o, "property") : ye.has(n) ? s(r, o, "keyword") : be.has(n) || Se.has(i) || a === ":" && /^[A-Z]/.test(n) || a === "<" && /^[A-Z]/.test(n) ? s(r, o, "type") : u ? s(r, o, "function") : /^[A-Z]/.test(n) && s(r, o, "type"), a = n.charAt(n.length - 1), i = n, r = o;
616
744
  continue;
617
745
  }
618
746
  let u = /^(?:=>|===|!==|==|!=|<=|>=|&&|\|\||\?\?|\?\.|\.\.\.|[+\-*/%=<>!&|^~?:])/.exec(e.slice(r));
@@ -623,7 +751,7 @@ function ve(e, t = 0) {
623
751
  }
624
752
  return n;
625
753
  }
626
- function ye(e) {
754
+ function ke(e) {
627
755
  let t = [], n = 0, r = 0, i = !1, a = (e, n, r) => {
628
756
  n > e && t.push([
629
757
  e,
@@ -708,11 +836,11 @@ function ye(e) {
708
836
  }
709
837
  }
710
838
  let p = /^!?[A-Za-z_-][\w-]*/.exec(e.slice(n));
711
- p ? (pe.has(p[0]) && a(n, n + p[0].length, "keyword"), n += p[0].length) : n += 1;
839
+ p ? (Ce.has(p[0]) && a(n, n + p[0].length, "keyword"), n += p[0].length) : n += 1;
712
840
  }
713
841
  return t;
714
842
  }
715
- function be(e) {
843
+ function Ae(e) {
716
844
  let t = [], n = 0, r = (e, n, r) => {
717
845
  n > e && t.push([
718
846
  e,
@@ -758,7 +886,7 @@ function be(e) {
758
886
  } else n += 1;
759
887
  return t;
760
888
  }
761
- function xe(e) {
889
+ function je(e) {
762
890
  let t = [], n = 0;
763
891
  for (; n < e.length;) {
764
892
  let r = e.charAt(n);
@@ -793,7 +921,7 @@ function xe(e) {
793
921
  }
794
922
  return t;
795
923
  }
796
- function Se(e) {
924
+ function Me(e) {
797
925
  let t = [], n = 0, r = !0;
798
926
  for (; n < e.length;) {
799
927
  let i = e.charAt(n);
@@ -862,7 +990,7 @@ function Se(e) {
862
990
  let l = /^[A-Za-z_][\w./-]*/.exec(e.slice(n));
863
991
  if (l) {
864
992
  let e = l[0];
865
- me.has(e) ? (t.push([
993
+ we.has(e) ? (t.push([
866
994
  n,
867
995
  n + e.length,
868
996
  "keyword"
@@ -875,22 +1003,22 @@ function Se(e) {
875
1003
  }
876
1004
  return t;
877
1005
  }
878
- function Ce(e, t = "tsx") {
1006
+ function Ne(e, t = "tsx") {
879
1007
  if (!e || t === "plain" || t === "text") return [];
880
1008
  switch (t) {
881
- case "css": return ye(e);
882
- case "html": return be(e);
883
- case "json": return xe(e);
1009
+ case "css": return ke(e);
1010
+ case "html": return Ae(e);
1011
+ case "json": return je(e);
884
1012
  case "bash":
885
1013
  case "sh":
886
1014
  case "shell":
887
- case "shellscript": return Se(e);
888
- default: return ve(e);
1015
+ case "shellscript": return Me(e);
1016
+ default: return Oe(e);
889
1017
  }
890
1018
  }
891
1019
  //#endregion
892
1020
  //#region src/components/Code/Code.tsx
893
- function we(e, t, n) {
1021
+ function Pe(e, t, n) {
894
1022
  if (!e || n.length === 0) return e;
895
1023
  let r = t + e.length, i = [], a = 0;
896
1024
  for (let [o, s, c] of n) {
@@ -904,13 +1032,13 @@ function we(e, t, n) {
904
1032
  }
905
1033
  return a === 0 ? e : (a < e.length && i.push(e.slice(a)), i);
906
1034
  }
907
- function Te({ ref: e, block: t, language: n, title: i, copyable: a, onCopy: o, onCopyError: s, disabled: c = !1, feedbackDuration: l, copyLabel: u = "Copy code", copyingLabel: p = "Copying…", copiedLabel: m = "Copied", copyErrorLabel: h = "Copy failed", successMessage: S = "Code copied to clipboard", errorMessage: C = "Failed to copy code. Select and copy the text manually.", lineNumbers: w = !1, startLine: T = 1, highlightLines: E, minLines: D, collapsible: O = !1, collapsedLines: k, defaultCollapsed: A = !1, collapsed: j, onCollapsedChange: M, maxHeight: N, tokens: P, classNames: F, className: I, style: L, children: R, ...z }) {
908
- let B = f(), [V, U] = _(A), W = typeof R == "string" ? R : "", G = oe(W, {
1035
+ function Fe({ ref: e, block: t, language: n, title: i, copyable: a, onCopy: o, onCopyError: s, disabled: c = !1, feedbackDuration: l, copyLabel: u = "Copy code", copyingLabel: p = "Copying…", copiedLabel: m = "Copied", copyErrorLabel: h = "Copy failed", successMessage: S = "Code copied to clipboard", errorMessage: C = "Failed to copy code. Select and copy the text manually.", lineNumbers: w = !1, startLine: T = 1, highlightLines: E, minLines: D, collapsible: O = !1, collapsedLines: k, defaultCollapsed: A = !1, collapsed: j, onCollapsedChange: M, maxHeight: N, tokens: P, classNames: F, className: I, style: L, children: R, ...z }) {
1036
+ let B = f(), [V, H] = _(A), U = typeof R == "string" ? R : "", W = ge(U, {
909
1037
  disabled: c,
910
1038
  feedbackDuration: l,
911
1039
  onCopy: o,
912
1040
  onCopyError: s
913
- }), K = G.state, [q, J] = _(void 0), ee = g(null), Y = D !== void 0 && D > 0 ? Math.floor(D) : void 0, X = k !== void 0 && k > 0 ? Math.floor(k) : O && Y !== void 0 ? Y : void 0;
1041
+ }), K = W.state, [q, J] = _(void 0), ee = g(null), Y = D !== void 0 && D > 0 ? Math.floor(D) : void 0, X = k !== void 0 && k > 0 ? Math.floor(k) : O && Y !== void 0 ? Y : void 0;
914
1042
  d(() => {
915
1043
  if (!O) return;
916
1044
  let e = ee.current;
@@ -929,69 +1057,69 @@ function Te({ ref: e, block: t, language: n, title: i, copyable: a, onCopy: o, o
929
1057
  ref: e,
930
1058
  title: i,
931
1059
  style: L,
932
- ...H("code", {}, I),
1060
+ ...G("code", {}, I),
933
1061
  children: R
934
1062
  });
935
- let Z = O ? j ?? V : !1, re = a ?? !0, ie = ce(n), ae = !!(i || ie), se = !!(O || re), le = ae || se, ue = typeof R == "string" ? P ?? Ce(W, n ?? "tsx") : [], de = typeof R == "string" ? W.split("\n") : [], fe = E && E.length > 0 ? new Set(E) : void 0, pe = typeof R == "string" && Y !== void 0 && Y > de.length ? Y - de.length : 0, me = N !== void 0 || Y !== void 0 || X !== void 0 || O && q !== void 0 ? {
1063
+ let re = O ? j ?? V : !1, ie = a ?? !0, ae = ve(n), oe = !!(i || ae), se = !!(O || ie), ce = oe || se, le = typeof R == "string" ? P ?? Ne(U, n ?? "tsx") : [], ue = typeof R == "string" ? U.split("\n") : [], de = E && E.length > 0 ? new Set(E) : void 0, fe = typeof R == "string" && Y !== void 0 && Y > ue.length ? Y - ue.length : 0, Z = N !== void 0 || Y !== void 0 || X !== void 0 || O && q !== void 0 ? {
936
1064
  ...L,
937
1065
  ...N === void 0 ? null : { "--_code-max-height": typeof N == "number" ? `${N}px` : N },
938
1066
  ...Y === void 0 ? null : { "--_code-min-lines": String(Y) },
939
1067
  ...X === void 0 ? null : { "--_code-collapsed-lines": String(X) },
940
1068
  ...O && q !== void 0 ? { "--_code-expanded-max-height": `${q}px` } : null
941
- } : L, he = () => {
942
- let e = !Z;
943
- j === void 0 && U(e), M?.(e);
944
- }, ge = {
1069
+ } : L, pe = () => {
1070
+ let e = !re;
1071
+ j === void 0 && H(e), M?.(e);
1072
+ }, me = {
945
1073
  idle: u,
946
1074
  pending: p,
947
1075
  copied: m,
948
1076
  failed: h
949
- }[K], Q = K === "copied" ? S : K === "failed" ? C : K === "pending" ? p : "", _e = 0;
1077
+ }[K], he = K === "copied" ? S : K === "failed" ? C : K === "pending" ? p : "", _e = 0;
950
1078
  return /* @__PURE__ */ x("div", {
951
1079
  ...z,
952
1080
  ref: e,
953
- style: me,
954
- ...H("code", {
1081
+ style: Z,
1082
+ ...G("code", {
955
1083
  block: !0,
956
1084
  "line-numbers": w || void 0,
957
1085
  "min-lines": Y !== void 0 || void 0,
958
1086
  collapsible: O || void 0,
959
- collapsed: Z || void 0,
1087
+ collapsed: re || void 0,
960
1088
  "collapsed-lines": X !== void 0 || void 0,
961
1089
  language: n || void 0
962
1090
  }, I),
963
1091
  children: [
964
- le ? /* @__PURE__ */ x("div", {
1092
+ ce ? /* @__PURE__ */ x("div", {
965
1093
  className: v("kb-code-header", F?.header),
966
- children: [ae ? /* @__PURE__ */ x("div", {
1094
+ children: [oe ? /* @__PURE__ */ x("div", {
967
1095
  className: v("kb-code-meta", F?.meta),
968
1096
  children: [i ? /* @__PURE__ */ b("span", {
969
1097
  className: v("kb-code-title", F?.title),
970
1098
  children: i
971
- }) : null, ie ? /* @__PURE__ */ b("span", {
1099
+ }) : null, ae ? /* @__PURE__ */ b("span", {
972
1100
  className: v("kb-code-language", F?.language),
973
- children: ie
1101
+ children: ae
974
1102
  }) : null]
975
1103
  }) : null, se ? /* @__PURE__ */ x("div", {
976
1104
  className: v("kb-code-actions", F?.actions),
977
1105
  children: [O ? /* @__PURE__ */ x("button", {
978
1106
  type: "button",
979
1107
  className: v("kb-code-toggle", F?.toggle),
980
- "aria-expanded": !Z,
1108
+ "aria-expanded": !re,
981
1109
  "aria-controls": B,
982
- onClick: he,
1110
+ onClick: pe,
983
1111
  children: [/* @__PURE__ */ b("svg", {
984
1112
  "aria-hidden": "true",
985
1113
  viewBox: "0 0 16 16",
986
1114
  children: /* @__PURE__ */ b("path", { d: "M4.5 6.25 8 9.75l3.5-3.5" })
987
- }), Z ? "Expand code" : "Collapse code"]
988
- }) : null, re ? /* @__PURE__ */ x("button", {
1115
+ }), re ? "Expand code" : "Collapse code"]
1116
+ }) : null, ie ? /* @__PURE__ */ x("button", {
989
1117
  type: "button",
990
1118
  className: v("kb-code-copy", F?.copy),
991
1119
  "data-copy-state": K,
992
- disabled: G.disabled,
1120
+ disabled: W.disabled,
993
1121
  "aria-disabled": K === "pending" || void 0,
994
- onClick: () => void G.copy(),
1122
+ onClick: () => void W.copy(),
995
1123
  children: [K === "copied" ? /* @__PURE__ */ b("svg", {
996
1124
  "aria-hidden": "true",
997
1125
  viewBox: "0 0 16 16",
@@ -1010,16 +1138,16 @@ function Te({ ref: e, block: t, language: n, title: i, copyable: a, onCopy: o, o
1010
1138
  height: "7.5",
1011
1139
  rx: "1.5"
1012
1140
  }), /* @__PURE__ */ b("path", { d: "M10.5 5.5V4a1.5 1.5 0 0 0-1.5-1.5H4A1.5 1.5 0 0 0 2.5 4v5A1.5 1.5 0 0 0 4 10.5h1.5" })]
1013
- }), ge]
1141
+ }), me]
1014
1142
  }) : null]
1015
1143
  }) : null]
1016
1144
  }) : null,
1017
- re ? /* @__PURE__ */ b("span", {
1145
+ ie ? /* @__PURE__ */ b("span", {
1018
1146
  role: "status",
1019
1147
  "aria-live": "polite",
1020
1148
  "aria-atomic": "true",
1021
1149
  className: v("kb-code-feedback", K !== "failed" && "kb-sr-only", F?.feedback),
1022
- children: Q
1150
+ children: he
1023
1151
  }) : null,
1024
1152
  /* @__PURE__ */ b("section", {
1025
1153
  id: B,
@@ -1031,10 +1159,10 @@ function Te({ ref: e, block: t, language: n, title: i, copyable: a, onCopy: o, o
1031
1159
  className: v("kb-code-pre", F?.pre),
1032
1160
  children: /* @__PURE__ */ b("code", {
1033
1161
  className: v("kb-code-content", F?.content),
1034
- children: typeof R == "string" ? /* @__PURE__ */ x(y, { children: [de.map((e, t) => {
1162
+ children: typeof R == "string" ? /* @__PURE__ */ x(y, { children: [ue.map((e, t) => {
1035
1163
  let n = _e;
1036
1164
  _e += e.length + 1;
1037
- let i = T + t, a = fe?.has(i) ?? !1;
1165
+ let i = T + t, a = de?.has(i) ?? !1;
1038
1166
  return /* @__PURE__ */ x(r, { children: [t > 0 ? "\n" : null, /* @__PURE__ */ x("span", {
1039
1167
  className: v("kb-code-line", F?.line),
1040
1168
  "data-highlighted": a ? "" : void 0,
@@ -1044,11 +1172,11 @@ function Te({ ref: e, block: t, language: n, title: i, copyable: a, onCopy: o, o
1044
1172
  "aria-hidden": "true"
1045
1173
  }) : null, /* @__PURE__ */ b("span", {
1046
1174
  className: v("kb-code-line-text", F?.lineText),
1047
- children: we(e, n, ue)
1175
+ children: Pe(e, n, le)
1048
1176
  })]
1049
1177
  })] }, i);
1050
- }), pe > 0 ? Array.from({ length: pe }, (e, t) => {
1051
- let n = T + de.length + t, r = fe?.has(n) ?? !1;
1178
+ }), fe > 0 ? Array.from({ length: fe }, (e, t) => {
1179
+ let n = T + ue.length + t, r = de?.has(n) ?? !1;
1052
1180
  return /* @__PURE__ */ x("span", {
1053
1181
  className: v("kb-code-line", F?.line),
1054
1182
  "data-highlighted": r ? "" : void 0,
@@ -1068,8 +1196,8 @@ function Te({ ref: e, block: t, language: n, title: i, copyable: a, onCopy: o, o
1068
1196
  }
1069
1197
  //#endregion
1070
1198
  //#region src/components/CodeBlock/CodeBlock.tsx
1071
- function Ee({ className: e, ...t }) {
1072
- return /* @__PURE__ */ b(Te, {
1199
+ function Ie({ className: e, ...t }) {
1200
+ return /* @__PURE__ */ b(Fe, {
1073
1201
  ...t,
1074
1202
  block: !0,
1075
1203
  className: v("kb-codeblock", e)
@@ -1077,10 +1205,10 @@ function Ee({ className: e, ...t }) {
1077
1205
  }
1078
1206
  //#endregion
1079
1207
  //#region src/components/Input/Input.tsx
1080
- function De({ classNames: e, label: t, visuallyHidden: n, description: r, error: i, size: a = "md", disabled: o, className: s, startContent: c, endContent: l, "aria-invalid": u, ...d }) {
1081
- let { invalid: f, ariaInvalid: p } = U(!!i, u);
1208
+ function Le({ classNames: e, label: t, visuallyHidden: n, description: r, error: i, size: a = "md", disabled: o, className: s, startContent: c, endContent: l, "aria-invalid": u, ...d }) {
1209
+ let { invalid: f, ariaInvalid: p } = K(!!i, u);
1082
1210
  return /* @__PURE__ */ x(C.Root, {
1083
- ...H("input", {
1211
+ ...G("input", {
1084
1212
  size: a,
1085
1213
  invalid: f,
1086
1214
  "start-adornment": !!c,
@@ -1126,10 +1254,10 @@ function De({ classNames: e, label: t, visuallyHidden: n, description: r, error:
1126
1254
  }
1127
1255
  //#endregion
1128
1256
  //#region src/components/Select/Select.tsx
1129
- function Oe({ classNames: e, label: t, value: n, onValueChange: r, options: i, placeholder: a = "Choose an option", description: o, error: s, disabled: c = !1, readOnly: l = !1, name: u, className: d, controlClassName: m, popupClassName: h, container: y, ref: S, "aria-describedby": C, "aria-invalid": w, ...E }) {
1257
+ function Re({ classNames: e, label: t, value: n, onValueChange: r, options: i, placeholder: a = "Choose an option", description: o, error: s, disabled: c = !1, readOnly: l = !1, name: u, className: d, controlClassName: m, popupClassName: h, container: y, ref: S, "aria-describedby": C, "aria-invalid": w, ...E }) {
1130
1258
  let D = f(), O = g(null), k = g(null), A = g(null), j = g("keyboard"), [M, N] = _(!1);
1131
1259
  p(S, () => O.current);
1132
- let { invalid: P, ariaInvalid: F } = U(!!s, w), I = i.length === 0, L = c || I, R = [o, I && "No options available"].filter(Boolean).join(" ") || void 0, z = [
1260
+ let { invalid: P, ariaInvalid: F } = K(!!s, w), I = i.length === 0, L = c || I, R = [o, I && "No options available"].filter(Boolean).join(" ") || void 0, z = [
1133
1261
  R ? `${D}-description` : null,
1134
1262
  s ? `${D}-error` : null,
1135
1263
  C
@@ -1137,7 +1265,7 @@ function Oe({ classNames: e, label: t, value: n, onValueChange: r, options: i, p
1137
1265
  return /* @__PURE__ */ x("div", {
1138
1266
  ...E,
1139
1267
  ref: O,
1140
- ...H("select", {
1268
+ ...G("select", {
1141
1269
  disabled: L,
1142
1270
  invalid: P
1143
1271
  }, d),
@@ -1249,15 +1377,15 @@ function Oe({ classNames: e, label: t, value: n, onValueChange: r, options: i, p
1249
1377
  }
1250
1378
  //#endregion
1251
1379
  //#region src/components/Collection/useCollection.ts
1252
- function ke(e, t) {
1380
+ function ze(e, t) {
1253
1381
  if (!Number.isSafeInteger(e) || e < 1) throw RangeError(`${t} must be a positive safe integer`);
1254
1382
  return e;
1255
1383
  }
1256
- function Ae(e, t) {
1257
- if (ke(t, "pageSize"), !Number.isSafeInteger(e) || e < 0) throw RangeError("totalItems must be a non-negative safe integer");
1384
+ function Be(e, t) {
1385
+ if (ze(t, "pageSize"), !Number.isSafeInteger(e) || e < 0) throw RangeError("totalItems must be a non-negative safe integer");
1258
1386
  return Math.max(1, Math.ceil(e / t));
1259
1387
  }
1260
- function je(e) {
1388
+ function Ve(e) {
1261
1389
  let { items: t, getKey: n, isItemDisabled: r, matches: i, compare: a } = e, [o, s] = _(() => ({
1262
1390
  query: "",
1263
1391
  filters: {},
@@ -1267,7 +1395,7 @@ function je(e) {
1267
1395
  selectedKeys: [],
1268
1396
  ...e.defaultState
1269
1397
  })), c = (o) => {
1270
- ke(o.page, "page"), ke(o.pageSize, "pageSize");
1398
+ ze(o.page, "page"), ze(o.pageSize, "pageSize");
1271
1399
  let s = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
1272
1400
  for (let e of t) {
1273
1401
  let t = n(e);
@@ -1279,7 +1407,7 @@ function je(e) {
1279
1407
  let e = o.sort;
1280
1408
  l = [...l].sort((t, n) => a(t, n, e) * (e.direction === "ascending" ? 1 : -1));
1281
1409
  }
1282
- let u = e.mode === "server" ? e.totalItems : l.length, d = Ae(u, o.pageSize), f = {
1410
+ let u = e.mode === "server" ? e.totalItems : l.length, d = Be(u, o.pageSize), f = {
1283
1411
  ...o,
1284
1412
  page: Math.min(o.page, d),
1285
1413
  selectedKeys: [...new Set(o.selectedKeys)].filter((t) => !c.has(t) && (e.mode === "server" || s.has(t)))
@@ -1364,16 +1492,16 @@ function je(e) {
1364
1492
  }
1365
1493
  //#endregion
1366
1494
  //#region src/components/Collection/Collection.tsx
1367
- function Me({ page: e, pageSize: t, totalItems: n, onPageChange: r, onPageSizeChange: i, pageSizes: a = [
1495
+ function He({ page: e, pageSize: t, totalItems: n, onPageChange: r, onPageSizeChange: i, pageSizes: a = [
1368
1496
  10,
1369
1497
  25,
1370
1498
  50
1371
1499
  ], disabled: o, className: s, ...c }) {
1372
- let l = Ae(n, t), u = Math.min(ke(e, "page"), l), d = [.../* @__PURE__ */ new Set([t, ...a])].sort((e, t) => e - t);
1373
- for (let e of d) ke(e, "pageSizes");
1500
+ let l = Be(n, t), u = Math.min(ze(e, "page"), l), d = [.../* @__PURE__ */ new Set([t, ...a])].sort((e, t) => e - t);
1501
+ for (let e of d) ze(e, "pageSizes");
1374
1502
  return /* @__PURE__ */ x("nav", {
1375
1503
  ...c,
1376
- ...H("collection-pagination", {}, s),
1504
+ ...G("collection-pagination", {}, s),
1377
1505
  "aria-label": c["aria-label"] ?? "Collection pagination",
1378
1506
  children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("span", { children: [
1379
1507
  n ? (u - 1) * t + 1 : 0,
@@ -1382,7 +1510,7 @@ function Me({ page: e, pageSize: t, totalItems: n, onPageChange: r, onPageSizeCh
1382
1510
  " ",
1383
1511
  "of ",
1384
1512
  n
1385
- ] }), i && /* @__PURE__ */ b(Oe, {
1513
+ ] }), i && /* @__PURE__ */ b(Re, {
1386
1514
  label: "Rows per page",
1387
1515
  disabled: !!o,
1388
1516
  value: String(t),
@@ -1425,7 +1553,7 @@ function Me({ page: e, pageSize: t, totalItems: n, onPageChange: r, onPageSizeCh
1425
1553
  ] })]
1426
1554
  });
1427
1555
  }
1428
- function Ne({ selectedKeys: e, actions: t, onClear: n, onSuccess: r, onPendingChange: i, disabled: a, className: o, ...s }) {
1556
+ function Ue({ selectedKeys: e, actions: t, onClear: n, onSuccess: r, onPendingChange: i, disabled: a, className: o, ...s }) {
1429
1557
  let [c, l] = _(null), [u, f] = _(!1);
1430
1558
  d(() => {
1431
1559
  u && e.length === 0 && f(!1);
@@ -1449,7 +1577,7 @@ function Ne({ selectedKeys: e, actions: t, onClear: n, onSuccess: r, onPendingCh
1449
1577
  };
1450
1578
  return /* @__PURE__ */ x("fieldset", {
1451
1579
  ...s,
1452
- ...H("collection-bulk", { pending: c !== null }, o),
1580
+ ...G("collection-bulk", { pending: c !== null }, o),
1453
1581
  "aria-label": s["aria-label"] ?? "Selection actions",
1454
1582
  children: [
1455
1583
  /* @__PURE__ */ x("span", {
@@ -1485,8 +1613,8 @@ function Ne({ selectedKeys: e, actions: t, onClear: n, onSuccess: r, onPendingCh
1485
1613
  ]
1486
1614
  });
1487
1615
  }
1488
- function Pe({ label: e, getItemLabel: t, columns: n, filters: r = [], bulkActions: i = [], selectable: a = !0, loading: o = !1, error: s, empty: c = "No matching records", toolbar: l, classNames: u, className: d, items: p, getKey: m, isItemDisabled: h, matches: g, compare: y, mode: S, totalItems: C, state: w, defaultState: T, onStateChange: E, ...D }) {
1489
- let [O, k] = _(!1), A = o || !!s || O, j = je({
1616
+ function We({ label: e, getItemLabel: t, columns: n, filters: r = [], bulkActions: i = [], selectable: a = !0, loading: o = !1, error: s, empty: c = "No matching records", toolbar: l, classNames: u, className: d, items: p, getKey: m, isItemDisabled: h, matches: g, compare: y, mode: S, totalItems: C, state: w, defaultState: T, onStateChange: E, ...D }) {
1617
+ let [O, k] = _(!1), A = o || !!s || O, j = Ve({
1490
1618
  items: p,
1491
1619
  getKey: m,
1492
1620
  isItemDisabled: h,
@@ -1502,7 +1630,7 @@ function Pe({ label: e, getItemLabel: t, columns: n, filters: r = [], bulkAction
1502
1630
  }), M = f(), N = (e) => v(`kb-collection-${e}`, u?.[e]), { state: P } = j, F = new Set(P.selectedKeys);
1503
1631
  return /* @__PURE__ */ x("section", {
1504
1632
  ...D,
1505
- ...H("collection", {
1633
+ ...G("collection", {
1506
1634
  loading: o,
1507
1635
  pending: O
1508
1636
  }, d),
@@ -1512,7 +1640,7 @@ function Pe({ label: e, getItemLabel: t, columns: n, filters: r = [], bulkAction
1512
1640
  /* @__PURE__ */ x("div", {
1513
1641
  className: N("toolbar"),
1514
1642
  children: [
1515
- (g || S === "server") && /* @__PURE__ */ b(De, {
1643
+ (g || S === "server") && /* @__PURE__ */ b(Le, {
1516
1644
  type: "search",
1517
1645
  label: `Search ${e}`,
1518
1646
  value: P.query,
@@ -1521,7 +1649,7 @@ function Pe({ label: e, getItemLabel: t, columns: n, filters: r = [], bulkAction
1521
1649
  }),
1522
1650
  /* @__PURE__ */ b("div", {
1523
1651
  className: N("filters"),
1524
- children: r.map((e) => /* @__PURE__ */ b(Oe, {
1652
+ children: r.map((e) => /* @__PURE__ */ b(Re, {
1525
1653
  label: e.label,
1526
1654
  disabled: A,
1527
1655
  value: P.filters[e.key] ? `option:${P.filters[e.key]}` : "all",
@@ -1538,7 +1666,7 @@ function Pe({ label: e, getItemLabel: t, columns: n, filters: r = [], bulkAction
1538
1666
  l
1539
1667
  ]
1540
1668
  }),
1541
- a && /* @__PURE__ */ b(Ne, {
1669
+ a && /* @__PURE__ */ b(Ue, {
1542
1670
  className: u?.bulk,
1543
1671
  selectedKeys: P.selectedKeys,
1544
1672
  actions: i,
@@ -1570,7 +1698,7 @@ function Pe({ label: e, getItemLabel: t, columns: n, filters: r = [], bulkAction
1570
1698
  /* @__PURE__ */ b("thead", { children: /* @__PURE__ */ x("tr", { children: [a && /* @__PURE__ */ b("th", {
1571
1699
  className: N("head"),
1572
1700
  scope: "col",
1573
- children: /* @__PURE__ */ b(ae, {
1701
+ children: /* @__PURE__ */ b(he, {
1574
1702
  label: "Select this page",
1575
1703
  visuallyHidden: !0,
1576
1704
  checked: j.pageSelection === "all",
@@ -1612,7 +1740,7 @@ function Pe({ label: e, getItemLabel: t, columns: n, filters: r = [], bulkAction
1612
1740
  "data-selected": i || void 0,
1613
1741
  children: [a && /* @__PURE__ */ b("td", {
1614
1742
  className: N("cell"),
1615
- children: /* @__PURE__ */ b(ae, {
1743
+ children: /* @__PURE__ */ b(he, {
1616
1744
  label: `Select ${t(e)}`,
1617
1745
  visuallyHidden: !0,
1618
1746
  checked: i,
@@ -1632,7 +1760,7 @@ function Pe({ label: e, getItemLabel: t, columns: n, filters: r = [], bulkAction
1632
1760
  ]
1633
1761
  })
1634
1762
  }),
1635
- /* @__PURE__ */ b(Me, {
1763
+ /* @__PURE__ */ b(He, {
1636
1764
  id: `${M}-pagination`,
1637
1765
  className: u?.pagination,
1638
1766
  "aria-label": `${e} pagination`,
@@ -1646,17 +1774,17 @@ function Pe({ label: e, getItemLabel: t, columns: n, filters: r = [], bulkAction
1646
1774
  ]
1647
1775
  });
1648
1776
  }
1649
- var Fe = Object.assign(Pe, {
1650
- Pagination: Me,
1651
- BulkActions: Ne
1777
+ var Ge = Object.assign(We, {
1778
+ Pagination: He,
1779
+ BulkActions: Ue
1652
1780
  });
1653
1781
  //#endregion
1654
1782
  //#region src/components/CollectionList/CollectionList.tsx
1655
- function Ie({ as: e, density: t = "comfortable", dividers: n = !0, className: r, ...i }) {
1783
+ function Ke({ as: e, density: t = "comfortable", dividers: n = !0, className: r, ...i }) {
1656
1784
  return o(e ?? "ul", {
1657
1785
  ...i,
1658
1786
  role: i.role ?? "list",
1659
- ...H("collectionlist", {
1787
+ ...G("collectionlist", {
1660
1788
  density: t,
1661
1789
  dividers: n,
1662
1790
  ordered: e === "ol"
@@ -1668,11 +1796,11 @@ function Ie({ as: e, density: t = "comfortable", dividers: n = !0, className: r,
1668
1796
  function $(e) {
1669
1797
  return e != null && typeof e != "boolean" && e !== "";
1670
1798
  }
1671
- function Le({ title: e, description: t, leading: n, metadata: r, actions: i, selected: a = !1, classNames: o, className: s, ...c }) {
1799
+ function qe({ title: e, description: t, leading: n, metadata: r, actions: i, selected: a = !1, classNames: o, className: s, ...c }) {
1672
1800
  let l = $(r) || $(i);
1673
1801
  return /* @__PURE__ */ b("li", {
1674
1802
  ...c,
1675
- ...H("collectionrow", {
1803
+ ...G("collectionrow", {
1676
1804
  selected: a,
1677
1805
  leading: $(n),
1678
1806
  aside: l
@@ -1710,13 +1838,13 @@ function Le({ title: e, description: t, leading: n, metadata: r, actions: i, sel
1710
1838
  }
1711
1839
  //#endregion
1712
1840
  //#region src/components/MultiSelect/MultiSelect.tsx
1713
- var Re = (e) => `Remove ${e.label}`, ze = {
1841
+ var Je = (e) => `Remove ${e.label}`, Ye = {
1714
1842
  "aria-readonly": void 0,
1715
1843
  "aria-disabled": void 0
1716
- }, Be = s(function({ label: e, options: t, value: n, onValueChange: r, placeholder: i, emptyMessage: a = "No matching options", size: o = "md", description: s, error: c, invalid: l, disabled: u = !1, readOnly: d = !1, required: p = !1, name: m, open: _, defaultOpen: y, onOpenChange: S, inputValue: C, onInputValueChange: w, removeLabel: T = Re, clearLabel: D, toggleLabel: O, container: k, className: A, classNames: j, id: M, "aria-describedby": N, "aria-invalid": P, ...F }, I) {
1717
- let L = f(), R = g(null), z = M ?? `${L}-input`, B = `${L}-label`, V = `${L}-desc`, W = `${L}-err`, G = !!c, { invalid: K, ariaInvalid: q } = U(!!l || G, P), J = !!s, ee = [
1844
+ }, Xe = s(function({ label: e, options: t, value: n, onValueChange: r, placeholder: i, emptyMessage: a = "No matching options", size: o = "md", description: s, error: c, invalid: l, disabled: u = !1, readOnly: d = !1, required: p = !1, name: m, open: _, defaultOpen: y, onOpenChange: S, inputValue: C, onInputValueChange: w, removeLabel: T = Je, clearLabel: D, toggleLabel: O, container: k, className: A, classNames: j, id: M, "aria-describedby": N, "aria-invalid": P, ...F }, I) {
1845
+ let L = f(), R = g(null), z = M ?? `${L}-input`, B = `${L}-label`, V = `${L}-desc`, H = `${L}-err`, U = !!c, { invalid: W, ariaInvalid: q } = K(!!l || U, P), J = !!s, ee = [
1718
1846
  J ? V : null,
1719
- G ? W : null,
1847
+ U ? H : null,
1720
1848
  N
1721
1849
  ].filter(Boolean).join(" ") || void 0, Y = h(() => E.createItems(t, {
1722
1850
  getValue: (e) => e.value,
@@ -1745,9 +1873,9 @@ var Re = (e) => `Remove ${e.label}`, ze = {
1745
1873
  children: /* @__PURE__ */ x("div", {
1746
1874
  ...F,
1747
1875
  ref: R,
1748
- ...H("multiselect", {
1876
+ ...G("multiselect", {
1749
1877
  size: o,
1750
- invalid: K,
1878
+ invalid: W,
1751
1879
  disabled: u,
1752
1880
  readonly: d,
1753
1881
  required: p
@@ -1766,7 +1894,7 @@ var Re = (e) => `Remove ${e.label}`, ze = {
1766
1894
  "aria-label": `${e} selections`,
1767
1895
  className: v("kb-multiselect-chips", j?.chips),
1768
1896
  children: [ne.map((e) => /* @__PURE__ */ x(E.Chip, {
1769
- ...ze,
1897
+ ...Ye,
1770
1898
  className: v("kb-multiselect-chip", j?.chip),
1771
1899
  children: [/* @__PURE__ */ b("span", {
1772
1900
  className: v("kb-multiselect-chip-label", j?.chipLabel),
@@ -1845,30 +1973,30 @@ var Re = (e) => `Remove ${e.label}`, ze = {
1845
1973
  className: v("kb-multiselect-description", j?.description),
1846
1974
  children: s
1847
1975
  }),
1848
- G && /* @__PURE__ */ b("p", {
1849
- id: W,
1976
+ U && /* @__PURE__ */ b("p", {
1977
+ id: H,
1850
1978
  className: v("kb-multiselect-error", j?.error),
1851
1979
  children: c
1852
1980
  })
1853
1981
  ]
1854
1982
  })
1855
1983
  });
1856
- }), Ve = s(function(e, t) {
1984
+ }), Ze = s(function(e, t) {
1857
1985
  if (e.multiple) {
1858
1986
  let { multiple: n, ...r } = e;
1859
- return /* @__PURE__ */ b(Be, {
1987
+ return /* @__PURE__ */ b(Xe, {
1860
1988
  ...r,
1861
1989
  ref: t
1862
1990
  });
1863
1991
  }
1864
- return /* @__PURE__ */ b(He, {
1992
+ return /* @__PURE__ */ b(Qe, {
1865
1993
  ...e,
1866
1994
  ref: t
1867
1995
  });
1868
- }), He = s(function({ label: e, options: t, value: n, onValueChange: r, placeholder: i, emptyMessage: a = "No matching options", size: o = "md", description: s, error: c, invalid: l, disabled: u = !1, readOnly: d = !1, required: p = !1, name: m, open: _, defaultOpen: y, onOpenChange: S, inputValue: C, onInputValueChange: w, clearLabel: T, toggleLabel: D, container: O, className: k, classNames: A, id: j, multiple: M, "aria-describedby": N, "aria-invalid": P, ...F }, I) {
1869
- let L = f(), R = g(null), z = j ?? `${L}-input`, B = `${L}-label`, V = `${L}-desc`, W = `${L}-err`, G = !!c, { invalid: K, ariaInvalid: q } = U(!!l || G, P), J = !!s, ee = [
1996
+ }), Qe = s(function({ label: e, options: t, value: n, onValueChange: r, placeholder: i, emptyMessage: a = "No matching options", size: o = "md", description: s, error: c, invalid: l, disabled: u = !1, readOnly: d = !1, required: p = !1, name: m, open: _, defaultOpen: y, onOpenChange: S, inputValue: C, onInputValueChange: w, clearLabel: T, toggleLabel: D, container: O, className: k, classNames: A, id: j, multiple: M, "aria-describedby": N, "aria-invalid": P, ...F }, I) {
1997
+ let L = f(), R = g(null), z = j ?? `${L}-input`, B = `${L}-label`, V = `${L}-desc`, H = `${L}-err`, U = !!c, { invalid: W, ariaInvalid: q } = K(!!l || U, P), J = !!s, ee = [
1870
1998
  J ? V : null,
1871
- G ? W : null,
1999
+ U ? H : null,
1872
2000
  N
1873
2001
  ].filter(Boolean).join(" ") || void 0, Y = h(() => E.createItems(t, {
1874
2002
  getValue: (e) => e.value,
@@ -1896,9 +2024,9 @@ var Re = (e) => `Remove ${e.label}`, ze = {
1896
2024
  children: /* @__PURE__ */ x("div", {
1897
2025
  ...F,
1898
2026
  ref: R,
1899
- ...H("combobox", {
2027
+ ...G("combobox", {
1900
2028
  size: o,
1901
- invalid: K,
2029
+ invalid: W,
1902
2030
  disabled: u,
1903
2031
  readonly: d,
1904
2032
  required: p
@@ -1977,8 +2105,8 @@ var Re = (e) => `Remove ${e.label}`, ze = {
1977
2105
  className: v("kb-combobox-description", A?.description),
1978
2106
  children: s
1979
2107
  }),
1980
- G && /* @__PURE__ */ b("p", {
1981
- id: W,
2108
+ U && /* @__PURE__ */ b("p", {
2109
+ id: H,
1982
2110
  className: v("kb-combobox-error", A?.error),
1983
2111
  children: c
1984
2112
  })
@@ -1988,75 +2116,75 @@ var Re = (e) => `Remove ${e.label}`, ze = {
1988
2116
  });
1989
2117
  //#endregion
1990
2118
  //#region src/components/Dialog/Dialog.tsx
1991
- function Ue(e) {
2119
+ function $e(e) {
1992
2120
  return /* @__PURE__ */ b(D.Root, { ...e });
1993
2121
  }
1994
- function We(e) {
2122
+ function et(e) {
1995
2123
  return /* @__PURE__ */ b(D.Trigger, { ...e });
1996
2124
  }
1997
- function Ge(e) {
2125
+ function tt(e) {
1998
2126
  return /* @__PURE__ */ b(D.Close, { ...e });
1999
2127
  }
2000
- function Ke({ className: e, ...t }) {
2128
+ function nt({ className: e, ...t }) {
2001
2129
  return /* @__PURE__ */ b(D.Title, {
2002
2130
  ...t,
2003
2131
  className: v("kb-dialog-title", e)
2004
2132
  });
2005
2133
  }
2006
- function qe({ className: e, ...t }) {
2134
+ function rt({ className: e, ...t }) {
2007
2135
  return /* @__PURE__ */ b(D.Description, {
2008
2136
  ...t,
2009
2137
  className: v("kb-dialog-description", e)
2010
2138
  });
2011
2139
  }
2012
- function Je({ className: e, ...t }) {
2140
+ function it({ className: e, ...t }) {
2013
2141
  return /* @__PURE__ */ b("div", {
2014
2142
  ...t,
2015
2143
  className: v("kb-dialog-actions", e)
2016
2144
  });
2017
2145
  }
2018
- function Ye({ className: e, ...t }) {
2146
+ function at({ className: e, ...t }) {
2019
2147
  return /* @__PURE__ */ b("div", {
2020
2148
  ...t,
2021
2149
  className: v("kb-dialog-header", e)
2022
2150
  });
2023
2151
  }
2024
- function Xe({ className: e, ...t }) {
2152
+ function ot({ className: e, ...t }) {
2025
2153
  return /* @__PURE__ */ b("div", {
2026
2154
  ...t,
2027
2155
  className: v("kb-dialog-body", e)
2028
2156
  });
2029
2157
  }
2030
- function Ze({ className: e, ...t }) {
2158
+ function st({ className: e, ...t }) {
2031
2159
  return /* @__PURE__ */ b("div", {
2032
2160
  ...t,
2033
2161
  className: v("kb-dialog-footer", e)
2034
2162
  });
2035
2163
  }
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] });
2164
+ function ct({ layout: e = "center", classNames: t, title: n, description: r, container: i, children: a, className: o, ...s }) {
2165
+ let c = n != null && n !== "", l = r != null && r !== "", u = /* @__PURE__ */ x(y, { children: [c ? /* @__PURE__ */ b(nt, { children: n }) : null, l ? /* @__PURE__ */ b(rt, { children: r }) : null] });
2038
2166
  return /* @__PURE__ */ x(D.Portal, {
2039
2167
  container: i,
2040
2168
  children: [/* @__PURE__ */ b(D.Backdrop, { className: v("kb-dialog-backdrop", t?.backdrop) }), /* @__PURE__ */ x(D.Popup, {
2041
2169
  ...s,
2042
2170
  "data-layout": e,
2043
2171
  className: v("kb-dialog-popup", o),
2044
- children: [e === "drawer" && (c || l) ? /* @__PURE__ */ b(Ye, { children: u }) : u, a]
2172
+ children: [e === "drawer" && (c || l) ? /* @__PURE__ */ b(at, { children: u }) : u, a]
2045
2173
  })]
2046
2174
  });
2047
2175
  }
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 }) {
2176
+ var lt = Object.assign($e, {
2177
+ Trigger: et,
2178
+ Content: ct,
2179
+ Title: nt,
2180
+ Description: rt,
2181
+ Close: tt,
2182
+ Actions: it,
2183
+ Header: at,
2184
+ Body: ot,
2185
+ Footer: st
2186
+ }), ut = "The action did not complete. Try again.";
2187
+ function dt({ title: e, description: t, details: n, onConfirm: r, onConfirmed: i, confirmLabel: a, pendingLabel: o, cancelLabel: s = "Cancel", errorMessage: c = ut, 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
2188
  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
2189
  d(() => {
2062
2190
  I.current = F, L.current = i;
@@ -2081,8 +2209,8 @@ function tt({ title: e, description: t, details: n, onConfirm: r, onConfirmed: i
2081
2209
  }
2082
2210
  }
2083
2211
  }
2084
- let U = a ?? S, W = k && (typeof c == "function" ? c(k.reason) : c);
2085
- return /* @__PURE__ */ x($e, {
2212
+ let H = a ?? S, U = k && (typeof c == "function" ? c(k.reason) : c);
2213
+ return /* @__PURE__ */ x(lt, {
2086
2214
  open: F,
2087
2215
  disablePointerDismissal: !0,
2088
2216
  onOpenChange: (e, t) => {
@@ -2091,12 +2219,12 @@ function tt({ title: e, description: t, details: n, onConfirm: r, onConfirmed: i
2091
2219
  onOpenChangeComplete: (e) => {
2092
2220
  N.current && (N.current = !1, e || z((e) => e + 1));
2093
2221
  },
2094
- children: [/* @__PURE__ */ b($e.Trigger, {
2222
+ children: [/* @__PURE__ */ b(lt.Trigger, {
2095
2223
  ...w,
2096
2224
  render: C,
2097
2225
  className: y,
2098
2226
  children: S
2099
- }), /* @__PURE__ */ x($e.Content, {
2227
+ }), /* @__PURE__ */ x(lt.Content, {
2100
2228
  title: e,
2101
2229
  description: t,
2102
2230
  initialFocus: j,
@@ -2104,19 +2232,19 @@ function tt({ title: e, description: t, details: n, onConfirm: r, onConfirmed: i
2104
2232
  ...p === void 0 ? {} : { finalFocus: p },
2105
2233
  ...m === void 0 ? {} : { container: m },
2106
2234
  ...h?.backdrop ? { classNames: { backdrop: h.backdrop } } : {},
2107
- ...H("confirmaction", { pending: D }, h?.popup),
2235
+ ...G("confirmaction", { pending: D }, h?.popup),
2108
2236
  children: [
2109
2237
  n == null ? null : /* @__PURE__ */ b("div", {
2110
2238
  className: v("kb-confirmaction-details", h?.details),
2111
2239
  children: n
2112
2240
  }),
2113
- k ? /* @__PURE__ */ b(re, {
2241
+ k ? /* @__PURE__ */ b(pe, {
2114
2242
  tone: "danger",
2115
2243
  role: "alert",
2116
2244
  className: v("kb-confirmaction-error", h?.error),
2117
- children: W
2245
+ children: U
2118
2246
  }) : null,
2119
- /* @__PURE__ */ x($e.Actions, { children: [/* @__PURE__ */ b($e.Close, {
2247
+ /* @__PURE__ */ x(lt.Actions, { children: [/* @__PURE__ */ b(lt.Close, {
2120
2248
  ref: j,
2121
2249
  render: /* @__PURE__ */ b(Z, {
2122
2250
  variant: "ghost",
@@ -2129,7 +2257,7 @@ function tt({ title: e, description: t, details: n, onConfirm: r, onConfirmed: i
2129
2257
  disabled: D,
2130
2258
  focusableWhenDisabled: !0,
2131
2259
  onClick: () => void V(),
2132
- children: D ? o ?? U : U
2260
+ children: D ? o ?? H : H
2133
2261
  })] })
2134
2262
  ]
2135
2263
  })]
@@ -2137,11 +2265,11 @@ function tt({ title: e, description: t, details: n, onConfirm: r, onConfirmed: i
2137
2265
  }
2138
2266
  //#endregion
2139
2267
  //#region src/components/Container/Container.tsx
2140
- function nt({ as: e, size: t = "lg", gutter: n = !0, className: r, ...i }) {
2268
+ function ft({ as: e, size: t = "lg", gutter: n = !0, className: r, ...i }) {
2141
2269
  return o(e ?? "div", {
2142
2270
  ...i,
2143
2271
  "data-gutter": void 0,
2144
- ...H("container", {
2272
+ ...G("container", {
2145
2273
  size: t,
2146
2274
  gutter: n ? void 0 : "none"
2147
2275
  }, r)
@@ -2149,27 +2277,27 @@ function nt({ as: e, size: t = "lg", gutter: n = !0, className: r, ...i }) {
2149
2277
  }
2150
2278
  //#endregion
2151
2279
  //#region src/components/Link/Link.tsx
2152
- var rt = a("a");
2153
- function it({ component: e, children: t }) {
2154
- return /* @__PURE__ */ b(rt.Provider, {
2280
+ var pt = a("a");
2281
+ function mt({ component: e, children: t }) {
2282
+ return /* @__PURE__ */ b(pt.Provider, {
2155
2283
  value: e,
2156
2284
  children: t
2157
2285
  });
2158
2286
  }
2159
- function at() {
2160
- return u(rt);
2287
+ function ht() {
2288
+ return u(pt);
2161
2289
  }
2162
- function ot({ className: e, ...t }) {
2163
- let n = at();
2290
+ function gt({ className: e, ...t }) {
2291
+ let n = ht();
2164
2292
  return /* @__PURE__ */ b(n, {
2165
2293
  ...t,
2166
- ...H("link", {}, e)
2294
+ ...G("link", {}, e)
2167
2295
  });
2168
2296
  }
2169
- var st = Object.assign(ot, { Provider: it });
2297
+ var _t = Object.assign(gt, { Provider: mt });
2170
2298
  //#endregion
2171
2299
  //#region src/components/CopyableText/content.tsx
2172
- function ct(e, t) {
2300
+ function vt(e, t) {
2173
2301
  let n = (typeof t == "string" ? [t] : t ?? []).filter(Boolean), r = [], i = 0;
2174
2302
  for (; i < e.length;) {
2175
2303
  let t;
@@ -2187,7 +2315,7 @@ function ct(e, t) {
2187
2315
  }
2188
2316
  return r;
2189
2317
  }
2190
- function lt(e) {
2318
+ function yt(e) {
2191
2319
  let t = [];
2192
2320
  for (let n of e.matchAll(/(?:https?:\/\/|www\.)[^\s<>"'`\p{Cc}\u2018\u2019\u201c\u201d]+/giu)) {
2193
2321
  if (/[a-z0-9@_.-]/i.test(e[n.index - 1] ?? "")) continue;
@@ -2221,7 +2349,7 @@ function lt(e) {
2221
2349
  }
2222
2350
  return t.sort((e, t) => e.start - t.start);
2223
2351
  }
2224
- var ut = {
2352
+ var bt = {
2225
2353
  ts: "ts",
2226
2354
  tsx: "tsx",
2227
2355
  typescript: "ts",
@@ -2237,11 +2365,11 @@ var ut = {
2237
2365
  text: "plain",
2238
2366
  plain: "plain"
2239
2367
  };
2240
- function dt(e) {
2368
+ function xt(e) {
2241
2369
  let t = e.trim(), n = /^```([^\s`]*)[^\S\r\n]*\r?\n[\s\S]*\r?\n```$/.exec(t);
2242
2370
  if (n) {
2243
2371
  let e = n[1]?.toLowerCase() ?? "";
2244
- return Object.hasOwn(ut, e) ? ut[e] : "plain";
2372
+ return Object.hasOwn(bt, e) ? bt[e] : "plain";
2245
2373
  }
2246
2374
  if (/^[{[]/.test(t)) try {
2247
2375
  return JSON.parse(t), "json";
@@ -2252,8 +2380,8 @@ function dt(e) {
2252
2380
  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";
2253
2381
  if (/^(?:[.#@][\w-]|[a-z][\w-]*[\s:#.])[\s\S]*\{\s*[\w-]+\s*:/i.test(t)) return "css";
2254
2382
  }
2255
- function ft(e, t) {
2256
- let n = ct(e, t.highlight);
2383
+ function St(e, t) {
2384
+ let n = vt(e, t.highlight);
2257
2385
  if (!t.linkify && !t.detectCode && !t.codeLanguage && n.length === 0) return e;
2258
2386
  let r = (r, i) => {
2259
2387
  if (r >= i) return null;
@@ -2272,7 +2400,7 @@ function ft(e, t) {
2272
2400
  let o = n, s = i, c = e.slice(n, i);
2273
2401
  c.trim().startsWith("```") && c.includes("\n") ? (o = n + c.indexOf("\n") + 1, s = n + c.lastIndexOf("```")) : c.startsWith("`") && c.endsWith("`") && (o += 1, --s);
2274
2402
  let l = [r(n, o)], u = o;
2275
- for (let [t, n, i] of Ce(e.slice(o, s), a)) {
2403
+ for (let [t, n, i] of Ne(e.slice(o, s), a)) {
2276
2404
  let e = o + t, a = o + n;
2277
2405
  e > u && l.push(r(u, e)), l.push(/* @__PURE__ */ b("span", {
2278
2406
  "data-syntax": i,
@@ -2289,14 +2417,14 @@ function ft(e, t) {
2289
2417
  let a = t.detectCode ? [...e.matchAll(/`([^`\r\n]+)`/g)].map((e) => ({
2290
2418
  start: e.index,
2291
2419
  end: e.index + e[0].length
2292
- })) : [], o = t.linkify ? lt(e).filter((e) => !a.some((t) => e.start < t.end && e.end > t.start)) : [], s = [...a.map((e) => ({
2420
+ })) : [], o = t.linkify ? yt(e).filter((e) => !a.some((t) => e.start < t.end && e.end > t.start)) : [], s = [...a.map((e) => ({
2293
2421
  ...e,
2294
2422
  kind: "code"
2295
2423
  })), ...o.map((e) => ({
2296
2424
  ...e,
2297
2425
  kind: "link"
2298
2426
  }))].sort((e, t) => e.start - t.start), c = [], l = 0;
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, {
2427
+ for (let n of s) c.push(r(l, n.start)), n.kind === "code" ? c.push(i(n.start, n.end, xt(e.slice(n.start + 1, n.end - 1)) ?? "plain")) : c.push(/* @__PURE__ */ b(_t, {
2300
2428
  href: n.href,
2301
2429
  className: v("kb-copyabletext-link", t.linkClassName),
2302
2430
  children: r(n.start, n.end)
@@ -2305,8 +2433,8 @@ function ft(e, t) {
2305
2433
  }
2306
2434
  //#endregion
2307
2435
  //#region src/components/CopyableText/CopyableText.tsx
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] = _({
2436
+ function Ct({ 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 }) {
2437
+ let N = f(), P = p === "text" ? void 0 : m ?? (p === "code" ? "tsx" : xt(e)), [F, I] = _({
2310
2438
  value: e,
2311
2439
  open: !1
2312
2440
  }), L = o && F.value === e && F.open;
@@ -2314,7 +2442,7 @@ function pt({ value: e, label: t, appearance: n = "field", size: r = "md", mono:
2314
2442
  value: e,
2315
2443
  open: !1
2316
2444
  }), [e]);
2317
- let R = oe(e, {
2445
+ let R = ge(e, {
2318
2446
  disabled: T,
2319
2447
  feedbackDuration: E,
2320
2448
  onCopy: D,
@@ -2332,7 +2460,7 @@ function pt({ value: e, label: t, appearance: n = "field", size: r = "md", mono:
2332
2460
  }[R.state];
2333
2461
  return /* @__PURE__ */ x("span", {
2334
2462
  ...M,
2335
- ...H("copyabletext", {
2463
+ ...G("copyabletext", {
2336
2464
  appearance: n,
2337
2465
  format: P ? "code" : "text",
2338
2466
  size: r,
@@ -2352,7 +2480,7 @@ function pt({ value: e, label: t, appearance: n = "field", size: r = "md", mono:
2352
2480
  /* @__PURE__ */ b("span", {
2353
2481
  className: v("kb-copyabletext-value", A?.value),
2354
2482
  id: N,
2355
- children: j != null && !L && R.state !== "failed" ? j : ft(e, {
2483
+ children: j != null && !L && R.state !== "failed" ? j : St(e, {
2356
2484
  highlight: l,
2357
2485
  linkify: (u ?? p !== "text") && (!o || L),
2358
2486
  detectCode: p !== "text",
@@ -2395,10 +2523,10 @@ function pt({ value: e, label: t, appearance: n = "field", size: r = "md", mono:
2395
2523
  }
2396
2524
  //#endregion
2397
2525
  //#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", {
2526
+ var wt = ({ ref: e, header: t, metrics: n, primary: r, secondary: i, className: a, classNames: o, ...s }) => /* @__PURE__ */ x("div", {
2399
2527
  ...s,
2400
2528
  ref: e,
2401
- ...H("dashboard", {}, a),
2529
+ ...G("dashboard", {}, a),
2402
2530
  children: [
2403
2531
  t ? /* @__PURE__ */ b("div", {
2404
2532
  className: v("kb-dashboard-header", o?.header),
@@ -2422,58 +2550,58 @@ var mt = ({ ref: e, header: t, metrics: n, primary: r, secondary: i, className:
2422
2550
  });
2423
2551
  //#endregion
2424
2552
  //#region src/components/DescriptionList/DescriptionList.tsx
2425
- function ht({ layout: e = "responsive", density: t = "comfortable", dividers: n = !0, className: r, ...i }) {
2553
+ function Tt({ layout: e = "responsive", density: t = "comfortable", dividers: n = !0, className: r, ...i }) {
2426
2554
  return /* @__PURE__ */ b("dl", {
2427
2555
  ...i,
2428
- ...H("descriptionlist", {
2556
+ ...G("descriptionlist", {
2429
2557
  layout: e,
2430
2558
  density: t,
2431
2559
  dividers: n
2432
2560
  }, r)
2433
2561
  });
2434
2562
  }
2435
- function gt({ className: e, ...t }) {
2563
+ function Et({ className: e, ...t }) {
2436
2564
  return /* @__PURE__ */ b("div", {
2437
2565
  ...t,
2438
- ...H("descriptionlist-item", {}, e)
2566
+ ...G("descriptionlist-item", {}, e)
2439
2567
  });
2440
2568
  }
2441
- function _t({ className: e, ...t }) {
2569
+ function Dt({ className: e, ...t }) {
2442
2570
  return /* @__PURE__ */ b("dt", {
2443
2571
  ...t,
2444
- ...H("descriptionlist-term", {}, e)
2572
+ ...G("descriptionlist-term", {}, e)
2445
2573
  });
2446
2574
  }
2447
- function vt({ className: e, ...t }) {
2575
+ function Ot({ className: e, ...t }) {
2448
2576
  return /* @__PURE__ */ b("dd", {
2449
2577
  ...t,
2450
- ...H("descriptionlist-detail", {}, e)
2578
+ ...G("descriptionlist-detail", {}, e)
2451
2579
  });
2452
2580
  }
2453
- var yt = Object.assign(ht, {
2454
- Item: gt,
2455
- Term: _t,
2456
- Detail: vt
2581
+ var kt = Object.assign(Tt, {
2582
+ Item: Et,
2583
+ Term: Dt,
2584
+ Detail: Ot
2457
2585
  });
2458
2586
  //#endregion
2459
2587
  //#region src/components/Disclosure/Disclosure.tsx
2460
- function bt({ className: e, ...t }) {
2588
+ function At({ className: e, ...t }) {
2461
2589
  return /* @__PURE__ */ b(O.Root, {
2462
2590
  ...t,
2463
- ...H("disclosure", {}, e)
2591
+ ...G("disclosure", {}, e)
2464
2592
  });
2465
2593
  }
2466
- function xt({ className: e, ...t }) {
2594
+ function jt({ className: e, ...t }) {
2467
2595
  return /* @__PURE__ */ b(O.Trigger, {
2468
2596
  ...t,
2469
- ...H("disclosure-trigger", {}, e)
2597
+ ...G("disclosure-trigger", {}, e)
2470
2598
  });
2471
2599
  }
2472
- function St({ className: e, children: t, render: n, ...r }) {
2600
+ function Mt({ className: e, children: t, render: n, ...r }) {
2473
2601
  return /* @__PURE__ */ b(O.Panel, {
2474
2602
  ...r,
2475
- ...H("disclosure-panel", {}, e),
2476
- render: (e, t) => /* @__PURE__ */ b(V, {
2603
+ ...G("disclosure-panel", {}, e),
2604
+ render: (e, t) => /* @__PURE__ */ b(W, {
2477
2605
  nativeProps: e,
2478
2606
  state: t,
2479
2607
  render: n
@@ -2484,20 +2612,20 @@ function St({ className: e, children: t, render: n, ...r }) {
2484
2612
  })
2485
2613
  });
2486
2614
  }
2487
- var Ct = Object.assign(bt, {
2488
- Trigger: xt,
2489
- Panel: St
2490
- }), wt = {
2615
+ var Nt = Object.assign(At, {
2616
+ Trigger: jt,
2617
+ Panel: Mt
2618
+ }), Pt = {
2491
2619
  2: "h2",
2492
2620
  3: "h3",
2493
2621
  4: "h4"
2494
2622
  };
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];
2623
+ function Ft({ 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 }) {
2624
+ let h = Pt[o];
2497
2625
  return /* @__PURE__ */ x("div", {
2498
2626
  ...m,
2499
2627
  ...u ? { role: "status" } : {},
2500
- ...H("emptystate", {
2628
+ ...G("emptystate", {
2501
2629
  size: s,
2502
2630
  variant: c,
2503
2631
  tone: l
@@ -2542,14 +2670,14 @@ function Tt({ title: e, description: t, eyebrow: n, icon: r, actions: i, footer:
2542
2670
  }
2543
2671
  //#endregion
2544
2672
  //#region src/components/ErrorSummary/ErrorSummary.tsx
2545
- var Et = [
2673
+ var It = [
2546
2674
  "input:not(:disabled):not([type='hidden']):not([hidden]):not([tabindex='-1']):not([aria-hidden='true'])",
2547
2675
  "textarea:not(:disabled):not([hidden]):not([tabindex='-1']):not([aria-hidden='true'])",
2548
2676
  "select:not(:disabled):not([hidden]):not([tabindex='-1']):not([aria-hidden='true'])",
2549
2677
  "button:not(:disabled):not([hidden]):not([tabindex='-1']):not([aria-hidden='true'])",
2550
2678
  "[tabindex]:not([tabindex='-1']):not(:disabled):not([hidden]):not([aria-hidden='true']):not([aria-disabled='true'])"
2551
2679
  ].join(", ");
2552
- function Dt(e, t) {
2680
+ function Lt(e, t) {
2553
2681
  if (!t.startsWith("#") || t.length < 2) return !1;
2554
2682
  let n = t.slice(1), r = n;
2555
2683
  try {
@@ -2559,10 +2687,10 @@ function Dt(e, t) {
2559
2687
  }
2560
2688
  let i = e.getElementById(r);
2561
2689
  if (!i) return !1;
2562
- let a = i.matches(Et) ? i : i.querySelector(Et) ?? (i.hasAttribute("tabindex") && !i.matches(":disabled") && !i.hidden ? i : null);
2690
+ let a = i.matches(It) ? i : i.querySelector(It) ?? (i.hasAttribute("tabindex") && !i.matches(":disabled") && !i.hidden ? i : null);
2563
2691
  return a ? (a.focus(), a.scrollIntoView?.({ block: "nearest" }), !0) : !1;
2564
2692
  }
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 }) => {
2693
+ var Rt = ({ 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 }) => {
2566
2694
  let p = f();
2567
2695
  if (r.length === 0) return null;
2568
2696
  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();
@@ -2573,7 +2701,7 @@ var Ot = ({ ref: e, title: t = "There is a problem", description: n, items: r, h
2573
2701
  tabIndex: o,
2574
2702
  "aria-labelledby": _,
2575
2703
  "aria-describedby": y,
2576
- ...H("errorsummary", {}, s),
2704
+ ...G("errorsummary", {}, s),
2577
2705
  children: [
2578
2706
  /* @__PURE__ */ b(S, {
2579
2707
  id: h,
@@ -2597,7 +2725,7 @@ var Ot = ({ ref: e, title: t = "There is a problem", description: n, items: r, h
2597
2725
  href: e.href,
2598
2726
  className: v("kb-errorsummary-link", c?.link),
2599
2727
  onClick: (t) => {
2600
- a?.(e.href, t), !t.defaultPrevented && Dt(t.currentTarget.ownerDocument, e.href) && t.preventDefault();
2728
+ a?.(e.href, t), !t.defaultPrevented && Lt(t.currentTarget.ownerDocument, e.href) && t.preventDefault();
2601
2729
  },
2602
2730
  children: e.label
2603
2731
  })
@@ -2606,8 +2734,8 @@ var Ot = ({ ref: e, title: t = "There is a problem", description: n, items: r, h
2606
2734
  })
2607
2735
  ]
2608
2736
  });
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 }) => {
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 = [
2737
+ }, zt = ({ 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 }) => {
2738
+ let p = f(), m = d.id ?? `kb-fieldset-${p}`, h = !!i, { invalid: g, ariaInvalid: _ } = K(h, u), y = r ? `${m}-description` : void 0, S = h ? `${m}-error` : void 0, C = [
2611
2739
  y,
2612
2740
  S,
2613
2741
  l
@@ -2618,7 +2746,7 @@ var Ot = ({ ref: e, title: t = "There is a problem", description: n, items: r, h
2618
2746
  disabled: a,
2619
2747
  "aria-invalid": _,
2620
2748
  "aria-describedby": C,
2621
- ...H("fieldset", {
2749
+ ...G("fieldset", {
2622
2750
  disabled: !!a,
2623
2751
  invalid: g
2624
2752
  }, o),
@@ -2643,11 +2771,11 @@ var Ot = ({ ref: e, title: t = "There is a problem", description: n, items: r, h
2643
2771
  }) : null
2644
2772
  ]
2645
2773
  });
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 }) {
2648
- let L = f(), R = g(null), z = g(null), B = g(/* @__PURE__ */ new Map()), V = g(null), [W, G] = _("");
2774
+ }, Bt = (e) => `Remove ${e.name}`, Vt = (e) => `${e.name} removed.`, Ht = (e) => `${e} ${e === 1 ? "file" : "files"} selected.`;
2775
+ function Ut({ 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 = Bt, removedMessage: w = Vt, selectionMessage: T = Ht, renderItem: E, triggerClassName: D, listClassName: O, itemClassName: k, inputRef: A, triggerRef: j, className: M, onBlurCapture: N, "aria-describedby": P, "aria-invalid": F, ...I }) {
2776
+ let L = f(), R = g(null), z = g(null), B = g(/* @__PURE__ */ new Map()), V = g(null), [H, U] = _("");
2649
2777
  p(A, () => R.current), p(j, () => z.current);
2650
- let { invalid: K, ariaInvalid: q } = U(!!u, F), J = s || c, ee = [
2778
+ let { invalid: W, ariaInvalid: q } = K(!!u, F), J = s || c, ee = [
2651
2779
  l ? `${L}-description` : null,
2652
2780
  u ? `${L}-error` : null,
2653
2781
  P
@@ -2661,17 +2789,17 @@ function Nt({ classNames: e, label: t, items: n, onFiles: r, onRemove: i, accept
2661
2789
  let t = n[Math.min(e.index, n.length - 1)];
2662
2790
  (t ? B.current.get(t.id) : z.current)?.focus();
2663
2791
  }
2664
- G(w(e.item));
2792
+ U(w(e.item));
2665
2793
  }, [
2666
2794
  n,
2667
2795
  J,
2668
2796
  w
2669
2797
  ]), /* @__PURE__ */ x("div", {
2670
2798
  ...I,
2671
- ...H("fileinput", {
2799
+ ...G("fileinput", {
2672
2800
  disabled: s,
2673
2801
  readonly: c,
2674
- invalid: K
2802
+ invalid: W
2675
2803
  }, M),
2676
2804
  onBlurCapture: (e) => {
2677
2805
  V.current?.button.isSameNode(e.target) && e.relatedTarget !== V.current.button && (V.current = null), N?.(e);
@@ -2694,7 +2822,7 @@ function Nt({ classNames: e, label: t, items: n, onFiles: r, onRemove: i, accept
2694
2822
  let t = e.currentTarget;
2695
2823
  try {
2696
2824
  let e = Array.from(t.files ?? []);
2697
- !J && e.length && (r(e), G(T(e.length)));
2825
+ !J && e.length && (r(e), U(T(e.length)));
2698
2826
  } finally {
2699
2827
  t.value = "";
2700
2828
  }
@@ -2775,25 +2903,69 @@ function Nt({ classNames: e, label: t, items: n, onFiles: r, onRemove: i, accept
2775
2903
  "aria-live": "polite",
2776
2904
  "aria-atomic": "true",
2777
2905
  className: "kb-sr-only",
2778
- children: W
2906
+ children: H
2779
2907
  })
2780
2908
  ]
2781
2909
  });
2782
2910
  }
2783
2911
  //#endregion
2912
+ //#region src/components/FilterChip/FilterChip.tsx
2913
+ function Wt({ label: e, selected: t, onSelectedChange: n, onRemove: r, removeLabel: i = `Remove ${e}`, disabled: a = !1, className: o, classNames: s, "aria-pressed": c, ...l }) {
2914
+ let u = /* @__PURE__ */ b("span", {
2915
+ className: v("kb-filterchip-label", s?.label),
2916
+ children: e
2917
+ });
2918
+ return /* @__PURE__ */ x("span", {
2919
+ ...l,
2920
+ ...G("filterchip", {
2921
+ selected: t,
2922
+ disabled: a
2923
+ }, s?.root ?? o),
2924
+ children: [n ? /* @__PURE__ */ x("button", {
2925
+ className: v("kb-filterchip-select", s?.select),
2926
+ type: "button",
2927
+ "aria-pressed": t,
2928
+ disabled: a,
2929
+ onClick: () => n(!t),
2930
+ children: [/* @__PURE__ */ b("svg", {
2931
+ "aria-hidden": "true",
2932
+ className: v("kb-filterchip-indicator", s?.indicator),
2933
+ viewBox: "0 0 16 16",
2934
+ fill: "none",
2935
+ stroke: "currentColor",
2936
+ strokeWidth: "2",
2937
+ children: /* @__PURE__ */ b("path", { d: "m3 8 3 3 7-7" })
2938
+ }), u]
2939
+ }) : u, r ? /* @__PURE__ */ b("button", {
2940
+ className: v("kb-filterchip-remove", s?.remove),
2941
+ type: "button",
2942
+ "aria-label": i,
2943
+ disabled: a,
2944
+ onClick: () => r(),
2945
+ children: /* @__PURE__ */ b("svg", {
2946
+ "aria-hidden": "true",
2947
+ viewBox: "0 0 16 16",
2948
+ stroke: "currentColor",
2949
+ strokeWidth: "2",
2950
+ children: /* @__PURE__ */ b("path", { d: "m4 4 8 8m0-8-8 8" })
2951
+ })
2952
+ }) : null]
2953
+ });
2954
+ }
2955
+ //#endregion
2784
2956
  //#region src/components/FormActions/FormActions.tsx
2785
- var Pt = ({ ref: e, align: t = "end", divider: n = !1, className: r, children: i, ...a }) => /* @__PURE__ */ b("div", {
2957
+ var Gt = ({ ref: e, align: t = "end", divider: n = !1, className: r, children: i, ...a }) => /* @__PURE__ */ b("div", {
2786
2958
  ...a,
2787
2959
  ref: e,
2788
- ...H("formactions", {
2960
+ ...G("formactions", {
2789
2961
  align: t,
2790
2962
  divider: n
2791
2963
  }, r),
2792
2964
  children: i
2793
- }), Ft = ({ ref: e, header: t, actions: n, actionsAlign: r = "end", width: i = "md", className: a, classNames: o, children: s, ...c }) => /* @__PURE__ */ x("form", {
2965
+ }), Kt = ({ ref: e, header: t, actions: n, actionsAlign: r = "end", width: i = "md", className: a, classNames: o, children: s, ...c }) => /* @__PURE__ */ x("form", {
2794
2966
  ...c,
2795
2967
  ref: e,
2796
- ...H("form", { width: i }, a),
2968
+ ...G("form", { width: i }, a),
2797
2969
  children: [
2798
2970
  t ? /* @__PURE__ */ b("div", {
2799
2971
  className: v("kb-form-header", o?.header),
@@ -2803,14 +2975,14 @@ var Pt = ({ ref: e, align: t = "end", divider: n = !1, className: r, children: i
2803
2975
  className: v("kb-form-body", o?.body),
2804
2976
  children: s
2805
2977
  }),
2806
- n ? /* @__PURE__ */ b(Pt, {
2978
+ n ? /* @__PURE__ */ b(Gt, {
2807
2979
  align: r,
2808
2980
  divider: !0,
2809
2981
  className: v("kb-form-actions", o?.actions),
2810
2982
  children: n
2811
2983
  }) : null
2812
2984
  ]
2813
- }), It = {
2985
+ }), qt = {
2814
2986
  1: "xl",
2815
2987
  2: "lg",
2816
2988
  3: "md",
@@ -2818,16 +2990,16 @@ var Pt = ({ ref: e, align: t = "end", divider: n = !1, className: r, children: i
2818
2990
  5: "sm",
2819
2991
  6: "sm"
2820
2992
  };
2821
- function Lt({ level: e = 2, size: t = It[e], className: n, ...r }) {
2993
+ function Jt({ level: e = 2, size: t = qt[e], className: n, ...r }) {
2822
2994
  return o(`h${e}`, {
2823
2995
  ...r,
2824
- ...H("heading", { size: t }, n)
2996
+ ...G("heading", { size: t }, n)
2825
2997
  });
2826
2998
  }
2827
2999
  //#endregion
2828
3000
  //#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 = [
3001
+ var Yt = ({ 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 }) => {
3002
+ let g = f(), _ = h.id ?? `kb-formsection-${g}`, y = !!i, { invalid: S, ariaInvalid: C } = K(y, m), w = `${_}-title`, T = r ? `${_}-description` : void 0, E = y ? `${_}-error` : void 0, D = [
2831
3003
  T,
2832
3004
  E,
2833
3005
  p
@@ -2839,14 +3011,14 @@ var Rt = ({ ref: e, title: t, headingLevel: n = 2, description: r, error: i, act
2839
3011
  disabled: c,
2840
3012
  "aria-invalid": C,
2841
3013
  "aria-describedby": D,
2842
- ...H("formsection", {
3014
+ ...G("formsection", {
2843
3015
  layout: s,
2844
3016
  disabled: !!c,
2845
3017
  invalid: S
2846
3018
  }, l),
2847
3019
  children: [/* @__PURE__ */ x("div", {
2848
3020
  className: v("kb-formsection-header", u?.header),
2849
- children: [/* @__PURE__ */ b(Lt, {
3021
+ children: [/* @__PURE__ */ b(Jt, {
2850
3022
  level: n,
2851
3023
  size: "md",
2852
3024
  id: w,
@@ -2869,7 +3041,7 @@ var Rt = ({ ref: e, title: t, headingLevel: n = 2, description: r, error: i, act
2869
3041
  className: v("kb-formsection-error", u?.error),
2870
3042
  children: i
2871
3043
  }) : null,
2872
- a ? /* @__PURE__ */ b(Pt, {
3044
+ a ? /* @__PURE__ */ b(Gt, {
2873
3045
  align: o,
2874
3046
  className: v("kb-formsection-actions", u?.actions),
2875
3047
  children: a
@@ -2880,10 +3052,10 @@ var Rt = ({ ref: e, title: t, headingLevel: n = 2, description: r, error: i, act
2880
3052
  };
2881
3053
  //#endregion
2882
3054
  //#region src/components/Grid/Grid.tsx
2883
- function zt({ as: e, layout: t = "auto", columns: n, minItemWidth: r, gap: i, align: a, className: s, ...c }) {
3055
+ function Xt({ as: e, layout: t = "auto", columns: n, minItemWidth: r, gap: i, align: a, className: s, ...c }) {
2884
3056
  return o(e ?? "div", {
2885
3057
  ...c,
2886
- ...H("grid", {
3058
+ ...G("grid", {
2887
3059
  layout: t,
2888
3060
  columns: n === void 0 ? void 0 : String(n),
2889
3061
  "min-item-width": r,
@@ -2894,15 +3066,15 @@ function zt({ as: e, layout: t = "auto", columns: n, minItemWidth: r, gap: i, al
2894
3066
  }
2895
3067
  //#endregion
2896
3068
  //#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);
3069
+ function Zt(e) {
3070
+ return n.toArray(e).some((e) => c(e) && e.type === r ? Zt(e.props.children) : !0);
2899
3071
  }
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);
3072
+ function Qt({ ref: e, header: t, filters: n, itemsLabel: r, empty: i, className: a, classNames: o, children: s, ...c }) {
3073
+ let l = i != null && !Zt(s);
2902
3074
  return /* @__PURE__ */ x("div", {
2903
3075
  ...c,
2904
3076
  ref: e,
2905
- ...H("gallery", {}, a),
3077
+ ...G("gallery", {}, a),
2906
3078
  children: [
2907
3079
  t == null ? null : /* @__PURE__ */ b("div", {
2908
3080
  className: v("kb-gallery-header", o?.header),
@@ -2915,7 +3087,7 @@ function Vt({ ref: e, header: t, filters: n, itemsLabel: r, empty: i, className:
2915
3087
  l ? /* @__PURE__ */ b("div", {
2916
3088
  className: v("kb-gallery-empty", o?.empty),
2917
3089
  children: i
2918
- }) : /* @__PURE__ */ b(zt, {
3090
+ }) : /* @__PURE__ */ b(Xt, {
2919
3091
  as: "ul",
2920
3092
  gap: "lg",
2921
3093
  "aria-label": r,
@@ -2925,19 +3097,19 @@ function Vt({ ref: e, header: t, filters: n, itemsLabel: r, empty: i, className:
2925
3097
  ]
2926
3098
  });
2927
3099
  }
2928
- function Ht({ featured: e, className: t, ...n }) {
3100
+ function $t({ featured: e, className: t, ...n }) {
2929
3101
  return /* @__PURE__ */ b("li", {
2930
3102
  ...n,
2931
- ...H("gallery-item", { featured: e }, t)
3103
+ ...G("gallery-item", { featured: e }, t)
2932
3104
  });
2933
3105
  }
2934
- var Ut = Object.assign(Vt, { Item: Ht });
3106
+ var en = Object.assign(Qt, { Item: $t });
2935
3107
  //#endregion
2936
3108
  //#region src/components/Inline/Inline.tsx
2937
- function Wt({ as: e, gap: t = "md", align: n = "center", justify: r = "start", className: i, ...a }) {
3109
+ function tn({ as: e, gap: t = "md", align: n = "center", justify: r = "start", className: i, ...a }) {
2938
3110
  return o(e ?? "div", {
2939
3111
  ...a,
2940
- ...H("inline", {
3112
+ ...G("inline", {
2941
3113
  gap: t,
2942
3114
  align: n,
2943
3115
  justify: r
@@ -2946,8 +3118,8 @@ function Wt({ as: e, gap: t = "md", align: n = "center", justify: r = "start", c
2946
3118
  }
2947
3119
  //#endregion
2948
3120
  //#region src/components/Menu/Menu.tsx
2949
- var Gt = a(!1);
2950
- function Kt({ onOpenChange: e, ...t }) {
3121
+ var nn = a(!1);
3122
+ function rn({ onOpenChange: e, ...t }) {
2951
3123
  let [n, r] = _(!1);
2952
3124
  return d(() => {
2953
3125
  if (!n) return;
@@ -2956,7 +3128,7 @@ function Kt({ onOpenChange: e, ...t }) {
2956
3128
  capture: !0,
2957
3129
  once: !0
2958
3130
  }), () => document.removeEventListener("keydown", e, !0);
2959
- }, [n]), /* @__PURE__ */ b(Gt.Provider, {
3131
+ }, [n]), /* @__PURE__ */ b(nn.Provider, {
2960
3132
  value: n,
2961
3133
  children: /* @__PURE__ */ b(k.Root, {
2962
3134
  ...t,
@@ -2967,15 +3139,15 @@ function Kt({ onOpenChange: e, ...t }) {
2967
3139
  })
2968
3140
  });
2969
3141
  }
2970
- function qt(e) {
2971
- let t = u(Gt);
3142
+ function an(e) {
3143
+ let t = u(nn);
2972
3144
  return /* @__PURE__ */ b(k.Trigger, {
2973
3145
  ...e,
2974
3146
  "data-kb-menu-trigger": "",
2975
3147
  "data-pointer-focus": t || void 0
2976
3148
  });
2977
3149
  }
2978
- function Jt({ side: e = "bottom", align: t = "start", className: n, container: r, ...i }) {
3150
+ function on({ side: e = "bottom", align: t = "start", className: n, container: r, ...i }) {
2979
3151
  return /* @__PURE__ */ b(k.Portal, {
2980
3152
  container: r,
2981
3153
  children: /* @__PURE__ */ b(k.Positioner, {
@@ -2989,28 +3161,28 @@ function Jt({ side: e = "bottom", align: t = "start", className: n, container: r
2989
3161
  })
2990
3162
  });
2991
3163
  }
2992
- function Yt({ className: e, ...t }) {
3164
+ function sn({ className: e, ...t }) {
2993
3165
  return /* @__PURE__ */ b(k.Item, {
2994
3166
  ...t,
2995
3167
  className: v("kb-menu-item", e)
2996
3168
  });
2997
3169
  }
2998
- function Xt({ className: e, ...t }) {
3170
+ function cn({ className: e, ...t }) {
2999
3171
  return /* @__PURE__ */ b(A, {
3000
3172
  ...t,
3001
3173
  className: v("kb-menu-separator", e)
3002
3174
  });
3003
3175
  }
3004
- var Zt = Object.assign(Kt, {
3005
- Trigger: qt,
3006
- Content: Jt,
3007
- Item: Yt,
3008
- Separator: Xt
3176
+ var ln = Object.assign(rn, {
3177
+ Trigger: an,
3178
+ Content: on,
3179
+ Item: sn,
3180
+ Separator: cn
3009
3181
  });
3010
3182
  //#endregion
3011
3183
  //#region src/components/NumberField/NumberField.tsx
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 }) {
3013
- let M = f(), { invalid: N, ariaInvalid: P } = U(!!g, w?.["aria-invalid"] ?? k), F = [
3184
+ function un({ 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 }) {
3185
+ let M = f(), { invalid: N, ariaInvalid: P } = K(!!g, w?.["aria-invalid"] ?? k), F = [
3014
3186
  h ? `${M}-description` : null,
3015
3187
  g ? `${M}-error` : null,
3016
3188
  O,
@@ -3018,7 +3190,7 @@ function Qt({ classNames: e, label: t, value: n, onValueChange: r, min: i, max:
3018
3190
  ].filter(Boolean).join(" ") || void 0;
3019
3191
  return /* @__PURE__ */ x("div", {
3020
3192
  ...A,
3021
- ...H("numberfield", {
3193
+ ...G("numberfield", {
3022
3194
  size: _,
3023
3195
  disabled: d,
3024
3196
  readonly: p,
@@ -3089,16 +3261,16 @@ function Qt({ classNames: e, label: t, value: n, onValueChange: r, min: i, max:
3089
3261
  }
3090
3262
  //#endregion
3091
3263
  //#region src/components/PageHeader/PageHeader.tsx
3092
- var $t = {
3264
+ var dn = {
3093
3265
  1: "h1",
3094
3266
  2: "h2",
3095
3267
  3: "h3"
3096
3268
  };
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];
3269
+ function fn({ 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 }) {
3270
+ let p = dn[o];
3099
3271
  return /* @__PURE__ */ x("div", {
3100
3272
  ...f,
3101
- ...H("pageheader", {
3273
+ ...G("pageheader", {
3102
3274
  size: s,
3103
3275
  divider: c
3104
3276
  }, l),
@@ -3145,18 +3317,18 @@ function en({ title: e, description: t, eyebrow: n, navigation: r, meta: i, acti
3145
3317
  }
3146
3318
  //#endregion
3147
3319
  //#region src/components/Panel/Panel.tsx
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", {
3320
+ var pn = a(!1), mn = a(!1), hn = a("column"), gn = (e) => e?.previousElementSibling;
3321
+ function _n({ 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 }) {
3322
+ let p = G("panel", {
3151
3323
  tone: e,
3152
3324
  rail: t,
3153
3325
  density: n,
3154
- nested: u(tn),
3326
+ nested: u(pn),
3155
3327
  opaque: r,
3156
3328
  collapsible: i
3157
- }, c), m = /* @__PURE__ */ b(tn, {
3329
+ }, c), m = /* @__PURE__ */ b(pn, {
3158
3330
  value: !0,
3159
- children: /* @__PURE__ */ x(nn, {
3331
+ children: /* @__PURE__ */ x(mn, {
3160
3332
  value: i,
3161
3333
  children: [
3162
3334
  /* @__PURE__ */ b("span", {
@@ -3188,59 +3360,59 @@ function on({ tone: e = "default", rail: t = "none", density: n = "standard", op
3188
3360
  children: m
3189
3361
  });
3190
3362
  }
3191
- function sn({ className: e, ...t }) {
3363
+ function vn({ className: e, ...t }) {
3192
3364
  return /* @__PURE__ */ b("header", {
3193
3365
  ...t,
3194
3366
  className: v("kb-panel-header", e)
3195
3367
  });
3196
3368
  }
3197
- function cn({ className: e, ...t }) {
3369
+ function yn({ className: e, ...t }) {
3198
3370
  return /* @__PURE__ */ b("div", {
3199
3371
  ...t,
3200
3372
  className: v("kb-panel-toolbar", e)
3201
3373
  });
3202
3374
  }
3203
- function ln({ className: e, ...t }) {
3204
- let n = u(nn), r = v("kb-panel-body", e);
3375
+ function bn({ className: e, ...t }) {
3376
+ let n = u(mn), r = v("kb-panel-body", e);
3205
3377
  return b(n ? O.Panel : "div", {
3206
3378
  ...t,
3207
3379
  className: r
3208
3380
  });
3209
3381
  }
3210
- function un({ className: e, ...t }) {
3382
+ function xn({ className: e, ...t }) {
3211
3383
  return /* @__PURE__ */ b("footer", {
3212
3384
  ...t,
3213
3385
  className: v("kb-panel-footer", e)
3214
3386
  });
3215
3387
  }
3216
- function dn({ className: e, ...t }) {
3388
+ function Sn({ className: e, ...t }) {
3217
3389
  return /* @__PURE__ */ b("div", {
3218
3390
  ...t,
3219
3391
  className: v("kb-panel-well", e)
3220
3392
  });
3221
3393
  }
3222
- function fn({ className: e, ...t }) {
3394
+ function Cn({ className: e, ...t }) {
3223
3395
  return /* @__PURE__ */ b(O.Trigger, {
3224
3396
  ...t,
3225
3397
  className: v("kb-panel-toggle", e)
3226
3398
  });
3227
3399
  }
3228
- function pn({ direction: e = "column", className: t, ...n }) {
3229
- return /* @__PURE__ */ b(rn, {
3400
+ function wn({ direction: e = "column", className: t, ...n }) {
3401
+ return /* @__PURE__ */ b(hn, {
3230
3402
  value: e,
3231
3403
  children: /* @__PURE__ */ b("div", {
3232
3404
  ...n,
3233
- ...H("panel-group", { direction: e }, t)
3405
+ ...G("panel-group", { direction: e }, t)
3234
3406
  })
3235
3407
  });
3236
3408
  }
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();
3409
+ function Tn({ 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 }) {
3410
+ let y = u(hn) === "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();
3239
3411
  m(() => {
3240
- let e = an(A.current);
3412
+ let e = gn(A.current);
3241
3413
  e && (e.id ||= j, E(e.id));
3242
3414
  }, [j]), m(() => {
3243
- an(A.current)?.style.setProperty("--kb-panel-size", `${w}%`);
3415
+ gn(A.current)?.style.setProperty("--kb-panel-size", `${w}%`);
3244
3416
  }, [w]);
3245
3417
  let M = (t) => {
3246
3418
  let n = x(t);
@@ -3259,7 +3431,7 @@ function mn({ size: e, defaultSize: t = 50, min: n = 10, max: r = 90, step: i =
3259
3431
  l?.(e), !(e.defaultPrevented || e.button !== 0) && (e.preventDefault(), e.currentTarget.setPointerCapture?.(e.pointerId), O(!0));
3260
3432
  }, I = (e) => {
3261
3433
  d?.(e);
3262
- let t = A.current?.parentElement?.getBoundingClientRect(), n = an(A.current)?.getBoundingClientRect();
3434
+ let t = A.current?.parentElement?.getBoundingClientRect(), n = gn(A.current)?.getBoundingClientRect();
3263
3435
  if (!D || !t || !n) return;
3264
3436
  let r = y ? e.clientX - n.left : e.clientY - n.top, i = y ? t.width : t.height;
3265
3437
  i > 0 && M(Math.round(r / i * 1e3) / 10);
@@ -3288,64 +3460,64 @@ function mn({ size: e, defaultSize: t = 50, min: n = 10, max: r = 90, step: i =
3288
3460
  onPointerCancel: (e) => {
3289
3461
  h?.(e), L(e);
3290
3462
  },
3291
- ...H("panel-handle", {
3463
+ ...G("panel-handle", {
3292
3464
  orientation: y ? "vertical" : "horizontal",
3293
3465
  dragging: D
3294
3466
  }, o)
3295
3467
  });
3296
3468
  }
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
3469
+ var En = Object.assign(_n, {
3470
+ Header: vn,
3471
+ Toolbar: yn,
3472
+ Body: bn,
3473
+ Footer: xn,
3474
+ Well: Sn,
3475
+ Toggle: Cn,
3476
+ Group: wn,
3477
+ Handle: Tn
3306
3478
  });
3307
3479
  //#endregion
3308
3480
  //#region src/components/Popover/Popover.tsx
3309
- function gn(e) {
3481
+ function Dn(e) {
3310
3482
  return /* @__PURE__ */ b(M.Root, { ...e });
3311
3483
  }
3312
- function _n(e) {
3484
+ function On(e) {
3313
3485
  return /* @__PURE__ */ b(M.Trigger, { ...e });
3314
3486
  }
3315
- function vn(e) {
3487
+ function kn(e) {
3316
3488
  return /* @__PURE__ */ b(M.Close, { ...e });
3317
3489
  }
3318
- function yn({ className: e, ...t }) {
3490
+ function An({ className: e, ...t }) {
3319
3491
  return /* @__PURE__ */ b(M.Title, {
3320
3492
  ...t,
3321
- ...H("popover-title", {}, e)
3493
+ ...G("popover-title", {}, e)
3322
3494
  });
3323
3495
  }
3324
- function bn({ className: e, ...t }) {
3496
+ function jn({ className: e, ...t }) {
3325
3497
  return /* @__PURE__ */ b(M.Description, {
3326
3498
  ...t,
3327
- ...H("popover-description", {}, e)
3499
+ ...G("popover-description", {}, e)
3328
3500
  });
3329
3501
  }
3330
- function xn({ className: e, ...t }) {
3502
+ function Mn({ className: e, ...t }) {
3331
3503
  return /* @__PURE__ */ b("div", {
3332
3504
  ...t,
3333
- ...H("popover-header", {}, e)
3505
+ ...G("popover-header", {}, e)
3334
3506
  });
3335
3507
  }
3336
- function Sn({ className: e, ...t }) {
3508
+ function Nn({ className: e, ...t }) {
3337
3509
  return /* @__PURE__ */ b("div", {
3338
3510
  ...t,
3339
- ...H("popover-body", {}, e)
3511
+ ...G("popover-body", {}, e)
3340
3512
  });
3341
3513
  }
3342
- function Cn({ className: e, ...t }) {
3514
+ function Pn({ className: e, ...t }) {
3343
3515
  return /* @__PURE__ */ b("div", {
3344
3516
  ...t,
3345
- ...H("popover-footer", {}, e)
3517
+ ...G("popover-footer", {}, e)
3346
3518
  });
3347
3519
  }
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 }) {
3520
+ function Fn({ title: e, description: t, container: n, side: r = "bottom", align: i = "start", sideOffset: a = 6, positionerProps: o, classNames: s, className: c, children: l, ...u }) {
3349
3521
  let d = e != null && e !== "", f = t != null && t !== "";
3350
3522
  return /* @__PURE__ */ b(M.Portal, {
3351
3523
  container: n,
@@ -3357,30 +3529,30 @@ function wn({ title: e, description: t, container: n, side: r = "bottom", align:
3357
3529
  className: v("kb-popover-positioner", s?.positioner),
3358
3530
  children: /* @__PURE__ */ x(M.Popup, {
3359
3531
  ...u,
3360
- ...H("popover", {}, c),
3361
- children: [d || f ? /* @__PURE__ */ x(xn, { children: [d ? /* @__PURE__ */ b(yn, { children: e }) : null, f ? /* @__PURE__ */ b(bn, { children: t }) : null] }) : null, l]
3532
+ ...G("popover", {}, c),
3533
+ children: [d || f ? /* @__PURE__ */ x(Mn, { children: [d ? /* @__PURE__ */ b(An, { children: e }) : null, f ? /* @__PURE__ */ b(jn, { children: t }) : null] }) : null, l]
3362
3534
  })
3363
3535
  })
3364
3536
  });
3365
3537
  }
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
3538
+ var In = Object.assign(Dn, {
3539
+ Trigger: On,
3540
+ Content: Fn,
3541
+ Title: An,
3542
+ Description: jn,
3543
+ Close: kn,
3544
+ Header: Mn,
3545
+ Body: Nn,
3546
+ Footer: Pn
3375
3547
  });
3376
3548
  //#endregion
3377
3549
  //#region src/components/Progress/Progress.tsx
3378
- function En({ classNames: e, label: t, value: n, valueText: r, className: i, ...a }) {
3550
+ function Ln({ classNames: e, label: t, value: n, valueText: r, className: i, ...a }) {
3379
3551
  return /* @__PURE__ */ x(N.Root, {
3380
3552
  ...a,
3381
3553
  value: n,
3382
3554
  ...r ? { getAriaValueText: () => r } : {},
3383
- ...H("progress", {}, i),
3555
+ ...G("progress", {}, i),
3384
3556
  children: [/* @__PURE__ */ x("div", {
3385
3557
  className: v("kb-progress-head", e?.head),
3386
3558
  children: [/* @__PURE__ */ b(N.Label, {
@@ -3398,8 +3570,8 @@ function En({ classNames: e, label: t, value: n, valueText: r, className: i, ...
3398
3570
  }
3399
3571
  //#endregion
3400
3572
  //#region src/components/RadioGroup/RadioGroup.tsx
3401
- var Dn = a(null);
3402
- function On({ segmented: e, className: t, children: n }) {
3573
+ var Rn = a(null);
3574
+ function zn({ segmented: e, className: t, children: n }) {
3403
3575
  let r = g(null), [i, a] = _(null);
3404
3576
  return m(() => {
3405
3577
  let t = r.current;
@@ -3445,8 +3617,8 @@ function On({ segmented: e, className: t, children: n }) {
3445
3617
  }), n]
3446
3618
  });
3447
3619
  }
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);
3620
+ function Bn({ checked: e, disabled: t, customTabIndex: n, ...r }) {
3621
+ let i = u(Rn), a = i?.update, o = i?.remove, s = f(), c = !t && (n === void 0 || n >= 0);
3450
3622
  m(() => () => {
3451
3623
  o?.(s);
3452
3624
  }, [o, s]), m(() => {
@@ -3471,8 +3643,8 @@ function kn({ checked: e, disabled: t, customTabIndex: n, ...r }) {
3471
3643
  }
3472
3644
  });
3473
3645
  }
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 }) {
3475
- let T = f(), { invalid: E, ariaInvalid: D } = U(!!d, C), O = g(null), [k, A] = _(!1), j = l((e) => {
3646
+ function Vn({ 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 }) {
3647
+ let T = f(), { invalid: E, ariaInvalid: D } = K(!!d, C), O = g(null), [k, A] = _(!1), j = l((e) => {
3476
3648
  O.current = e;
3477
3649
  }, []), [M, N] = _(() => /* @__PURE__ */ new Map()), P = l((e, t) => {
3478
3650
  N((n) => {
@@ -3490,7 +3662,7 @@ function An({ classNames: e, label: t, value: n, onValueChange: r, disabled: i =
3490
3662
  d ? `${T}-error` : null,
3491
3663
  w["aria-describedby"]
3492
3664
  ].filter(Boolean).join(" ") || void 0;
3493
- return /* @__PURE__ */ b(Dn.Provider, {
3665
+ return /* @__PURE__ */ b(Rn.Provider, {
3494
3666
  value: {
3495
3667
  target: R,
3496
3668
  update: P,
@@ -3512,7 +3684,7 @@ function An({ classNames: e, label: t, value: n, onValueChange: r, disabled: i =
3512
3684
  },
3513
3685
  disabled: i,
3514
3686
  ...c ? { name: c } : {},
3515
- ...H("radiogroup", {
3687
+ ...G("radiogroup", {
3516
3688
  invalid: E,
3517
3689
  disabled: i,
3518
3690
  appearance: a,
@@ -3528,7 +3700,7 @@ function An({ classNames: e, label: t, value: n, onValueChange: r, disabled: i =
3528
3700
  id: `${T}-label`,
3529
3701
  children: t
3530
3702
  }),
3531
- /* @__PURE__ */ b(On, {
3703
+ /* @__PURE__ */ b(zn, {
3532
3704
  segmented: a === "segmented",
3533
3705
  className: e?.options,
3534
3706
  children: h
@@ -3547,13 +3719,13 @@ function An({ classNames: e, label: t, value: n, onValueChange: r, disabled: i =
3547
3719
  })
3548
3720
  });
3549
3721
  }
3550
- function jn({ classNames: e, className: t, children: n, controlClassName: r, ...i }) {
3722
+ function Hn({ classNames: e, className: t, children: n, controlClassName: r, ...i }) {
3551
3723
  return /* @__PURE__ */ x("label", {
3552
3724
  className: v("kb-radiogroup-item", e?.item, t),
3553
3725
  children: [/* @__PURE__ */ b(P.Root, {
3554
3726
  ...i,
3555
3727
  className: v("kb-radiogroup-control", e?.control, r),
3556
- render: (e, t) => /* @__PURE__ */ b(kn, {
3728
+ render: (e, t) => /* @__PURE__ */ b(Bn, {
3557
3729
  ...e,
3558
3730
  checked: t.checked,
3559
3731
  disabled: t.disabled,
@@ -3566,10 +3738,10 @@ function jn({ classNames: e, className: t, children: n, controlClassName: r, ...
3566
3738
  })]
3567
3739
  });
3568
3740
  }
3569
- var Mn = Object.assign(An, { Item: jn });
3741
+ var Un = Object.assign(Vn, { Item: Hn });
3570
3742
  //#endregion
3571
3743
  //#region src/components/ScrollArea/ScrollArea.tsx
3572
- function Nn({ classNames: e, label: t, maxHeight: n, className: r, style: i, children: a, ...o }) {
3744
+ function Wn({ classNames: e, label: t, maxHeight: n, className: r, style: i, children: a, ...o }) {
3573
3745
  let s = n ? { "--_scrollarea-max-height": n } : {};
3574
3746
  return /* @__PURE__ */ x(I.Root, {
3575
3747
  ...o,
@@ -3577,7 +3749,7 @@ function Nn({ classNames: e, label: t, maxHeight: n, className: r, style: i, chi
3577
3749
  ...s,
3578
3750
  ...typeof i == "object" ? i : {}
3579
3751
  },
3580
- ...H("scrollarea", {}, r),
3752
+ ...G("scrollarea", {}, r),
3581
3753
  children: [/* @__PURE__ */ b(I.Viewport, {
3582
3754
  className: v("kb-scrollarea-viewport", e?.viewport),
3583
3755
  tabIndex: 0,
@@ -3593,10 +3765,10 @@ function Nn({ classNames: e, label: t, maxHeight: n, className: r, style: i, chi
3593
3765
  }
3594
3766
  //#endregion
3595
3767
  //#region src/components/Separator/Separator.tsx
3596
- function Pn({ orientation: e = "horizontal", decorative: t = !1, className: n, ...r }) {
3768
+ function Gn({ orientation: e = "horizontal", decorative: t = !1, className: n, ...r }) {
3597
3769
  return /* @__PURE__ */ b("hr", {
3598
3770
  ...r,
3599
- ...H("separator", { orientation: e }, n),
3771
+ ...G("separator", { orientation: e }, n),
3600
3772
  role: t ? "none" : void 0,
3601
3773
  "aria-hidden": t ? !0 : void 0,
3602
3774
  "aria-orientation": t ? void 0 : e
@@ -3604,10 +3776,10 @@ function Pn({ orientation: e = "horizontal", decorative: t = !1, className: n, .
3604
3776
  }
3605
3777
  //#endregion
3606
3778
  //#region src/components/Settings/Settings.tsx
3607
- var Fn = ({ ref: e, header: t, className: n, classNames: r, children: i, ...a }) => /* @__PURE__ */ x("div", {
3779
+ var Kn = ({ ref: e, header: t, className: n, classNames: r, children: i, ...a }) => /* @__PURE__ */ x("div", {
3608
3780
  ...a,
3609
3781
  ref: e,
3610
- ...H("settings", {}, n),
3782
+ ...G("settings", {}, n),
3611
3783
  children: [t ? /* @__PURE__ */ b("div", {
3612
3784
  className: v("kb-settings-header", r?.header),
3613
3785
  children: t
@@ -3618,11 +3790,11 @@ var Fn = ({ ref: e, header: t, className: n, classNames: r, children: i, ...a })
3618
3790
  });
3619
3791
  //#endregion
3620
3792
  //#region src/components/Skeleton/Skeleton.tsx
3621
- function In(e) {
3793
+ function qn(e) {
3622
3794
  if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
3623
3795
  }
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 : {
3796
+ var Jn = 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) {
3797
+ 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 = qn(c), T = qn(l), E = r && i !== "none", D = w === void 0 ? u : {
3626
3798
  ...u,
3627
3799
  inlineSize: w
3628
3800
  }, O = T === void 0 ? void 0 : { blockSize: T }, k = Array.from({ length: C }, (e, t) => t);
@@ -3632,7 +3804,7 @@ var Ln = s(function({ variant: e = "text", size: t = "md", lines: n = 1, animate
3632
3804
  "aria-busy": S ? "true" : void 0,
3633
3805
  style: D,
3634
3806
  ...m,
3635
- ...H("skeleton", {
3807
+ ...G("skeleton", {
3636
3808
  variant: _,
3637
3809
  size: t,
3638
3810
  tone: a,
@@ -3654,103 +3826,14 @@ var Ln = s(function({ variant: e = "text", size: t = "md", lines: n = 1, animate
3654
3826
  children: s
3655
3827
  }) : null]
3656
3828
  });
3657
- }), Rn = [
3658
- 5,
3659
- 12,
3660
- 19
3661
- ], zn = [
3662
- 3.5,
3663
- 8.25,
3664
- 13,
3665
- 17.75
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) {
3667
- return /* @__PURE__ */ x("span", {
3668
- ref: u,
3669
- role: n ? void 0 : "status",
3670
- "aria-live": n ? void 0 : "polite",
3671
- "aria-hidden": n ? "true" : void 0,
3672
- ...l,
3673
- ...H("spinner", {
3674
- size: r,
3675
- tone: i,
3676
- variant: a,
3677
- appearance: o,
3678
- "show-label": t
3679
- }, c?.root ?? s),
3680
- children: [/* @__PURE__ */ x("svg", {
3681
- viewBox: "0 0 24 24",
3682
- "aria-hidden": "true",
3683
- focusable: "false",
3684
- className: v("kb-spinner-icon", c?.icon),
3685
- children: [
3686
- a === "ring" && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("circle", {
3687
- cx: "12",
3688
- cy: "12",
3689
- r: "9.5",
3690
- className: v("kb-spinner-track", c?.track)
3691
- }), /* @__PURE__ */ b("path", {
3692
- d: "M12 2.5a9.5 9.5 0 1 1 0 19a9.5 9.5 0 1 1 0 -19",
3693
- pathLength: 100,
3694
- className: v("kb-spinner-arc", c?.arc)
3695
- })] }),
3696
- a === "orbit" && /* @__PURE__ */ x(y, { children: [
3697
- /* @__PURE__ */ b("circle", {
3698
- cx: "12",
3699
- cy: "12",
3700
- r: "9.5",
3701
- className: v("kb-spinner-track", c?.track)
3702
- }),
3703
- /* @__PURE__ */ b("circle", {
3704
- cx: "12",
3705
- cy: "12",
3706
- r: "5.5",
3707
- className: v("kb-spinner-track", c?.track)
3708
- }),
3709
- /* @__PURE__ */ b("path", {
3710
- d: "M12 2.5a9.5 9.5 0 1 1 0 19a9.5 9.5 0 1 1 0 -19",
3711
- pathLength: 100,
3712
- className: v("kb-spinner-arc", c?.arc)
3713
- }),
3714
- /* @__PURE__ */ b("path", {
3715
- d: "M12 17.5a5.5 5.5 0 1 1 0 -11a5.5 5.5 0 1 1 0 11",
3716
- pathLength: 100,
3717
- className: v("kb-spinner-arc", c?.arc)
3718
- }),
3719
- /* @__PURE__ */ b("circle", {
3720
- cx: "12",
3721
- cy: "12",
3722
- r: "1.75",
3723
- className: v("kb-spinner-core", c?.core)
3724
- })
3725
- ] }),
3726
- a === "dots" && Rn.map((e) => /* @__PURE__ */ b("circle", {
3727
- cx: e,
3728
- cy: "12",
3729
- r: "2.25",
3730
- className: v("kb-spinner-dot", c?.dot)
3731
- }, e)),
3732
- a === "bars" && zn.map((e) => /* @__PURE__ */ b("rect", {
3733
- x: e,
3734
- y: "5",
3735
- width: "2.5",
3736
- height: "14",
3737
- rx: "1.25",
3738
- className: v("kb-spinner-bar", c?.bar)
3739
- }, e))
3740
- ]
3741
- }), !n && /* @__PURE__ */ b("span", {
3742
- className: v("kb-spinner-label", !t && "kb-sr-only", c?.label),
3743
- children: e
3744
- })]
3745
- });
3746
3829
  });
3747
3830
  //#endregion
3748
3831
  //#region src/components/Split/Split.tsx
3749
- function Vn({ as: e, ratio: t = "equal", collapse: r = "md", gap: i = "md", align: a = "stretch", className: s, classNames: c, children: l, ...u }) {
3832
+ function Yn({ as: e, ratio: t = "equal", collapse: r = "md", gap: i = "md", align: a = "stretch", className: s, classNames: c, children: l, ...u }) {
3750
3833
  let d = v("kb-split-track", c?.track);
3751
3834
  return o(e ?? "div", {
3752
3835
  ...u,
3753
- ...H("split", {
3836
+ ...G("split", {
3754
3837
  ratio: t,
3755
3838
  collapse: r,
3756
3839
  gap: i,
@@ -3763,10 +3846,10 @@ function Vn({ as: e, ratio: t = "equal", collapse: r = "md", gap: i = "md", alig
3763
3846
  }
3764
3847
  //#endregion
3765
3848
  //#region src/components/Stack/Stack.tsx
3766
- function Hn({ as: e, gap: t = "md", align: n = "stretch", justify: r = "start", className: i, ...a }) {
3849
+ function Xn({ as: e, gap: t = "md", align: n = "stretch", justify: r = "start", className: i, ...a }) {
3767
3850
  return o(e ?? "div", {
3768
3851
  ...a,
3769
- ...H("stack", {
3852
+ ...G("stack", {
3770
3853
  gap: t,
3771
3854
  align: n,
3772
3855
  justify: r
@@ -3775,10 +3858,10 @@ function Hn({ as: e, gap: t = "md", align: n = "stretch", justify: r = "start",
3775
3858
  }
3776
3859
  //#endregion
3777
3860
  //#region src/components/Stat/Stat.tsx
3778
- function Un({ classNames: e, label: t, value: n, size: r = "md", className: i, ...a }) {
3861
+ function Zn({ classNames: e, label: t, value: n, size: r = "md", className: i, ...a }) {
3779
3862
  return /* @__PURE__ */ x("div", {
3780
3863
  ...a,
3781
- ...H("stat", { size: r }, i),
3864
+ ...G("stat", { size: r }, i),
3782
3865
  children: [/* @__PURE__ */ b("span", {
3783
3866
  className: v("kb-stat-label", e?.label),
3784
3867
  children: t
@@ -3790,25 +3873,25 @@ function Un({ classNames: e, label: t, value: n, size: r = "md", className: i, .
3790
3873
  }
3791
3874
  //#endregion
3792
3875
  //#region src/components/StatsRow/StatsRow.tsx
3793
- function Wn({ appearance: e = "plain", className: t, ...n }) {
3876
+ function Qn({ appearance: e = "plain", className: t, ...n }) {
3794
3877
  return /* @__PURE__ */ b("ul", {
3795
3878
  role: "list",
3796
3879
  ...n,
3797
- ...H("statsrow", { appearance: e }, t)
3880
+ ...G("statsrow", { appearance: e }, t)
3798
3881
  });
3799
3882
  }
3800
- var Gn = {
3883
+ var $n = {
3801
3884
  up: "M8 3.5 13 10H3z",
3802
3885
  down: "M8 12.5 3 6h10z",
3803
3886
  flat: "M3 7h10v2H3z"
3804
3887
  };
3805
- function Kn({ label: e, value: t, change: n, trend: r, tone: i = "neutral", context: a, link: o, className: s, classNames: c, ...l }) {
3888
+ function er({ label: e, value: t, change: n, trend: r, tone: i = "neutral", context: a, link: o, className: s, classNames: c, ...l }) {
3806
3889
  let u = n != null || a != null;
3807
3890
  return /* @__PURE__ */ x("li", {
3808
3891
  ...l,
3809
- ...H("statsrow-item", {}, s),
3892
+ ...G("statsrow-item", {}, s),
3810
3893
  children: [
3811
- /* @__PURE__ */ b(Un, {
3894
+ /* @__PURE__ */ b(Zn, {
3812
3895
  label: e,
3813
3896
  value: t,
3814
3897
  className: c?.stat,
@@ -3827,7 +3910,7 @@ function Kn({ label: e, value: t, change: n, trend: r, tone: i = "neutral", cont
3827
3910
  "aria-hidden": "true",
3828
3911
  focusable: "false",
3829
3912
  children: /* @__PURE__ */ b("path", {
3830
- d: Gn[r],
3913
+ d: $n[r],
3831
3914
  fill: "currentColor"
3832
3915
  })
3833
3916
  }), n]
@@ -3846,14 +3929,14 @@ function Kn({ label: e, value: t, change: n, trend: r, tone: i = "neutral", cont
3846
3929
  ]
3847
3930
  });
3848
3931
  }
3849
- var qn = Object.assign(Wn, { Item: Kn });
3932
+ var tr = Object.assign(Qn, { Item: er });
3850
3933
  //#endregion
3851
3934
  //#region src/components/Status/Status.tsx
3852
- function Jn({ classNames: e, tone: t = "neutral", appearance: n = "plain", icon: r, live: i = !1, compact: a = !1, className: o, children: s, ...c }) {
3935
+ function nr({ classNames: e, tone: t = "neutral", appearance: n = "plain", icon: r, live: i = !1, compact: a = !1, className: o, children: s, ...c }) {
3853
3936
  return /* @__PURE__ */ x("span", {
3854
3937
  ...c,
3855
3938
  ...i ? { role: "status" } : {},
3856
- ...H("status", {
3939
+ ...G("status", {
3857
3940
  tone: t,
3858
3941
  appearance: n,
3859
3942
  compact: a
@@ -3870,10 +3953,10 @@ function Jn({ classNames: e, tone: t = "neutral", appearance: n = "plain", icon:
3870
3953
  }
3871
3954
  //#endregion
3872
3955
  //#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", {
3956
+ var rr = ({ ref: e, aside: t, asideLabel: n, asideLabelledBy: r, className: i, classNames: a, children: o, ...s }) => /* @__PURE__ */ x("div", {
3874
3957
  ...s,
3875
3958
  ref: e,
3876
- ...H("supportingpane", {}, i),
3959
+ ...G("supportingpane", {}, i),
3877
3960
  children: [/* @__PURE__ */ b("div", {
3878
3961
  className: v("kb-supportingpane-main", a?.main),
3879
3962
  children: o
@@ -3886,19 +3969,19 @@ var Yn = ({ ref: e, aside: t, asideLabel: n, asideLabelledBy: r, className: i, c
3886
3969
  });
3887
3970
  //#endregion
3888
3971
  //#region src/components/Switch/Switch.tsx
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 }) {
3972
+ function ir({ 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 }) {
3890
3973
  let O = {
3891
3974
  ...Object.fromEntries(Object.entries(y ?? {}).filter(([e]) => e.startsWith("--"))),
3892
3975
  ...c ? { "--kb-switch-off-color": c } : {},
3893
3976
  ...l ? { "--kb-switch-on-color": l } : {}
3894
- }, k = c ? "custom" : o, A = l ? "custom" : s ?? a ?? "accent", j = f(), M = S ?? `kb-switch-${j}`, { invalid: N, ariaInvalid: P } = U(!!d, E), F = `${M}-description`, I = `${M}-error`, L = [
3977
+ }, k = c ? "custom" : o, A = l ? "custom" : s ?? a ?? "accent", j = f(), M = S ?? `kb-switch-${j}`, { invalid: N, ariaInvalid: P } = K(!!d, E), F = `${M}-description`, I = `${M}-error`, L = [
3895
3978
  T,
3896
3979
  u && F,
3897
3980
  d && I
3898
3981
  ].filter(Boolean).join(" ") || void 0;
3899
3982
  return /* @__PURE__ */ x("div", {
3900
3983
  style: O,
3901
- ...H("switch", {
3984
+ ...G("switch", {
3902
3985
  size: i,
3903
3986
  "off-tone": k,
3904
3987
  "on-tone": A,
@@ -3965,17 +4048,17 @@ function Xn({ classNames: e, label: t, checked: n, onCheckedChange: r, size: i,
3965
4048
  }
3966
4049
  //#endregion
3967
4050
  //#region src/components/Table/Table.tsx
3968
- function Zn({ density: e = "comfortable", stickyHeader: t = !1, layout: n = "auto", className: r, ...i }) {
4051
+ function ar({ density: e = "comfortable", stickyHeader: t = !1, layout: n = "auto", className: r, ...i }) {
3969
4052
  return /* @__PURE__ */ b("table", {
3970
4053
  ...i,
3971
- ...H("table", {
4054
+ ...G("table", {
3972
4055
  density: e,
3973
4056
  "sticky-header": t,
3974
4057
  layout: n
3975
4058
  }, r)
3976
4059
  });
3977
4060
  }
3978
- function Qn(e, t) {
4061
+ function or(e, t) {
3979
4062
  let n = [...e.querySelectorAll(".kb-table")].find((n) => n.contains(t) && n.closest(".kb-table-scroll") === e);
3980
4063
  if (!n) return;
3981
4064
  let r = e.getBoundingClientRect(), i = r.left + e.clientLeft, a = r.top + e.clientTop, o;
@@ -3993,58 +4076,58 @@ function Qn(e, t) {
3993
4076
  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();
3994
4077
  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)));
3995
4078
  }
3996
- function $n({ label: e, maxHeight: t, onFocus: n, className: r, style: i, ...a }) {
4079
+ function sr({ label: e, maxHeight: t, onFocus: n, className: r, style: i, ...a }) {
3997
4080
  return /* @__PURE__ */ b("section", {
3998
4081
  ...a,
3999
4082
  "aria-label": e,
4000
4083
  tabIndex: a.tabIndex ?? 0,
4001
- ...H("table-scroll", {}, r),
4084
+ ...G("table-scroll", {}, r),
4002
4085
  style: {
4003
4086
  maxHeight: t,
4004
4087
  ...i
4005
4088
  },
4006
4089
  onFocus: (e) => {
4007
- n?.(e), !e.defaultPrevented && e.target instanceof HTMLElement && Qn(e.currentTarget, e.target);
4090
+ n?.(e), !e.defaultPrevented && e.target instanceof HTMLElement && or(e.currentTarget, e.target);
4008
4091
  }
4009
4092
  });
4010
4093
  }
4011
- function er({ className: e, ...t }) {
4094
+ function cr({ className: e, ...t }) {
4012
4095
  return /* @__PURE__ */ b("caption", {
4013
4096
  ...t,
4014
- ...H("table-caption", {}, e)
4097
+ ...G("table-caption", {}, e)
4015
4098
  });
4016
4099
  }
4017
- function tr({ className: e, ...t }) {
4100
+ function lr({ className: e, ...t }) {
4018
4101
  return /* @__PURE__ */ b("thead", {
4019
4102
  ...t,
4020
- ...H("table-head", {}, e)
4103
+ ...G("table-head", {}, e)
4021
4104
  });
4022
4105
  }
4023
- function nr({ className: e, ...t }) {
4106
+ function ur({ className: e, ...t }) {
4024
4107
  return /* @__PURE__ */ b("tbody", {
4025
4108
  ...t,
4026
- ...H("table-body", {}, e)
4109
+ ...G("table-body", {}, e)
4027
4110
  });
4028
4111
  }
4029
- function rr({ className: e, ...t }) {
4112
+ function dr({ className: e, ...t }) {
4030
4113
  return /* @__PURE__ */ b("tfoot", {
4031
4114
  ...t,
4032
- ...H("table-foot", {}, e)
4115
+ ...G("table-foot", {}, e)
4033
4116
  });
4034
4117
  }
4035
- function ir({ selected: e = !1, className: t, ...n }) {
4118
+ function fr({ selected: e = !1, className: t, ...n }) {
4036
4119
  return /* @__PURE__ */ b("tr", {
4037
4120
  ...n,
4038
- ...H("table-row", { selected: e }, t)
4121
+ ...G("table-row", { selected: e }, t)
4039
4122
  });
4040
4123
  }
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 }) {
4124
+ function pr({ align: e = "start", sticky: t, sortDirection: n, onSortChange: r, sortDisabled: i, className: a, classNames: o, children: s, scope: c = "col", "aria-sort": l, ...u }) {
4042
4125
  let d = n ?? (l === "ascending" || l === "descending" ? l : "none");
4043
4126
  return /* @__PURE__ */ b("th", {
4044
4127
  ...u,
4045
4128
  scope: c,
4046
4129
  "aria-sort": n === "none" ? void 0 : n ?? l,
4047
- ...H("table-columnheader", {
4130
+ ...G("table-columnheader", {
4048
4131
  align: e,
4049
4132
  sticky: t,
4050
4133
  sortable: !!r
@@ -4052,59 +4135,59 @@ function ar({ align: e = "start", sticky: t, sortDirection: n, onSortChange: r,
4052
4135
  children: r ? /* @__PURE__ */ x("button", {
4053
4136
  type: "button",
4054
4137
  disabled: i,
4055
- ...H("table-sort-button", {}, o?.sortButton),
4138
+ ...G("table-sort-button", {}, o?.sortButton),
4056
4139
  onClick: () => r(d === "ascending" ? "descending" : "ascending"),
4057
4140
  children: [s, /* @__PURE__ */ b("span", {
4058
4141
  "aria-hidden": "true",
4059
- ...H("table-sort-icon", {}, o?.sortIcon),
4142
+ ...G("table-sort-icon", {}, o?.sortIcon),
4060
4143
  children: d === "ascending" ? "↑" : d === "descending" ? "↓" : "⇅"
4061
4144
  })]
4062
4145
  }) : s
4063
4146
  });
4064
4147
  }
4065
- function or({ align: e = "start", sticky: t, scope: n = "row", className: r, ...i }) {
4148
+ function mr({ align: e = "start", sticky: t, scope: n = "row", className: r, ...i }) {
4066
4149
  return /* @__PURE__ */ b("th", {
4067
4150
  ...i,
4068
4151
  scope: n,
4069
- ...H("table-rowheader", {
4152
+ ...G("table-rowheader", {
4070
4153
  align: e,
4071
4154
  sticky: t
4072
4155
  }, r)
4073
4156
  });
4074
4157
  }
4075
- function sr({ align: e = "start", sticky: t, className: n, ...r }) {
4158
+ function hr({ align: e = "start", sticky: t, className: n, ...r }) {
4076
4159
  return /* @__PURE__ */ b("td", {
4077
4160
  ...r,
4078
- ...H("table-cell", {
4161
+ ...G("table-cell", {
4079
4162
  align: e,
4080
4163
  sticky: t
4081
4164
  }, n)
4082
4165
  });
4083
4166
  }
4084
- function cr({ className: e, ...t }) {
4167
+ function gr({ className: e, ...t }) {
4085
4168
  return /* @__PURE__ */ b("div", {
4086
4169
  ...t,
4087
- ...H("table-rowactions", {}, e)
4088
- });
4089
- }
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,
4100
- SelectionCheckbox: ae,
4101
- RowActions: cr
4102
- }), ur = a({
4170
+ ...G("table-rowactions", {}, e)
4171
+ });
4172
+ }
4173
+ var _r = Object.assign(ar, {
4174
+ ScrollContainer: sr,
4175
+ Caption: cr,
4176
+ Head: lr,
4177
+ Body: ur,
4178
+ Foot: dr,
4179
+ Row: fr,
4180
+ ColumnHeader: pr,
4181
+ RowHeader: mr,
4182
+ Cell: hr,
4183
+ SelectionCheckbox: he,
4184
+ RowActions: gr
4185
+ }), vr = a({
4103
4186
  variant: "line",
4104
4187
  size: "md",
4105
4188
  orientation: "horizontal"
4106
- }), dr = s(function({ className: e, ...t }, n) {
4107
- let { classNames: r, variant: i, size: a, orientation: o } = u(ur);
4189
+ }), yr = s(function({ className: e, ...t }, n) {
4190
+ let { classNames: r, variant: i, size: a, orientation: o } = u(vr);
4108
4191
  return /* @__PURE__ */ b(L.Indicator, {
4109
4192
  ...t,
4110
4193
  "data-variant": i,
@@ -4113,8 +4196,8 @@ var lr = Object.assign(Zn, {
4113
4196
  ref: n,
4114
4197
  className: v("kb-tabs-indicator", r?.indicator, e)
4115
4198
  });
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);
4199
+ }), br = s(function({ activateOnFocus: e = !0, loopFocus: t = !0, showIndicator: r = !0, className: i, children: a, ...o }, s) {
4200
+ let { classNames: l, variant: d, size: f, orientation: p } = u(vr), m = n.toArray(a).some((e) => c(e) && e.type === yr);
4118
4201
  return /* @__PURE__ */ x(L.List, {
4119
4202
  ...o,
4120
4203
  "data-variant": d,
@@ -4124,10 +4207,10 @@ var lr = Object.assign(Zn, {
4124
4207
  activateOnFocus: e,
4125
4208
  loopFocus: t,
4126
4209
  className: v("kb-tabs-list", l?.list, i),
4127
- children: [a, r && !m ? /* @__PURE__ */ b(dr, {}) : null]
4210
+ children: [a, r && !m ? /* @__PURE__ */ b(yr, {}) : null]
4128
4211
  });
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);
4212
+ }), xr = s(function({ value: e, disabled: t = !1, icon: n, badge: r, className: i, children: a, ...o }, s) {
4213
+ let { classNames: c, variant: l, size: d, orientation: f } = u(vr);
4131
4214
  return /* @__PURE__ */ x(L.Tab, {
4132
4215
  ...o,
4133
4216
  "data-variant": l,
@@ -4153,8 +4236,8 @@ var lr = Object.assign(Zn, {
4153
4236
  })
4154
4237
  ]
4155
4238
  });
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);
4239
+ }), Sr = s(function({ value: e, keepMounted: t = !1, className: n, children: r, ...i }, a) {
4240
+ let { classNames: o, variant: s, size: c, orientation: l } = u(vr);
4158
4241
  return /* @__PURE__ */ b(L.Panel, {
4159
4242
  ...i,
4160
4243
  "data-variant": s,
@@ -4166,8 +4249,8 @@ var lr = Object.assign(Zn, {
4166
4249
  className: v("kb-tabs-panel", o?.panel, n),
4167
4250
  children: r
4168
4251
  });
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, {
4252
+ }), Cr = 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) {
4253
+ return /* @__PURE__ */ b(vr.Provider, {
4171
4254
  value: {
4172
4255
  classNames: s,
4173
4256
  variant: i,
@@ -4187,18 +4270,18 @@ var lr = Object.assign(Zn, {
4187
4270
  children: c
4188
4271
  })
4189
4272
  });
4190
- }), gr = Object.assign(hr, {
4191
- List: fr,
4192
- Tab: pr,
4193
- Indicator: dr,
4194
- Panel: mr
4273
+ }), wr = Object.assign(Cr, {
4274
+ List: br,
4275
+ Tab: xr,
4276
+ Indicator: yr,
4277
+ Panel: Sr
4195
4278
  });
4196
4279
  //#endregion
4197
4280
  //#region src/components/Text/Text.tsx
4198
- function _r({ as: e, size: t = "md", tone: n = "default", className: r, ...i }) {
4281
+ function Tr({ as: e, size: t = "md", tone: n = "default", className: r, ...i }) {
4199
4282
  return o(e ?? "p", {
4200
4283
  ...i,
4201
- ...H("text", {
4284
+ ...G("text", {
4202
4285
  size: t,
4203
4286
  tone: n
4204
4287
  }, r)
@@ -4206,14 +4289,14 @@ function _r({ as: e, size: t = "md", tone: n = "default", className: r, ...i })
4206
4289
  }
4207
4290
  //#endregion
4208
4291
  //#region src/components/Textarea/Textarea.tsx
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, ..._ }) => {
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 = [
4292
+ 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, ..._ }) => {
4293
+ let y = f(), S = t ?? `kb-textarea-${y}`, { invalid: C, ariaInvalid: w } = K(!!a, g), T = i ? `${S}-description` : void 0, E = a ? `${S}-error` : void 0, D = [
4211
4294
  T,
4212
4295
  E,
4213
4296
  h
4214
4297
  ].filter(Boolean).join(" ") || void 0;
4215
4298
  return /* @__PURE__ */ x("div", {
4216
- ...H("textarea", {
4299
+ ...G("textarea", {
4217
4300
  resize: o,
4218
4301
  invalid: C,
4219
4302
  disabled: c,
@@ -4254,13 +4337,13 @@ var vr = ({ ref: e, id: t, label: n, visuallyHidden: r, description: i, error: a
4254
4337
  };
4255
4338
  //#endregion
4256
4339
  //#region src/components/Thumbnail/Thumbnail.tsx
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 }) {
4340
+ function Dr({ src: e, alt: t, ratio: n, fit: r, position: i, fallback: a, caption: o, description: s, imageProps: c, className: l, classNames: u, ...d }) {
4258
4341
  let p = f(), m = o != null && o !== !1;
4259
4342
  return /* @__PURE__ */ x("figure", {
4260
4343
  ...d,
4261
- ...H("thumbnail", {}, u?.root ?? l),
4344
+ ...G("thumbnail", {}, u?.root ?? l),
4262
4345
  "aria-labelledby": d["aria-labelledby"] ?? (d["aria-label"] ? void 0 : m ? p : void 0),
4263
- children: [/* @__PURE__ */ b(Y, {
4346
+ children: [/* @__PURE__ */ b(ne, {
4264
4347
  ...c,
4265
4348
  src: e,
4266
4349
  alt: t,
@@ -4273,13 +4356,13 @@ function yr({ src: e, alt: t, ratio: n, fit: r, position: i, fallback: a, captio
4273
4356
  root: v("kb-thumbnail-media", u?.media, c?.classNames?.root ?? c?.className)
4274
4357
  }
4275
4358
  }), (m || s != null) && /* @__PURE__ */ x("figcaption", {
4276
- ...H("thumbnail-caption", {}, u?.caption),
4359
+ ...G("thumbnail-caption", {}, u?.caption),
4277
4360
  children: [m && /* @__PURE__ */ b("span", {
4278
4361
  id: p,
4279
- ...H("thumbnail-title", {}, u?.title),
4362
+ ...G("thumbnail-title", {}, u?.title),
4280
4363
  children: o
4281
4364
  }), s != null && /* @__PURE__ */ b("span", {
4282
- ...H("thumbnail-description", {}, u?.description),
4365
+ ...G("thumbnail-description", {}, u?.description),
4283
4366
  children: s
4284
4367
  })]
4285
4368
  })]
@@ -4287,37 +4370,37 @@ function yr({ src: e, alt: t, ratio: n, fit: r, position: i, fallback: a, captio
4287
4370
  }
4288
4371
  //#endregion
4289
4372
  //#region src/components/Toast/Toast.tsx
4290
- function br() {
4373
+ function Or() {
4291
4374
  return R.createToastManager();
4292
4375
  }
4293
- function xr() {
4376
+ function kr() {
4294
4377
  return R.useToastManager();
4295
4378
  }
4296
- function Sr({ className: e, ...t }) {
4379
+ function Ar({ className: e, ...t }) {
4297
4380
  return /* @__PURE__ */ b(R.Content, {
4298
4381
  ...t,
4299
4382
  className: v("kb-toast-content", e)
4300
4383
  });
4301
4384
  }
4302
- function Cr({ className: e, ...t }) {
4385
+ function jr({ className: e, ...t }) {
4303
4386
  return /* @__PURE__ */ b(R.Title, {
4304
4387
  ...t,
4305
4388
  className: v("kb-toast-title", e)
4306
4389
  });
4307
4390
  }
4308
- function wr({ className: e, ...t }) {
4391
+ function Mr({ className: e, ...t }) {
4309
4392
  return /* @__PURE__ */ b(R.Description, {
4310
4393
  ...t,
4311
4394
  className: v("kb-toast-description", e)
4312
4395
  });
4313
4396
  }
4314
- function Tr({ className: e, ...t }) {
4397
+ function Nr({ className: e, ...t }) {
4315
4398
  return /* @__PURE__ */ b(R.Action, {
4316
4399
  ...t,
4317
4400
  className: v("kb-toast-action", e)
4318
4401
  });
4319
4402
  }
4320
- function Er({ className: e, ...t }) {
4403
+ function Pr({ className: e, ...t }) {
4321
4404
  return /* @__PURE__ */ b(R.Close, {
4322
4405
  "aria-label": "Dismiss notification",
4323
4406
  "aria-hidden": !1,
@@ -4325,25 +4408,25 @@ function Er({ className: e, ...t }) {
4325
4408
  className: v("kb-toast-close", e)
4326
4409
  });
4327
4410
  }
4328
- function Dr(e) {
4411
+ function Fr(e) {
4329
4412
  return e === "error" ? "danger" : e === "loading" ? "info" : e === "info" || e === "success" || e === "warning" || e === "danger" ? e : "neutral";
4330
4413
  }
4331
- function Or({ toast: e, tone: t = Dr(e.type), closeLabel: n = "Dismiss notification", classNames: r, className: i, children: a, ...o }) {
4414
+ function Ir({ toast: e, tone: t = Fr(e.type), closeLabel: n = "Dismiss notification", classNames: r, className: i, children: a, ...o }) {
4332
4415
  return /* @__PURE__ */ b(R.Root, {
4333
4416
  ...o,
4334
4417
  toast: e,
4335
- ...H("toast", { tone: t }, i),
4336
- children: a === void 0 ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x(Sr, {
4418
+ ...G("toast", { tone: t }, i),
4419
+ children: a === void 0 ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x(Ar, {
4337
4420
  className: r?.content,
4338
4421
  children: [
4339
- /* @__PURE__ */ b(Cr, {
4422
+ /* @__PURE__ */ b(jr, {
4340
4423
  className: r?.title,
4341
4424
  children: e.title ?? e.description
4342
4425
  }),
4343
- e.title != null && /* @__PURE__ */ b(wr, { className: r?.description }),
4344
- /* @__PURE__ */ b(Tr, { className: r?.action })
4426
+ e.title != null && /* @__PURE__ */ b(Mr, { className: r?.description }),
4427
+ /* @__PURE__ */ b(Nr, { className: r?.action })
4345
4428
  ]
4346
- }), /* @__PURE__ */ b(Er, {
4429
+ }), /* @__PURE__ */ b(Pr, {
4347
4430
  className: r?.close,
4348
4431
  "aria-label": n,
4349
4432
  children: /* @__PURE__ */ b("span", {
@@ -4353,42 +4436,70 @@ function Or({ toast: e, tone: t = Dr(e.type), closeLabel: n = "Dismiss notificat
4353
4436
  })] }) : a
4354
4437
  });
4355
4438
  }
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, {
4439
+ function Lr({ placement: e = "bottom-end", container: t, renderToast: n, className: r, children: i, ...a }) {
4440
+ let { toasts: o } = kr(), s = /* @__PURE__ */ b(R.Viewport, {
4358
4441
  ...a,
4359
- ...H("toast-viewport", { placement: e }, r),
4360
- children: i === void 0 ? o.map((e) => n ? n(e) : /* @__PURE__ */ b(Or, { toast: e }, e.id)) : i
4442
+ ...G("toast-viewport", { placement: e }, r),
4443
+ children: i === void 0 ? o.map((e) => n ? n(e) : /* @__PURE__ */ b(Ir, { toast: e }, e.id)) : i
4361
4444
  });
4362
4445
  return e === "inline" ? s : /* @__PURE__ */ b(R.Portal, {
4363
4446
  container: t,
4364
4447
  children: s
4365
4448
  });
4366
4449
  }
4367
- var Ar = Object.assign(Or, {
4450
+ var Rr = Object.assign(Ir, {
4368
4451
  Provider: R.Provider,
4369
- Viewport: kr,
4370
- Content: Sr,
4371
- Title: Cr,
4372
- Description: wr,
4373
- Action: Tr,
4374
- Close: Er
4452
+ Viewport: Lr,
4453
+ Content: Ar,
4454
+ Title: jr,
4455
+ Description: Mr,
4456
+ Action: Nr,
4457
+ Close: Pr
4375
4458
  });
4376
4459
  //#endregion
4460
+ //#region src/components/ToggleButton/ToggleButton.tsx
4461
+ function zr({ children: e, className: t, disabled: n, hidden: r, "aria-pressed": i, form: a, nativeButton: o, render: s, role: c, type: l, ...u }) {
4462
+ return /* @__PURE__ */ x(z, {
4463
+ ...u,
4464
+ hidden: r,
4465
+ disabled: n || r,
4466
+ ...G("togglebutton", {}, t),
4467
+ children: [/* @__PURE__ */ b("span", {
4468
+ className: "kb-togglebutton-indicator",
4469
+ children: /* @__PURE__ */ b("svg", {
4470
+ "aria-hidden": "true",
4471
+ viewBox: "0 0 16 16",
4472
+ fill: "none",
4473
+ stroke: "currentColor",
4474
+ strokeWidth: "2",
4475
+ children: /* @__PURE__ */ b("path", { d: "m3 8 3 3 7-7" })
4476
+ })
4477
+ }), /* @__PURE__ */ b("span", {
4478
+ className: "kb-togglebutton-label",
4479
+ children: e
4480
+ })]
4481
+ });
4482
+ }
4483
+ //#endregion
4377
4484
  //#region src/components/Toolbar/Toolbar.tsx
4378
- function jr({ className: e, ...t }) {
4379
- return /* @__PURE__ */ b(z.Root, {
4380
- ...t,
4381
- className: v("kb-toolbar", e)
4485
+ var Br = a(!1);
4486
+ function Vr({ className: e, ...t }) {
4487
+ return /* @__PURE__ */ b(Br.Provider, {
4488
+ value: !0,
4489
+ children: /* @__PURE__ */ b(H.Root, {
4490
+ ...t,
4491
+ className: v("kb-toolbar", e)
4492
+ })
4382
4493
  });
4383
4494
  }
4384
- function Mr({ className: e, ...t }) {
4385
- return /* @__PURE__ */ b(z.Group, {
4495
+ function Hr({ className: e, ...t }) {
4496
+ return /* @__PURE__ */ b(H.Group, {
4386
4497
  ...t,
4387
4498
  className: v("kb-toolbar-group", e)
4388
4499
  });
4389
4500
  }
4390
- function Nr({ variant: e = "ghost", className: t, ...n }) {
4391
- return /* @__PURE__ */ b(z.Button, {
4501
+ function Ur({ variant: e = "ghost", className: t, ...n }) {
4502
+ return /* @__PURE__ */ b(H.Button, {
4392
4503
  ...n,
4393
4504
  render: /* @__PURE__ */ b(Z, {
4394
4505
  variant: e,
@@ -4397,29 +4508,73 @@ function Nr({ variant: e = "ghost", className: t, ...n }) {
4397
4508
  })
4398
4509
  });
4399
4510
  }
4400
- function Pr({ className: e, ...t }) {
4401
- return /* @__PURE__ */ b(z.Separator, {
4511
+ function Wr({ className: e, ...t }) {
4512
+ return /* @__PURE__ */ b(H.Separator, {
4402
4513
  ...t,
4403
4514
  className: v("kb-toolbar-separator", e)
4404
4515
  });
4405
4516
  }
4406
- var Fr = Object.assign(jr, {
4407
- Group: Mr,
4408
- Button: Nr,
4409
- Separator: Pr
4517
+ var Gr = Object.assign(Vr, {
4518
+ Group: Hr,
4519
+ Button: Ur,
4520
+ Separator: Wr
4410
4521
  });
4411
4522
  //#endregion
4523
+ //#region src/components/ToggleGroup/ToggleGroup.tsx
4524
+ function Kr(e) {
4525
+ let { altKey: t, ctrlKey: n, metaKey: r, shiftKey: i, key: a, currentTarget: o } = e;
4526
+ if (t || n || r || i || a !== "Home" && a !== "End") return;
4527
+ let s = Array.from(o.querySelectorAll(".kb-togglebutton:enabled")).filter((e) => e.closest(".kb-togglegroup") === o), c = a === "Home" ? s[0] : s.at(-1);
4528
+ c && (e.preventDefault(), e.stopPropagation(), c.focus());
4529
+ }
4530
+ function qr({ className: e, dir: t, disabled: n, loopFocus: r, onKeyDown: i, orientation: a = "horizontal", ref: o, "aria-orientation": s, render: c, role: l, ...d }) {
4531
+ let f = u(Br), p = g(null), [h, v] = _("ltr"), y = t === "rtl" || t === "ltr" ? t : void 0;
4532
+ m(() => {
4533
+ let e = p.current;
4534
+ if (f || y || !e) return;
4535
+ let t = () => v(e.matches(":dir(rtl)") ? "rtl" : "ltr");
4536
+ t();
4537
+ let n = new MutationObserver(t);
4538
+ for (let t = e; t; t = t.parentElement) n.observe(t, { attributeFilter: ["dir"] });
4539
+ return () => n.disconnect();
4540
+ }, [y, f]);
4541
+ let x = /* @__PURE__ */ b(V, {
4542
+ ...d,
4543
+ ref: o,
4544
+ disabled: n,
4545
+ dir: t,
4546
+ orientation: a,
4547
+ multiple: !0,
4548
+ onKeyDown: f ? i : (e) => {
4549
+ i?.(e), !e.defaultPrevented && !e.baseUIHandlerPrevented && Kr(e);
4550
+ },
4551
+ render: /* @__PURE__ */ b("div", { ref: p }),
4552
+ ...G("togglegroup", { orientation: a }, e)
4553
+ });
4554
+ return f ? x : /* @__PURE__ */ b(B, {
4555
+ direction: y ?? h,
4556
+ children: /* @__PURE__ */ b(H.Root, {
4557
+ disabled: n,
4558
+ loopFocus: r,
4559
+ orientation: a,
4560
+ role: "group",
4561
+ "aria-orientation": void 0,
4562
+ render: x
4563
+ })
4564
+ });
4565
+ }
4566
+ //#endregion
4412
4567
  //#region src/components/Tooltip/Tooltip.tsx
4413
- function Ir({ content: e, children: t, side: n = "top", delay: r = 400, container: i, className: a, ref: o }) {
4414
- return /* @__PURE__ */ x(B.Root, { children: [/* @__PURE__ */ b(B.Trigger, {
4568
+ function Jr({ content: e, children: t, side: n = "top", delay: r = 400, container: i, className: a, ref: o }) {
4569
+ return /* @__PURE__ */ x(U.Root, { children: [/* @__PURE__ */ b(U.Trigger, {
4415
4570
  delay: r,
4416
4571
  render: t
4417
- }), /* @__PURE__ */ b(B.Portal, {
4572
+ }), /* @__PURE__ */ b(U.Portal, {
4418
4573
  container: i,
4419
- children: /* @__PURE__ */ b(B.Positioner, {
4574
+ children: /* @__PURE__ */ b(U.Positioner, {
4420
4575
  side: n,
4421
4576
  sideOffset: 6,
4422
- children: /* @__PURE__ */ b(B.Popup, {
4577
+ children: /* @__PURE__ */ b(U.Popup, {
4423
4578
  ref: o,
4424
4579
  className: v("kb-tooltip", a),
4425
4580
  children: e
@@ -4428,6 +4583,83 @@ function Ir({ content: e, children: t, side: n = "top", delay: r = 400, containe
4428
4583
  })] });
4429
4584
  }
4430
4585
  //#endregion
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 };
4586
+ //#region src/components/TreeList/TreeList.tsx
4587
+ var Yr = 4;
4588
+ function Xr({ item: e, depth: t, maxVisualDepth: n, expanded: r, onToggle: i, classNames: a }) {
4589
+ let o = f(), s = g(null), c = g(!1);
4590
+ if (!e.children?.length) return /* @__PURE__ */ b("li", {
4591
+ ...G("treelist-item", {}, a?.item),
4592
+ children: /* @__PURE__ */ b("div", {
4593
+ ...G("treelist-label", {}, a?.label),
4594
+ children: e.label
4595
+ })
4596
+ });
4597
+ let l = r.has(e.id);
4598
+ return /* @__PURE__ */ x(O.Root, {
4599
+ open: l,
4600
+ render: /* @__PURE__ */ b("li", {}),
4601
+ ...G("treelist-item", {}, a?.item),
4602
+ children: [/* @__PURE__ */ b("button", {
4603
+ type: "button",
4604
+ "aria-expanded": l,
4605
+ "aria-controls": o,
4606
+ onPointerDown: (e) => {
4607
+ c.current = l && e.button === 0 && !!s.current?.contains(e.currentTarget.ownerDocument.activeElement);
4608
+ },
4609
+ onPointerCancel: () => {
4610
+ c.current = !1;
4611
+ },
4612
+ onClick: (t) => {
4613
+ let n = t.currentTarget, { activeElement: r, body: a } = n.ownerDocument, o = t.detail > 0 && c.current && r === a;
4614
+ c.current = !1, l && (o || s.current?.contains(r)) && n.focus(), i(e.id);
4615
+ },
4616
+ ...G("treelist-trigger", {}, a?.trigger),
4617
+ children: /* @__PURE__ */ b("span", {
4618
+ ...G("treelist-label", {}, a?.label),
4619
+ children: e.label
4620
+ })
4621
+ }), /* @__PURE__ */ b(O.Panel, {
4622
+ id: o,
4623
+ keepMounted: !0,
4624
+ render: /* @__PURE__ */ b("ul", {
4625
+ ref: s,
4626
+ role: "list",
4627
+ inert: !l,
4628
+ "aria-hidden": !l || void 0
4629
+ }),
4630
+ ...G("treelist-branch", { capped: t >= n }, a?.branch),
4631
+ children: e.children.map((e) => /* @__PURE__ */ b(Xr, {
4632
+ item: e,
4633
+ depth: t + 1,
4634
+ maxVisualDepth: n,
4635
+ expanded: r,
4636
+ onToggle: i,
4637
+ classNames: a
4638
+ }, e.id))
4639
+ })]
4640
+ });
4641
+ }
4642
+ function Zr({ items: e, expandedIds: t, defaultExpandedIds: n, onExpandedChange: r, maxVisualDepth: i = Yr, className: a, classNames: o, ...s }) {
4643
+ let [c, l] = _(() => new Set(n)), u = t === void 0 ? c : new Set(t), d = Number.isFinite(i) ? Math.max(0, Math.floor(i)) : Yr;
4644
+ function f(e) {
4645
+ let n = new Set(u);
4646
+ n.delete(e) || n.add(e), t === void 0 && l(n), r?.([...n]);
4647
+ }
4648
+ return /* @__PURE__ */ b("ul", {
4649
+ ...s,
4650
+ role: s.role ?? "list",
4651
+ ...G("treelist", {}, o?.root ?? a),
4652
+ children: e.map((e) => /* @__PURE__ */ b(Xr, {
4653
+ item: e,
4654
+ depth: 0,
4655
+ maxVisualDepth: d,
4656
+ expanded: u,
4657
+ onToggle: f,
4658
+ classNames: o
4659
+ }, e.id))
4660
+ });
4661
+ }
4662
+ //#endregion
4663
+ export { te as Accordion, ie as Avatar, ae as Badge, Z as Button, pe as Callout, me as Card, he as Checkbox, Fe as Code, Ie as CodeBlock, Ge as Collection, Ke as CollectionList, qe as CollectionRow, Ze as Combobox, dt as ConfirmAction, ft as Container, Ct as CopyableText, wt as Dashboard, kt as DescriptionList, lt as Dialog, Nt as Disclosure, Ft as EmptyState, Rt as ErrorSummary, zt as Fieldset, Ut as FileInput, Wt as FilterChip, Kt as Form, Gt as FormActions, Yt as FormSection, en as Gallery, Xt as Grid, Jt as Heading, ne as Image, tn as Inline, Le as Input, _t as Link, ln as Menu, Xe as MultiSelect, un as NumberField, fn as PageHeader, En as Panel, In as Popover, Ln as Progress, Un as RadioGroup, Wn as ScrollArea, Re as Select, Gn as Separator, Kn as Settings, Jn as Skeleton, ce as Spinner, Yn as Split, Xn as Stack, Zn as Stat, tr as StatsRow, nr as Status, rr as SupportingPane, ir as Switch, _r as Table, wr as Tabs, Tr as Text, Er as Textarea, Dr as Thumbnail, Rr as Toast, zr as ToggleButton, qr as ToggleGroup, Gr as Toolbar, Jr as Tooltip, Zr as TreeList, Or as createToastManager, G as kb, Ne as tokenizeCode, Ve as useCollection, ht as useLinkComponent, kr as useToastManager };
4432
4664
 
4433
4665
  //# sourceMappingURL=index.js.map