@openwarelabs/ui 0.9.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +12 -4
  2. package/dist/components/Avatar/Avatar.d.cts +2 -13
  3. package/dist/components/Avatar/Avatar.d.ts +2 -13
  4. package/dist/components/Avatar/Avatar.types.d.cts +13 -0
  5. package/dist/components/Avatar/Avatar.types.d.ts +13 -0
  6. package/dist/components/Calendar/DatePicker.d.cts +2 -19
  7. package/dist/components/Calendar/DatePicker.d.ts +2 -19
  8. package/dist/components/Calendar/DatePicker.types.d.cts +19 -0
  9. package/dist/components/Calendar/DatePicker.types.d.ts +19 -0
  10. package/dist/components/Calendar/DateRangePicker.d.cts +2 -34
  11. package/dist/components/Calendar/DateRangePicker.d.ts +2 -34
  12. package/dist/components/Calendar/DateRangePicker.types.d.cts +34 -0
  13. package/dist/components/Calendar/DateRangePicker.types.d.ts +34 -0
  14. package/dist/components/ColorPicker/ColorPicker.d.cts +2 -55
  15. package/dist/components/ColorPicker/ColorPicker.d.ts +2 -55
  16. package/dist/components/ColorPicker/ColorPicker.types.d.cts +54 -0
  17. package/dist/components/ColorPicker/ColorPicker.types.d.ts +54 -0
  18. package/dist/components/ListBox/ListBox.d.cts +3 -61
  19. package/dist/components/ListBox/ListBox.d.ts +3 -61
  20. package/dist/components/ListBox/ListBox.types.d.cts +61 -0
  21. package/dist/components/ListBox/ListBox.types.d.ts +61 -0
  22. package/dist/components/Prose/Prose.d.cts +2 -16
  23. package/dist/components/Prose/Prose.d.ts +2 -16
  24. package/dist/components/Prose/Prose.types.d.cts +16 -0
  25. package/dist/components/Prose/Prose.types.d.ts +16 -0
  26. package/dist/components.css +16 -0
  27. package/dist/index.cjs +110 -98
  28. package/dist/index.cjs.map +2 -2
  29. package/dist/index.js +179 -167
  30. package/dist/index.js.map +3 -3
  31. package/dist/openware-ui.iife.js +6 -6
  32. package/dist/styles.css +16 -0
  33. package/package.json +19 -5
package/dist/index.cjs CHANGED
@@ -262,7 +262,7 @@ function buttonClassName({
262
262
  iconOnly && "ow-button--icon-only"
263
263
  );
264
264
  }
265
- var Button = (0, import_react.forwardRef)(function Button2({
265
+ var Button = /* @__PURE__ */ (0, import_react.forwardRef)(function Button2({
266
266
  children,
267
267
  className,
268
268
  disabled,
@@ -354,33 +354,33 @@ function icon(paths) {
354
354
  );
355
355
  };
356
356
  }
357
- var CheckIcon = icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M20 6 9 17l-5-5" }));
358
- var ChevronDownIcon = icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m6 9 6 6 6-6" }));
359
- var SearchIcon = icon(
357
+ var CheckIcon = /* @__PURE__ */ icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M20 6 9 17l-5-5" }));
358
+ var ChevronDownIcon = /* @__PURE__ */ icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m6 9 6 6 6-6" }));
359
+ var SearchIcon = /* @__PURE__ */ icon(
360
360
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
361
361
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "11", cy: "11", r: "8" }),
362
362
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m21 21-4.3-4.3" })
363
363
  ] })
364
364
  );
365
- var CornerDownLeftIcon = icon(
365
+ var CornerDownLeftIcon = /* @__PURE__ */ icon(
366
366
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
367
367
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("polyline", { points: "9 10 4 15 9 20" }),
368
368
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M20 4v7a4 4 0 0 1-4 4H4" })
369
369
  ] })
370
370
  );
371
- var XIcon = icon(
371
+ var XIcon = /* @__PURE__ */ icon(
372
372
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
373
373
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M18 6 6 18" }),
374
374
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m6 6 12 12" })
375
375
  ] })
376
376
  );
377
- var UserIcon = icon(
377
+ var UserIcon = /* @__PURE__ */ icon(
378
378
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
379
379
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }),
380
380
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "7", r: "4" })
381
381
  ] })
382
382
  );
383
- var TrashIcon = icon(
383
+ var TrashIcon = /* @__PURE__ */ icon(
384
384
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
385
385
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 6h18" }),
386
386
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }),
@@ -389,57 +389,56 @@ var TrashIcon = icon(
389
389
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("line", { x1: "14", x2: "14", y1: "11", y2: "17" })
390
390
  ] })
391
391
  );
392
- var CircleCheckIcon = icon(
392
+ var CircleCheckIcon = /* @__PURE__ */ icon(
393
393
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
394
394
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
395
395
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9 12 2 2 4-4" })
396
396
  ] })
397
397
  );
398
- var CircleAlertIcon = icon(
398
+ var CircleAlertIcon = /* @__PURE__ */ icon(
399
399
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
400
400
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
401
401
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("line", { x1: "12", x2: "12", y1: "8", y2: "12" }),
402
402
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("line", { x1: "12", x2: "12.01", y1: "16", y2: "16" })
403
403
  ] })
404
404
  );
405
- var ChevronRightIcon = icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9 18 6-6-6-6" }));
406
- var ChevronLeftIcon = icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m15 18-6-6 6-6" }));
407
- var ChevronUpIcon = icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m18 15-6-6-6 6" }));
408
- var MinusIcon = icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 12h14" }));
409
- var PlusIcon = icon(
405
+ var ChevronRightIcon = /* @__PURE__ */ icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m9 18 6-6-6-6" }));
406
+ var ChevronLeftIcon = /* @__PURE__ */ icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m15 18-6-6 6-6" }));
407
+ var MinusIcon = /* @__PURE__ */ icon(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 12h14" }));
408
+ var PlusIcon = /* @__PURE__ */ icon(
410
409
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
411
410
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5 12h14" }),
412
411
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 5v14" })
413
412
  ] })
414
413
  );
415
- var InfoIcon = icon(
414
+ var InfoIcon = /* @__PURE__ */ icon(
416
415
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
417
416
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
418
417
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 16v-4" }),
419
418
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 8h.01" })
420
419
  ] })
421
420
  );
422
- var TriangleAlertIcon = icon(
421
+ var TriangleAlertIcon = /* @__PURE__ */ icon(
423
422
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
424
423
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
425
424
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 9v4" }),
426
425
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 17h.01" })
427
426
  ] })
428
427
  );
429
- var PipetteIcon = icon(
428
+ var PipetteIcon = /* @__PURE__ */ icon(
430
429
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
431
430
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m2 22 1-1h3l9-9" }),
432
431
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 21v-3l9-9" }),
433
432
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z" })
434
433
  ] })
435
434
  );
436
- var CopyIcon = icon(
435
+ var CopyIcon = /* @__PURE__ */ icon(
437
436
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
438
437
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
439
438
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
440
439
  ] })
441
440
  );
442
- var CalendarIcon = icon(
441
+ var CalendarIcon = /* @__PURE__ */ icon(
443
442
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
444
443
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M8 2v4" }),
445
444
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M16 2v4" }),
@@ -447,62 +446,55 @@ var CalendarIcon = icon(
447
446
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M3 10h18" })
448
447
  ] })
449
448
  );
450
- var FileIcon = icon(
449
+ var FileIcon = /* @__PURE__ */ icon(
451
450
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
452
451
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
453
452
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" })
454
453
  ] })
455
454
  );
456
- var FolderIcon = icon(
455
+ var FolderIcon = /* @__PURE__ */ icon(
457
456
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" })
458
457
  );
459
- var FolderOpenIcon = icon(
458
+ var FolderOpenIcon = /* @__PURE__ */ icon(
460
459
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" })
461
460
  );
462
- var UploadIcon = icon(
461
+ var UploadIcon = /* @__PURE__ */ icon(
463
462
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
464
463
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
465
464
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("polyline", { points: "17 8 12 3 7 8" }),
466
465
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("line", { x1: "12", x2: "12", y1: "3", y2: "15" })
467
466
  ] })
468
467
  );
469
- var ArrowUpRightIcon = icon(
468
+ var ArrowUpRightIcon = /* @__PURE__ */ icon(
470
469
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
471
470
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 7h10v10" }),
472
471
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M7 17 17 7" })
473
472
  ] })
474
473
  );
475
- var ArrowUpIcon = icon(
474
+ var ArrowUpIcon = /* @__PURE__ */ icon(
476
475
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
477
476
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m5 12 7-7 7 7" }),
478
477
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 19V5" })
479
478
  ] })
480
479
  );
481
- var ArrowDownIcon = icon(
480
+ var ArrowDownIcon = /* @__PURE__ */ icon(
482
481
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
483
482
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 5v14" }),
484
483
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m19 12-7 7-7-7" })
485
484
  ] })
486
485
  );
487
- var ChevronsUpDownIcon = icon(
486
+ var ChevronsUpDownIcon = /* @__PURE__ */ icon(
488
487
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
489
488
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m7 15 5 5 5-5" }),
490
489
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "m7 9 5-5 5 5" })
491
490
  ] })
492
491
  );
493
- var InboxIcon = icon(
492
+ var InboxIcon = /* @__PURE__ */ icon(
494
493
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
495
494
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12" }),
496
495
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" })
497
496
  ] })
498
497
  );
499
- var EllipsisIcon = icon(
500
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
501
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
502
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
503
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("circle", { cx: "5", cy: "12", r: "1" })
504
- ] })
505
- );
506
498
 
507
499
  // src/components/Button/ButtonGroup.tsx
508
500
  var import_jsx_runtime5 = require("react/jsx-runtime");
@@ -521,7 +513,7 @@ function ButtonGroup({ attached = true, orientation = "horizontal", className, .
521
513
  }
522
514
  );
523
515
  }
524
- var CloseButton = (0, import_react3.forwardRef)(function CloseButton2({ size: size2 = "md", label = "Close", className, type = "button", ...buttonProps }, ref) {
516
+ var CloseButton = /* @__PURE__ */ (0, import_react3.forwardRef)(function CloseButton2({ size: size2 = "md", label = "Close", className, type = "button", ...buttonProps }, ref) {
525
517
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
526
518
  "button",
527
519
  {
@@ -534,7 +526,7 @@ var CloseButton = (0, import_react3.forwardRef)(function CloseButton2({ size: si
534
526
  }
535
527
  );
536
528
  });
537
- var ToggleButton = (0, import_react3.forwardRef)(function ToggleButton2({ pressed, defaultPressed = false, onPressedChange, onClick, className, variant = "secondary", ...buttonProps }, ref) {
529
+ var ToggleButton = /* @__PURE__ */ (0, import_react3.forwardRef)(function ToggleButton2({ pressed, defaultPressed = false, onPressedChange, onClick, className, variant = "secondary", ...buttonProps }, ref) {
538
530
  const [isPressed, setPressed] = useControllableState(pressed, defaultPressed, onPressedChange);
539
531
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
540
532
  Button,
@@ -667,7 +659,7 @@ function SegmentedControl({
667
659
  // src/components/ChoiceCard/ChoiceCard.tsx
668
660
  var import_react6 = require("react");
669
661
  var import_jsx_runtime7 = require("react/jsx-runtime");
670
- var ChoiceCard = (0, import_react6.forwardRef)(function ChoiceCard2({ className, description, icon: icon2, recommended = false, shortcut, title, type = "button", ...buttonProps }, ref) {
662
+ var ChoiceCard = /* @__PURE__ */ (0, import_react6.forwardRef)(function ChoiceCard2({ className, description, icon: icon2, recommended = false, shortcut, title, type = "button", ...buttonProps }, ref) {
671
663
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
672
664
  "button",
673
665
  {
@@ -785,7 +777,7 @@ var import_react12 = require("react");
785
777
  // src/components/Toolbar/Toolbar.tsx
786
778
  var import_react8 = require("react");
787
779
  var import_jsx_runtime9 = require("react/jsx-runtime");
788
- var ToolbarContext = (0, import_react8.createContext)(null);
780
+ var ToolbarContext = /* @__PURE__ */ (0, import_react8.createContext)(null);
789
781
  var candidates = 'button, a[href], input:not([type="hidden"]), select, textarea, [contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"], [tabindex]';
790
782
  var textTypes = ["text", "search", "url", "tel", "password", "email"];
791
783
  var pressTypes = ["button", "checkbox", "submit", "reset", "image", "file", "color"];
@@ -817,7 +809,7 @@ function keepsKey(element, key, forward) {
817
809
  if (selectionStart === null || selectionEnd === null || selectionStart !== selectionEnd) return true;
818
810
  return forward ? selectionEnd < value.length : selectionStart > 0;
819
811
  }
820
- var Toolbar = (0, import_react8.forwardRef)(function Toolbar2({ orientation = "horizontal", variant = "raised", size: size2 = "md", className, children, onKeyDown, onFocus, ...props }, forwardedRef) {
812
+ var Toolbar = /* @__PURE__ */ (0, import_react8.forwardRef)(function Toolbar2({ orientation = "horizontal", variant = "raised", size: size2 = "md", className, children, onKeyDown, onFocus, ...props }, forwardedRef) {
821
813
  const rootRef = (0, import_react8.useRef)(null);
822
814
  const activeRef = (0, import_react8.useRef)(null);
823
815
  const activeIndex = (0, import_react8.useRef)(0);
@@ -1220,12 +1212,12 @@ var import_react15 = require("react");
1220
1212
  // src/components/Checkbox/Checkbox.tsx
1221
1213
  var import_react13 = require("react");
1222
1214
  var import_jsx_runtime12 = require("react/jsx-runtime");
1223
- var CheckboxGroupContext = (0, import_react13.createContext)(null);
1215
+ var CheckboxGroupContext = /* @__PURE__ */ (0, import_react13.createContext)(null);
1224
1216
  function assignRef(ref, value) {
1225
1217
  if (typeof ref === "function") ref(value);
1226
1218
  else if (ref) ref.current = value;
1227
1219
  }
1228
- var Checkbox = (0, import_react13.forwardRef)(function Checkbox2({
1220
+ var Checkbox = /* @__PURE__ */ (0, import_react13.forwardRef)(function Checkbox2({
1229
1221
  className,
1230
1222
  size: size2 = "md",
1231
1223
  tone = "primary",
@@ -1396,7 +1388,7 @@ function Alert({
1396
1388
 
1397
1389
  // src/components/Form/Form.tsx
1398
1390
  var import_jsx_runtime14 = require("react/jsx-runtime");
1399
- var FormContext = (0, import_react14.createContext)(null);
1391
+ var FormContext = /* @__PURE__ */ (0, import_react14.createContext)(null);
1400
1392
  var checks = [
1401
1393
  "valueMissing",
1402
1394
  "typeMismatch",
@@ -1441,7 +1433,7 @@ function sameErrors(a, b) {
1441
1433
  const keys = Object.keys(a);
1442
1434
  return keys.length === Object.keys(b).length && keys.every((key) => a[key] === b[key]);
1443
1435
  }
1444
- var Form = (0, import_react14.forwardRef)(function Form2({ onSubmit, validate, validationErrors, children, className, onChange, onBlur, onReset, ...formProps }, ref) {
1436
+ var Form = /* @__PURE__ */ (0, import_react14.forwardRef)(function Form2({ onSubmit, validate, validationErrors, children, className, onChange, onBlur, onReset, ...formProps }, ref) {
1445
1437
  const formRef = (0, import_react14.useRef)(null);
1446
1438
  const fields = (0, import_react14.useRef)(/* @__PURE__ */ new Set());
1447
1439
  const [local, setLocal] = (0, import_react14.useState)({});
@@ -1722,7 +1714,7 @@ function Field({ label, children, hint, error, name: nameProp, errorMessages, cl
1722
1714
  // src/components/Input/Input.tsx
1723
1715
  var import_react16 = require("react");
1724
1716
  var import_jsx_runtime16 = require("react/jsx-runtime");
1725
- var Input = (0, import_react16.forwardRef)(function Input2({ className, isInvalid = false, size: size2 = "md", startContent, endContent, ...inputProps }, ref) {
1717
+ var Input = /* @__PURE__ */ (0, import_react16.forwardRef)(function Input2({ className, isInvalid = false, size: size2 = "md", startContent, endContent, ...inputProps }, ref) {
1726
1718
  const invalid = isInvalid || void 0;
1727
1719
  if (startContent === void 0 && endContent === void 0) {
1728
1720
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
@@ -1761,7 +1753,7 @@ function assignRef2(ref, value) {
1761
1753
  if (typeof ref === "function") ref(value);
1762
1754
  else if (ref) ref.current = value;
1763
1755
  }
1764
- var SearchField = (0, import_react17.forwardRef)(function SearchField2({
1756
+ var SearchField = /* @__PURE__ */ (0, import_react17.forwardRef)(function SearchField2({
1765
1757
  value,
1766
1758
  defaultValue = "",
1767
1759
  onChange,
@@ -1821,7 +1813,7 @@ var SearchField = (0, import_react17.forwardRef)(function SearchField2({
1821
1813
  var import_react18 = require("react");
1822
1814
  var import_jsx_runtime18 = require("react/jsx-runtime");
1823
1815
  var decimals = (step) => (String(step).split(".")[1] ?? "").length;
1824
- var NumberField = (0, import_react18.forwardRef)(function NumberField2({
1816
+ var NumberField = /* @__PURE__ */ (0, import_react18.forwardRef)(function NumberField2({
1825
1817
  value,
1826
1818
  defaultValue = null,
1827
1819
  onChange,
@@ -2532,7 +2524,7 @@ function dateLayout(locale) {
2532
2524
  }
2533
2525
  return layout;
2534
2526
  }
2535
- var DateField = (0, import_react21.forwardRef)(function DateField2({
2527
+ var DateField = /* @__PURE__ */ (0, import_react21.forwardRef)(function DateField2({
2536
2528
  value,
2537
2529
  defaultValue = "",
2538
2530
  onChange,
@@ -2695,7 +2687,7 @@ function timeLayout(locale, twelve, seconds) {
2695
2687
  if (twelve && !layout.some((part) => part.type === "dayPeriod")) layout.push({ type: "literal", text: " " }, { type: "dayPeriod" });
2696
2688
  return { layout, am: periodOf(1) ?? "AM", pm: periodOf(13) ?? "PM" };
2697
2689
  }
2698
- var TimeField = (0, import_react22.forwardRef)(function TimeField2({
2690
+ var TimeField = /* @__PURE__ */ (0, import_react22.forwardRef)(function TimeField2({
2699
2691
  value,
2700
2692
  defaultValue = "",
2701
2693
  onChange,
@@ -2878,7 +2870,7 @@ function assignRef3(ref, element) {
2878
2870
  if (typeof ref === "function") ref(element);
2879
2871
  else if (ref) ref.current = element;
2880
2872
  }
2881
- var Textarea = (0, import_react23.forwardRef)(function Textarea2({
2873
+ var Textarea = /* @__PURE__ */ (0, import_react23.forwardRef)(function Textarea2({
2882
2874
  autoGrow = false,
2883
2875
  autoGrowMaxHeight = defaultAutoGrowMaxHeight,
2884
2876
  bare = false,
@@ -3439,7 +3431,7 @@ function ListBoxWithRef({
3439
3431
  );
3440
3432
  };
3441
3433
  const isEmpty = flat.length === 0;
3442
- const describedBy = [ariaDescribedBy, isEmpty ? emptyId : void 0].filter(Boolean).join(" ") || void 0;
3434
+ const describedBy = ariaDescribedBy;
3443
3435
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3444
3436
  "div",
3445
3437
  {
@@ -3482,13 +3474,15 @@ function ListBoxWithRef({
3482
3474
  item.options.map(renderOption)
3483
3475
  ] }, `group-${item.label}-${groupIndex}`) : renderOption(item)
3484
3476
  ),
3485
- isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { id: emptyId, className: "ow-listbox__empty", role: "presentation", children: emptyMessage }) : null
3477
+ isEmpty ? (
3478
+ // A listbox holds options, so an empty one says so with one that can't be chosen.
3479
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { id: emptyId, className: "ow-listbox__empty", role: "option", "aria-disabled": "true", "aria-selected": "false", children: emptyMessage })
3480
+ ) : null
3486
3481
  ]
3487
3482
  }
3488
3483
  );
3489
3484
  }
3490
- var ForwardedListBox = (0, import_react25.forwardRef)(ListBoxWithRef);
3491
- ForwardedListBox.displayName = "ListBox";
3485
+ var ForwardedListBox = /* @__PURE__ */ Object.assign(/* @__PURE__ */ (0, import_react25.forwardRef)(ListBoxWithRef), { displayName: "ListBox" });
3492
3486
  var ListBox = ForwardedListBox;
3493
3487
 
3494
3488
  // src/components/Combobox/Combobox.tsx
@@ -3498,7 +3492,7 @@ function assignRef4(ref, value) {
3498
3492
  if (typeof ref === "function") ref(value);
3499
3493
  else if (ref) ref.current = value;
3500
3494
  }
3501
- var Combobox = (0, import_react26.forwardRef)(function Combobox2({
3495
+ var Combobox = /* @__PURE__ */ (0, import_react26.forwardRef)(function Combobox2({
3502
3496
  options,
3503
3497
  value,
3504
3498
  defaultValue = "",
@@ -3724,7 +3718,7 @@ var Combobox = (0, import_react26.forwardRef)(function Combobox2({
3724
3718
  // src/components/RadioGroup/RadioGroup.tsx
3725
3719
  var import_react27 = require("react");
3726
3720
  var import_jsx_runtime27 = require("react/jsx-runtime");
3727
- var RadioGroupContext = (0, import_react27.createContext)(null);
3721
+ var RadioGroupContext = /* @__PURE__ */ (0, import_react27.createContext)(null);
3728
3722
  function RadioGroup({
3729
3723
  label,
3730
3724
  description,
@@ -3787,7 +3781,7 @@ function Radio({ value, children, description, disabled, className, ...inputProp
3787
3781
  // src/components/Switch/Switch.tsx
3788
3782
  var import_react28 = require("react");
3789
3783
  var import_jsx_runtime28 = require("react/jsx-runtime");
3790
- var Switch = (0, import_react28.forwardRef)(function Switch2({ checked, onChange, label, className, disabled, ...buttonProps }, ref) {
3784
+ var Switch = /* @__PURE__ */ (0, import_react28.forwardRef)(function Switch2({ checked, onChange, label, className, disabled, ...buttonProps }, ref) {
3791
3785
  return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3792
3786
  "button",
3793
3787
  {
@@ -4007,7 +4001,7 @@ function FileDropZone({
4007
4001
  // src/components/Calendar/Calendar.tsx
4008
4002
  var import_react31 = require("react");
4009
4003
  var import_jsx_runtime31 = require("react/jsx-runtime");
4010
- var Calendar = (0, import_react31.forwardRef)(function Calendar2({ value, defaultValue = "", onChange, min, max, isDateDisabled, locale, weekStartsOn = 1, autoFocus = false, className }, ref) {
4004
+ var Calendar = /* @__PURE__ */ (0, import_react31.forwardRef)(function Calendar2({ value, defaultValue = "", onChange, min, max, isDateDisabled, locale, weekStartsOn = 1, autoFocus = false, className }, ref) {
4011
4005
  const [selected, setSelected] = useControllableState(value, defaultValue, onChange);
4012
4006
  const today = todayISO();
4013
4007
  const [focused, setFocused] = (0, import_react31.useState)(() => selected || clampDate(today, min, max));
@@ -4201,7 +4195,7 @@ function assignRef5(ref, value) {
4201
4195
  if (typeof ref === "function") ref(value);
4202
4196
  else if (ref) ref.current = value;
4203
4197
  }
4204
- var DatePicker = (0, import_react32.forwardRef)(function DatePicker2({
4198
+ var DatePicker = /* @__PURE__ */ (0, import_react32.forwardRef)(function DatePicker2({
4205
4199
  value,
4206
4200
  defaultValue = "",
4207
4201
  onChange,
@@ -4244,9 +4238,9 @@ var DatePicker = (0, import_react32.forwardRef)(function DatePicker2({
4244
4238
  "aria-haspopup": "dialog",
4245
4239
  "aria-expanded": isOpen,
4246
4240
  "aria-controls": isOpen ? panelId : void 0,
4247
- "aria-label": ariaLabel,
4248
- "aria-labelledby": ariaLabelledBy,
4249
- "aria-describedby": [`${panelId}-value`, ariaDescribedBy].filter(Boolean).join(" "),
4241
+ "aria-label": ariaLabel && !ariaLabelledBy ? `${ariaLabel}, ${label}` : void 0,
4242
+ "aria-labelledby": ariaLabelledBy ? `${ariaLabelledBy} ${panelId}-value` : void 0,
4243
+ "aria-describedby": ariaDescribedBy,
4250
4244
  "aria-invalid": isInvalid || void 0,
4251
4245
  disabled,
4252
4246
  className: cx(
@@ -4301,7 +4295,7 @@ var DatePicker = (0, import_react32.forwardRef)(function DatePicker2({
4301
4295
  // src/components/Calendar/RangeCalendar.tsx
4302
4296
  var import_react33 = require("react");
4303
4297
  var import_jsx_runtime33 = require("react/jsx-runtime");
4304
- var RangeCalendar = (0, import_react33.forwardRef)(function RangeCalendar2({ value, defaultValue = null, onChange, min, max, isDateDisabled, locale, weekStartsOn = 1, visibleMonths = 1, autoFocus = false, className }, ref) {
4298
+ var RangeCalendar = /* @__PURE__ */ (0, import_react33.forwardRef)(function RangeCalendar2({ value, defaultValue = null, onChange, min, max, isDateDisabled, locale, weekStartsOn = 1, visibleMonths = 1, autoFocus = false, className }, ref) {
4305
4299
  const months = visibleMonths;
4306
4300
  const [range, setRange] = useControllableState(value, defaultValue, onChange);
4307
4301
  const today = todayISO();
@@ -4484,7 +4478,7 @@ function useMediaQuery(query) {
4484
4478
  }, [query]);
4485
4479
  return matches2;
4486
4480
  }
4487
- var DateRangePicker = (0, import_react34.forwardRef)(function DateRangePicker2({
4481
+ var DateRangePicker = /* @__PURE__ */ (0, import_react34.forwardRef)(function DateRangePicker2({
4488
4482
  value,
4489
4483
  defaultValue = null,
4490
4484
  onChange,
@@ -4549,9 +4543,9 @@ var DateRangePicker = (0, import_react34.forwardRef)(function DateRangePicker2({
4549
4543
  "aria-haspopup": "dialog",
4550
4544
  "aria-expanded": isOpen,
4551
4545
  "aria-controls": isOpen ? panelId : void 0,
4552
- "aria-label": ariaLabel,
4553
- "aria-labelledby": ariaLabelledBy,
4554
- "aria-describedby": [`${panelId}-value`, ariaDescribedBy].filter(Boolean).join(" "),
4546
+ "aria-label": ariaLabel && !ariaLabelledBy ? `${ariaLabel}, ${label}` : void 0,
4547
+ "aria-labelledby": ariaLabelledBy ? `${ariaLabelledBy} ${panelId}-value` : void 0,
4548
+ "aria-describedby": ariaDescribedBy,
4555
4549
  "aria-invalid": isInvalid || void 0,
4556
4550
  disabled,
4557
4551
  className: cx("ow-select", "ow-date-range-picker__trigger", `ow-select--${size2}`, {
@@ -5276,7 +5270,7 @@ function useMenuKeyboard({
5276
5270
 
5277
5271
  // src/components/Menu/Menu.tsx
5278
5272
  var import_jsx_runtime43 = require("react/jsx-runtime");
5279
- var MenuContext = (0, import_react44.createContext)(null);
5273
+ var MenuContext = /* @__PURE__ */ (0, import_react44.createContext)(null);
5280
5274
  function Menu({ trigger, children, label, align = "start", above = false, width, defaultOpen = false, className }) {
5281
5275
  const [open, setOpen] = (0, import_react44.useState)(defaultOpen);
5282
5276
  const rootRef = (0, import_react44.useRef)(null);
@@ -5343,7 +5337,7 @@ function Menu({ trigger, children, label, align = "start", above = false, width,
5343
5337
  ) : null
5344
5338
  ] });
5345
5339
  }
5346
- var MenuItem = (0, import_react44.forwardRef)(function MenuItem2({ icon: icon2, onSelect, destructive = false, shortcut, className, children, onClick, ...buttonProps }, ref) {
5340
+ var MenuItem = /* @__PURE__ */ (0, import_react44.forwardRef)(function MenuItem2({ icon: icon2, onSelect, destructive = false, shortcut, className, children, onClick, ...buttonProps }, ref) {
5347
5341
  const menu = (0, import_react44.useContext)(MenuContext);
5348
5342
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
5349
5343
  "button",
@@ -5511,7 +5505,7 @@ function CommandPalette({ open, onClose, commands, placeholder = "Search command
5511
5505
  // src/components/Tabs/Tabs.tsx
5512
5506
  var import_react46 = require("react");
5513
5507
  var import_jsx_runtime45 = require("react/jsx-runtime");
5514
- var TabsContext = (0, import_react46.createContext)(null);
5508
+ var TabsContext = /* @__PURE__ */ (0, import_react46.createContext)(null);
5515
5509
  function useTabs(component) {
5516
5510
  const context = (0, import_react46.useContext)(TabsContext);
5517
5511
  if (!context) throw new Error(`${component} must be inside <Tabs>.`);
@@ -5676,7 +5670,7 @@ function Disclosure({
5676
5670
  }
5677
5671
  );
5678
5672
  }
5679
- var AccordionContext = (0, import_react47.createContext)(null);
5673
+ var AccordionContext = /* @__PURE__ */ (0, import_react47.createContext)(null);
5680
5674
  function Accordion({
5681
5675
  type = "single",
5682
5676
  value,
@@ -5739,7 +5733,7 @@ function Breadcrumbs({ items: items2, separator = "chevron", label = "Breadcrumb
5739
5733
  function linkClassName({ variant = "default" } = {}) {
5740
5734
  return cx("ow-link", `ow-link--${variant}`);
5741
5735
  }
5742
- var Link = (0, import_react48.forwardRef)(function Link2({ variant = "default", external = false, className, children, target, rel, ...props }, ref) {
5736
+ var Link = /* @__PURE__ */ (0, import_react48.forwardRef)(function Link2({ variant = "default", external = false, className, children, target, rel, ...props }, ref) {
5743
5737
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
5744
5738
  "a",
5745
5739
  {
@@ -5892,7 +5886,7 @@ function NavList({ label, heading, orientation = "vertical", children, className
5892
5886
  children
5893
5887
  ] });
5894
5888
  }
5895
- var NavItem = (0, import_react50.forwardRef)(function NavItem2({ icon: icon2, active = false, className, children, type = "button", href, end, ...buttonProps }, ref) {
5889
+ var NavItem = /* @__PURE__ */ (0, import_react50.forwardRef)(function NavItem2({ icon: icon2, active = false, className, children, type = "button", href, end, ...buttonProps }, ref) {
5896
5890
  const content = /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
5897
5891
  icon2 ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "ow-nav__icon", children: icon2 }) : null,
5898
5892
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "ow-nav__label", children }),
@@ -6265,7 +6259,8 @@ function Avatar({ name, src, size: size2 = "md", label, className }) {
6265
6259
  className: cx("ow-avatar", sizing.className, !initials && !showImage && "ow-avatar--empty", className),
6266
6260
  style: sizing.style,
6267
6261
  ...label ? { role: "img", "aria-label": label } : { "aria-hidden": true },
6268
- children: showImage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("img", { src, alt: "", className: "ow-avatar__image", onError: () => setFailedImage(src) }) : initials || /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(UserIcon, { size: Math.round(sizing.pixels * 0.52) })
6262
+ "data-initials": !showImage && initials ? initials : void 0,
6263
+ children: showImage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("img", { src, alt: "", className: "ow-avatar__image", onError: () => setFailedImage(src) }) : initials ? null : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(UserIcon, { size: Math.round(sizing.pixels * 0.52) })
6269
6264
  }
6270
6265
  );
6271
6266
  }
@@ -6491,12 +6486,29 @@ function DotGrid({ fade = false, interactive = false, className, children, onPoi
6491
6486
  // src/components/Prose/Prose.tsx
6492
6487
  var import_react57 = require("react");
6493
6488
  var import_jsx_runtime62 = require("react/jsx-runtime");
6494
- var Prose = (0, import_react57.forwardRef)(function Prose2({ size: size2 = "md", fullWidth = false, as = "div", className, children, ...props }, ref) {
6489
+ var Prose = /* @__PURE__ */ (0, import_react57.forwardRef)(function Prose2({ size: size2 = "md", fullWidth = false, as = "div", className, children, ...props }, ref) {
6495
6490
  const Element2 = as;
6491
+ const root = (0, import_react57.useRef)(null);
6492
+ (0, import_react57.useEffect)(() => {
6493
+ const element = root.current;
6494
+ if (!element) return;
6495
+ for (const scroller of element.querySelectorAll("pre, .ow-table-wrap")) {
6496
+ if (scroller.scrollWidth > scroller.clientWidth && !scroller.hasAttribute("tabindex")) scroller.tabIndex = 0;
6497
+ }
6498
+ for (const box of element.querySelectorAll('li > input[type="checkbox"], li > p > input[type="checkbox"]')) {
6499
+ if (box.labels?.length || box.hasAttribute("aria-label") || box.hasAttribute("aria-labelledby")) continue;
6500
+ const text = box.closest("li")?.textContent?.trim();
6501
+ if (text) box.setAttribute("aria-label", text);
6502
+ }
6503
+ });
6496
6504
  return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
6497
6505
  Element2,
6498
6506
  {
6499
- ref,
6507
+ ref: (node) => {
6508
+ root.current = node;
6509
+ if (typeof ref === "function") ref(node);
6510
+ else if (ref) ref.current = node;
6511
+ },
6500
6512
  className: cx("ow-prose", `ow-prose--${size2}`, size2 === "md" ? "ow-type-prose" : "ow-type-copy", fullWidth && "ow-prose--full", className),
6501
6513
  ...props,
6502
6514
  children
@@ -6607,7 +6619,7 @@ function accepts(file, accept) {
6607
6619
  });
6608
6620
  }
6609
6621
  var hasFiles = (event) => Array.from(event.dataTransfer.types).includes("Files");
6610
- var PromptInput = (0, import_react58.forwardRef)(function PromptInput2({
6622
+ var PromptInput = /* @__PURE__ */ (0, import_react58.forwardRef)(function PromptInput2({
6611
6623
  value,
6612
6624
  defaultValue = "",
6613
6625
  onChange,
@@ -6958,7 +6970,7 @@ var PromptInput = (0, import_react58.forwardRef)(function PromptInput2({
6958
6970
  // src/components/PromptInput/PromptSuggestion.tsx
6959
6971
  var import_react59 = require("react");
6960
6972
  var import_jsx_runtime65 = require("react/jsx-runtime");
6961
- var PromptSuggestion = (0, import_react59.forwardRef)(function PromptSuggestion2({ children, icon: icon2, description, variant = description ? "card" : "pill", type = "button", className, ...buttonProps }, ref) {
6973
+ var PromptSuggestion = /* @__PURE__ */ (0, import_react59.forwardRef)(function PromptSuggestion2({ children, icon: icon2, description, variant = description ? "card" : "pill", type = "button", className, ...buttonProps }, ref) {
6962
6974
  if (variant === "card") {
6963
6975
  return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("button", { ref, type, className: cx("ow-prompt-suggestion", "ow-prompt-suggestion--card", className), ...buttonProps, children: [
6964
6976
  icon2 ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "ow-prompt-suggestion__icon", children: icon2 }) : null,
@@ -7013,11 +7025,11 @@ function PromptSuggestions({
7013
7025
  // src/components/Chat/ChatConversation.tsx
7014
7026
  var import_react60 = require("react");
7015
7027
  var import_jsx_runtime66 = require("react/jsx-runtime");
7016
- var ChatConversationContext = (0, import_react60.createContext)(null);
7028
+ var ChatConversationContext = /* @__PURE__ */ (0, import_react60.createContext)(null);
7017
7029
  var stickyDistance = 32;
7018
7030
  var defaultCount = (count) => `${count} new`;
7019
7031
  var prefersReducedMotion = () => typeof window !== "undefined" && Boolean(window.matchMedia?.("(prefers-reduced-motion: reduce)").matches);
7020
- var ChatConversation = (0, import_react60.forwardRef)(function ChatConversation2({
7032
+ var ChatConversation = /* @__PURE__ */ (0, import_react60.forwardRef)(function ChatConversation2({
7021
7033
  children,
7022
7034
  empty,
7023
7035
  footer,
@@ -7174,7 +7186,7 @@ function lucide(paths) {
7174
7186
  );
7175
7187
  };
7176
7188
  }
7177
- var BotIcon = lucide(
7189
+ var BotIcon = /* @__PURE__ */ lucide(
7178
7190
  /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
7179
7191
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { d: "M12 8V4H8" }),
7180
7192
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("rect", { width: "16", height: "12", x: "4", y: "8", rx: "2" }),
@@ -7184,25 +7196,25 @@ var BotIcon = lucide(
7184
7196
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { d: "M9 13v2" })
7185
7197
  ] })
7186
7198
  );
7187
- var RotateCcwIcon = lucide(
7199
+ var RotateCcwIcon = /* @__PURE__ */ lucide(
7188
7200
  /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
7189
7201
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }),
7190
7202
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { d: "M3 3v5h5" })
7191
7203
  ] })
7192
7204
  );
7193
- var ThumbsUpIcon = lucide(
7205
+ var ThumbsUpIcon = /* @__PURE__ */ lucide(
7194
7206
  /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
7195
7207
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { d: "M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z" }),
7196
7208
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { d: "M7 10v12" })
7197
7209
  ] })
7198
7210
  );
7199
- var ThumbsDownIcon = lucide(
7211
+ var ThumbsDownIcon = /* @__PURE__ */ lucide(
7200
7212
  /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
7201
7213
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { d: "M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z" }),
7202
7214
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { d: "M17 14V2" })
7203
7215
  ] })
7204
7216
  );
7205
- var PencilIcon = lucide(
7217
+ var PencilIcon = /* @__PURE__ */ lucide(
7206
7218
  /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_jsx_runtime67.Fragment, { children: [
7207
7219
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }),
7208
7220
  /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { d: "m15 5 4 4" })
@@ -7294,7 +7306,7 @@ function useStreamingCaret(bodyRef, contentRef, caretRef, active) {
7294
7306
  };
7295
7307
  }, [active, bodyRef, contentRef, caretRef]);
7296
7308
  }
7297
- var ChatMessage = (0, import_react61.forwardRef)(function ChatMessage2({ from, children, name, avatar, time, locale, status = "done", error, onRetry, retryLabel = "Retry", actions, showActions = "hover", className, ...props }, ref) {
7309
+ var ChatMessage = /* @__PURE__ */ (0, import_react61.forwardRef)(function ChatMessage2({ from, children, name, avatar, time, locale, status = "done", error, onRetry, retryLabel = "Retry", actions, showActions = "hover", className, ...props }, ref) {
7298
7310
  const conversation = (0, import_react61.useContext)(ChatConversationContext);
7299
7311
  const entering = useChatEntrance();
7300
7312
  const id = (0, import_react61.useId)();
@@ -7588,7 +7600,7 @@ function formatInput(input) {
7588
7600
  return String(input);
7589
7601
  }
7590
7602
  }
7591
- var ChatTool = (0, import_react62.forwardRef)(function ChatTool2({
7603
+ var ChatTool = /* @__PURE__ */ (0, import_react62.forwardRef)(function ChatTool2({
7592
7604
  title,
7593
7605
  name,
7594
7606
  icon: icon2,
@@ -7745,7 +7757,7 @@ var ChatTool = (0, import_react62.forwardRef)(function ChatTool2({
7745
7757
  var import_react63 = require("react");
7746
7758
  var import_jsx_runtime70 = require("react/jsx-runtime");
7747
7759
  var plural = (count, word) => `${count} ${word}${count === 1 ? "" : "s"}`;
7748
- var ChainOfThought = (0, import_react63.forwardRef)(function ChainOfThought2({
7760
+ var ChainOfThought = /* @__PURE__ */ (0, import_react63.forwardRef)(function ChainOfThought2({
7749
7761
  steps = [],
7750
7762
  status = "success",
7751
7763
  duration,
@@ -7810,7 +7822,7 @@ var import_react64 = require("react");
7810
7822
  var import_jsx_runtime71 = require("react/jsx-runtime");
7811
7823
  var openDelay = 250;
7812
7824
  var closeDelay = 150;
7813
- var ChatSource = (0, import_react64.forwardRef)(function ChatSource2({
7825
+ var ChatSource = /* @__PURE__ */ (0, import_react64.forwardRef)(function ChatSource2({
7814
7826
  title,
7815
7827
  source,
7816
7828
  snippet,
@@ -7909,7 +7921,7 @@ var ChatSource = (0, import_react64.forwardRef)(function ChatSource2({
7909
7921
  }
7910
7922
  );
7911
7923
  });
7912
- var ChatSources = (0, import_react64.forwardRef)(function ChatSources2({ sources, label, expanded, defaultExpanded = false, onExpandedChange, className, ...props }, ref) {
7924
+ var ChatSources = /* @__PURE__ */ (0, import_react64.forwardRef)(function ChatSources2({ sources, label, expanded, defaultExpanded = false, onExpandedChange, className, ...props }, ref) {
7913
7925
  const id = (0, import_react64.useId)();
7914
7926
  const [isOpen, setOpen] = useControllableState(expanded, defaultExpanded, onExpandedChange);
7915
7927
  if (sources.length === 0) return null;
@@ -8029,7 +8041,7 @@ function assignRef7(ref, value) {
8029
8041
  if (typeof ref === "function") ref(value);
8030
8042
  else if (ref) ref.current = value;
8031
8043
  }
8032
- var ColorField = (0, import_react65.forwardRef)(function ColorField2({
8044
+ var ColorField = /* @__PURE__ */ (0, import_react65.forwardRef)(function ColorField2({
8033
8045
  value,
8034
8046
  defaultValue = "#312c7e",
8035
8047
  onChange,
@@ -8074,9 +8086,9 @@ var ColorField = (0, import_react65.forwardRef)(function ColorField2({
8074
8086
  "aria-haspopup": "dialog",
8075
8087
  "aria-expanded": isOpen,
8076
8088
  "aria-controls": isOpen ? panelId : void 0,
8077
- "aria-label": ariaLabel,
8078
- "aria-labelledby": ariaLabelledBy,
8079
- "aria-describedby": [`${panelId}-value`, ariaDescribedBy].filter(Boolean).join(" "),
8089
+ "aria-label": ariaLabel && !ariaLabelledBy ? `${ariaLabel}, ${color.toUpperCase()}` : void 0,
8090
+ "aria-labelledby": ariaLabelledBy ? `${ariaLabelledBy} ${panelId}-value` : void 0,
8091
+ "aria-describedby": ariaDescribedBy,
8080
8092
  "aria-invalid": isInvalid || void 0,
8081
8093
  disabled,
8082
8094
  className: cx(
@@ -8311,7 +8323,7 @@ function assignRef8(ref, value) {
8311
8323
  if (typeof ref === "function") ref(value);
8312
8324
  else if (ref) ref.current = value;
8313
8325
  }
8314
- var ColorArea = (0, import_react67.forwardRef)(function ColorArea2({
8326
+ var ColorArea = /* @__PURE__ */ (0, import_react67.forwardRef)(function ColorArea2({
8315
8327
  value,
8316
8328
  defaultValue = "#312c7e",
8317
8329
  onChange,
@@ -8500,7 +8512,7 @@ function assignRef9(ref, value) {
8500
8512
  if (typeof ref === "function") ref(value);
8501
8513
  else if (ref) ref.current = value;
8502
8514
  }
8503
- var ColorSlider = (0, import_react68.forwardRef)(function ColorSlider2({
8515
+ var ColorSlider = /* @__PURE__ */ (0, import_react68.forwardRef)(function ColorSlider2({
8504
8516
  channel,
8505
8517
  value,
8506
8518
  defaultValue = "#312c7e",
@@ -8642,7 +8654,7 @@ var ColorSlider = (0, import_react68.forwardRef)(function ColorSlider2({
8642
8654
  // src/components/ColorPicker/ColorSwatchPicker.tsx
8643
8655
  var import_react69 = require("react");
8644
8656
  var import_jsx_runtime75 = require("react/jsx-runtime");
8645
- var ColorSwatchPicker = (0, import_react69.forwardRef)(function ColorSwatchPicker2({ options, value, defaultValue, onChange, size: size2 = "md", shape = "square", disabled = false, name, className, ...aria }, ref) {
8657
+ var ColorSwatchPicker = /* @__PURE__ */ (0, import_react69.forwardRef)(function ColorSwatchPicker2({ options, value, defaultValue, onChange, size: size2 = "md", shape = "square", disabled = false, name, className, ...aria }, ref) {
8646
8658
  const [current, setCurrent] = useControllableState(value, defaultValue ?? "", onChange);
8647
8659
  const refs = (0, import_react69.useRef)([]);
8648
8660
  const items2 = options.map((option) => {