@alexgorbatchev/shadcn 0.0.125 → 0.0.127

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.
@@ -481,43 +481,74 @@ function AccordionContent2({ density, className, children, ...props }) {
481
481
  });
482
482
  }
483
483
  // src/components/OptionCardGroup.tsx
484
- import { useId } from "react";
484
+ import { useId, useLayoutEffect, useRef, useState } from "react";
485
+ import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
486
+ import { CheckboxGroup as CheckboxGroupPrimitive } from "@base-ui/react/checkbox-group";
485
487
  import { Radio as RadioPrimitive } from "@base-ui/react/radio";
486
488
  import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
487
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
489
+ import { CheckIcon } from "lucide-react";
490
+ import { jsx as jsx6, jsxs as jsxs4, Fragment as Fragment2 } from "react/jsx-runtime";
488
491
  "use client";
492
+ var GROUP_CLASS = "grid w-full gap-2 [counter-reset:option-card]";
489
493
  function OptionCardGroup2({ analytics, density, className, ...props }) {
490
494
  const trackedOnValueChange = useAnalyticsCallback("OptionCardGroup", analytics, { name: "ui.change-request" }, props.onValueChange);
491
495
  return /* @__PURE__ */ jsx6(RadioGroupPrimitive, {
492
496
  "data-density": density,
493
497
  "data-slot": "option-card-group",
494
- className: (state) => cn2("grid w-full gap-2 [counter-reset:option-card]", typeof className === "function" ? className(state) : className),
498
+ className: (state) => cn2(GROUP_CLASS, typeof className === "function" ? className(state) : className),
495
499
  ...props,
496
500
  onValueChange: trackedOnValueChange
497
501
  });
498
502
  }
499
- function OptionCard2({
503
+ function OptionCheckboxGroup2({ analytics, density, className, ...props }) {
504
+ const trackedOnValueChange = useAnalyticsCallback("OptionCheckboxGroup", analytics, { name: "ui.change-request" }, props.onValueChange);
505
+ return /* @__PURE__ */ jsx6(CheckboxGroupPrimitive, {
506
+ "data-density": density,
507
+ "data-slot": "option-checkbox-group",
508
+ className: (state) => cn2(GROUP_CLASS, typeof className === "function" ? className(state) : className),
509
+ ...props,
510
+ onValueChange: trackedOnValueChange
511
+ });
512
+ }
513
+ var CARD_CLASS = "group/option-card grid w-full cursor-pointer grid-cols-[1.25rem_minmax(0,1fr)] items-start gap-x-2 rounded-md border border-input bg-card p-panel-sm text-start text-sm text-card-foreground transition-colors outline-none [counter-increment:option-card] hover:bg-muted/40 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring focus-visible:outline-solid data-checked:border-primary data-checked:ring-1 data-checked:ring-primary forced-colors:data-checked:border-[color:Highlight] aria-invalid:not-data-checked:border-destructive data-recommended:not-data-checked:not-aria-invalid:border-success data-disabled:cursor-not-allowed data-disabled:opacity-50 data-disabled:hover:bg-card data-readonly:cursor-default data-folding:pb-10";
514
+ function useFold(lines) {
515
+ const ref = useRef(null);
516
+ const [isOverflowing, setIsOverflowing] = useState(false);
517
+ const [isOpen, setIsOpen] = useState(false);
518
+ useLayoutEffect(() => {
519
+ const element = ref.current;
520
+ if (!element || lines === undefined || isOpen)
521
+ return;
522
+ const measure = () => setIsOverflowing(element.scrollHeight > element.clientHeight + 1);
523
+ measure();
524
+ const observer = new ResizeObserver(measure);
525
+ observer.observe(element);
526
+ return () => observer.disconnect();
527
+ }, [lines, isOpen]);
528
+ return {
529
+ ref,
530
+ isFoldable: lines !== undefined && (isOverflowing || isOpen),
531
+ isOpen,
532
+ toggle: () => setIsOpen((open) => !open)
533
+ };
534
+ }
535
+ function getDescribedBy(ids, props) {
536
+ return props.description === undefined && props.reason === undefined ? undefined : ids.description;
537
+ }
538
+ function OptionCardContent({
539
+ ids,
540
+ fold,
541
+ marker,
500
542
  label,
501
543
  description,
544
+ descriptionLines,
502
545
  recommended = false,
503
546
  recommendedLabel = "Recommended",
504
- marker,
505
- density,
506
- className,
507
- ...props
547
+ reason,
548
+ image
508
549
  }) {
509
- const id = useId();
510
- const labelId = `${id}-label`;
511
- const tagId = `${id}-recommended`;
512
- const descriptionId = `${id}-description`;
513
- return /* @__PURE__ */ jsxs4(RadioPrimitive.Root, {
514
- "data-density": density,
515
- "data-slot": "option-card",
516
- "data-recommended": recommended || undefined,
517
- "aria-labelledby": recommended ? `${labelId} ${tagId}` : labelId,
518
- "aria-describedby": description === undefined ? undefined : descriptionId,
519
- className: (state) => cn2("group/option-card grid w-full cursor-pointer grid-cols-[1.25rem_minmax(0,1fr)] items-start gap-x-2 rounded-md border border-input bg-card p-panel-sm text-start text-sm text-card-foreground transition-colors outline-none [counter-increment:option-card] hover:bg-muted/40 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring focus-visible:outline-solid data-checked:border-primary data-checked:ring-1 data-checked:ring-primary forced-colors:data-checked:border-[color:Highlight] aria-invalid:not-data-checked:border-destructive data-recommended:not-data-checked:not-aria-invalid:border-success data-disabled:cursor-not-allowed data-disabled:opacity-50 data-disabled:hover:bg-card data-readonly:cursor-default", typeof className === "function" ? className(state) : className),
520
- ...props,
550
+ const isFolded = descriptionLines !== undefined && !fold.isOpen;
551
+ return /* @__PURE__ */ jsxs4(Fragment2, {
521
552
  children: [
522
553
  /* @__PURE__ */ jsx6("span", {
523
554
  "data-slot": "option-card-marker",
@@ -530,17 +561,22 @@ function OptionCard2({
530
561
  /* @__PURE__ */ jsxs4("span", {
531
562
  className: "flex min-w-0 flex-col gap-1",
532
563
  children: [
564
+ image !== undefined && /* @__PURE__ */ jsx6("span", {
565
+ "data-slot": "option-card-image",
566
+ className: "mb-1 block overflow-hidden rounded-sm border border-border",
567
+ children: image
568
+ }),
533
569
  /* @__PURE__ */ jsxs4("span", {
534
570
  className: "flex flex-wrap items-center gap-x-2 gap-y-1",
535
571
  children: [
536
572
  /* @__PURE__ */ jsx6("span", {
537
- id: labelId,
573
+ id: ids.label,
538
574
  "data-slot": "option-card-label",
539
575
  className: "leading-5 font-semibold wrap-break-word",
540
576
  children: label
541
577
  }),
542
578
  recommended && /* @__PURE__ */ jsx6(Badge2, {
543
- id: tagId,
579
+ id: ids.tag,
544
580
  "data-slot": "option-card-recommended",
545
581
  variant: "success",
546
582
  className: "uppercase",
@@ -548,17 +584,146 @@ function OptionCard2({
548
584
  })
549
585
  ]
550
586
  }),
551
- description !== undefined && /* @__PURE__ */ jsx6("span", {
552
- id: descriptionId,
587
+ (description !== undefined || reason !== undefined) && /* @__PURE__ */ jsxs4("span", {
588
+ id: ids.description,
589
+ ref: fold.ref,
553
590
  "data-slot": "option-card-description",
554
- className: "text-muted-foreground wrap-break-word",
555
- children: description
591
+ "data-folded": isFolded || undefined,
592
+ className: "flex flex-col gap-1 text-muted-foreground wrap-break-word data-folded:overflow-hidden",
593
+ style: isFolded ? { maxHeight: `calc(${descriptionLines} * 1lh)` } : undefined,
594
+ children: [
595
+ description !== undefined && /* @__PURE__ */ jsx6("span", {
596
+ className: "block",
597
+ children: description
598
+ }),
599
+ reason !== undefined && /* @__PURE__ */ jsxs4("span", {
600
+ "data-slot": "option-card-reason",
601
+ className: "block text-card-foreground",
602
+ children: [
603
+ /* @__PURE__ */ jsx6("span", {
604
+ className: "font-semibold",
605
+ children: "Why:"
606
+ }),
607
+ " ",
608
+ reason
609
+ ]
610
+ })
611
+ ]
556
612
  })
557
613
  ]
558
614
  })
559
615
  ]
560
616
  });
561
617
  }
618
+ function FoldToggle({ fold, descriptionId }) {
619
+ if (!fold.isFoldable)
620
+ return null;
621
+ return /* @__PURE__ */ jsx6(Button2, {
622
+ type: "button",
623
+ variant: "link",
624
+ size: "sm",
625
+ "data-slot": "option-card-fold",
626
+ "aria-expanded": fold.isOpen,
627
+ "aria-controls": descriptionId,
628
+ className: "absolute end-3 bottom-1.5",
629
+ onClick: fold.toggle,
630
+ children: fold.isOpen ? "Less" : "More"
631
+ });
632
+ }
633
+ function useOptionCardIds() {
634
+ const id = useId();
635
+ return { label: `${id}-label`, tag: `${id}-recommended`, description: `${id}-description` };
636
+ }
637
+ function OptionCard2({
638
+ label,
639
+ description,
640
+ descriptionLines,
641
+ recommended = false,
642
+ recommendedLabel,
643
+ reason,
644
+ image,
645
+ marker,
646
+ density,
647
+ className,
648
+ ...props
649
+ }) {
650
+ const ids = useOptionCardIds();
651
+ const fold = useFold(descriptionLines);
652
+ const content = { label, description, descriptionLines, recommended, recommendedLabel, reason, image, marker };
653
+ return /* @__PURE__ */ jsxs4("div", {
654
+ "data-slot": "option-card-item",
655
+ className: "relative min-w-0",
656
+ children: [
657
+ /* @__PURE__ */ jsx6(RadioPrimitive.Root, {
658
+ "data-density": density,
659
+ "data-slot": "option-card",
660
+ "data-recommended": recommended || undefined,
661
+ "data-folding": fold.isFoldable || undefined,
662
+ "aria-labelledby": recommended ? `${ids.label} ${ids.tag}` : ids.label,
663
+ "aria-describedby": getDescribedBy(ids, content),
664
+ className: (state) => cn2(CARD_CLASS, typeof className === "function" ? className(state) : className),
665
+ ...props,
666
+ children: /* @__PURE__ */ jsx6(OptionCardContent, {
667
+ ids,
668
+ fold,
669
+ ...content
670
+ })
671
+ }),
672
+ /* @__PURE__ */ jsx6(FoldToggle, {
673
+ fold,
674
+ descriptionId: ids.description
675
+ })
676
+ ]
677
+ });
678
+ }
679
+ function OptionCheckboxCard2({
680
+ label,
681
+ description,
682
+ descriptionLines,
683
+ recommended = false,
684
+ recommendedLabel,
685
+ reason,
686
+ image,
687
+ density,
688
+ className,
689
+ ...props
690
+ }) {
691
+ const ids = useOptionCardIds();
692
+ const fold = useFold(descriptionLines);
693
+ const marker = /* @__PURE__ */ jsx6("span", {
694
+ "data-slot": "option-checkbox-indicator",
695
+ className: "mt-0.5 flex size-4 items-center justify-center rounded-sm border border-input group-data-checked/option-card:border-primary group-data-checked/option-card:bg-primary group-data-checked/option-card:text-primary-foreground [&>svg]:size-3.5",
696
+ children: /* @__PURE__ */ jsx6(CheckIcon, {
697
+ className: "hidden group-data-checked/option-card:block"
698
+ })
699
+ });
700
+ const content = { label, description, descriptionLines, recommended, recommendedLabel, reason, image, marker };
701
+ return /* @__PURE__ */ jsxs4("div", {
702
+ "data-slot": "option-card-item",
703
+ className: "relative min-w-0",
704
+ children: [
705
+ /* @__PURE__ */ jsx6(CheckboxPrimitive.Root, {
706
+ "data-density": density,
707
+ "data-slot": "option-checkbox-card",
708
+ "data-recommended": recommended || undefined,
709
+ "data-folding": fold.isFoldable || undefined,
710
+ "aria-labelledby": recommended ? `${ids.label} ${ids.tag}` : ids.label,
711
+ "aria-describedby": getDescribedBy(ids, content),
712
+ className: (state) => cn2(CARD_CLASS, typeof className === "function" ? className(state) : className),
713
+ ...props,
714
+ children: /* @__PURE__ */ jsx6(OptionCardContent, {
715
+ ids,
716
+ fold,
717
+ ...content
718
+ })
719
+ }),
720
+ /* @__PURE__ */ jsx6(FoldToggle, {
721
+ fold,
722
+ descriptionId: ids.description
723
+ })
724
+ ]
725
+ });
726
+ }
562
727
  // src/components/EmptyState.tsx
563
728
  import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
564
729
  function EmptyState3({ title, description, children }) {
@@ -750,8 +915,8 @@ function OutlineItem2({ label, state, onSelect }) {
750
915
  });
751
916
  }
752
917
  // src/components/DataViewer.tsx
753
- import { Fragment as Fragment2 } from "react";
754
- import { jsx as jsx12, jsxs as jsxs10, Fragment as Fragment3 } from "react/jsx-runtime";
918
+ import { Fragment as Fragment3 } from "react";
919
+ import { jsx as jsx12, jsxs as jsxs10, Fragment as Fragment4 } from "react/jsx-runtime";
755
920
  var ACRONYMS = new Map([
756
921
  ["api", "API"],
757
922
  ["http", "HTTP"],
@@ -813,7 +978,7 @@ function DataValue({ value, formatLabel }) {
813
978
  });
814
979
  return /* @__PURE__ */ jsx12("dl", {
815
980
  className: "grid grid-cols-[minmax(0,max-content)_minmax(0,1fr)] gap-x-4 gap-y-1",
816
- children: entries.map(([key, item]) => /* @__PURE__ */ jsxs10(Fragment2, {
981
+ children: entries.map(([key, item]) => /* @__PURE__ */ jsxs10(Fragment3, {
817
982
  children: [
818
983
  /* @__PURE__ */ jsx12("dt", {
819
984
  className: "min-w-0 break-words text-muted-foreground",
@@ -835,14 +1000,14 @@ function DataValue({ value, formatLabel }) {
835
1000
  children: "None"
836
1001
  });
837
1002
  if (typeof value === "boolean")
838
- return /* @__PURE__ */ jsx12(Fragment3, {
1003
+ return /* @__PURE__ */ jsx12(Fragment4, {
839
1004
  children: value ? "Yes" : "No"
840
1005
  });
841
1006
  if (value === "")
842
1007
  return /* @__PURE__ */ jsx12(Placeholder, {
843
1008
  children: "Empty"
844
1009
  });
845
- return /* @__PURE__ */ jsx12(Fragment3, {
1010
+ return /* @__PURE__ */ jsx12(Fragment4, {
846
1011
  children: String(value)
847
1012
  });
848
1013
  }
@@ -1851,7 +2016,7 @@ function PaginationEllipsis2({ density, className, ...props }) {
1851
2016
  });
1852
2017
  }
1853
2018
  // src/components/Menubar.tsx
1854
- import { CheckIcon } from "lucide-react";
2019
+ import { CheckIcon as CheckIcon2 } from "lucide-react";
1855
2020
  import { Menu as MenuPrimitive } from "@base-ui/react/menu";
1856
2021
  import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
1857
2022
  import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
@@ -1953,7 +2118,7 @@ function MenubarCheckboxItem2({
1953
2118
  /* @__PURE__ */ jsx23("span", {
1954
2119
  className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
1955
2120
  children: /* @__PURE__ */ jsx23(MenuPrimitive.CheckboxItemIndicator, {
1956
- children: /* @__PURE__ */ jsx23(CheckIcon, {})
2121
+ children: /* @__PURE__ */ jsx23(CheckIcon2, {})
1957
2122
  })
1958
2123
  }),
1959
2124
  children
@@ -1977,7 +2142,7 @@ function MenubarRadioItem2({ density, className, children, inset, ...props }) {
1977
2142
  /* @__PURE__ */ jsx23("span", {
1978
2143
  className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
1979
2144
  children: /* @__PURE__ */ jsx23(MenuPrimitive.RadioItemIndicator, {
1980
- children: /* @__PURE__ */ jsx23(CheckIcon, {})
2145
+ children: /* @__PURE__ */ jsx23(CheckIcon2, {})
1981
2146
  })
1982
2147
  }),
1983
2148
  children
@@ -2165,7 +2330,7 @@ function NavigationMenuIndicator2({
2165
2330
  // src/components/Toast.tsx
2166
2331
  import { Toast as ToastPrimitive } from "@base-ui/react/toast";
2167
2332
  import { CircleCheckIcon, InfoIcon, TriangleAlertIcon, OctagonXIcon, LoaderCircleIcon, XIcon } from "lucide-react";
2168
- import { jsx as jsx25, jsxs as jsxs17, Fragment as Fragment4 } from "react/jsx-runtime";
2333
+ import { jsx as jsx25, jsxs as jsxs17, Fragment as Fragment5 } from "react/jsx-runtime";
2169
2334
  function ToastProvider2(props) {
2170
2335
  return /* @__PURE__ */ jsx25(ToastPrimitive.Provider, {
2171
2336
  ...props
@@ -2296,7 +2461,7 @@ function ToastIcon({ type }) {
2296
2461
  }
2297
2462
  function ToastList() {
2298
2463
  const { toasts } = ToastPrimitive.useToastManager();
2299
- return /* @__PURE__ */ jsx25(Fragment4, {
2464
+ return /* @__PURE__ */ jsx25(Fragment5, {
2300
2465
  children: toasts.map((toastItem) => /* @__PURE__ */ jsx25(Toast2, {
2301
2466
  toast: toastItem,
2302
2467
  children: /* @__PURE__ */ jsxs17(ToastContent2, {
@@ -2452,7 +2617,7 @@ function BubbleReactions2({
2452
2617
  });
2453
2618
  }
2454
2619
  // src/components/Message.tsx
2455
- import { useContext as useContext2, useLayoutEffect, useMemo as useMemo2, useRef, useState } from "react";
2620
+ import { useContext as useContext2, useLayoutEffect as useLayoutEffect2, useMemo as useMemo2, useRef as useRef2, useState as useState2 } from "react";
2456
2621
  import { useRender as useRender8 } from "@base-ui/react/use-render";
2457
2622
 
2458
2623
  // src/message/MessageContext.ts
@@ -2471,7 +2636,7 @@ function MessageGroup2({ density, className, ...props }) {
2471
2636
  });
2472
2637
  }
2473
2638
  function Message2({ density, className, align = "start", style, ...props }) {
2474
- const [footerOffset, setFooterOffset] = useState(0);
2639
+ const [footerOffset, setFooterOffset] = useState2(0);
2475
2640
  const context = useMemo2(() => ({ setFooterOffset }), []);
2476
2641
  const messageStyle = { ...style, "--message-footer-offset": `${footerOffset}px` };
2477
2642
  return /* @__PURE__ */ jsx28(MessageContext.Provider, {
@@ -2512,8 +2677,8 @@ function MessageHeader2({ density, className, ...props }) {
2512
2677
  }
2513
2678
  function MessageFooter2({ density, className, ...props }) {
2514
2679
  const context = useContext2(MessageContext);
2515
- const footerRef = useRef(null);
2516
- useLayoutEffect(() => {
2680
+ const footerRef = useRef2(null);
2681
+ useLayoutEffect2(() => {
2517
2682
  const footer = footerRef.current;
2518
2683
  const content = footer?.parentElement;
2519
2684
  if (!context || !footer || !content)
@@ -2697,7 +2862,7 @@ function AttachmentGroup2({ density, className, ...props }) {
2697
2862
  });
2698
2863
  }
2699
2864
  // src/components/InlineEdit.tsx
2700
- import { useEffect as useEffect2, useId as useId5, useRef as useRef2, useState as useState2 } from "react";
2865
+ import { useEffect as useEffect2, useId as useId5, useRef as useRef3, useState as useState3 } from "react";
2701
2866
  import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
2702
2867
  function InlineEdit2({
2703
2868
  analytics,
@@ -2715,12 +2880,12 @@ function InlineEdit2({
2715
2880
  const track = useAnalytics2("InlineEdit", analytics);
2716
2881
  const triggerId = useId5();
2717
2882
  const errorId = `${triggerId}-error`;
2718
- const input = useRef2(null);
2719
- const isFinished = useRef2(false);
2720
- const shouldCancel = useRef2(false);
2721
- const [isSaving, setSaving] = useState2(false);
2722
- const [error, setError] = useState2(null);
2723
- const [isErrorOpen, setErrorOpen] = useState2(false);
2883
+ const input = useRef3(null);
2884
+ const isFinished = useRef3(false);
2885
+ const shouldCancel = useRef3(false);
2886
+ const [isSaving, setSaving] = useState3(false);
2887
+ const [error, setError] = useState3(null);
2888
+ const [isErrorOpen, setErrorOpen] = useState3(false);
2724
2889
  useEffect2(() => {
2725
2890
  input.current?.focus();
2726
2891
  if (shouldSelectOnMount)
@@ -2818,7 +2983,7 @@ function InlineEdit2({
2818
2983
  });
2819
2984
  }
2820
2985
  // src/components/StarRating.tsx
2821
- import { useState as useState3 } from "react";
2986
+ import { useState as useState4 } from "react";
2822
2987
  import { Radio } from "@base-ui/react/radio";
2823
2988
  import { StarIcon, CircleOffIcon } from "lucide-react";
2824
2989
  import { jsx as jsx31 } from "react/jsx-runtime";
@@ -2839,7 +3004,7 @@ function StarRating2({
2839
3004
  onValueChange
2840
3005
  }) {
2841
3006
  const density = useDensity(densityProp);
2842
- const [moved, setMoved] = useState3(null);
3007
+ const [moved, setMoved] = useState4(null);
2843
3008
  const isConfirm = commit === "confirm";
2844
3009
  const draft = moved?.from === value ? moved.star : null;
2845
3010
  const setDraft = (star) => setMoved(star === null ? null : { from: value, star });
@@ -2897,7 +3062,7 @@ function StarRating2({
2897
3062
  });
2898
3063
  }
2899
3064
  // src/components/ReviewList.tsx
2900
- import { useRef as useRef3, useState as useState4 } from "react";
3065
+ import { useRef as useRef4, useState as useState5 } from "react";
2901
3066
  import { ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
2902
3067
  import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
2903
3068
  var TOGGLE_KEYS = new Set(["x", "X"]);
@@ -2908,9 +3073,9 @@ function isTextEntry(target) {
2908
3073
  return target instanceof HTMLElement && (target.isContentEditable || target.matches("input:not([type='checkbox']), textarea, select"));
2909
3074
  }
2910
3075
  function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
2911
- const [cursor, setCursor] = useState4({ row: 0, cell: 0 });
2912
- const [anchorId, setAnchorId] = useState4();
2913
- const cellsRef = useRef3(new Map);
3076
+ const [cursor, setCursor] = useState5({ row: 0, cell: 0 });
3077
+ const [anchorId, setAnchorId] = useState5();
3078
+ const cellsRef = useRef4(new Map);
2914
3079
  const rowIndex = Math.min(cursor.row, Math.max(0, rows.length - 1));
2915
3080
  const cellCount = (row) => 2 + (row?.cells?.length ?? 0);
2916
3081
  const focusCell = (row, cell) => {
@@ -3074,7 +3239,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
3074
3239
  // src/components/ChoiceTable.tsx
3075
3240
  import {
3076
3241
  useId as useId6,
3077
- useRef as useRef4
3242
+ useRef as useRef5
3078
3243
  } from "react";
3079
3244
  import { jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
3080
3245
  function isModified(event) {
@@ -3090,7 +3255,7 @@ function ChoiceTable2({
3090
3255
  ref
3091
3256
  }) {
3092
3257
  const baseId = useId6();
3093
- const rowsRef = useRef4(new Map);
3258
+ const rowsRef = useRef5(new Map);
3094
3259
  const chosenIndex = rows.findIndex((row) => row.id === value);
3095
3260
  const rowId = (id) => `${baseId}-${id}`;
3096
3261
  const template = {
@@ -3188,7 +3353,7 @@ function ChoiceTable2({
3188
3353
  });
3189
3354
  }
3190
3355
  // src/components/ConfirmationDialog.tsx
3191
- import { useState as useState5 } from "react";
3356
+ import { useState as useState6 } from "react";
3192
3357
  import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
3193
3358
  function ConfirmationDialog2({
3194
3359
  open,
@@ -3199,8 +3364,8 @@ function ConfirmationDialog2({
3199
3364
  onConfirm,
3200
3365
  renderError
3201
3366
  }) {
3202
- const [isPending, setPending] = useState5(false);
3203
- const [error, setError] = useState5(null);
3367
+ const [isPending, setPending] = useState6(false);
3368
+ const [error, setError] = useState6(null);
3204
3369
  return /* @__PURE__ */ jsx34(AlertDialog2, {
3205
3370
  open,
3206
3371
  onOpenChange: (next, details) => {
@@ -3261,13 +3426,13 @@ function ConfirmationDialog2({
3261
3426
  });
3262
3427
  }
3263
3428
  // src/components/ImagePicker.tsx
3264
- import { useRef as useRef5 } from "react";
3429
+ import { useRef as useRef6 } from "react";
3265
3430
  import { ImageIcon, UploadIcon } from "lucide-react";
3266
3431
 
3267
3432
  // src/hooks/useObjectURL.ts
3268
- import { useEffect as useEffect3, useState as useState6 } from "react";
3433
+ import { useEffect as useEffect3, useState as useState7 } from "react";
3269
3434
  function useObjectURL(file) {
3270
- const [url, setURL] = useState6();
3435
+ const [url, setURL] = useState7();
3271
3436
  useEffect3(() => {
3272
3437
  if (!file) {
3273
3438
  setURL(undefined);
@@ -3292,7 +3457,7 @@ function ImagePicker2({
3292
3457
  onClear
3293
3458
  }) {
3294
3459
  const track = useAnalytics2("ImagePicker", analytics);
3295
- const input = useRef5(null);
3460
+ const input = useRef6(null);
3296
3461
  const preview = useObjectURL(file);
3297
3462
  const image = file === null ? undefined : preview ?? src;
3298
3463
  return /* @__PURE__ */ jsxs23("figure", {
@@ -3408,8 +3573,8 @@ function MeterIndicator2({
3408
3573
  // src/components/ToolbarToggleChip.tsx
3409
3574
  import { useId as useId7 } from "react";
3410
3575
  import { Toolbar as ToolbarPrimitive } from "@base-ui/react/toolbar";
3411
- import { CheckIcon as CheckIcon2 } from "lucide-react";
3412
- import { jsx as jsx37, jsxs as jsxs24, Fragment as Fragment5 } from "react/jsx-runtime";
3576
+ import { CheckIcon as CheckIcon3 } from "lucide-react";
3577
+ import { jsx as jsx37, jsxs as jsxs24, Fragment as Fragment6 } from "react/jsx-runtime";
3413
3578
  function pressedLabel(pressed) {
3414
3579
  if (pressed === "mixed")
3415
3580
  return "mixed";
@@ -3465,7 +3630,7 @@ function ToolbarToggleChip2({
3465
3630
  trackedChange(pressed !== true);
3466
3631
  },
3467
3632
  children: [
3468
- pressed === true && !swatch && /* @__PURE__ */ jsx37(CheckIcon2, {
3633
+ pressed === true && !swatch && /* @__PURE__ */ jsx37(CheckIcon3, {
3469
3634
  "aria-hidden": "true",
3470
3635
  "data-slot": "toolbar-toggle-chip-check",
3471
3636
  className: "size-3.5 shrink-0"
@@ -3495,7 +3660,7 @@ function ToolbarToggleChip2({
3495
3660
  })
3496
3661
  ]
3497
3662
  });
3498
- return /* @__PURE__ */ jsxs24(Fragment5, {
3663
+ return /* @__PURE__ */ jsxs24(Fragment6, {
3499
3664
  children: [
3500
3665
  disabledReason && /* @__PURE__ */ jsx37("span", {
3501
3666
  id: reasonId,
@@ -3524,7 +3689,7 @@ function ToolbarToggleChip2({
3524
3689
  }
3525
3690
  // src/components/Stepper.tsx
3526
3691
  import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
3527
- import { CheckIcon as CheckIcon3 } from "lucide-react";
3692
+ import { CheckIcon as CheckIcon4 } from "lucide-react";
3528
3693
  import { jsx as jsx38 } from "react/jsx-runtime";
3529
3694
  function Stepper2({ density, className, ...props }) {
3530
3695
  return /* @__PURE__ */ jsx38(TabsPrimitive.Root, {
@@ -3563,7 +3728,7 @@ function StepperIndicator2({ completed = false, children, className, ...props })
3563
3728
  "data-completed": completed || undefined,
3564
3729
  className: cn2("flex size-control shrink-0 items-center justify-center rounded-sm border border-input bg-secondary text-sm tabular-nums group-data-active/step:border-primary group-data-active/step:bg-primary group-data-active/step:text-primary-foreground data-completed:border-primary data-completed:text-primary [&_svg]:size-3.5", className),
3565
3730
  ...props,
3566
- children: completed ? /* @__PURE__ */ jsx38(CheckIcon3, {}) : children
3731
+ children: completed ? /* @__PURE__ */ jsx38(CheckIcon4, {}) : children
3567
3732
  });
3568
3733
  }
3569
3734
  function StepperContent2({ density, className, ...props }) {
@@ -4027,10 +4192,58 @@ function Quote2({ size, clamp, density, className, ...props }) {
4027
4192
  ...props
4028
4193
  });
4029
4194
  }
4195
+ // src/components/ReadMore.tsx
4196
+ import { useId as useId8, useLayoutEffect as useLayoutEffect3, useRef as useRef7, useState as useState8 } from "react";
4197
+ import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
4198
+ "use client";
4199
+ function ReadMore2({ maxHeight, density, className, style, children, ...props }) {
4200
+ const id = useId8();
4201
+ const ref = useRef7(null);
4202
+ const [isOverflowing, setIsOverflowing] = useState8(false);
4203
+ const [isOpen, setIsOpen] = useState8(false);
4204
+ useLayoutEffect3(() => {
4205
+ const element = ref.current;
4206
+ if (!element || isOpen)
4207
+ return;
4208
+ const measure = () => setIsOverflowing(element.scrollHeight > element.clientHeight + 1);
4209
+ measure();
4210
+ const observer = new ResizeObserver(measure);
4211
+ observer.observe(element);
4212
+ return () => observer.disconnect();
4213
+ }, [isOpen, maxHeight]);
4214
+ const isFolded = !isOpen;
4215
+ return /* @__PURE__ */ jsxs26("div", {
4216
+ "data-density": density,
4217
+ "data-slot": "read-more",
4218
+ className: "flex min-w-0 flex-col items-start gap-1",
4219
+ children: [
4220
+ /* @__PURE__ */ jsx41("div", {
4221
+ id: `${id}-content`,
4222
+ ref,
4223
+ "data-slot": "read-more-content",
4224
+ "data-folded": isFolded && isOverflowing || undefined,
4225
+ className: cn2("w-full min-w-0 data-folded:mask-b-from-[calc(100%-2rem)] data-folded:mask-b-to-100%", isFolded && "overflow-hidden", className),
4226
+ style: isFolded ? { ...style, maxHeight } : style,
4227
+ ...props,
4228
+ children
4229
+ }),
4230
+ (isOverflowing || isOpen) && /* @__PURE__ */ jsx41(Button2, {
4231
+ type: "button",
4232
+ variant: "link",
4233
+ size: "sm",
4234
+ "data-slot": "read-more-toggle",
4235
+ "aria-expanded": isOpen,
4236
+ "aria-controls": `${id}-content`,
4237
+ onClick: () => setIsOpen((open) => !open),
4238
+ children: isOpen ? "Less" : "More"
4239
+ })
4240
+ ]
4241
+ });
4242
+ }
4030
4243
  // src/components/SkipLink.tsx
4031
- import { jsx as jsx41 } from "react/jsx-runtime";
4244
+ import { jsx as jsx42 } from "react/jsx-runtime";
4032
4245
  function SkipLink2({ targetId, className, children = "Skip to content", ...props }) {
4033
- return /* @__PURE__ */ jsx41(ButtonLink2, {
4246
+ return /* @__PURE__ */ jsx42(ButtonLink2, {
4034
4247
  "data-slot": "skip-link",
4035
4248
  variant: "outline",
4036
4249
  size: "sm",
@@ -4054,7 +4267,7 @@ import {
4054
4267
  DropletIcon,
4055
4268
  SunIcon
4056
4269
  } from "lucide-react";
4057
- import { jsx as jsx42, jsxs as jsxs26, Fragment as Fragment6 } from "react/jsx-runtime";
4270
+ import { jsx as jsx43, jsxs as jsxs27, Fragment as Fragment7 } from "react/jsx-runtime";
4058
4271
  var CONDITION_ICONS = {
4059
4272
  clear: SunIcon,
4060
4273
  "partly-cloudy": CloudSunIcon,
@@ -4106,43 +4319,43 @@ function WeatherSummary2({
4106
4319
  defaultTagName: "div",
4107
4320
  props: mergeProps14({
4108
4321
  className: cn2("flex min-w-0 text-foreground", isCompact ? "flex-col items-center gap-1 text-center" : "items-center gap-panel-sm", className),
4109
- children: /* @__PURE__ */ jsxs26(Fragment6, {
4322
+ children: /* @__PURE__ */ jsxs27(Fragment7, {
4110
4323
  children: [
4111
- /* @__PURE__ */ jsx42(ConditionIcon, {
4324
+ /* @__PURE__ */ jsx43(ConditionIcon, {
4112
4325
  "aria-hidden": "true",
4113
4326
  "data-slot": "weather-summary-icon",
4114
4327
  className: cn2("shrink-0 text-muted-foreground", isCompact ? "size-6" : "size-8")
4115
4328
  }),
4116
- /* @__PURE__ */ jsxs26("div", {
4329
+ /* @__PURE__ */ jsxs27("div", {
4117
4330
  className: cn2("flex min-w-0 flex-col gap-0.5", isCompact && "items-center"),
4118
4331
  children: [
4119
- /* @__PURE__ */ jsx42("div", {
4332
+ /* @__PURE__ */ jsx43("div", {
4120
4333
  className: "text-sm font-medium break-words",
4121
4334
  children: label
4122
4335
  }),
4123
- /* @__PURE__ */ jsx42("div", {
4336
+ /* @__PURE__ */ jsx43("div", {
4124
4337
  className: cn2("text-sm text-muted-foreground", isCompact && "sr-only"),
4125
4338
  children: conditionLabel
4126
4339
  }),
4127
- /* @__PURE__ */ jsxs26("div", {
4340
+ /* @__PURE__ */ jsxs27("div", {
4128
4341
  className: "flex flex-wrap items-baseline gap-x-2 text-sm tabular-nums",
4129
4342
  children: [
4130
- /* @__PURE__ */ jsxs26("span", {
4343
+ /* @__PURE__ */ jsxs27("span", {
4131
4344
  children: [
4132
- /* @__PURE__ */ jsx42("span", {
4345
+ /* @__PURE__ */ jsx43("span", {
4133
4346
  className: "sr-only",
4134
4347
  children: "High "
4135
4348
  }),
4136
- /* @__PURE__ */ jsx42("span", {
4349
+ /* @__PURE__ */ jsx43("span", {
4137
4350
  className: "font-medium",
4138
4351
  children: highText
4139
4352
  })
4140
4353
  ]
4141
4354
  }),
4142
- /* @__PURE__ */ jsxs26("span", {
4355
+ /* @__PURE__ */ jsxs27("span", {
4143
4356
  className: "text-muted-foreground",
4144
4357
  children: [
4145
- /* @__PURE__ */ jsx42("span", {
4358
+ /* @__PURE__ */ jsx43("span", {
4146
4359
  className: "sr-only",
4147
4360
  children: "Low "
4148
4361
  }),
@@ -4151,17 +4364,17 @@ function WeatherSummary2({
4151
4364
  })
4152
4365
  ]
4153
4366
  }),
4154
- probabilityText !== undefined && /* @__PURE__ */ jsxs26("div", {
4367
+ probabilityText !== undefined && /* @__PURE__ */ jsxs27("div", {
4155
4368
  className: "flex items-center gap-1 text-xs text-muted-foreground tabular-nums",
4156
4369
  children: [
4157
- /* @__PURE__ */ jsx42(DropletIcon, {
4370
+ /* @__PURE__ */ jsx43(DropletIcon, {
4158
4371
  "aria-hidden": "true",
4159
4372
  className: "size-3 shrink-0"
4160
4373
  }),
4161
- /* @__PURE__ */ jsxs26("span", {
4374
+ /* @__PURE__ */ jsxs27("span", {
4162
4375
  children: [
4163
4376
  probabilityText,
4164
- /* @__PURE__ */ jsx42("span", {
4377
+ /* @__PURE__ */ jsx43("span", {
4165
4378
  className: "sr-only",
4166
4379
  children: " chance of precipitation"
4167
4380
  })
@@ -4179,7 +4392,7 @@ function WeatherSummary2({
4179
4392
  });
4180
4393
  }
4181
4394
  // src/components/WeatherForecast.tsx
4182
- import { jsx as jsx43 } from "react/jsx-runtime";
4395
+ import { jsx as jsx44 } from "react/jsx-runtime";
4183
4396
  function WeatherForecast2({
4184
4397
  days,
4185
4398
  label,
@@ -4190,23 +4403,23 @@ function WeatherForecast2({
4190
4403
  className,
4191
4404
  ...props
4192
4405
  }) {
4193
- return /* @__PURE__ */ jsx43("ul", {
4406
+ return /* @__PURE__ */ jsx44("ul", {
4194
4407
  "aria-label": label,
4195
4408
  "data-slot": "weather-forecast",
4196
4409
  "data-density": density,
4197
4410
  className: cn2("grid min-w-0 gap-panel-sm", variant === "strip" && "grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]", className),
4198
4411
  ...props,
4199
- children: days.map(({ id, ...day }) => /* @__PURE__ */ jsx43(WeatherSummary2, {
4412
+ children: days.map(({ id, ...day }) => /* @__PURE__ */ jsx44(WeatherSummary2, {
4200
4413
  ...day,
4201
4414
  unit,
4202
4415
  locale,
4203
4416
  variant: variant === "strip" ? "compact" : "default",
4204
- render: /* @__PURE__ */ jsx43("li", {})
4417
+ render: /* @__PURE__ */ jsx44("li", {})
4205
4418
  }, id))
4206
4419
  });
4207
4420
  }
4208
4421
  // src/components/PageHeader.tsx
4209
- import { jsx as jsx44, jsxs as jsxs27 } from "react/jsx-runtime";
4422
+ import { jsx as jsx45, jsxs as jsxs28 } from "react/jsx-runtime";
4210
4423
  function PageHeader2({
4211
4424
  title,
4212
4425
  titleSize = "xl",
@@ -4217,37 +4430,37 @@ function PageHeader2({
4217
4430
  actions,
4218
4431
  density
4219
4432
  }) {
4220
- return /* @__PURE__ */ jsxs27("header", {
4433
+ return /* @__PURE__ */ jsxs28("header", {
4221
4434
  "data-density": density,
4222
4435
  "data-slot": "page-header",
4223
4436
  "data-scroll": "none",
4224
4437
  className: "flex min-w-0 flex-col gap-field-gap",
4225
4438
  children: [
4226
4439
  breadcrumbs,
4227
- /* @__PURE__ */ jsxs27("div", {
4440
+ /* @__PURE__ */ jsxs28("div", {
4228
4441
  className: "flex min-w-0 flex-wrap items-start justify-between gap-panel",
4229
4442
  children: [
4230
- /* @__PURE__ */ jsxs27("div", {
4443
+ /* @__PURE__ */ jsxs28("div", {
4231
4444
  className: "min-w-0",
4232
4445
  children: [
4233
- eyebrow != null && /* @__PURE__ */ jsx44("div", {
4446
+ eyebrow != null && /* @__PURE__ */ jsx45("div", {
4234
4447
  className: "mb-2 text-xs font-medium tracking-widest text-muted-foreground",
4235
4448
  children: eyebrow
4236
4449
  }),
4237
- /* @__PURE__ */ jsx44(Heading2, {
4450
+ /* @__PURE__ */ jsx45(Heading2, {
4238
4451
  level: 1,
4239
4452
  size: titleSize,
4240
4453
  ...headingProps,
4241
4454
  className: cn2("outline-none", headingProps?.className),
4242
4455
  children: title
4243
4456
  }),
4244
- description && /* @__PURE__ */ jsx44("div", {
4457
+ description && /* @__PURE__ */ jsx45("div", {
4245
4458
  className: "mt-1 text-sm text-muted-foreground",
4246
4459
  children: description
4247
4460
  })
4248
4461
  ]
4249
4462
  }),
4250
- actions && /* @__PURE__ */ jsx44("div", {
4463
+ actions && /* @__PURE__ */ jsx45("div", {
4251
4464
  className: "flex min-w-0 max-w-full flex-wrap items-center gap-control-gap wrap-anywhere",
4252
4465
  children: actions
4253
4466
  })
@@ -4257,7 +4470,7 @@ function PageHeader2({
4257
4470
  });
4258
4471
  }
4259
4472
  // src/components/PanelHeader.tsx
4260
- import { jsx as jsx45, jsxs as jsxs28, Fragment as Fragment7 } from "react/jsx-runtime";
4473
+ import { jsx as jsx46, jsxs as jsxs29, Fragment as Fragment8 } from "react/jsx-runtime";
4261
4474
  function PanelHeader2({
4262
4475
  title,
4263
4476
  count,
@@ -4270,27 +4483,27 @@ function PanelHeader2({
4270
4483
  ...props
4271
4484
  }) {
4272
4485
  const Heading = headingLevel === 2 ? "h2" : "h3";
4273
- return /* @__PURE__ */ jsxs28("header", {
4486
+ return /* @__PURE__ */ jsxs29("header", {
4274
4487
  "data-density": density,
4275
4488
  "data-slot": "panel-header",
4276
4489
  "data-scroll": "none",
4277
4490
  className: cn2("flex min-w-0 flex-col gap-panel-sm", className),
4278
4491
  ...props,
4279
4492
  children: [
4280
- /* @__PURE__ */ jsxs28("div", {
4493
+ /* @__PURE__ */ jsxs29("div", {
4281
4494
  "data-slot": "panel-header-title-row",
4282
4495
  className: "flex min-h-control min-w-0 items-center justify-between gap-2",
4283
4496
  children: [
4284
- /* @__PURE__ */ jsxs28(Heading, {
4497
+ /* @__PURE__ */ jsxs29(Heading, {
4285
4498
  "data-slot": "panel-header-title",
4286
4499
  ...headingProps,
4287
4500
  className: cn2("min-w-0 truncate text-lg font-semibold text-foreground outline-none", headingProps?.className),
4288
4501
  children: [
4289
4502
  title,
4290
- count != null && /* @__PURE__ */ jsxs28(Fragment7, {
4503
+ count != null && /* @__PURE__ */ jsxs29(Fragment8, {
4291
4504
  children: [
4292
4505
  " ",
4293
- /* @__PURE__ */ jsx45("span", {
4506
+ /* @__PURE__ */ jsx46("span", {
4294
4507
  "data-slot": "panel-header-count",
4295
4508
  className: "ms-1 font-normal text-muted-foreground tabular-nums",
4296
4509
  children: count
@@ -4299,14 +4512,14 @@ function PanelHeader2({
4299
4512
  })
4300
4513
  ]
4301
4514
  }),
4302
- actions != null && /* @__PURE__ */ jsx45("div", {
4515
+ actions != null && /* @__PURE__ */ jsx46("div", {
4303
4516
  "data-slot": "panel-header-actions",
4304
4517
  className: "flex shrink-0 items-center gap-1",
4305
4518
  children: actions
4306
4519
  })
4307
4520
  ]
4308
4521
  }),
4309
- toolbar != null && /* @__PURE__ */ jsx45("div", {
4522
+ toolbar != null && /* @__PURE__ */ jsx46("div", {
4310
4523
  "data-slot": "panel-header-toolbar",
4311
4524
  className: "flex min-w-0 flex-wrap items-center gap-control-gap",
4312
4525
  children: toolbar
@@ -4315,7 +4528,7 @@ function PanelHeader2({
4315
4528
  });
4316
4529
  }
4317
4530
  // src/components/PageIntro.tsx
4318
- import { jsx as jsx46, jsxs as jsxs29 } from "react/jsx-runtime";
4531
+ import { jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
4319
4532
  function PageIntro2({
4320
4533
  title,
4321
4534
  titleSize = "2xl",
@@ -4327,47 +4540,47 @@ function PageIntro2({
4327
4540
  highlights,
4328
4541
  density
4329
4542
  }) {
4330
- return /* @__PURE__ */ jsx46("header", {
4543
+ return /* @__PURE__ */ jsx47("header", {
4331
4544
  "data-density": density,
4332
4545
  "data-slot": "page-intro",
4333
4546
  "data-scroll": "none",
4334
4547
  className: "@container/page-intro min-w-0",
4335
- children: /* @__PURE__ */ jsxs29(Card2, {
4548
+ children: /* @__PURE__ */ jsxs30(Card2, {
4336
4549
  variant: "hero",
4337
4550
  className: "gap-0 py-0",
4338
4551
  children: [
4339
- /* @__PURE__ */ jsx46("div", {
4552
+ /* @__PURE__ */ jsx47("div", {
4340
4553
  "aria-hidden": "true",
4341
4554
  "data-slot": "page-intro-wash",
4342
4555
  className: "pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(ellipse_90%_140%_at_100%_0%,color-mix(in_oklab,var(--primary)_16%,transparent),transparent_65%)]"
4343
4556
  }),
4344
- /* @__PURE__ */ jsxs29("div", {
4557
+ /* @__PURE__ */ jsxs30("div", {
4345
4558
  className: "flex min-w-0 flex-col gap-panel p-(--card-spacing) @2xl/page-intro:flex-row @2xl/page-intro:items-start @2xl/page-intro:justify-between",
4346
4559
  children: [
4347
- /* @__PURE__ */ jsxs29("div", {
4560
+ /* @__PURE__ */ jsxs30("div", {
4348
4561
  className: "flex min-w-0 gap-panel",
4349
4562
  children: [
4350
- icon != null && /* @__PURE__ */ jsx46("div", {
4563
+ icon != null && /* @__PURE__ */ jsx47("div", {
4351
4564
  "aria-hidden": "true",
4352
4565
  "data-slot": "page-intro-icon",
4353
4566
  className: "flex size-12 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-6",
4354
4567
  children: icon
4355
4568
  }),
4356
- /* @__PURE__ */ jsxs29("div", {
4569
+ /* @__PURE__ */ jsxs30("div", {
4357
4570
  className: "min-w-0",
4358
4571
  children: [
4359
- eyebrow != null && /* @__PURE__ */ jsx46("div", {
4572
+ eyebrow != null && /* @__PURE__ */ jsx47("div", {
4360
4573
  className: "mb-1 text-xs font-medium tracking-widest text-muted-foreground",
4361
4574
  children: eyebrow
4362
4575
  }),
4363
- /* @__PURE__ */ jsx46(Heading2, {
4576
+ /* @__PURE__ */ jsx47(Heading2, {
4364
4577
  level: 1,
4365
4578
  size: titleSize,
4366
4579
  ...headingProps,
4367
4580
  className: cn2("outline-none", headingProps?.className),
4368
4581
  children: title
4369
4582
  }),
4370
- /* @__PURE__ */ jsx46("div", {
4583
+ /* @__PURE__ */ jsx47("div", {
4371
4584
  className: "mt-2 max-w-prose text-base text-pretty text-muted-foreground",
4372
4585
  children: description
4373
4586
  })
@@ -4375,33 +4588,33 @@ function PageIntro2({
4375
4588
  })
4376
4589
  ]
4377
4590
  }),
4378
- actions != null && /* @__PURE__ */ jsx46("div", {
4591
+ actions != null && /* @__PURE__ */ jsx47("div", {
4379
4592
  className: "flex min-w-0 max-w-full shrink-0 flex-wrap items-center gap-control-gap wrap-anywhere",
4380
4593
  children: actions
4381
4594
  })
4382
4595
  ]
4383
4596
  }),
4384
- highlights != null && highlights.length > 0 && /* @__PURE__ */ jsx46("ul", {
4597
+ highlights != null && highlights.length > 0 && /* @__PURE__ */ jsx47("ul", {
4385
4598
  "aria-label": `What you can do in ${title}`,
4386
4599
  "data-slot": "page-intro-highlights",
4387
4600
  className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,13rem),1fr))] gap-panel border-t border-border p-(--card-spacing)",
4388
- children: highlights.map((highlight) => /* @__PURE__ */ jsxs29("li", {
4601
+ children: highlights.map((highlight) => /* @__PURE__ */ jsxs30("li", {
4389
4602
  "data-slot": "page-intro-highlight",
4390
4603
  className: "flex min-w-0 gap-2",
4391
4604
  children: [
4392
- highlight.icon != null && /* @__PURE__ */ jsx46("span", {
4605
+ highlight.icon != null && /* @__PURE__ */ jsx47("span", {
4393
4606
  "aria-hidden": "true",
4394
4607
  className: "mt-0.5 shrink-0 text-primary [&_svg]:size-4",
4395
4608
  children: highlight.icon
4396
4609
  }),
4397
- /* @__PURE__ */ jsxs29("div", {
4610
+ /* @__PURE__ */ jsxs30("div", {
4398
4611
  className: "min-w-0",
4399
4612
  children: [
4400
- /* @__PURE__ */ jsx46("div", {
4613
+ /* @__PURE__ */ jsx47("div", {
4401
4614
  className: "text-sm font-medium text-foreground",
4402
4615
  children: highlight.title
4403
4616
  }),
4404
- /* @__PURE__ */ jsx46("div", {
4617
+ /* @__PURE__ */ jsx47("div", {
4405
4618
  className: "mt-0.5 text-sm text-muted-foreground",
4406
4619
  children: highlight.description
4407
4620
  })
@@ -4415,7 +4628,7 @@ function PageIntro2({
4415
4628
  });
4416
4629
  }
4417
4630
  // src/components/WorkspaceSwitcher.tsx
4418
- import { jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
4631
+ import { jsx as jsx48, jsxs as jsxs31 } from "react/jsx-runtime";
4419
4632
  function WorkspaceSwitcher2({
4420
4633
  workspaces,
4421
4634
  value,
@@ -4425,7 +4638,7 @@ function WorkspaceSwitcher2({
4425
4638
  label = "Workspace",
4426
4639
  density
4427
4640
  }) {
4428
- return /* @__PURE__ */ jsxs30(Select2, {
4641
+ return /* @__PURE__ */ jsxs31(Select2, {
4429
4642
  items: workspaces,
4430
4643
  value,
4431
4644
  defaultValue: defaultValue ?? workspaces[0]?.value,
@@ -4435,15 +4648,15 @@ function WorkspaceSwitcher2({
4435
4648
  },
4436
4649
  disabled,
4437
4650
  children: [
4438
- /* @__PURE__ */ jsx47(SelectTrigger2, {
4651
+ /* @__PURE__ */ jsx48(SelectTrigger2, {
4439
4652
  "aria-label": label,
4440
4653
  density,
4441
- children: /* @__PURE__ */ jsx47(SelectValue2, {})
4654
+ children: /* @__PURE__ */ jsx48(SelectValue2, {})
4442
4655
  }),
4443
- /* @__PURE__ */ jsx47(SelectContent2, {
4656
+ /* @__PURE__ */ jsx48(SelectContent2, {
4444
4657
  density,
4445
- children: /* @__PURE__ */ jsx47(SelectGroup2, {
4446
- children: workspaces.map((workspace) => /* @__PURE__ */ jsx47(SelectItem2, {
4658
+ children: /* @__PURE__ */ jsx48(SelectGroup2, {
4659
+ children: workspaces.map((workspace) => /* @__PURE__ */ jsx48(SelectItem2, {
4447
4660
  value: workspace.value,
4448
4661
  children: workspace.label
4449
4662
  }, workspace.value))
@@ -4453,52 +4666,52 @@ function WorkspaceSwitcher2({
4453
4666
  });
4454
4667
  }
4455
4668
  // src/components/AccountMenu.tsx
4456
- import { jsx as jsx48, jsxs as jsxs31 } from "react/jsx-runtime";
4669
+ import { jsx as jsx49, jsxs as jsxs32 } from "react/jsx-runtime";
4457
4670
  function AccountMenu2({ name, email, image, onAction, density }) {
4458
- return /* @__PURE__ */ jsxs31(DropdownMenu2, {
4671
+ return /* @__PURE__ */ jsxs32(DropdownMenu2, {
4459
4672
  children: [
4460
- /* @__PURE__ */ jsxs31(DropdownMenuTrigger2, {
4461
- render: /* @__PURE__ */ jsx48(Button2, {
4673
+ /* @__PURE__ */ jsxs32(DropdownMenuTrigger2, {
4674
+ render: /* @__PURE__ */ jsx49(Button2, {
4462
4675
  variant: "ghost",
4463
4676
  density
4464
4677
  }),
4465
4678
  "aria-label": `Account menu for ${name}`,
4466
4679
  children: [
4467
- /* @__PURE__ */ jsxs31(Avatar2, {
4680
+ /* @__PURE__ */ jsxs32(Avatar2, {
4468
4681
  className: "size-control",
4469
4682
  children: [
4470
- /* @__PURE__ */ jsx48(AvatarImage2, {
4683
+ /* @__PURE__ */ jsx49(AvatarImage2, {
4471
4684
  src: image,
4472
4685
  alt: ""
4473
4686
  }),
4474
- /* @__PURE__ */ jsx48(AvatarFallback2, {
4687
+ /* @__PURE__ */ jsx49(AvatarFallback2, {
4475
4688
  children: name.slice(0, 2).toUpperCase()
4476
4689
  })
4477
4690
  ]
4478
4691
  }),
4479
- /* @__PURE__ */ jsx48("span", {
4692
+ /* @__PURE__ */ jsx49("span", {
4480
4693
  children: name
4481
4694
  })
4482
4695
  ]
4483
4696
  }),
4484
- /* @__PURE__ */ jsx48(MenuPopup, {
4697
+ /* @__PURE__ */ jsx49(MenuPopup, {
4485
4698
  density,
4486
4699
  align: "end",
4487
- children: /* @__PURE__ */ jsxs31(MenuGroup2, {
4700
+ children: /* @__PURE__ */ jsxs32(MenuGroup2, {
4488
4701
  children: [
4489
- /* @__PURE__ */ jsx48(MenuLabel2, {
4702
+ /* @__PURE__ */ jsx49(MenuLabel2, {
4490
4703
  children: email ?? name
4491
4704
  }),
4492
- /* @__PURE__ */ jsx48(MenuItem2, {
4705
+ /* @__PURE__ */ jsx49(MenuItem2, {
4493
4706
  onClick: () => onAction("profile"),
4494
4707
  children: "Profile"
4495
4708
  }),
4496
- /* @__PURE__ */ jsx48(MenuItem2, {
4709
+ /* @__PURE__ */ jsx49(MenuItem2, {
4497
4710
  onClick: () => onAction("settings"),
4498
4711
  children: "Settings"
4499
4712
  }),
4500
- /* @__PURE__ */ jsx48(MenuSeparator2, {}),
4501
- /* @__PURE__ */ jsx48(MenuItem2, {
4713
+ /* @__PURE__ */ jsx49(MenuSeparator2, {}),
4714
+ /* @__PURE__ */ jsx49(MenuItem2, {
4502
4715
  onClick: () => onAction("sign-out"),
4503
4716
  children: "Sign out"
4504
4717
  })
@@ -4509,7 +4722,7 @@ function AccountMenu2({ name, email, image, onAction, density }) {
4509
4722
  });
4510
4723
  }
4511
4724
  // src/components/StatCard.tsx
4512
- import { jsx as jsx49, jsxs as jsxs32 } from "react/jsx-runtime";
4725
+ import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
4513
4726
  function StatCard2({
4514
4727
  label,
4515
4728
  value,
@@ -4520,48 +4733,48 @@ function StatCard2({
4520
4733
  loading = false,
4521
4734
  density
4522
4735
  }) {
4523
- return /* @__PURE__ */ jsxs32(Card2, {
4736
+ return /* @__PURE__ */ jsxs33(Card2, {
4524
4737
  density,
4525
4738
  "aria-label": label,
4526
4739
  "aria-busy": loading,
4527
4740
  children: [
4528
- /* @__PURE__ */ jsxs32(CardHeader2, {
4741
+ /* @__PURE__ */ jsxs33(CardHeader2, {
4529
4742
  children: [
4530
- /* @__PURE__ */ jsx49(CardTitle2, {
4743
+ /* @__PURE__ */ jsx50(CardTitle2, {
4531
4744
  children: label
4532
4745
  }),
4533
- description && /* @__PURE__ */ jsx49(CardDescription2, {
4746
+ description && /* @__PURE__ */ jsx50(CardDescription2, {
4534
4747
  children: description
4535
4748
  })
4536
4749
  ]
4537
4750
  }),
4538
- /* @__PURE__ */ jsx49(CardContent2, {
4539
- children: /* @__PURE__ */ jsxs32("div", {
4751
+ /* @__PURE__ */ jsx50(CardContent2, {
4752
+ children: /* @__PURE__ */ jsxs33("div", {
4540
4753
  className: "flex flex-wrap items-center justify-between gap-control-gap",
4541
4754
  children: [
4542
- loading ? /* @__PURE__ */ jsx49(Skeleton2, {
4755
+ loading ? /* @__PURE__ */ jsx50(Skeleton2, {
4543
4756
  className: "h-8 w-24",
4544
4757
  "aria-label": `Loading ${label}`
4545
- }) : /* @__PURE__ */ jsx49("div", {
4758
+ }) : /* @__PURE__ */ jsx50("div", {
4546
4759
  className: "text-2xl font-semibold tabular-nums",
4547
4760
  children: value
4548
4761
  }),
4549
- change && /* @__PURE__ */ jsx49(Badge2, {
4762
+ change && /* @__PURE__ */ jsx50(Badge2, {
4550
4763
  variant: changeIntent === "positive" ? "success" : changeIntent === "negative" ? "destructive" : "secondary",
4551
4764
  children: change
4552
4765
  })
4553
4766
  ]
4554
4767
  })
4555
4768
  }),
4556
- children && /* @__PURE__ */ jsx49(CardFooter2, {
4769
+ children && /* @__PURE__ */ jsx50(CardFooter2, {
4557
4770
  children
4558
4771
  })
4559
4772
  ]
4560
4773
  });
4561
4774
  }
4562
4775
  // src/components/AuthForm.tsx
4563
- import { useId as useId8, useState as useState7 } from "react";
4564
- import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
4776
+ import { useId as useId9, useState as useState9 } from "react";
4777
+ import { jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
4565
4778
  function AuthForm2({
4566
4779
  mode = "sign-in",
4567
4780
  onSubmit,
@@ -4570,9 +4783,9 @@ function AuthForm2({
4570
4783
  disabled = false,
4571
4784
  density
4572
4785
  }) {
4573
- const id = useId8();
4574
- const [pending, setPending] = useState7(false);
4575
- const [error, setError] = useState7("");
4786
+ const id = useId9();
4787
+ const [pending, setPending] = useState9(false);
4788
+ const [error, setError] = useState9("");
4576
4789
  const title = mode === "sign-up" ? "Create an account" : mode === "reset-password" ? "Reset your password" : "Sign in";
4577
4790
  async function submit(event) {
4578
4791
  event.preventDefault();
@@ -4591,33 +4804,33 @@ function AuthForm2({
4591
4804
  setPending(false);
4592
4805
  }
4593
4806
  }
4594
- return /* @__PURE__ */ jsxs33(Card2, {
4807
+ return /* @__PURE__ */ jsxs34(Card2, {
4595
4808
  density,
4596
4809
  children: [
4597
- /* @__PURE__ */ jsxs33(CardHeader2, {
4810
+ /* @__PURE__ */ jsxs34(CardHeader2, {
4598
4811
  children: [
4599
- /* @__PURE__ */ jsx50(CardTitle2, {
4812
+ /* @__PURE__ */ jsx51(CardTitle2, {
4600
4813
  children: title
4601
4814
  }),
4602
- /* @__PURE__ */ jsx50(CardDescription2, {
4815
+ /* @__PURE__ */ jsx51(CardDescription2, {
4603
4816
  children: mode === "reset-password" ? "Enter your email to request a password reset." : "Enter your details to continue."
4604
4817
  })
4605
4818
  ]
4606
4819
  }),
4607
- /* @__PURE__ */ jsx50(CardContent2, {
4608
- children: /* @__PURE__ */ jsx50("form", {
4820
+ /* @__PURE__ */ jsx51(CardContent2, {
4821
+ children: /* @__PURE__ */ jsx51("form", {
4609
4822
  onSubmit: submit,
4610
4823
  "aria-label": title,
4611
4824
  "aria-busy": pending,
4612
- children: /* @__PURE__ */ jsxs33(FieldGroup2, {
4825
+ children: /* @__PURE__ */ jsxs34(FieldGroup2, {
4613
4826
  children: [
4614
- mode === "sign-up" && /* @__PURE__ */ jsxs33(Field2, {
4827
+ mode === "sign-up" && /* @__PURE__ */ jsxs34(Field2, {
4615
4828
  children: [
4616
- /* @__PURE__ */ jsx50(FieldLabel2, {
4829
+ /* @__PURE__ */ jsx51(FieldLabel2, {
4617
4830
  htmlFor: id + "-name",
4618
4831
  children: "Name"
4619
4832
  }),
4620
- /* @__PURE__ */ jsx50(Input2, {
4833
+ /* @__PURE__ */ jsx51(Input2, {
4621
4834
  id: id + "-name",
4622
4835
  name: "name",
4623
4836
  autoComplete: "name",
@@ -4626,13 +4839,13 @@ function AuthForm2({
4626
4839
  })
4627
4840
  ]
4628
4841
  }),
4629
- /* @__PURE__ */ jsxs33(Field2, {
4842
+ /* @__PURE__ */ jsxs34(Field2, {
4630
4843
  children: [
4631
- /* @__PURE__ */ jsx50(FieldLabel2, {
4844
+ /* @__PURE__ */ jsx51(FieldLabel2, {
4632
4845
  htmlFor: id + "-email",
4633
4846
  children: "Email"
4634
4847
  }),
4635
- /* @__PURE__ */ jsx50(Input2, {
4848
+ /* @__PURE__ */ jsx51(Input2, {
4636
4849
  id: id + "-email",
4637
4850
  name: "email",
4638
4851
  type: "email",
@@ -4642,13 +4855,13 @@ function AuthForm2({
4642
4855
  })
4643
4856
  ]
4644
4857
  }),
4645
- mode !== "reset-password" && /* @__PURE__ */ jsxs33(Field2, {
4858
+ mode !== "reset-password" && /* @__PURE__ */ jsxs34(Field2, {
4646
4859
  children: [
4647
- /* @__PURE__ */ jsx50(FieldLabel2, {
4860
+ /* @__PURE__ */ jsx51(FieldLabel2, {
4648
4861
  htmlFor: id + "-password",
4649
4862
  children: "Password"
4650
4863
  }),
4651
- /* @__PURE__ */ jsx50(Input2, {
4864
+ /* @__PURE__ */ jsx51(Input2, {
4652
4865
  id: id + "-password",
4653
4866
  name: "password",
4654
4867
  type: "password",
@@ -4657,27 +4870,27 @@ function AuthForm2({
4657
4870
  required: true,
4658
4871
  disabled: disabled || pending
4659
4872
  }),
4660
- mode === "sign-up" && /* @__PURE__ */ jsx50(FieldDescription2, {
4873
+ mode === "sign-up" && /* @__PURE__ */ jsx51(FieldDescription2, {
4661
4874
  children: "Use at least eight characters."
4662
4875
  })
4663
4876
  ]
4664
4877
  }),
4665
- error && /* @__PURE__ */ jsxs33(Alert2, {
4878
+ error && /* @__PURE__ */ jsxs34(Alert2, {
4666
4879
  variant: "destructive",
4667
4880
  children: [
4668
- /* @__PURE__ */ jsx50(AlertTitle2, {
4881
+ /* @__PURE__ */ jsx51(AlertTitle2, {
4669
4882
  children: "Request failed"
4670
4883
  }),
4671
- /* @__PURE__ */ jsx50(AlertDescription2, {
4884
+ /* @__PURE__ */ jsx51(AlertDescription2, {
4672
4885
  children: error
4673
4886
  })
4674
4887
  ]
4675
4888
  }),
4676
- /* @__PURE__ */ jsxs33(Button2, {
4889
+ /* @__PURE__ */ jsxs34(Button2, {
4677
4890
  type: "submit",
4678
4891
  disabled: disabled || pending,
4679
4892
  children: [
4680
- pending && /* @__PURE__ */ jsx50(Spinner2, {
4893
+ pending && /* @__PURE__ */ jsx51(Spinner2, {
4681
4894
  "data-icon": "inline-start"
4682
4895
  }),
4683
4896
  mode === "reset-password" ? "Send reset link" : title
@@ -4688,14 +4901,14 @@ function AuthForm2({
4688
4901
  })
4689
4902
  })
4690
4903
  }),
4691
- footer && /* @__PURE__ */ jsx50(CardFooter2, {
4904
+ footer && /* @__PURE__ */ jsx51(CardFooter2, {
4692
4905
  children: footer
4693
4906
  })
4694
4907
  ]
4695
4908
  });
4696
4909
  }
4697
4910
  // src/components/SettingsSection.tsx
4698
- import { jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
4911
+ import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
4699
4912
  function SettingsSection2({
4700
4913
  title,
4701
4914
  description,
@@ -4708,48 +4921,48 @@ function SettingsSection2({
4708
4921
  destructive = false,
4709
4922
  density
4710
4923
  }) {
4711
- return /* @__PURE__ */ jsx51("form", {
4924
+ return /* @__PURE__ */ jsx52("form", {
4712
4925
  "aria-label": title,
4713
4926
  onSubmit,
4714
4927
  "aria-busy": pending,
4715
- children: /* @__PURE__ */ jsxs34(Card2, {
4928
+ children: /* @__PURE__ */ jsxs35(Card2, {
4716
4929
  density,
4717
4930
  children: [
4718
- /* @__PURE__ */ jsxs34(CardHeader2, {
4931
+ /* @__PURE__ */ jsxs35(CardHeader2, {
4719
4932
  children: [
4720
- /* @__PURE__ */ jsx51(CardTitle2, {
4933
+ /* @__PURE__ */ jsx52(CardTitle2, {
4721
4934
  children: title
4722
4935
  }),
4723
- description && /* @__PURE__ */ jsx51(CardDescription2, {
4936
+ description && /* @__PURE__ */ jsx52(CardDescription2, {
4724
4937
  children: description
4725
4938
  })
4726
4939
  ]
4727
4940
  }),
4728
- /* @__PURE__ */ jsx51(CardContent2, {
4729
- children: /* @__PURE__ */ jsxs34("fieldset", {
4941
+ /* @__PURE__ */ jsx52(CardContent2, {
4942
+ children: /* @__PURE__ */ jsxs35("fieldset", {
4730
4943
  disabled: disabled || pending,
4731
4944
  className: "min-w-0 border-0 p-0",
4732
4945
  children: [
4733
- /* @__PURE__ */ jsx51("legend", {
4946
+ /* @__PURE__ */ jsx52("legend", {
4734
4947
  className: "sr-only",
4735
4948
  children: title
4736
4949
  }),
4737
- /* @__PURE__ */ jsx51(FieldGroup2, {
4950
+ /* @__PURE__ */ jsx52(FieldGroup2, {
4738
4951
  children
4739
4952
  })
4740
4953
  ]
4741
4954
  })
4742
4955
  }),
4743
- /* @__PURE__ */ jsxs34(CardFooter2, {
4956
+ /* @__PURE__ */ jsxs35(CardFooter2, {
4744
4957
  className: "flex flex-wrap items-center justify-between gap-control-gap",
4745
4958
  children: [
4746
4959
  footer,
4747
- /* @__PURE__ */ jsxs34(Button2, {
4960
+ /* @__PURE__ */ jsxs35(Button2, {
4748
4961
  type: "submit",
4749
4962
  variant: destructive ? "destructive" : "default",
4750
4963
  disabled: disabled || pending,
4751
4964
  children: [
4752
- pending && /* @__PURE__ */ jsx51(Spinner2, {
4965
+ pending && /* @__PURE__ */ jsx52(Spinner2, {
4753
4966
  "data-icon": "inline-start"
4754
4967
  }),
4755
4968
  saveLabel
@@ -4762,7 +4975,7 @@ function SettingsSection2({
4762
4975
  });
4763
4976
  }
4764
4977
  // src/components/TagInput.tsx
4765
- import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
4978
+ import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
4766
4979
  function TagInput2({
4767
4980
  label,
4768
4981
  options,
@@ -4775,7 +4988,7 @@ function TagInput2({
4775
4988
  density
4776
4989
  }) {
4777
4990
  const anchor = useComboboxAnchor2();
4778
- return /* @__PURE__ */ jsxs35(Combobox2, {
4991
+ return /* @__PURE__ */ jsxs36(Combobox2, {
4779
4992
  items: options,
4780
4993
  multiple: true,
4781
4994
  value,
@@ -4784,33 +4997,33 @@ function TagInput2({
4784
4997
  disabled,
4785
4998
  name,
4786
4999
  children: [
4787
- /* @__PURE__ */ jsxs35(ComboboxChips2, {
5000
+ /* @__PURE__ */ jsxs36(ComboboxChips2, {
4788
5001
  ref: anchor,
4789
5002
  density,
4790
5003
  children: [
4791
- /* @__PURE__ */ jsx52(ComboboxValue2, {
4792
- children: (values) => values.map((item) => /* @__PURE__ */ jsx52(ComboboxChip2, {
5004
+ /* @__PURE__ */ jsx53(ComboboxValue2, {
5005
+ children: (values) => values.map((item) => /* @__PURE__ */ jsx53(ComboboxChip2, {
4793
5006
  removeLabel: `Remove ${item}`,
4794
5007
  children: item
4795
5008
  }, item))
4796
5009
  }),
4797
- /* @__PURE__ */ jsx52(ComboboxChipsInput2, {
5010
+ /* @__PURE__ */ jsx53(ComboboxChipsInput2, {
4798
5011
  "aria-label": label,
4799
5012
  placeholder
4800
5013
  })
4801
5014
  ]
4802
5015
  }),
4803
- /* @__PURE__ */ jsxs35(ComboboxContent2, {
5016
+ /* @__PURE__ */ jsxs36(ComboboxContent2, {
4804
5017
  anchor,
4805
5018
  density,
4806
5019
  children: [
4807
- /* @__PURE__ */ jsx52(ComboboxEmpty2, {
5020
+ /* @__PURE__ */ jsx53(ComboboxEmpty2, {
4808
5021
  children: "No matching tags."
4809
5022
  }),
4810
- /* @__PURE__ */ jsx52(ComboboxList2, {
4811
- children: /* @__PURE__ */ jsx52(ComboboxGroup2, {
4812
- children: /* @__PURE__ */ jsx52(ComboboxCollection2, {
4813
- children: (item) => /* @__PURE__ */ jsx52(ComboboxItem2, {
5023
+ /* @__PURE__ */ jsx53(ComboboxList2, {
5024
+ children: /* @__PURE__ */ jsx53(ComboboxGroup2, {
5025
+ children: /* @__PURE__ */ jsx53(ComboboxCollection2, {
5026
+ children: (item) => /* @__PURE__ */ jsx53(ComboboxItem2, {
4814
5027
  value: item,
4815
5028
  children: item
4816
5029
  }, item)
@@ -4823,9 +5036,9 @@ function TagInput2({
4823
5036
  });
4824
5037
  }
4825
5038
  // src/components/FilterChip.tsx
4826
- import { useId as useId9 } from "react";
5039
+ import { useId as useId10 } from "react";
4827
5040
  import { XIcon as XIcon2 } from "lucide-react";
4828
- import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
5041
+ import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
4829
5042
  function FilterChip2({
4830
5043
  density,
4831
5044
  className,
@@ -4835,8 +5048,8 @@ function FilterChip2({
4835
5048
  onKeyDown,
4836
5049
  ...props
4837
5050
  }) {
4838
- const labelId = useId9();
4839
- return /* @__PURE__ */ jsxs36("div", {
5051
+ const labelId = useId10();
5052
+ return /* @__PURE__ */ jsxs37("div", {
4840
5053
  role: "group",
4841
5054
  "aria-labelledby": labelId,
4842
5055
  "data-density": density,
@@ -4852,13 +5065,13 @@ function FilterChip2({
4852
5065
  },
4853
5066
  ...props,
4854
5067
  children: [
4855
- /* @__PURE__ */ jsx53("span", {
5068
+ /* @__PURE__ */ jsx54("span", {
4856
5069
  id: labelId,
4857
5070
  "data-slot": "filter-chip-label",
4858
5071
  className: "min-w-0 py-1 break-words",
4859
5072
  children
4860
5073
  }),
4861
- /* @__PURE__ */ jsxs36(Button2, {
5074
+ /* @__PURE__ */ jsxs37(Button2, {
4862
5075
  type: "button",
4863
5076
  variant: "ghost",
4864
5077
  size: "xs",
@@ -4866,7 +5079,7 @@ function FilterChip2({
4866
5079
  onClick: onClear,
4867
5080
  children: [
4868
5081
  clearLabel,
4869
- /* @__PURE__ */ jsx53(XIcon2, {
5082
+ /* @__PURE__ */ jsx54(XIcon2, {
4870
5083
  "aria-hidden": "true",
4871
5084
  "data-icon": "inline-end"
4872
5085
  })
@@ -4876,7 +5089,7 @@ function FilterChip2({
4876
5089
  });
4877
5090
  }
4878
5091
  // src/components/FilterBar.tsx
4879
- import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
5092
+ import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
4880
5093
  function FilterBar2({
4881
5094
  label,
4882
5095
  search,
@@ -4887,26 +5100,26 @@ function FilterBar2({
4887
5100
  disabled,
4888
5101
  density
4889
5102
  }) {
4890
- return /* @__PURE__ */ jsxs37("fieldset", {
5103
+ return /* @__PURE__ */ jsxs38("fieldset", {
4891
5104
  "aria-label": label,
4892
5105
  disabled,
4893
5106
  "data-density": density,
4894
5107
  className: "flex min-w-0 flex-wrap items-center gap-2",
4895
5108
  children: [
4896
- /* @__PURE__ */ jsx54(Input2, {
5109
+ /* @__PURE__ */ jsx55(Input2, {
4897
5110
  "aria-label": `Search ${label}`,
4898
5111
  type: "search",
4899
5112
  value: search,
4900
5113
  onChange: (event) => onSearchChange(event.target.value),
4901
5114
  className: "min-w-40 flex-1"
4902
5115
  }),
4903
- filters.map((filter) => /* @__PURE__ */ jsx54(OptionSelect2, {
5116
+ filters.map((filter) => /* @__PURE__ */ jsx55(OptionSelect2, {
4904
5117
  "aria-label": filter.label,
4905
5118
  value: value[filter.id] ?? "",
4906
5119
  onValueChange: (next) => onValueChange({ ...value, [filter.id]: next }),
4907
5120
  options: [{ value: "", label: filter.allLabel ?? `All ${filter.label.toLowerCase()}` }, ...filter.options]
4908
5121
  }, filter.id)),
4909
- /* @__PURE__ */ jsx54(Button2, {
5122
+ /* @__PURE__ */ jsx55(Button2, {
4910
5123
  type: "button",
4911
5124
  variant: "ghost",
4912
5125
  disabled: !search && !Object.values(value).some(Boolean),
@@ -4920,7 +5133,7 @@ function FilterBar2({
4920
5133
  });
4921
5134
  }
4922
5135
  // src/components/BarList.tsx
4923
- import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
5136
+ import { jsx as jsx56, jsxs as jsxs39 } from "react/jsx-runtime";
4924
5137
  function BarList2({
4925
5138
  label,
4926
5139
  items,
@@ -4929,14 +5142,14 @@ function BarList2({
4929
5142
  density
4930
5143
  }) {
4931
5144
  const max = Math.max(1, ...items.map((item) => item.value));
4932
- return /* @__PURE__ */ jsxs38("section", {
5145
+ return /* @__PURE__ */ jsxs39("section", {
4933
5146
  "aria-label": label,
4934
5147
  "data-density": density,
4935
5148
  children: [
4936
- /* @__PURE__ */ jsx55("ul", {
5149
+ /* @__PURE__ */ jsx56("ul", {
4937
5150
  className: "grid gap-3",
4938
- children: items.map((item) => /* @__PURE__ */ jsx55("li", {
4939
- children: /* @__PURE__ */ jsxs38(Meter2, {
5151
+ children: items.map((item) => /* @__PURE__ */ jsx56("li", {
5152
+ children: /* @__PURE__ */ jsxs39(Meter2, {
4940
5153
  min: 0,
4941
5154
  max,
4942
5155
  value: item.value,
@@ -4944,11 +5157,11 @@ function BarList2({
4944
5157
  format: { maximumFractionDigits: 2 },
4945
5158
  className: "gap-y-1",
4946
5159
  children: [
4947
- /* @__PURE__ */ jsxs38("div", {
5160
+ /* @__PURE__ */ jsxs39("div", {
4948
5161
  className: "flex w-full items-center justify-between gap-3 text-sm",
4949
5162
  children: [
4950
- /* @__PURE__ */ jsx55(MeterLabel2, {
4951
- children: onItemSelect ? /* @__PURE__ */ jsx55(Button2, {
5163
+ /* @__PURE__ */ jsx56(MeterLabel2, {
5164
+ children: onItemSelect ? /* @__PURE__ */ jsx56(Button2, {
4952
5165
  type: "button",
4953
5166
  variant: "link",
4954
5167
  className: "h-auto p-0",
@@ -4956,19 +5169,19 @@ function BarList2({
4956
5169
  children: item.label
4957
5170
  }) : item.label
4958
5171
  }),
4959
- /* @__PURE__ */ jsx55(MeterValue2, {
5172
+ /* @__PURE__ */ jsx56(MeterValue2, {
4960
5173
  children: () => valueFormatter(item.value)
4961
5174
  })
4962
5175
  ]
4963
5176
  }),
4964
- /* @__PURE__ */ jsx55(MeterTrack2, {
4965
- children: /* @__PURE__ */ jsx55(MeterIndicator2, {})
5177
+ /* @__PURE__ */ jsx56(MeterTrack2, {
5178
+ children: /* @__PURE__ */ jsx56(MeterIndicator2, {})
4966
5179
  })
4967
5180
  ]
4968
5181
  })
4969
5182
  }, item.id))
4970
5183
  }),
4971
- !items.length && /* @__PURE__ */ jsx55("p", {
5184
+ !items.length && /* @__PURE__ */ jsx56("p", {
4972
5185
  role: "status",
4973
5186
  className: "text-sm text-muted-foreground",
4974
5187
  children: "No data available."
@@ -4977,23 +5190,23 @@ function BarList2({
4977
5190
  });
4978
5191
  }
4979
5192
  // src/components/StatusTracker.tsx
4980
- import { jsx as jsx56, jsxs as jsxs39 } from "react/jsx-runtime";
5193
+ import { jsx as jsx57, jsxs as jsxs40 } from "react/jsx-runtime";
4981
5194
  var statusClasses = { success: "bg-success", warning: "bg-warning", error: "bg-destructive", unknown: "bg-muted" };
4982
5195
  function StatusTracker2({ label, items, onItemSelect, density }) {
4983
- return /* @__PURE__ */ jsx56(TooltipProvider2, {
4984
- children: /* @__PURE__ */ jsx56("div", {
5196
+ return /* @__PURE__ */ jsx57(TooltipProvider2, {
5197
+ children: /* @__PURE__ */ jsx57("div", {
4985
5198
  role: "group",
4986
5199
  "aria-label": label,
4987
5200
  "data-density": density,
4988
5201
  className: "flex min-w-0 gap-1",
4989
- children: items.map((item) => /* @__PURE__ */ jsxs39(Tooltip2, {
5202
+ children: items.map((item) => /* @__PURE__ */ jsxs40(Tooltip2, {
4990
5203
  children: [
4991
- /* @__PURE__ */ jsx56(TooltipTrigger2, {
5204
+ /* @__PURE__ */ jsx57(TooltipTrigger2, {
4992
5205
  "aria-label": `${item.label}: ${item.status}`,
4993
5206
  onClick: () => onItemSelect?.(item),
4994
5207
  className: cn2("h-8 min-w-2 flex-1 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", statusClasses[item.status])
4995
5208
  }),
4996
- /* @__PURE__ */ jsxs39(TooltipContent2, {
5209
+ /* @__PURE__ */ jsxs40(TooltipContent2, {
4997
5210
  children: [
4998
5211
  item.label,
4999
5212
  ": ",
@@ -5006,7 +5219,7 @@ function StatusTracker2({ label, items, onItemSelect, density }) {
5006
5219
  });
5007
5220
  }
5008
5221
  // src/components/DashboardLayout.tsx
5009
- import { jsx as jsx57, jsxs as jsxs40 } from "react/jsx-runtime";
5222
+ import { jsx as jsx58, jsxs as jsxs41 } from "react/jsx-runtime";
5010
5223
  function DashboardLayout2({
5011
5224
  title,
5012
5225
  description,
@@ -5017,24 +5230,24 @@ function DashboardLayout2({
5017
5230
  footer,
5018
5231
  density
5019
5232
  }) {
5020
- return /* @__PURE__ */ jsxs40("div", {
5233
+ return /* @__PURE__ */ jsxs41("div", {
5021
5234
  "data-density": density,
5022
5235
  "data-scroll": "none",
5023
5236
  className: "grid min-w-0 gap-6",
5024
5237
  children: [
5025
- /* @__PURE__ */ jsx57(PageHeader2, {
5238
+ /* @__PURE__ */ jsx58(PageHeader2, {
5026
5239
  title,
5027
5240
  description,
5028
5241
  actions
5029
5242
  }),
5030
5243
  filters,
5031
- stats.length > 0 && /* @__PURE__ */ jsx57("div", {
5244
+ stats.length > 0 && /* @__PURE__ */ jsx58("div", {
5032
5245
  className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
5033
- children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx57(StatCard2, {
5246
+ children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx58(StatCard2, {
5034
5247
  ...stat
5035
5248
  }, id))
5036
5249
  }),
5037
- /* @__PURE__ */ jsx57("div", {
5250
+ /* @__PURE__ */ jsx58("div", {
5038
5251
  className: "grid min-w-0 gap-4",
5039
5252
  children
5040
5253
  }),
@@ -5043,18 +5256,18 @@ function DashboardLayout2({
5043
5256
  });
5044
5257
  }
5045
5258
  // src/components/BillingUsage.tsx
5046
- import { jsx as jsx58, jsxs as jsxs41 } from "react/jsx-runtime";
5259
+ import { jsx as jsx59, jsxs as jsxs42 } from "react/jsx-runtime";
5047
5260
  function BillingUsage2({ plan, price, period, metrics, onManage, pending, density }) {
5048
- return /* @__PURE__ */ jsxs41(Card2, {
5261
+ return /* @__PURE__ */ jsxs42(Card2, {
5049
5262
  density,
5050
5263
  "aria-label": "Billing and usage",
5051
5264
  children: [
5052
- /* @__PURE__ */ jsxs41(CardHeader2, {
5265
+ /* @__PURE__ */ jsxs42(CardHeader2, {
5053
5266
  children: [
5054
- /* @__PURE__ */ jsx58(CardTitle2, {
5267
+ /* @__PURE__ */ jsx59(CardTitle2, {
5055
5268
  children: plan
5056
5269
  }),
5057
- /* @__PURE__ */ jsxs41(CardDescription2, {
5270
+ /* @__PURE__ */ jsxs42(CardDescription2, {
5058
5271
  children: [
5059
5272
  price,
5060
5273
  " · ",
@@ -5063,32 +5276,32 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
5063
5276
  })
5064
5277
  ]
5065
5278
  }),
5066
- /* @__PURE__ */ jsx58(CardContent2, {
5279
+ /* @__PURE__ */ jsx59(CardContent2, {
5067
5280
  className: "grid gap-4",
5068
- children: metrics.map((metric) => /* @__PURE__ */ jsxs41(Meter2, {
5281
+ children: metrics.map((metric) => /* @__PURE__ */ jsxs42(Meter2, {
5069
5282
  value: metric.used,
5070
5283
  max: metric.limit,
5071
5284
  "aria-label": metric.label,
5072
5285
  children: [
5073
- /* @__PURE__ */ jsxs41("div", {
5286
+ /* @__PURE__ */ jsxs42("div", {
5074
5287
  className: "mb-2 flex items-center justify-between gap-3 text-sm",
5075
5288
  children: [
5076
- /* @__PURE__ */ jsx58(MeterLabel2, {
5289
+ /* @__PURE__ */ jsx59(MeterLabel2, {
5077
5290
  children: metric.label
5078
5291
  }),
5079
- /* @__PURE__ */ jsx58(MeterValue2, {
5292
+ /* @__PURE__ */ jsx59(MeterValue2, {
5080
5293
  children: () => `${metric.used.toLocaleString()} / ${metric.limit.toLocaleString()}${metric.unit ? ` ${metric.unit}` : ""}`
5081
5294
  })
5082
5295
  ]
5083
5296
  }),
5084
- /* @__PURE__ */ jsx58(MeterTrack2, {
5085
- children: /* @__PURE__ */ jsx58(MeterIndicator2, {})
5297
+ /* @__PURE__ */ jsx59(MeterTrack2, {
5298
+ children: /* @__PURE__ */ jsx59(MeterIndicator2, {})
5086
5299
  })
5087
5300
  ]
5088
5301
  }, metric.id))
5089
5302
  }),
5090
- /* @__PURE__ */ jsx58(CardFooter2, {
5091
- children: /* @__PURE__ */ jsx58(Button2, {
5303
+ /* @__PURE__ */ jsx59(CardFooter2, {
5304
+ children: /* @__PURE__ */ jsx59(Button2, {
5092
5305
  type: "button",
5093
5306
  variant: "outline",
5094
5307
  onClick: onManage,
@@ -5099,4 +5312,4 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
5099
5312
  ]
5100
5313
  });
5101
5314
  }
5102
- export { ButtonLink2, ContextMenu2, ContextMenuPortal2, ContextMenuTrigger2, ContextMenuContent2, ActionsMenu2, ActionsMenuTrigger2, ActionsMenuContextTarget2, ActionsMenuContextContent2, FormDialog2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, OptionCardGroup2, OptionCard2, EmptyState3, PageMessage2, ActionBar2, ActionBarRow2, ErrorSummary2, ErrorSummaryItem2, Outline2, OutlineSection2, OutlineItem2, formatDataLabel2, DataViewer2, JsonViewer2, AlertDialog2, AlertDialogTrigger2, AlertDialogPortal2, AlertDialogOverlay2, AlertDialogContent2, AlertDialogHeader2, AlertDialogFooter2, AlertDialogMedia2, AlertDialogTitle2, AlertDialogDescription2, AlertDialogAction2, AlertDialogCancel2, DensityProvider2, collectLayoutViolations2, LayoutGuard2, ScrollGuard2, ThemeProvider2, AspectRatio2, Breadcrumb2, BreadcrumbList2, BreadcrumbItem2, BreadcrumbLink2, BreadcrumbPage2, BreadcrumbSeparator2, BreadcrumbEllipsis2, buttonGroupVariants2, ButtonGroup2, ButtonGroupText2, ButtonGroupSeparator2, DescriptionList2, DescriptionListItem2, DescriptionTerm2, DescriptionDetails2, ItemGroup2, ItemSeparator2, Item2, ItemMedia2, ItemContent2, ItemTitle2, ItemDescription2, ItemActions2, ItemHeader2, ItemFooter2, Pagination2, PaginationContent2, PaginationItem2, PaginationLink2, PaginationPrevious2, PaginationNext2, PaginationEllipsis2, Menubar2, MenubarMenu2, MenubarGroup2, MenubarPortal2, MenubarTrigger2, MenubarContent2, MenubarItem2, MenubarCheckboxItem2, MenubarRadioGroup2, MenubarRadioItem2, MenubarLabel2, MenubarSeparator2, MenubarShortcut2, MenubarSub2, MenubarSubTrigger2, MenubarSubContent2, NavigationMenu2, NavigationMenuList2, NavigationMenuItem2, navigationMenuTriggerStyle2, NavigationMenuTrigger2, NavigationMenuContent2, NavigationMenuPositioner2, NavigationMenuLink2, NavigationMenuIndicator2, ToastProvider2, ToastPortal2, ToastViewport2, Toast2, ToastContent2, ToastTitle2, ToastDescription2, ToastAction2, ToastClose2, ToastToaster2, createToastManager2, useToastManager2, markerVariants2, Marker2, MarkerIcon2, MarkerContent2, BubbleGroup2, Bubble2, BubbleContent2, BubbleReactions2, MessageGroup2, Message2, MessageAvatar2, MessageContent2, MessageHeader2, MessageFooter2, MessageThread2, MessageThreadSummary2, MessageThreadReplies2, Attachment2, AttachmentMedia2, AttachmentContent2, AttachmentTitle2, AttachmentDescription2, AttachmentActions2, AttachmentAction2, AttachmentTrigger2, AttachmentGroup2, InlineEdit2, StarRating2, ReviewList2, ChoiceTable2, ConfirmationDialog2, ImagePicker2, Meter2, MeterLabel2, MeterValue2, MeterTrack2, MeterIndicator2, ToolbarToggleChip2, Stepper2, StepperList2, StepperTrigger2, StepperIndicator2, StepperContent2, AppShell2, Stack2, Grid2, GridItem2, Container2, Text2, Heading2, quoteVariants2, Quote2, SkipLink2, WeatherSummary2, WeatherForecast2, PageHeader2, PanelHeader2, PageIntro2, WorkspaceSwitcher2, AccountMenu2, StatCard2, AuthForm2, SettingsSection2, TagInput2, FilterChip2, FilterBar2, BarList2, StatusTracker2, DashboardLayout2, BillingUsage2 };
5315
+ export { ButtonLink2, ContextMenu2, ContextMenuPortal2, ContextMenuTrigger2, ContextMenuContent2, ActionsMenu2, ActionsMenuTrigger2, ActionsMenuContextTarget2, ActionsMenuContextContent2, FormDialog2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, OptionCardGroup2, OptionCheckboxGroup2, OptionCard2, OptionCheckboxCard2, EmptyState3, PageMessage2, ActionBar2, ActionBarRow2, ErrorSummary2, ErrorSummaryItem2, Outline2, OutlineSection2, OutlineItem2, formatDataLabel2, DataViewer2, JsonViewer2, AlertDialog2, AlertDialogTrigger2, AlertDialogPortal2, AlertDialogOverlay2, AlertDialogContent2, AlertDialogHeader2, AlertDialogFooter2, AlertDialogMedia2, AlertDialogTitle2, AlertDialogDescription2, AlertDialogAction2, AlertDialogCancel2, DensityProvider2, collectLayoutViolations2, LayoutGuard2, ScrollGuard2, ThemeProvider2, AspectRatio2, Breadcrumb2, BreadcrumbList2, BreadcrumbItem2, BreadcrumbLink2, BreadcrumbPage2, BreadcrumbSeparator2, BreadcrumbEllipsis2, buttonGroupVariants2, ButtonGroup2, ButtonGroupText2, ButtonGroupSeparator2, DescriptionList2, DescriptionListItem2, DescriptionTerm2, DescriptionDetails2, ItemGroup2, ItemSeparator2, Item2, ItemMedia2, ItemContent2, ItemTitle2, ItemDescription2, ItemActions2, ItemHeader2, ItemFooter2, Pagination2, PaginationContent2, PaginationItem2, PaginationLink2, PaginationPrevious2, PaginationNext2, PaginationEllipsis2, Menubar2, MenubarMenu2, MenubarGroup2, MenubarPortal2, MenubarTrigger2, MenubarContent2, MenubarItem2, MenubarCheckboxItem2, MenubarRadioGroup2, MenubarRadioItem2, MenubarLabel2, MenubarSeparator2, MenubarShortcut2, MenubarSub2, MenubarSubTrigger2, MenubarSubContent2, NavigationMenu2, NavigationMenuList2, NavigationMenuItem2, navigationMenuTriggerStyle2, NavigationMenuTrigger2, NavigationMenuContent2, NavigationMenuPositioner2, NavigationMenuLink2, NavigationMenuIndicator2, ToastProvider2, ToastPortal2, ToastViewport2, Toast2, ToastContent2, ToastTitle2, ToastDescription2, ToastAction2, ToastClose2, ToastToaster2, createToastManager2, useToastManager2, markerVariants2, Marker2, MarkerIcon2, MarkerContent2, BubbleGroup2, Bubble2, BubbleContent2, BubbleReactions2, MessageGroup2, Message2, MessageAvatar2, MessageContent2, MessageHeader2, MessageFooter2, MessageThread2, MessageThreadSummary2, MessageThreadReplies2, Attachment2, AttachmentMedia2, AttachmentContent2, AttachmentTitle2, AttachmentDescription2, AttachmentActions2, AttachmentAction2, AttachmentTrigger2, AttachmentGroup2, InlineEdit2, StarRating2, ReviewList2, ChoiceTable2, ConfirmationDialog2, ImagePicker2, Meter2, MeterLabel2, MeterValue2, MeterTrack2, MeterIndicator2, ToolbarToggleChip2, Stepper2, StepperList2, StepperTrigger2, StepperIndicator2, StepperContent2, AppShell2, Stack2, Grid2, GridItem2, Container2, Text2, Heading2, quoteVariants2, Quote2, ReadMore2, SkipLink2, WeatherSummary2, WeatherForecast2, PageHeader2, PanelHeader2, PageIntro2, WorkspaceSwitcher2, AccountMenu2, StatCard2, AuthForm2, SettingsSection2, TagInput2, FilterChip2, FilterBar2, BarList2, StatusTracker2, DashboardLayout2, BillingUsage2 };