@alexgorbatchev/shadcn 0.0.124 → 0.0.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-bvzjbk43.js +48 -0
- package/dist/{chunk-xdher2cd.js → chunk-wk3xn989.js} +566 -276
- package/dist/components/DescriptionList.d.ts +16 -6
- package/dist/components/Heading.d.ts +1 -1
- package/dist/components/OptionCardGroup.d.ts +29 -5
- package/dist/components/PageHeader.d.ts +7 -2
- package/dist/components/PageIntro.d.ts +7 -2
- package/dist/components/Quote.d.ts +16 -0
- package/dist/components/ReadMore.d.ts +13 -0
- package/dist/components/SkipLink.d.ts +14 -0
- package/dist/components/StatusDot.d.ts +18 -0
- package/dist/components/json-render/index.js +2 -1
- package/dist/components/tree/index.js +6 -20
- package/dist/index.d.ts +10 -2
- package/dist/index.js +19 -1
- package/dist/prototype.js +1 -1
- package/dist/typeset.css +4 -1
- package/llms/components/data-display/DescriptionList.md +16 -0
- package/llms/components/data-display/Heading.md +18 -2
- package/llms/components/data-display/Quote.md +90 -0
- package/llms/components/data-display/StatusDot.md +80 -0
- package/llms/components/forms/OptionCardGroup.md +48 -1
- package/llms/components/layout/PageHeader.md +8 -0
- package/llms/components/layout/PageIntro.md +8 -0
- package/llms/components/layout/ReadMore.md +60 -0
- package/llms/components/navigation/SkipLink.md +63 -0
- package/llms.txt +5 -1
- package/package.json +1 -1
|
@@ -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 {
|
|
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(
|
|
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
|
|
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
|
-
|
|
505
|
-
|
|
506
|
-
className,
|
|
507
|
-
...props
|
|
547
|
+
reason,
|
|
548
|
+
image
|
|
508
549
|
}) {
|
|
509
|
-
const
|
|
510
|
-
|
|
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:
|
|
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:
|
|
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__ */
|
|
552
|
-
id:
|
|
587
|
+
(description !== undefined || reason !== undefined) && /* @__PURE__ */ jsxs4("span", {
|
|
588
|
+
id: ids.description,
|
|
589
|
+
ref: fold.ref,
|
|
553
590
|
"data-slot": "option-card-description",
|
|
554
|
-
|
|
555
|
-
|
|
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
|
|
754
|
-
import { jsx as jsx12, jsxs as jsxs10, Fragment as
|
|
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(
|
|
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(
|
|
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(
|
|
1010
|
+
return /* @__PURE__ */ jsx12(Fragment4, {
|
|
846
1011
|
children: String(value)
|
|
847
1012
|
});
|
|
848
1013
|
}
|
|
@@ -1568,28 +1733,40 @@ function ButtonGroupSeparator2({
|
|
|
1568
1733
|
});
|
|
1569
1734
|
}
|
|
1570
1735
|
// src/components/DescriptionList.tsx
|
|
1736
|
+
import { createContext as createContext2, useContext } from "react";
|
|
1571
1737
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1738
|
+
var DescriptionListOrientationContext = createContext2("vertical");
|
|
1739
|
+
function DescriptionList2({
|
|
1740
|
+
density,
|
|
1741
|
+
orientation = "vertical",
|
|
1742
|
+
className,
|
|
1743
|
+
...props
|
|
1744
|
+
}) {
|
|
1745
|
+
return /* @__PURE__ */ jsx20(DescriptionListOrientationContext.Provider, {
|
|
1746
|
+
value: orientation,
|
|
1747
|
+
children: /* @__PURE__ */ jsx20("dl", {
|
|
1748
|
+
"data-density": density,
|
|
1749
|
+
"data-slot": "description-list",
|
|
1750
|
+
"data-orientation": orientation,
|
|
1751
|
+
className: cn2("flex w-full min-w-0 flex-col text-sm", orientation === "horizontal" ? "gap-2" : "gap-panel", className),
|
|
1752
|
+
...props
|
|
1753
|
+
})
|
|
1578
1754
|
});
|
|
1579
1755
|
}
|
|
1580
1756
|
function DescriptionListItem2({ density, className, ...props }) {
|
|
1757
|
+
const orientation = useContext(DescriptionListOrientationContext);
|
|
1581
1758
|
return /* @__PURE__ */ jsx20("div", {
|
|
1582
1759
|
"data-density": density,
|
|
1583
1760
|
"data-slot": "description-list-item",
|
|
1584
|
-
className: cn2("flex min-w-0 flex-col gap-1", className),
|
|
1761
|
+
className: cn2("flex min-w-0", orientation === "horizontal" ? "flex-wrap items-center justify-between gap-x-4 gap-y-1" : "flex-col gap-1", className),
|
|
1585
1762
|
...props
|
|
1586
1763
|
});
|
|
1587
1764
|
}
|
|
1588
|
-
function DescriptionTerm2({ density, className, ...props }) {
|
|
1765
|
+
function DescriptionTerm2({ density, tone = "muted", className, ...props }) {
|
|
1589
1766
|
return /* @__PURE__ */ jsx20("dt", {
|
|
1590
1767
|
"data-density": density,
|
|
1591
1768
|
"data-slot": "description-term",
|
|
1592
|
-
className: cn2("min-w-0 font-medium break-words text-muted-foreground", className),
|
|
1769
|
+
className: cn2("min-w-0 font-medium break-words", tone === "muted" ? "text-muted-foreground" : "text-foreground", className),
|
|
1593
1770
|
...props
|
|
1594
1771
|
});
|
|
1595
1772
|
}
|
|
@@ -1839,7 +2016,7 @@ function PaginationEllipsis2({ density, className, ...props }) {
|
|
|
1839
2016
|
});
|
|
1840
2017
|
}
|
|
1841
2018
|
// src/components/Menubar.tsx
|
|
1842
|
-
import { CheckIcon } from "lucide-react";
|
|
2019
|
+
import { CheckIcon as CheckIcon2 } from "lucide-react";
|
|
1843
2020
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
1844
2021
|
import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
|
|
1845
2022
|
import { jsx as jsx23, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
@@ -1941,7 +2118,7 @@ function MenubarCheckboxItem2({
|
|
|
1941
2118
|
/* @__PURE__ */ jsx23("span", {
|
|
1942
2119
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
1943
2120
|
children: /* @__PURE__ */ jsx23(MenuPrimitive.CheckboxItemIndicator, {
|
|
1944
|
-
children: /* @__PURE__ */ jsx23(
|
|
2121
|
+
children: /* @__PURE__ */ jsx23(CheckIcon2, {})
|
|
1945
2122
|
})
|
|
1946
2123
|
}),
|
|
1947
2124
|
children
|
|
@@ -1965,7 +2142,7 @@ function MenubarRadioItem2({ density, className, children, inset, ...props }) {
|
|
|
1965
2142
|
/* @__PURE__ */ jsx23("span", {
|
|
1966
2143
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
1967
2144
|
children: /* @__PURE__ */ jsx23(MenuPrimitive.RadioItemIndicator, {
|
|
1968
|
-
children: /* @__PURE__ */ jsx23(
|
|
2145
|
+
children: /* @__PURE__ */ jsx23(CheckIcon2, {})
|
|
1969
2146
|
})
|
|
1970
2147
|
}),
|
|
1971
2148
|
children
|
|
@@ -2153,7 +2330,7 @@ function NavigationMenuIndicator2({
|
|
|
2153
2330
|
// src/components/Toast.tsx
|
|
2154
2331
|
import { Toast as ToastPrimitive } from "@base-ui/react/toast";
|
|
2155
2332
|
import { CircleCheckIcon, InfoIcon, TriangleAlertIcon, OctagonXIcon, LoaderCircleIcon, XIcon } from "lucide-react";
|
|
2156
|
-
import { jsx as jsx25, jsxs as jsxs17, Fragment as
|
|
2333
|
+
import { jsx as jsx25, jsxs as jsxs17, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
2157
2334
|
function ToastProvider2(props) {
|
|
2158
2335
|
return /* @__PURE__ */ jsx25(ToastPrimitive.Provider, {
|
|
2159
2336
|
...props
|
|
@@ -2284,7 +2461,7 @@ function ToastIcon({ type }) {
|
|
|
2284
2461
|
}
|
|
2285
2462
|
function ToastList() {
|
|
2286
2463
|
const { toasts } = ToastPrimitive.useToastManager();
|
|
2287
|
-
return /* @__PURE__ */ jsx25(
|
|
2464
|
+
return /* @__PURE__ */ jsx25(Fragment5, {
|
|
2288
2465
|
children: toasts.map((toastItem) => /* @__PURE__ */ jsx25(Toast2, {
|
|
2289
2466
|
toast: toastItem,
|
|
2290
2467
|
children: /* @__PURE__ */ jsxs17(ToastContent2, {
|
|
@@ -2440,12 +2617,12 @@ function BubbleReactions2({
|
|
|
2440
2617
|
});
|
|
2441
2618
|
}
|
|
2442
2619
|
// src/components/Message.tsx
|
|
2443
|
-
import { useContext, 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";
|
|
2444
2621
|
import { useRender as useRender8 } from "@base-ui/react/use-render";
|
|
2445
2622
|
|
|
2446
2623
|
// src/message/MessageContext.ts
|
|
2447
|
-
import { createContext as
|
|
2448
|
-
var MessageContext =
|
|
2624
|
+
import { createContext as createContext3 } from "react";
|
|
2625
|
+
var MessageContext = createContext3(null);
|
|
2449
2626
|
|
|
2450
2627
|
// src/components/Message.tsx
|
|
2451
2628
|
import { ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
|
|
@@ -2459,7 +2636,7 @@ function MessageGroup2({ density, className, ...props }) {
|
|
|
2459
2636
|
});
|
|
2460
2637
|
}
|
|
2461
2638
|
function Message2({ density, className, align = "start", style, ...props }) {
|
|
2462
|
-
const [footerOffset, setFooterOffset] =
|
|
2639
|
+
const [footerOffset, setFooterOffset] = useState2(0);
|
|
2463
2640
|
const context = useMemo2(() => ({ setFooterOffset }), []);
|
|
2464
2641
|
const messageStyle = { ...style, "--message-footer-offset": `${footerOffset}px` };
|
|
2465
2642
|
return /* @__PURE__ */ jsx28(MessageContext.Provider, {
|
|
@@ -2499,9 +2676,9 @@ function MessageHeader2({ density, className, ...props }) {
|
|
|
2499
2676
|
});
|
|
2500
2677
|
}
|
|
2501
2678
|
function MessageFooter2({ density, className, ...props }) {
|
|
2502
|
-
const context =
|
|
2503
|
-
const footerRef =
|
|
2504
|
-
|
|
2679
|
+
const context = useContext2(MessageContext);
|
|
2680
|
+
const footerRef = useRef2(null);
|
|
2681
|
+
useLayoutEffect2(() => {
|
|
2505
2682
|
const footer = footerRef.current;
|
|
2506
2683
|
const content = footer?.parentElement;
|
|
2507
2684
|
if (!context || !footer || !content)
|
|
@@ -2685,7 +2862,7 @@ function AttachmentGroup2({ density, className, ...props }) {
|
|
|
2685
2862
|
});
|
|
2686
2863
|
}
|
|
2687
2864
|
// src/components/InlineEdit.tsx
|
|
2688
|
-
import { useEffect as useEffect2, useId as useId5, useRef as
|
|
2865
|
+
import { useEffect as useEffect2, useId as useId5, useRef as useRef3, useState as useState3 } from "react";
|
|
2689
2866
|
import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2690
2867
|
function InlineEdit2({
|
|
2691
2868
|
analytics,
|
|
@@ -2703,12 +2880,12 @@ function InlineEdit2({
|
|
|
2703
2880
|
const track = useAnalytics2("InlineEdit", analytics);
|
|
2704
2881
|
const triggerId = useId5();
|
|
2705
2882
|
const errorId = `${triggerId}-error`;
|
|
2706
|
-
const input =
|
|
2707
|
-
const isFinished =
|
|
2708
|
-
const shouldCancel =
|
|
2709
|
-
const [isSaving, setSaving] =
|
|
2710
|
-
const [error, setError] =
|
|
2711
|
-
const [isErrorOpen, setErrorOpen] =
|
|
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);
|
|
2712
2889
|
useEffect2(() => {
|
|
2713
2890
|
input.current?.focus();
|
|
2714
2891
|
if (shouldSelectOnMount)
|
|
@@ -2806,7 +2983,7 @@ function InlineEdit2({
|
|
|
2806
2983
|
});
|
|
2807
2984
|
}
|
|
2808
2985
|
// src/components/StarRating.tsx
|
|
2809
|
-
import { useState as
|
|
2986
|
+
import { useState as useState4 } from "react";
|
|
2810
2987
|
import { Radio } from "@base-ui/react/radio";
|
|
2811
2988
|
import { StarIcon, CircleOffIcon } from "lucide-react";
|
|
2812
2989
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
@@ -2827,7 +3004,7 @@ function StarRating2({
|
|
|
2827
3004
|
onValueChange
|
|
2828
3005
|
}) {
|
|
2829
3006
|
const density = useDensity(densityProp);
|
|
2830
|
-
const [moved, setMoved] =
|
|
3007
|
+
const [moved, setMoved] = useState4(null);
|
|
2831
3008
|
const isConfirm = commit === "confirm";
|
|
2832
3009
|
const draft = moved?.from === value ? moved.star : null;
|
|
2833
3010
|
const setDraft = (star) => setMoved(star === null ? null : { from: value, star });
|
|
@@ -2885,7 +3062,7 @@ function StarRating2({
|
|
|
2885
3062
|
});
|
|
2886
3063
|
}
|
|
2887
3064
|
// src/components/ReviewList.tsx
|
|
2888
|
-
import { useRef as
|
|
3065
|
+
import { useRef as useRef4, useState as useState5 } from "react";
|
|
2889
3066
|
import { ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
|
|
2890
3067
|
import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2891
3068
|
var TOGGLE_KEYS = new Set(["x", "X"]);
|
|
@@ -2896,9 +3073,9 @@ function isTextEntry(target) {
|
|
|
2896
3073
|
return target instanceof HTMLElement && (target.isContentEditable || target.matches("input:not([type='checkbox']), textarea, select"));
|
|
2897
3074
|
}
|
|
2898
3075
|
function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
2899
|
-
const [cursor, setCursor] =
|
|
2900
|
-
const [anchorId, setAnchorId] =
|
|
2901
|
-
const cellsRef =
|
|
3076
|
+
const [cursor, setCursor] = useState5({ row: 0, cell: 0 });
|
|
3077
|
+
const [anchorId, setAnchorId] = useState5();
|
|
3078
|
+
const cellsRef = useRef4(new Map);
|
|
2902
3079
|
const rowIndex = Math.min(cursor.row, Math.max(0, rows.length - 1));
|
|
2903
3080
|
const cellCount = (row) => 2 + (row?.cells?.length ?? 0);
|
|
2904
3081
|
const focusCell = (row, cell) => {
|
|
@@ -3062,7 +3239,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
3062
3239
|
// src/components/ChoiceTable.tsx
|
|
3063
3240
|
import {
|
|
3064
3241
|
useId as useId6,
|
|
3065
|
-
useRef as
|
|
3242
|
+
useRef as useRef5
|
|
3066
3243
|
} from "react";
|
|
3067
3244
|
import { jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3068
3245
|
function isModified(event) {
|
|
@@ -3078,7 +3255,7 @@ function ChoiceTable2({
|
|
|
3078
3255
|
ref
|
|
3079
3256
|
}) {
|
|
3080
3257
|
const baseId = useId6();
|
|
3081
|
-
const rowsRef =
|
|
3258
|
+
const rowsRef = useRef5(new Map);
|
|
3082
3259
|
const chosenIndex = rows.findIndex((row) => row.id === value);
|
|
3083
3260
|
const rowId = (id) => `${baseId}-${id}`;
|
|
3084
3261
|
const template = {
|
|
@@ -3176,7 +3353,7 @@ function ChoiceTable2({
|
|
|
3176
3353
|
});
|
|
3177
3354
|
}
|
|
3178
3355
|
// src/components/ConfirmationDialog.tsx
|
|
3179
|
-
import { useState as
|
|
3356
|
+
import { useState as useState6 } from "react";
|
|
3180
3357
|
import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3181
3358
|
function ConfirmationDialog2({
|
|
3182
3359
|
open,
|
|
@@ -3187,8 +3364,8 @@ function ConfirmationDialog2({
|
|
|
3187
3364
|
onConfirm,
|
|
3188
3365
|
renderError
|
|
3189
3366
|
}) {
|
|
3190
|
-
const [isPending, setPending] =
|
|
3191
|
-
const [error, setError] =
|
|
3367
|
+
const [isPending, setPending] = useState6(false);
|
|
3368
|
+
const [error, setError] = useState6(null);
|
|
3192
3369
|
return /* @__PURE__ */ jsx34(AlertDialog2, {
|
|
3193
3370
|
open,
|
|
3194
3371
|
onOpenChange: (next, details) => {
|
|
@@ -3249,13 +3426,13 @@ function ConfirmationDialog2({
|
|
|
3249
3426
|
});
|
|
3250
3427
|
}
|
|
3251
3428
|
// src/components/ImagePicker.tsx
|
|
3252
|
-
import { useRef as
|
|
3429
|
+
import { useRef as useRef6 } from "react";
|
|
3253
3430
|
import { ImageIcon, UploadIcon } from "lucide-react";
|
|
3254
3431
|
|
|
3255
3432
|
// src/hooks/useObjectURL.ts
|
|
3256
|
-
import { useEffect as useEffect3, useState as
|
|
3433
|
+
import { useEffect as useEffect3, useState as useState7 } from "react";
|
|
3257
3434
|
function useObjectURL(file) {
|
|
3258
|
-
const [url, setURL] =
|
|
3435
|
+
const [url, setURL] = useState7();
|
|
3259
3436
|
useEffect3(() => {
|
|
3260
3437
|
if (!file) {
|
|
3261
3438
|
setURL(undefined);
|
|
@@ -3280,7 +3457,7 @@ function ImagePicker2({
|
|
|
3280
3457
|
onClear
|
|
3281
3458
|
}) {
|
|
3282
3459
|
const track = useAnalytics2("ImagePicker", analytics);
|
|
3283
|
-
const input =
|
|
3460
|
+
const input = useRef6(null);
|
|
3284
3461
|
const preview = useObjectURL(file);
|
|
3285
3462
|
const image = file === null ? undefined : preview ?? src;
|
|
3286
3463
|
return /* @__PURE__ */ jsxs23("figure", {
|
|
@@ -3396,8 +3573,8 @@ function MeterIndicator2({
|
|
|
3396
3573
|
// src/components/ToolbarToggleChip.tsx
|
|
3397
3574
|
import { useId as useId7 } from "react";
|
|
3398
3575
|
import { Toolbar as ToolbarPrimitive } from "@base-ui/react/toolbar";
|
|
3399
|
-
import { CheckIcon as
|
|
3400
|
-
import { jsx as jsx37, jsxs as jsxs24, Fragment as
|
|
3576
|
+
import { CheckIcon as CheckIcon3 } from "lucide-react";
|
|
3577
|
+
import { jsx as jsx37, jsxs as jsxs24, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
3401
3578
|
function pressedLabel(pressed) {
|
|
3402
3579
|
if (pressed === "mixed")
|
|
3403
3580
|
return "mixed";
|
|
@@ -3453,7 +3630,7 @@ function ToolbarToggleChip2({
|
|
|
3453
3630
|
trackedChange(pressed !== true);
|
|
3454
3631
|
},
|
|
3455
3632
|
children: [
|
|
3456
|
-
pressed === true && !swatch && /* @__PURE__ */ jsx37(
|
|
3633
|
+
pressed === true && !swatch && /* @__PURE__ */ jsx37(CheckIcon3, {
|
|
3457
3634
|
"aria-hidden": "true",
|
|
3458
3635
|
"data-slot": "toolbar-toggle-chip-check",
|
|
3459
3636
|
className: "size-3.5 shrink-0"
|
|
@@ -3483,7 +3660,7 @@ function ToolbarToggleChip2({
|
|
|
3483
3660
|
})
|
|
3484
3661
|
]
|
|
3485
3662
|
});
|
|
3486
|
-
return /* @__PURE__ */ jsxs24(
|
|
3663
|
+
return /* @__PURE__ */ jsxs24(Fragment6, {
|
|
3487
3664
|
children: [
|
|
3488
3665
|
disabledReason && /* @__PURE__ */ jsx37("span", {
|
|
3489
3666
|
id: reasonId,
|
|
@@ -3512,7 +3689,7 @@ function ToolbarToggleChip2({
|
|
|
3512
3689
|
}
|
|
3513
3690
|
// src/components/Stepper.tsx
|
|
3514
3691
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
3515
|
-
import { CheckIcon as
|
|
3692
|
+
import { CheckIcon as CheckIcon4 } from "lucide-react";
|
|
3516
3693
|
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3517
3694
|
function Stepper2({ density, className, ...props }) {
|
|
3518
3695
|
return /* @__PURE__ */ jsx38(TabsPrimitive.Root, {
|
|
@@ -3551,7 +3728,7 @@ function StepperIndicator2({ completed = false, children, className, ...props })
|
|
|
3551
3728
|
"data-completed": completed || undefined,
|
|
3552
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),
|
|
3553
3730
|
...props,
|
|
3554
|
-
children: completed ? /* @__PURE__ */ jsx38(
|
|
3731
|
+
children: completed ? /* @__PURE__ */ jsx38(CheckIcon4, {}) : children
|
|
3555
3732
|
});
|
|
3556
3733
|
}
|
|
3557
3734
|
function StepperContent2({ density, className, ...props }) {
|
|
@@ -3976,7 +4153,9 @@ var SIZE_CLASSES2 = {
|
|
|
3976
4153
|
sm: "text-sm",
|
|
3977
4154
|
base: "text-base",
|
|
3978
4155
|
lg: "text-lg",
|
|
3979
|
-
xl: "text-xl"
|
|
4156
|
+
xl: "text-xl",
|
|
4157
|
+
"2xl": "text-2xl tracking-tight",
|
|
4158
|
+
"3xl": "text-3xl tracking-tight"
|
|
3980
4159
|
};
|
|
3981
4160
|
function Heading2({ level, size, truncate = false, density, className, render, ...props }) {
|
|
3982
4161
|
return useRender14({
|
|
@@ -3988,6 +4167,92 @@ function Heading2({ level, size, truncate = false, density, className, render, .
|
|
|
3988
4167
|
state: { slot: "heading", level, density }
|
|
3989
4168
|
});
|
|
3990
4169
|
}
|
|
4170
|
+
// src/components/Quote.tsx
|
|
4171
|
+
import { cva as cva7 } from "class-variance-authority";
|
|
4172
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
4173
|
+
var quoteVariants2 = cva7("block min-w-0 border-s-2 border-border break-words text-muted-foreground", {
|
|
4174
|
+
variants: {
|
|
4175
|
+
size: {
|
|
4176
|
+
default: "ps-3 text-sm",
|
|
4177
|
+
compact: "ps-2 text-xs"
|
|
4178
|
+
},
|
|
4179
|
+
clamp: {
|
|
4180
|
+
true: "line-clamp-2",
|
|
4181
|
+
false: ""
|
|
4182
|
+
}
|
|
4183
|
+
},
|
|
4184
|
+
defaultVariants: { size: "default", clamp: false }
|
|
4185
|
+
});
|
|
4186
|
+
function Quote2({ size, clamp, density, className, ...props }) {
|
|
4187
|
+
return /* @__PURE__ */ jsx40("blockquote", {
|
|
4188
|
+
"data-density": density,
|
|
4189
|
+
"data-slot": "quote",
|
|
4190
|
+
"data-size": size ?? "default",
|
|
4191
|
+
className: cn2(quoteVariants2({ size, clamp }), className),
|
|
4192
|
+
...props
|
|
4193
|
+
});
|
|
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
|
+
}
|
|
4243
|
+
// src/components/SkipLink.tsx
|
|
4244
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4245
|
+
function SkipLink2({ targetId, className, children = "Skip to content", ...props }) {
|
|
4246
|
+
return /* @__PURE__ */ jsx42(ButtonLink2, {
|
|
4247
|
+
"data-slot": "skip-link",
|
|
4248
|
+
variant: "outline",
|
|
4249
|
+
size: "sm",
|
|
4250
|
+
href: `#${targetId}`,
|
|
4251
|
+
className: cn2("fixed start-2 top-2 z-50 not-focus-visible:-translate-y-[calc(100%+1rem)] motion-safe:transition-transform", className),
|
|
4252
|
+
...props,
|
|
4253
|
+
children
|
|
4254
|
+
});
|
|
4255
|
+
}
|
|
3991
4256
|
// src/components/WeatherSummary.tsx
|
|
3992
4257
|
import { mergeProps as mergeProps14 } from "@base-ui/react/merge-props";
|
|
3993
4258
|
import { useRender as useRender15 } from "@base-ui/react/use-render";
|
|
@@ -4002,7 +4267,7 @@ import {
|
|
|
4002
4267
|
DropletIcon,
|
|
4003
4268
|
SunIcon
|
|
4004
4269
|
} from "lucide-react";
|
|
4005
|
-
import { jsx as
|
|
4270
|
+
import { jsx as jsx43, jsxs as jsxs27, Fragment as Fragment7 } from "react/jsx-runtime";
|
|
4006
4271
|
var CONDITION_ICONS = {
|
|
4007
4272
|
clear: SunIcon,
|
|
4008
4273
|
"partly-cloudy": CloudSunIcon,
|
|
@@ -4054,43 +4319,43 @@ function WeatherSummary2({
|
|
|
4054
4319
|
defaultTagName: "div",
|
|
4055
4320
|
props: mergeProps14({
|
|
4056
4321
|
className: cn2("flex min-w-0 text-foreground", isCompact ? "flex-col items-center gap-1 text-center" : "items-center gap-panel-sm", className),
|
|
4057
|
-
children: /* @__PURE__ */
|
|
4322
|
+
children: /* @__PURE__ */ jsxs27(Fragment7, {
|
|
4058
4323
|
children: [
|
|
4059
|
-
/* @__PURE__ */
|
|
4324
|
+
/* @__PURE__ */ jsx43(ConditionIcon, {
|
|
4060
4325
|
"aria-hidden": "true",
|
|
4061
4326
|
"data-slot": "weather-summary-icon",
|
|
4062
4327
|
className: cn2("shrink-0 text-muted-foreground", isCompact ? "size-6" : "size-8")
|
|
4063
4328
|
}),
|
|
4064
|
-
/* @__PURE__ */
|
|
4329
|
+
/* @__PURE__ */ jsxs27("div", {
|
|
4065
4330
|
className: cn2("flex min-w-0 flex-col gap-0.5", isCompact && "items-center"),
|
|
4066
4331
|
children: [
|
|
4067
|
-
/* @__PURE__ */
|
|
4332
|
+
/* @__PURE__ */ jsx43("div", {
|
|
4068
4333
|
className: "text-sm font-medium break-words",
|
|
4069
4334
|
children: label
|
|
4070
4335
|
}),
|
|
4071
|
-
/* @__PURE__ */
|
|
4336
|
+
/* @__PURE__ */ jsx43("div", {
|
|
4072
4337
|
className: cn2("text-sm text-muted-foreground", isCompact && "sr-only"),
|
|
4073
4338
|
children: conditionLabel
|
|
4074
4339
|
}),
|
|
4075
|
-
/* @__PURE__ */
|
|
4340
|
+
/* @__PURE__ */ jsxs27("div", {
|
|
4076
4341
|
className: "flex flex-wrap items-baseline gap-x-2 text-sm tabular-nums",
|
|
4077
4342
|
children: [
|
|
4078
|
-
/* @__PURE__ */
|
|
4343
|
+
/* @__PURE__ */ jsxs27("span", {
|
|
4079
4344
|
children: [
|
|
4080
|
-
/* @__PURE__ */
|
|
4345
|
+
/* @__PURE__ */ jsx43("span", {
|
|
4081
4346
|
className: "sr-only",
|
|
4082
4347
|
children: "High "
|
|
4083
4348
|
}),
|
|
4084
|
-
/* @__PURE__ */
|
|
4349
|
+
/* @__PURE__ */ jsx43("span", {
|
|
4085
4350
|
className: "font-medium",
|
|
4086
4351
|
children: highText
|
|
4087
4352
|
})
|
|
4088
4353
|
]
|
|
4089
4354
|
}),
|
|
4090
|
-
/* @__PURE__ */
|
|
4355
|
+
/* @__PURE__ */ jsxs27("span", {
|
|
4091
4356
|
className: "text-muted-foreground",
|
|
4092
4357
|
children: [
|
|
4093
|
-
/* @__PURE__ */
|
|
4358
|
+
/* @__PURE__ */ jsx43("span", {
|
|
4094
4359
|
className: "sr-only",
|
|
4095
4360
|
children: "Low "
|
|
4096
4361
|
}),
|
|
@@ -4099,17 +4364,17 @@ function WeatherSummary2({
|
|
|
4099
4364
|
})
|
|
4100
4365
|
]
|
|
4101
4366
|
}),
|
|
4102
|
-
probabilityText !== undefined && /* @__PURE__ */
|
|
4367
|
+
probabilityText !== undefined && /* @__PURE__ */ jsxs27("div", {
|
|
4103
4368
|
className: "flex items-center gap-1 text-xs text-muted-foreground tabular-nums",
|
|
4104
4369
|
children: [
|
|
4105
|
-
/* @__PURE__ */
|
|
4370
|
+
/* @__PURE__ */ jsx43(DropletIcon, {
|
|
4106
4371
|
"aria-hidden": "true",
|
|
4107
4372
|
className: "size-3 shrink-0"
|
|
4108
4373
|
}),
|
|
4109
|
-
/* @__PURE__ */
|
|
4374
|
+
/* @__PURE__ */ jsxs27("span", {
|
|
4110
4375
|
children: [
|
|
4111
4376
|
probabilityText,
|
|
4112
|
-
/* @__PURE__ */
|
|
4377
|
+
/* @__PURE__ */ jsx43("span", {
|
|
4113
4378
|
className: "sr-only",
|
|
4114
4379
|
children: " chance of precipitation"
|
|
4115
4380
|
})
|
|
@@ -4127,7 +4392,7 @@ function WeatherSummary2({
|
|
|
4127
4392
|
});
|
|
4128
4393
|
}
|
|
4129
4394
|
// src/components/WeatherForecast.tsx
|
|
4130
|
-
import { jsx as
|
|
4395
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4131
4396
|
function WeatherForecast2({
|
|
4132
4397
|
days,
|
|
4133
4398
|
label,
|
|
@@ -4138,52 +4403,64 @@ function WeatherForecast2({
|
|
|
4138
4403
|
className,
|
|
4139
4404
|
...props
|
|
4140
4405
|
}) {
|
|
4141
|
-
return /* @__PURE__ */
|
|
4406
|
+
return /* @__PURE__ */ jsx44("ul", {
|
|
4142
4407
|
"aria-label": label,
|
|
4143
4408
|
"data-slot": "weather-forecast",
|
|
4144
4409
|
"data-density": density,
|
|
4145
4410
|
className: cn2("grid min-w-0 gap-panel-sm", variant === "strip" && "grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]", className),
|
|
4146
4411
|
...props,
|
|
4147
|
-
children: days.map(({ id, ...day }) => /* @__PURE__ */
|
|
4412
|
+
children: days.map(({ id, ...day }) => /* @__PURE__ */ jsx44(WeatherSummary2, {
|
|
4148
4413
|
...day,
|
|
4149
4414
|
unit,
|
|
4150
4415
|
locale,
|
|
4151
4416
|
variant: variant === "strip" ? "compact" : "default",
|
|
4152
|
-
render: /* @__PURE__ */
|
|
4417
|
+
render: /* @__PURE__ */ jsx44("li", {})
|
|
4153
4418
|
}, id))
|
|
4154
4419
|
});
|
|
4155
4420
|
}
|
|
4156
4421
|
// src/components/PageHeader.tsx
|
|
4157
|
-
import { jsx as
|
|
4158
|
-
function PageHeader2({
|
|
4159
|
-
|
|
4422
|
+
import { jsx as jsx45, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4423
|
+
function PageHeader2({
|
|
4424
|
+
title,
|
|
4425
|
+
titleSize = "xl",
|
|
4426
|
+
headingProps,
|
|
4427
|
+
eyebrow,
|
|
4428
|
+
description,
|
|
4429
|
+
breadcrumbs,
|
|
4430
|
+
actions,
|
|
4431
|
+
density
|
|
4432
|
+
}) {
|
|
4433
|
+
return /* @__PURE__ */ jsxs28("header", {
|
|
4160
4434
|
"data-density": density,
|
|
4161
4435
|
"data-slot": "page-header",
|
|
4162
4436
|
"data-scroll": "none",
|
|
4163
4437
|
className: "flex min-w-0 flex-col gap-field-gap",
|
|
4164
4438
|
children: [
|
|
4165
4439
|
breadcrumbs,
|
|
4166
|
-
/* @__PURE__ */
|
|
4440
|
+
/* @__PURE__ */ jsxs28("div", {
|
|
4167
4441
|
className: "flex min-w-0 flex-wrap items-start justify-between gap-panel",
|
|
4168
4442
|
children: [
|
|
4169
|
-
/* @__PURE__ */
|
|
4443
|
+
/* @__PURE__ */ jsxs28("div", {
|
|
4170
4444
|
className: "min-w-0",
|
|
4171
4445
|
children: [
|
|
4172
|
-
eyebrow != null && /* @__PURE__ */
|
|
4446
|
+
eyebrow != null && /* @__PURE__ */ jsx45("div", {
|
|
4173
4447
|
className: "mb-2 text-xs font-medium tracking-widest text-muted-foreground",
|
|
4174
4448
|
children: eyebrow
|
|
4175
4449
|
}),
|
|
4176
|
-
/* @__PURE__ */
|
|
4177
|
-
|
|
4450
|
+
/* @__PURE__ */ jsx45(Heading2, {
|
|
4451
|
+
level: 1,
|
|
4452
|
+
size: titleSize,
|
|
4453
|
+
...headingProps,
|
|
4454
|
+
className: cn2("outline-none", headingProps?.className),
|
|
4178
4455
|
children: title
|
|
4179
4456
|
}),
|
|
4180
|
-
description && /* @__PURE__ */
|
|
4457
|
+
description && /* @__PURE__ */ jsx45("div", {
|
|
4181
4458
|
className: "mt-1 text-sm text-muted-foreground",
|
|
4182
4459
|
children: description
|
|
4183
4460
|
})
|
|
4184
4461
|
]
|
|
4185
4462
|
}),
|
|
4186
|
-
actions && /* @__PURE__ */
|
|
4463
|
+
actions && /* @__PURE__ */ jsx45("div", {
|
|
4187
4464
|
className: "flex min-w-0 max-w-full flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4188
4465
|
children: actions
|
|
4189
4466
|
})
|
|
@@ -4193,7 +4470,7 @@ function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, densit
|
|
|
4193
4470
|
});
|
|
4194
4471
|
}
|
|
4195
4472
|
// src/components/PanelHeader.tsx
|
|
4196
|
-
import { jsx as
|
|
4473
|
+
import { jsx as jsx46, jsxs as jsxs29, Fragment as Fragment8 } from "react/jsx-runtime";
|
|
4197
4474
|
function PanelHeader2({
|
|
4198
4475
|
title,
|
|
4199
4476
|
count,
|
|
@@ -4206,27 +4483,27 @@ function PanelHeader2({
|
|
|
4206
4483
|
...props
|
|
4207
4484
|
}) {
|
|
4208
4485
|
const Heading = headingLevel === 2 ? "h2" : "h3";
|
|
4209
|
-
return /* @__PURE__ */
|
|
4486
|
+
return /* @__PURE__ */ jsxs29("header", {
|
|
4210
4487
|
"data-density": density,
|
|
4211
4488
|
"data-slot": "panel-header",
|
|
4212
4489
|
"data-scroll": "none",
|
|
4213
4490
|
className: cn2("flex min-w-0 flex-col gap-panel-sm", className),
|
|
4214
4491
|
...props,
|
|
4215
4492
|
children: [
|
|
4216
|
-
/* @__PURE__ */
|
|
4493
|
+
/* @__PURE__ */ jsxs29("div", {
|
|
4217
4494
|
"data-slot": "panel-header-title-row",
|
|
4218
4495
|
className: "flex min-h-control min-w-0 items-center justify-between gap-2",
|
|
4219
4496
|
children: [
|
|
4220
|
-
/* @__PURE__ */
|
|
4497
|
+
/* @__PURE__ */ jsxs29(Heading, {
|
|
4221
4498
|
"data-slot": "panel-header-title",
|
|
4222
4499
|
...headingProps,
|
|
4223
4500
|
className: cn2("min-w-0 truncate text-lg font-semibold text-foreground outline-none", headingProps?.className),
|
|
4224
4501
|
children: [
|
|
4225
4502
|
title,
|
|
4226
|
-
count != null && /* @__PURE__ */
|
|
4503
|
+
count != null && /* @__PURE__ */ jsxs29(Fragment8, {
|
|
4227
4504
|
children: [
|
|
4228
4505
|
" ",
|
|
4229
|
-
/* @__PURE__ */
|
|
4506
|
+
/* @__PURE__ */ jsx46("span", {
|
|
4230
4507
|
"data-slot": "panel-header-count",
|
|
4231
4508
|
className: "ms-1 font-normal text-muted-foreground tabular-nums",
|
|
4232
4509
|
children: count
|
|
@@ -4235,14 +4512,14 @@ function PanelHeader2({
|
|
|
4235
4512
|
})
|
|
4236
4513
|
]
|
|
4237
4514
|
}),
|
|
4238
|
-
actions != null && /* @__PURE__ */
|
|
4515
|
+
actions != null && /* @__PURE__ */ jsx46("div", {
|
|
4239
4516
|
"data-slot": "panel-header-actions",
|
|
4240
4517
|
className: "flex shrink-0 items-center gap-1",
|
|
4241
4518
|
children: actions
|
|
4242
4519
|
})
|
|
4243
4520
|
]
|
|
4244
4521
|
}),
|
|
4245
|
-
toolbar != null && /* @__PURE__ */
|
|
4522
|
+
toolbar != null && /* @__PURE__ */ jsx46("div", {
|
|
4246
4523
|
"data-slot": "panel-header-toolbar",
|
|
4247
4524
|
className: "flex min-w-0 flex-wrap items-center gap-control-gap",
|
|
4248
4525
|
children: toolbar
|
|
@@ -4251,46 +4528,59 @@ function PanelHeader2({
|
|
|
4251
4528
|
});
|
|
4252
4529
|
}
|
|
4253
4530
|
// src/components/PageIntro.tsx
|
|
4254
|
-
import { jsx as
|
|
4255
|
-
function PageIntro2({
|
|
4256
|
-
|
|
4531
|
+
import { jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4532
|
+
function PageIntro2({
|
|
4533
|
+
title,
|
|
4534
|
+
titleSize = "2xl",
|
|
4535
|
+
headingProps,
|
|
4536
|
+
description,
|
|
4537
|
+
eyebrow,
|
|
4538
|
+
icon,
|
|
4539
|
+
actions,
|
|
4540
|
+
highlights,
|
|
4541
|
+
density
|
|
4542
|
+
}) {
|
|
4543
|
+
return /* @__PURE__ */ jsx47("header", {
|
|
4257
4544
|
"data-density": density,
|
|
4258
4545
|
"data-slot": "page-intro",
|
|
4259
4546
|
"data-scroll": "none",
|
|
4260
4547
|
className: "@container/page-intro min-w-0",
|
|
4261
|
-
children: /* @__PURE__ */
|
|
4548
|
+
children: /* @__PURE__ */ jsxs30(Card2, {
|
|
4262
4549
|
variant: "hero",
|
|
4263
4550
|
className: "gap-0 py-0",
|
|
4264
4551
|
children: [
|
|
4265
|
-
/* @__PURE__ */
|
|
4552
|
+
/* @__PURE__ */ jsx47("div", {
|
|
4266
4553
|
"aria-hidden": "true",
|
|
4267
4554
|
"data-slot": "page-intro-wash",
|
|
4268
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%)]"
|
|
4269
4556
|
}),
|
|
4270
|
-
/* @__PURE__ */
|
|
4557
|
+
/* @__PURE__ */ jsxs30("div", {
|
|
4271
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",
|
|
4272
4559
|
children: [
|
|
4273
|
-
/* @__PURE__ */
|
|
4560
|
+
/* @__PURE__ */ jsxs30("div", {
|
|
4274
4561
|
className: "flex min-w-0 gap-panel",
|
|
4275
4562
|
children: [
|
|
4276
|
-
icon != null && /* @__PURE__ */
|
|
4563
|
+
icon != null && /* @__PURE__ */ jsx47("div", {
|
|
4277
4564
|
"aria-hidden": "true",
|
|
4278
4565
|
"data-slot": "page-intro-icon",
|
|
4279
4566
|
className: "flex size-12 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-6",
|
|
4280
4567
|
children: icon
|
|
4281
4568
|
}),
|
|
4282
|
-
/* @__PURE__ */
|
|
4569
|
+
/* @__PURE__ */ jsxs30("div", {
|
|
4283
4570
|
className: "min-w-0",
|
|
4284
4571
|
children: [
|
|
4285
|
-
eyebrow != null && /* @__PURE__ */
|
|
4572
|
+
eyebrow != null && /* @__PURE__ */ jsx47("div", {
|
|
4286
4573
|
className: "mb-1 text-xs font-medium tracking-widest text-muted-foreground",
|
|
4287
4574
|
children: eyebrow
|
|
4288
4575
|
}),
|
|
4289
|
-
/* @__PURE__ */
|
|
4290
|
-
|
|
4576
|
+
/* @__PURE__ */ jsx47(Heading2, {
|
|
4577
|
+
level: 1,
|
|
4578
|
+
size: titleSize,
|
|
4579
|
+
...headingProps,
|
|
4580
|
+
className: cn2("outline-none", headingProps?.className),
|
|
4291
4581
|
children: title
|
|
4292
4582
|
}),
|
|
4293
|
-
/* @__PURE__ */
|
|
4583
|
+
/* @__PURE__ */ jsx47("div", {
|
|
4294
4584
|
className: "mt-2 max-w-prose text-base text-pretty text-muted-foreground",
|
|
4295
4585
|
children: description
|
|
4296
4586
|
})
|
|
@@ -4298,33 +4588,33 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4298
4588
|
})
|
|
4299
4589
|
]
|
|
4300
4590
|
}),
|
|
4301
|
-
actions != null && /* @__PURE__ */
|
|
4591
|
+
actions != null && /* @__PURE__ */ jsx47("div", {
|
|
4302
4592
|
className: "flex min-w-0 max-w-full shrink-0 flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4303
4593
|
children: actions
|
|
4304
4594
|
})
|
|
4305
4595
|
]
|
|
4306
4596
|
}),
|
|
4307
|
-
highlights != null && highlights.length > 0 && /* @__PURE__ */
|
|
4597
|
+
highlights != null && highlights.length > 0 && /* @__PURE__ */ jsx47("ul", {
|
|
4308
4598
|
"aria-label": `What you can do in ${title}`,
|
|
4309
4599
|
"data-slot": "page-intro-highlights",
|
|
4310
4600
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,13rem),1fr))] gap-panel border-t border-border p-(--card-spacing)",
|
|
4311
|
-
children: highlights.map((highlight) => /* @__PURE__ */
|
|
4601
|
+
children: highlights.map((highlight) => /* @__PURE__ */ jsxs30("li", {
|
|
4312
4602
|
"data-slot": "page-intro-highlight",
|
|
4313
4603
|
className: "flex min-w-0 gap-2",
|
|
4314
4604
|
children: [
|
|
4315
|
-
highlight.icon != null && /* @__PURE__ */
|
|
4605
|
+
highlight.icon != null && /* @__PURE__ */ jsx47("span", {
|
|
4316
4606
|
"aria-hidden": "true",
|
|
4317
4607
|
className: "mt-0.5 shrink-0 text-primary [&_svg]:size-4",
|
|
4318
4608
|
children: highlight.icon
|
|
4319
4609
|
}),
|
|
4320
|
-
/* @__PURE__ */
|
|
4610
|
+
/* @__PURE__ */ jsxs30("div", {
|
|
4321
4611
|
className: "min-w-0",
|
|
4322
4612
|
children: [
|
|
4323
|
-
/* @__PURE__ */
|
|
4613
|
+
/* @__PURE__ */ jsx47("div", {
|
|
4324
4614
|
className: "text-sm font-medium text-foreground",
|
|
4325
4615
|
children: highlight.title
|
|
4326
4616
|
}),
|
|
4327
|
-
/* @__PURE__ */
|
|
4617
|
+
/* @__PURE__ */ jsx47("div", {
|
|
4328
4618
|
className: "mt-0.5 text-sm text-muted-foreground",
|
|
4329
4619
|
children: highlight.description
|
|
4330
4620
|
})
|
|
@@ -4338,7 +4628,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4338
4628
|
});
|
|
4339
4629
|
}
|
|
4340
4630
|
// src/components/WorkspaceSwitcher.tsx
|
|
4341
|
-
import { jsx as
|
|
4631
|
+
import { jsx as jsx48, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4342
4632
|
function WorkspaceSwitcher2({
|
|
4343
4633
|
workspaces,
|
|
4344
4634
|
value,
|
|
@@ -4348,7 +4638,7 @@ function WorkspaceSwitcher2({
|
|
|
4348
4638
|
label = "Workspace",
|
|
4349
4639
|
density
|
|
4350
4640
|
}) {
|
|
4351
|
-
return /* @__PURE__ */
|
|
4641
|
+
return /* @__PURE__ */ jsxs31(Select2, {
|
|
4352
4642
|
items: workspaces,
|
|
4353
4643
|
value,
|
|
4354
4644
|
defaultValue: defaultValue ?? workspaces[0]?.value,
|
|
@@ -4358,15 +4648,15 @@ function WorkspaceSwitcher2({
|
|
|
4358
4648
|
},
|
|
4359
4649
|
disabled,
|
|
4360
4650
|
children: [
|
|
4361
|
-
/* @__PURE__ */
|
|
4651
|
+
/* @__PURE__ */ jsx48(SelectTrigger2, {
|
|
4362
4652
|
"aria-label": label,
|
|
4363
4653
|
density,
|
|
4364
|
-
children: /* @__PURE__ */
|
|
4654
|
+
children: /* @__PURE__ */ jsx48(SelectValue2, {})
|
|
4365
4655
|
}),
|
|
4366
|
-
/* @__PURE__ */
|
|
4656
|
+
/* @__PURE__ */ jsx48(SelectContent2, {
|
|
4367
4657
|
density,
|
|
4368
|
-
children: /* @__PURE__ */
|
|
4369
|
-
children: workspaces.map((workspace) => /* @__PURE__ */
|
|
4658
|
+
children: /* @__PURE__ */ jsx48(SelectGroup2, {
|
|
4659
|
+
children: workspaces.map((workspace) => /* @__PURE__ */ jsx48(SelectItem2, {
|
|
4370
4660
|
value: workspace.value,
|
|
4371
4661
|
children: workspace.label
|
|
4372
4662
|
}, workspace.value))
|
|
@@ -4376,52 +4666,52 @@ function WorkspaceSwitcher2({
|
|
|
4376
4666
|
});
|
|
4377
4667
|
}
|
|
4378
4668
|
// src/components/AccountMenu.tsx
|
|
4379
|
-
import { jsx as
|
|
4669
|
+
import { jsx as jsx49, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4380
4670
|
function AccountMenu2({ name, email, image, onAction, density }) {
|
|
4381
|
-
return /* @__PURE__ */
|
|
4671
|
+
return /* @__PURE__ */ jsxs32(DropdownMenu2, {
|
|
4382
4672
|
children: [
|
|
4383
|
-
/* @__PURE__ */
|
|
4384
|
-
render: /* @__PURE__ */
|
|
4673
|
+
/* @__PURE__ */ jsxs32(DropdownMenuTrigger2, {
|
|
4674
|
+
render: /* @__PURE__ */ jsx49(Button2, {
|
|
4385
4675
|
variant: "ghost",
|
|
4386
4676
|
density
|
|
4387
4677
|
}),
|
|
4388
4678
|
"aria-label": `Account menu for ${name}`,
|
|
4389
4679
|
children: [
|
|
4390
|
-
/* @__PURE__ */
|
|
4680
|
+
/* @__PURE__ */ jsxs32(Avatar2, {
|
|
4391
4681
|
className: "size-control",
|
|
4392
4682
|
children: [
|
|
4393
|
-
/* @__PURE__ */
|
|
4683
|
+
/* @__PURE__ */ jsx49(AvatarImage2, {
|
|
4394
4684
|
src: image,
|
|
4395
4685
|
alt: ""
|
|
4396
4686
|
}),
|
|
4397
|
-
/* @__PURE__ */
|
|
4687
|
+
/* @__PURE__ */ jsx49(AvatarFallback2, {
|
|
4398
4688
|
children: name.slice(0, 2).toUpperCase()
|
|
4399
4689
|
})
|
|
4400
4690
|
]
|
|
4401
4691
|
}),
|
|
4402
|
-
/* @__PURE__ */
|
|
4692
|
+
/* @__PURE__ */ jsx49("span", {
|
|
4403
4693
|
children: name
|
|
4404
4694
|
})
|
|
4405
4695
|
]
|
|
4406
4696
|
}),
|
|
4407
|
-
/* @__PURE__ */
|
|
4697
|
+
/* @__PURE__ */ jsx49(MenuPopup, {
|
|
4408
4698
|
density,
|
|
4409
4699
|
align: "end",
|
|
4410
|
-
children: /* @__PURE__ */
|
|
4700
|
+
children: /* @__PURE__ */ jsxs32(MenuGroup2, {
|
|
4411
4701
|
children: [
|
|
4412
|
-
/* @__PURE__ */
|
|
4702
|
+
/* @__PURE__ */ jsx49(MenuLabel2, {
|
|
4413
4703
|
children: email ?? name
|
|
4414
4704
|
}),
|
|
4415
|
-
/* @__PURE__ */
|
|
4705
|
+
/* @__PURE__ */ jsx49(MenuItem2, {
|
|
4416
4706
|
onClick: () => onAction("profile"),
|
|
4417
4707
|
children: "Profile"
|
|
4418
4708
|
}),
|
|
4419
|
-
/* @__PURE__ */
|
|
4709
|
+
/* @__PURE__ */ jsx49(MenuItem2, {
|
|
4420
4710
|
onClick: () => onAction("settings"),
|
|
4421
4711
|
children: "Settings"
|
|
4422
4712
|
}),
|
|
4423
|
-
/* @__PURE__ */
|
|
4424
|
-
/* @__PURE__ */
|
|
4713
|
+
/* @__PURE__ */ jsx49(MenuSeparator2, {}),
|
|
4714
|
+
/* @__PURE__ */ jsx49(MenuItem2, {
|
|
4425
4715
|
onClick: () => onAction("sign-out"),
|
|
4426
4716
|
children: "Sign out"
|
|
4427
4717
|
})
|
|
@@ -4432,7 +4722,7 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4432
4722
|
});
|
|
4433
4723
|
}
|
|
4434
4724
|
// src/components/StatCard.tsx
|
|
4435
|
-
import { jsx as
|
|
4725
|
+
import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4436
4726
|
function StatCard2({
|
|
4437
4727
|
label,
|
|
4438
4728
|
value,
|
|
@@ -4443,48 +4733,48 @@ function StatCard2({
|
|
|
4443
4733
|
loading = false,
|
|
4444
4734
|
density
|
|
4445
4735
|
}) {
|
|
4446
|
-
return /* @__PURE__ */
|
|
4736
|
+
return /* @__PURE__ */ jsxs33(Card2, {
|
|
4447
4737
|
density,
|
|
4448
4738
|
"aria-label": label,
|
|
4449
4739
|
"aria-busy": loading,
|
|
4450
4740
|
children: [
|
|
4451
|
-
/* @__PURE__ */
|
|
4741
|
+
/* @__PURE__ */ jsxs33(CardHeader2, {
|
|
4452
4742
|
children: [
|
|
4453
|
-
/* @__PURE__ */
|
|
4743
|
+
/* @__PURE__ */ jsx50(CardTitle2, {
|
|
4454
4744
|
children: label
|
|
4455
4745
|
}),
|
|
4456
|
-
description && /* @__PURE__ */
|
|
4746
|
+
description && /* @__PURE__ */ jsx50(CardDescription2, {
|
|
4457
4747
|
children: description
|
|
4458
4748
|
})
|
|
4459
4749
|
]
|
|
4460
4750
|
}),
|
|
4461
|
-
/* @__PURE__ */
|
|
4462
|
-
children: /* @__PURE__ */
|
|
4751
|
+
/* @__PURE__ */ jsx50(CardContent2, {
|
|
4752
|
+
children: /* @__PURE__ */ jsxs33("div", {
|
|
4463
4753
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4464
4754
|
children: [
|
|
4465
|
-
loading ? /* @__PURE__ */
|
|
4755
|
+
loading ? /* @__PURE__ */ jsx50(Skeleton2, {
|
|
4466
4756
|
className: "h-8 w-24",
|
|
4467
4757
|
"aria-label": `Loading ${label}`
|
|
4468
|
-
}) : /* @__PURE__ */
|
|
4758
|
+
}) : /* @__PURE__ */ jsx50("div", {
|
|
4469
4759
|
className: "text-2xl font-semibold tabular-nums",
|
|
4470
4760
|
children: value
|
|
4471
4761
|
}),
|
|
4472
|
-
change && /* @__PURE__ */
|
|
4762
|
+
change && /* @__PURE__ */ jsx50(Badge2, {
|
|
4473
4763
|
variant: changeIntent === "positive" ? "success" : changeIntent === "negative" ? "destructive" : "secondary",
|
|
4474
4764
|
children: change
|
|
4475
4765
|
})
|
|
4476
4766
|
]
|
|
4477
4767
|
})
|
|
4478
4768
|
}),
|
|
4479
|
-
children && /* @__PURE__ */
|
|
4769
|
+
children && /* @__PURE__ */ jsx50(CardFooter2, {
|
|
4480
4770
|
children
|
|
4481
4771
|
})
|
|
4482
4772
|
]
|
|
4483
4773
|
});
|
|
4484
4774
|
}
|
|
4485
4775
|
// src/components/AuthForm.tsx
|
|
4486
|
-
import { useId as
|
|
4487
|
-
import { jsx as
|
|
4776
|
+
import { useId as useId9, useState as useState9 } from "react";
|
|
4777
|
+
import { jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4488
4778
|
function AuthForm2({
|
|
4489
4779
|
mode = "sign-in",
|
|
4490
4780
|
onSubmit,
|
|
@@ -4493,9 +4783,9 @@ function AuthForm2({
|
|
|
4493
4783
|
disabled = false,
|
|
4494
4784
|
density
|
|
4495
4785
|
}) {
|
|
4496
|
-
const id =
|
|
4497
|
-
const [pending, setPending] =
|
|
4498
|
-
const [error, setError] =
|
|
4786
|
+
const id = useId9();
|
|
4787
|
+
const [pending, setPending] = useState9(false);
|
|
4788
|
+
const [error, setError] = useState9("");
|
|
4499
4789
|
const title = mode === "sign-up" ? "Create an account" : mode === "reset-password" ? "Reset your password" : "Sign in";
|
|
4500
4790
|
async function submit(event) {
|
|
4501
4791
|
event.preventDefault();
|
|
@@ -4514,33 +4804,33 @@ function AuthForm2({
|
|
|
4514
4804
|
setPending(false);
|
|
4515
4805
|
}
|
|
4516
4806
|
}
|
|
4517
|
-
return /* @__PURE__ */
|
|
4807
|
+
return /* @__PURE__ */ jsxs34(Card2, {
|
|
4518
4808
|
density,
|
|
4519
4809
|
children: [
|
|
4520
|
-
/* @__PURE__ */
|
|
4810
|
+
/* @__PURE__ */ jsxs34(CardHeader2, {
|
|
4521
4811
|
children: [
|
|
4522
|
-
/* @__PURE__ */
|
|
4812
|
+
/* @__PURE__ */ jsx51(CardTitle2, {
|
|
4523
4813
|
children: title
|
|
4524
4814
|
}),
|
|
4525
|
-
/* @__PURE__ */
|
|
4815
|
+
/* @__PURE__ */ jsx51(CardDescription2, {
|
|
4526
4816
|
children: mode === "reset-password" ? "Enter your email to request a password reset." : "Enter your details to continue."
|
|
4527
4817
|
})
|
|
4528
4818
|
]
|
|
4529
4819
|
}),
|
|
4530
|
-
/* @__PURE__ */
|
|
4531
|
-
children: /* @__PURE__ */
|
|
4820
|
+
/* @__PURE__ */ jsx51(CardContent2, {
|
|
4821
|
+
children: /* @__PURE__ */ jsx51("form", {
|
|
4532
4822
|
onSubmit: submit,
|
|
4533
4823
|
"aria-label": title,
|
|
4534
4824
|
"aria-busy": pending,
|
|
4535
|
-
children: /* @__PURE__ */
|
|
4825
|
+
children: /* @__PURE__ */ jsxs34(FieldGroup2, {
|
|
4536
4826
|
children: [
|
|
4537
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4827
|
+
mode === "sign-up" && /* @__PURE__ */ jsxs34(Field2, {
|
|
4538
4828
|
children: [
|
|
4539
|
-
/* @__PURE__ */
|
|
4829
|
+
/* @__PURE__ */ jsx51(FieldLabel2, {
|
|
4540
4830
|
htmlFor: id + "-name",
|
|
4541
4831
|
children: "Name"
|
|
4542
4832
|
}),
|
|
4543
|
-
/* @__PURE__ */
|
|
4833
|
+
/* @__PURE__ */ jsx51(Input2, {
|
|
4544
4834
|
id: id + "-name",
|
|
4545
4835
|
name: "name",
|
|
4546
4836
|
autoComplete: "name",
|
|
@@ -4549,13 +4839,13 @@ function AuthForm2({
|
|
|
4549
4839
|
})
|
|
4550
4840
|
]
|
|
4551
4841
|
}),
|
|
4552
|
-
/* @__PURE__ */
|
|
4842
|
+
/* @__PURE__ */ jsxs34(Field2, {
|
|
4553
4843
|
children: [
|
|
4554
|
-
/* @__PURE__ */
|
|
4844
|
+
/* @__PURE__ */ jsx51(FieldLabel2, {
|
|
4555
4845
|
htmlFor: id + "-email",
|
|
4556
4846
|
children: "Email"
|
|
4557
4847
|
}),
|
|
4558
|
-
/* @__PURE__ */
|
|
4848
|
+
/* @__PURE__ */ jsx51(Input2, {
|
|
4559
4849
|
id: id + "-email",
|
|
4560
4850
|
name: "email",
|
|
4561
4851
|
type: "email",
|
|
@@ -4565,13 +4855,13 @@ function AuthForm2({
|
|
|
4565
4855
|
})
|
|
4566
4856
|
]
|
|
4567
4857
|
}),
|
|
4568
|
-
mode !== "reset-password" && /* @__PURE__ */
|
|
4858
|
+
mode !== "reset-password" && /* @__PURE__ */ jsxs34(Field2, {
|
|
4569
4859
|
children: [
|
|
4570
|
-
/* @__PURE__ */
|
|
4860
|
+
/* @__PURE__ */ jsx51(FieldLabel2, {
|
|
4571
4861
|
htmlFor: id + "-password",
|
|
4572
4862
|
children: "Password"
|
|
4573
4863
|
}),
|
|
4574
|
-
/* @__PURE__ */
|
|
4864
|
+
/* @__PURE__ */ jsx51(Input2, {
|
|
4575
4865
|
id: id + "-password",
|
|
4576
4866
|
name: "password",
|
|
4577
4867
|
type: "password",
|
|
@@ -4580,27 +4870,27 @@ function AuthForm2({
|
|
|
4580
4870
|
required: true,
|
|
4581
4871
|
disabled: disabled || pending
|
|
4582
4872
|
}),
|
|
4583
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4873
|
+
mode === "sign-up" && /* @__PURE__ */ jsx51(FieldDescription2, {
|
|
4584
4874
|
children: "Use at least eight characters."
|
|
4585
4875
|
})
|
|
4586
4876
|
]
|
|
4587
4877
|
}),
|
|
4588
|
-
error && /* @__PURE__ */
|
|
4878
|
+
error && /* @__PURE__ */ jsxs34(Alert2, {
|
|
4589
4879
|
variant: "destructive",
|
|
4590
4880
|
children: [
|
|
4591
|
-
/* @__PURE__ */
|
|
4881
|
+
/* @__PURE__ */ jsx51(AlertTitle2, {
|
|
4592
4882
|
children: "Request failed"
|
|
4593
4883
|
}),
|
|
4594
|
-
/* @__PURE__ */
|
|
4884
|
+
/* @__PURE__ */ jsx51(AlertDescription2, {
|
|
4595
4885
|
children: error
|
|
4596
4886
|
})
|
|
4597
4887
|
]
|
|
4598
4888
|
}),
|
|
4599
|
-
/* @__PURE__ */
|
|
4889
|
+
/* @__PURE__ */ jsxs34(Button2, {
|
|
4600
4890
|
type: "submit",
|
|
4601
4891
|
disabled: disabled || pending,
|
|
4602
4892
|
children: [
|
|
4603
|
-
pending && /* @__PURE__ */
|
|
4893
|
+
pending && /* @__PURE__ */ jsx51(Spinner2, {
|
|
4604
4894
|
"data-icon": "inline-start"
|
|
4605
4895
|
}),
|
|
4606
4896
|
mode === "reset-password" ? "Send reset link" : title
|
|
@@ -4611,14 +4901,14 @@ function AuthForm2({
|
|
|
4611
4901
|
})
|
|
4612
4902
|
})
|
|
4613
4903
|
}),
|
|
4614
|
-
footer && /* @__PURE__ */
|
|
4904
|
+
footer && /* @__PURE__ */ jsx51(CardFooter2, {
|
|
4615
4905
|
children: footer
|
|
4616
4906
|
})
|
|
4617
4907
|
]
|
|
4618
4908
|
});
|
|
4619
4909
|
}
|
|
4620
4910
|
// src/components/SettingsSection.tsx
|
|
4621
|
-
import { jsx as
|
|
4911
|
+
import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4622
4912
|
function SettingsSection2({
|
|
4623
4913
|
title,
|
|
4624
4914
|
description,
|
|
@@ -4631,48 +4921,48 @@ function SettingsSection2({
|
|
|
4631
4921
|
destructive = false,
|
|
4632
4922
|
density
|
|
4633
4923
|
}) {
|
|
4634
|
-
return /* @__PURE__ */
|
|
4924
|
+
return /* @__PURE__ */ jsx52("form", {
|
|
4635
4925
|
"aria-label": title,
|
|
4636
4926
|
onSubmit,
|
|
4637
4927
|
"aria-busy": pending,
|
|
4638
|
-
children: /* @__PURE__ */
|
|
4928
|
+
children: /* @__PURE__ */ jsxs35(Card2, {
|
|
4639
4929
|
density,
|
|
4640
4930
|
children: [
|
|
4641
|
-
/* @__PURE__ */
|
|
4931
|
+
/* @__PURE__ */ jsxs35(CardHeader2, {
|
|
4642
4932
|
children: [
|
|
4643
|
-
/* @__PURE__ */
|
|
4933
|
+
/* @__PURE__ */ jsx52(CardTitle2, {
|
|
4644
4934
|
children: title
|
|
4645
4935
|
}),
|
|
4646
|
-
description && /* @__PURE__ */
|
|
4936
|
+
description && /* @__PURE__ */ jsx52(CardDescription2, {
|
|
4647
4937
|
children: description
|
|
4648
4938
|
})
|
|
4649
4939
|
]
|
|
4650
4940
|
}),
|
|
4651
|
-
/* @__PURE__ */
|
|
4652
|
-
children: /* @__PURE__ */
|
|
4941
|
+
/* @__PURE__ */ jsx52(CardContent2, {
|
|
4942
|
+
children: /* @__PURE__ */ jsxs35("fieldset", {
|
|
4653
4943
|
disabled: disabled || pending,
|
|
4654
4944
|
className: "min-w-0 border-0 p-0",
|
|
4655
4945
|
children: [
|
|
4656
|
-
/* @__PURE__ */
|
|
4946
|
+
/* @__PURE__ */ jsx52("legend", {
|
|
4657
4947
|
className: "sr-only",
|
|
4658
4948
|
children: title
|
|
4659
4949
|
}),
|
|
4660
|
-
/* @__PURE__ */
|
|
4950
|
+
/* @__PURE__ */ jsx52(FieldGroup2, {
|
|
4661
4951
|
children
|
|
4662
4952
|
})
|
|
4663
4953
|
]
|
|
4664
4954
|
})
|
|
4665
4955
|
}),
|
|
4666
|
-
/* @__PURE__ */
|
|
4956
|
+
/* @__PURE__ */ jsxs35(CardFooter2, {
|
|
4667
4957
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4668
4958
|
children: [
|
|
4669
4959
|
footer,
|
|
4670
|
-
/* @__PURE__ */
|
|
4960
|
+
/* @__PURE__ */ jsxs35(Button2, {
|
|
4671
4961
|
type: "submit",
|
|
4672
4962
|
variant: destructive ? "destructive" : "default",
|
|
4673
4963
|
disabled: disabled || pending,
|
|
4674
4964
|
children: [
|
|
4675
|
-
pending && /* @__PURE__ */
|
|
4965
|
+
pending && /* @__PURE__ */ jsx52(Spinner2, {
|
|
4676
4966
|
"data-icon": "inline-start"
|
|
4677
4967
|
}),
|
|
4678
4968
|
saveLabel
|
|
@@ -4685,7 +4975,7 @@ function SettingsSection2({
|
|
|
4685
4975
|
});
|
|
4686
4976
|
}
|
|
4687
4977
|
// src/components/TagInput.tsx
|
|
4688
|
-
import { jsx as
|
|
4978
|
+
import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4689
4979
|
function TagInput2({
|
|
4690
4980
|
label,
|
|
4691
4981
|
options,
|
|
@@ -4698,7 +4988,7 @@ function TagInput2({
|
|
|
4698
4988
|
density
|
|
4699
4989
|
}) {
|
|
4700
4990
|
const anchor = useComboboxAnchor2();
|
|
4701
|
-
return /* @__PURE__ */
|
|
4991
|
+
return /* @__PURE__ */ jsxs36(Combobox2, {
|
|
4702
4992
|
items: options,
|
|
4703
4993
|
multiple: true,
|
|
4704
4994
|
value,
|
|
@@ -4707,33 +4997,33 @@ function TagInput2({
|
|
|
4707
4997
|
disabled,
|
|
4708
4998
|
name,
|
|
4709
4999
|
children: [
|
|
4710
|
-
/* @__PURE__ */
|
|
5000
|
+
/* @__PURE__ */ jsxs36(ComboboxChips2, {
|
|
4711
5001
|
ref: anchor,
|
|
4712
5002
|
density,
|
|
4713
5003
|
children: [
|
|
4714
|
-
/* @__PURE__ */
|
|
4715
|
-
children: (values) => values.map((item) => /* @__PURE__ */
|
|
5004
|
+
/* @__PURE__ */ jsx53(ComboboxValue2, {
|
|
5005
|
+
children: (values) => values.map((item) => /* @__PURE__ */ jsx53(ComboboxChip2, {
|
|
4716
5006
|
removeLabel: `Remove ${item}`,
|
|
4717
5007
|
children: item
|
|
4718
5008
|
}, item))
|
|
4719
5009
|
}),
|
|
4720
|
-
/* @__PURE__ */
|
|
5010
|
+
/* @__PURE__ */ jsx53(ComboboxChipsInput2, {
|
|
4721
5011
|
"aria-label": label,
|
|
4722
5012
|
placeholder
|
|
4723
5013
|
})
|
|
4724
5014
|
]
|
|
4725
5015
|
}),
|
|
4726
|
-
/* @__PURE__ */
|
|
5016
|
+
/* @__PURE__ */ jsxs36(ComboboxContent2, {
|
|
4727
5017
|
anchor,
|
|
4728
5018
|
density,
|
|
4729
5019
|
children: [
|
|
4730
|
-
/* @__PURE__ */
|
|
5020
|
+
/* @__PURE__ */ jsx53(ComboboxEmpty2, {
|
|
4731
5021
|
children: "No matching tags."
|
|
4732
5022
|
}),
|
|
4733
|
-
/* @__PURE__ */
|
|
4734
|
-
children: /* @__PURE__ */
|
|
4735
|
-
children: /* @__PURE__ */
|
|
4736
|
-
children: (item) => /* @__PURE__ */
|
|
5023
|
+
/* @__PURE__ */ jsx53(ComboboxList2, {
|
|
5024
|
+
children: /* @__PURE__ */ jsx53(ComboboxGroup2, {
|
|
5025
|
+
children: /* @__PURE__ */ jsx53(ComboboxCollection2, {
|
|
5026
|
+
children: (item) => /* @__PURE__ */ jsx53(ComboboxItem2, {
|
|
4737
5027
|
value: item,
|
|
4738
5028
|
children: item
|
|
4739
5029
|
}, item)
|
|
@@ -4746,9 +5036,9 @@ function TagInput2({
|
|
|
4746
5036
|
});
|
|
4747
5037
|
}
|
|
4748
5038
|
// src/components/FilterChip.tsx
|
|
4749
|
-
import { useId as
|
|
5039
|
+
import { useId as useId10 } from "react";
|
|
4750
5040
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
4751
|
-
import { jsx as
|
|
5041
|
+
import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4752
5042
|
function FilterChip2({
|
|
4753
5043
|
density,
|
|
4754
5044
|
className,
|
|
@@ -4758,8 +5048,8 @@ function FilterChip2({
|
|
|
4758
5048
|
onKeyDown,
|
|
4759
5049
|
...props
|
|
4760
5050
|
}) {
|
|
4761
|
-
const labelId =
|
|
4762
|
-
return /* @__PURE__ */
|
|
5051
|
+
const labelId = useId10();
|
|
5052
|
+
return /* @__PURE__ */ jsxs37("div", {
|
|
4763
5053
|
role: "group",
|
|
4764
5054
|
"aria-labelledby": labelId,
|
|
4765
5055
|
"data-density": density,
|
|
@@ -4775,13 +5065,13 @@ function FilterChip2({
|
|
|
4775
5065
|
},
|
|
4776
5066
|
...props,
|
|
4777
5067
|
children: [
|
|
4778
|
-
/* @__PURE__ */
|
|
5068
|
+
/* @__PURE__ */ jsx54("span", {
|
|
4779
5069
|
id: labelId,
|
|
4780
5070
|
"data-slot": "filter-chip-label",
|
|
4781
5071
|
className: "min-w-0 py-1 break-words",
|
|
4782
5072
|
children
|
|
4783
5073
|
}),
|
|
4784
|
-
/* @__PURE__ */
|
|
5074
|
+
/* @__PURE__ */ jsxs37(Button2, {
|
|
4785
5075
|
type: "button",
|
|
4786
5076
|
variant: "ghost",
|
|
4787
5077
|
size: "xs",
|
|
@@ -4789,7 +5079,7 @@ function FilterChip2({
|
|
|
4789
5079
|
onClick: onClear,
|
|
4790
5080
|
children: [
|
|
4791
5081
|
clearLabel,
|
|
4792
|
-
/* @__PURE__ */
|
|
5082
|
+
/* @__PURE__ */ jsx54(XIcon2, {
|
|
4793
5083
|
"aria-hidden": "true",
|
|
4794
5084
|
"data-icon": "inline-end"
|
|
4795
5085
|
})
|
|
@@ -4799,7 +5089,7 @@ function FilterChip2({
|
|
|
4799
5089
|
});
|
|
4800
5090
|
}
|
|
4801
5091
|
// src/components/FilterBar.tsx
|
|
4802
|
-
import { jsx as
|
|
5092
|
+
import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4803
5093
|
function FilterBar2({
|
|
4804
5094
|
label,
|
|
4805
5095
|
search,
|
|
@@ -4810,26 +5100,26 @@ function FilterBar2({
|
|
|
4810
5100
|
disabled,
|
|
4811
5101
|
density
|
|
4812
5102
|
}) {
|
|
4813
|
-
return /* @__PURE__ */
|
|
5103
|
+
return /* @__PURE__ */ jsxs38("fieldset", {
|
|
4814
5104
|
"aria-label": label,
|
|
4815
5105
|
disabled,
|
|
4816
5106
|
"data-density": density,
|
|
4817
5107
|
className: "flex min-w-0 flex-wrap items-center gap-2",
|
|
4818
5108
|
children: [
|
|
4819
|
-
/* @__PURE__ */
|
|
5109
|
+
/* @__PURE__ */ jsx55(Input2, {
|
|
4820
5110
|
"aria-label": `Search ${label}`,
|
|
4821
5111
|
type: "search",
|
|
4822
5112
|
value: search,
|
|
4823
5113
|
onChange: (event) => onSearchChange(event.target.value),
|
|
4824
5114
|
className: "min-w-40 flex-1"
|
|
4825
5115
|
}),
|
|
4826
|
-
filters.map((filter) => /* @__PURE__ */
|
|
5116
|
+
filters.map((filter) => /* @__PURE__ */ jsx55(OptionSelect2, {
|
|
4827
5117
|
"aria-label": filter.label,
|
|
4828
5118
|
value: value[filter.id] ?? "",
|
|
4829
5119
|
onValueChange: (next) => onValueChange({ ...value, [filter.id]: next }),
|
|
4830
5120
|
options: [{ value: "", label: filter.allLabel ?? `All ${filter.label.toLowerCase()}` }, ...filter.options]
|
|
4831
5121
|
}, filter.id)),
|
|
4832
|
-
/* @__PURE__ */
|
|
5122
|
+
/* @__PURE__ */ jsx55(Button2, {
|
|
4833
5123
|
type: "button",
|
|
4834
5124
|
variant: "ghost",
|
|
4835
5125
|
disabled: !search && !Object.values(value).some(Boolean),
|
|
@@ -4843,7 +5133,7 @@ function FilterBar2({
|
|
|
4843
5133
|
});
|
|
4844
5134
|
}
|
|
4845
5135
|
// src/components/BarList.tsx
|
|
4846
|
-
import { jsx as
|
|
5136
|
+
import { jsx as jsx56, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4847
5137
|
function BarList2({
|
|
4848
5138
|
label,
|
|
4849
5139
|
items,
|
|
@@ -4852,14 +5142,14 @@ function BarList2({
|
|
|
4852
5142
|
density
|
|
4853
5143
|
}) {
|
|
4854
5144
|
const max = Math.max(1, ...items.map((item) => item.value));
|
|
4855
|
-
return /* @__PURE__ */
|
|
5145
|
+
return /* @__PURE__ */ jsxs39("section", {
|
|
4856
5146
|
"aria-label": label,
|
|
4857
5147
|
"data-density": density,
|
|
4858
5148
|
children: [
|
|
4859
|
-
/* @__PURE__ */
|
|
5149
|
+
/* @__PURE__ */ jsx56("ul", {
|
|
4860
5150
|
className: "grid gap-3",
|
|
4861
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4862
|
-
children: /* @__PURE__ */
|
|
5151
|
+
children: items.map((item) => /* @__PURE__ */ jsx56("li", {
|
|
5152
|
+
children: /* @__PURE__ */ jsxs39(Meter2, {
|
|
4863
5153
|
min: 0,
|
|
4864
5154
|
max,
|
|
4865
5155
|
value: item.value,
|
|
@@ -4867,11 +5157,11 @@ function BarList2({
|
|
|
4867
5157
|
format: { maximumFractionDigits: 2 },
|
|
4868
5158
|
className: "gap-y-1",
|
|
4869
5159
|
children: [
|
|
4870
|
-
/* @__PURE__ */
|
|
5160
|
+
/* @__PURE__ */ jsxs39("div", {
|
|
4871
5161
|
className: "flex w-full items-center justify-between gap-3 text-sm",
|
|
4872
5162
|
children: [
|
|
4873
|
-
/* @__PURE__ */
|
|
4874
|
-
children: onItemSelect ? /* @__PURE__ */
|
|
5163
|
+
/* @__PURE__ */ jsx56(MeterLabel2, {
|
|
5164
|
+
children: onItemSelect ? /* @__PURE__ */ jsx56(Button2, {
|
|
4875
5165
|
type: "button",
|
|
4876
5166
|
variant: "link",
|
|
4877
5167
|
className: "h-auto p-0",
|
|
@@ -4879,19 +5169,19 @@ function BarList2({
|
|
|
4879
5169
|
children: item.label
|
|
4880
5170
|
}) : item.label
|
|
4881
5171
|
}),
|
|
4882
|
-
/* @__PURE__ */
|
|
5172
|
+
/* @__PURE__ */ jsx56(MeterValue2, {
|
|
4883
5173
|
children: () => valueFormatter(item.value)
|
|
4884
5174
|
})
|
|
4885
5175
|
]
|
|
4886
5176
|
}),
|
|
4887
|
-
/* @__PURE__ */
|
|
4888
|
-
children: /* @__PURE__ */
|
|
5177
|
+
/* @__PURE__ */ jsx56(MeterTrack2, {
|
|
5178
|
+
children: /* @__PURE__ */ jsx56(MeterIndicator2, {})
|
|
4889
5179
|
})
|
|
4890
5180
|
]
|
|
4891
5181
|
})
|
|
4892
5182
|
}, item.id))
|
|
4893
5183
|
}),
|
|
4894
|
-
!items.length && /* @__PURE__ */
|
|
5184
|
+
!items.length && /* @__PURE__ */ jsx56("p", {
|
|
4895
5185
|
role: "status",
|
|
4896
5186
|
className: "text-sm text-muted-foreground",
|
|
4897
5187
|
children: "No data available."
|
|
@@ -4900,23 +5190,23 @@ function BarList2({
|
|
|
4900
5190
|
});
|
|
4901
5191
|
}
|
|
4902
5192
|
// src/components/StatusTracker.tsx
|
|
4903
|
-
import { jsx as
|
|
5193
|
+
import { jsx as jsx57, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4904
5194
|
var statusClasses = { success: "bg-success", warning: "bg-warning", error: "bg-destructive", unknown: "bg-muted" };
|
|
4905
5195
|
function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
4906
|
-
return /* @__PURE__ */
|
|
4907
|
-
children: /* @__PURE__ */
|
|
5196
|
+
return /* @__PURE__ */ jsx57(TooltipProvider2, {
|
|
5197
|
+
children: /* @__PURE__ */ jsx57("div", {
|
|
4908
5198
|
role: "group",
|
|
4909
5199
|
"aria-label": label,
|
|
4910
5200
|
"data-density": density,
|
|
4911
5201
|
className: "flex min-w-0 gap-1",
|
|
4912
|
-
children: items.map((item) => /* @__PURE__ */
|
|
5202
|
+
children: items.map((item) => /* @__PURE__ */ jsxs40(Tooltip2, {
|
|
4913
5203
|
children: [
|
|
4914
|
-
/* @__PURE__ */
|
|
5204
|
+
/* @__PURE__ */ jsx57(TooltipTrigger2, {
|
|
4915
5205
|
"aria-label": `${item.label}: ${item.status}`,
|
|
4916
5206
|
onClick: () => onItemSelect?.(item),
|
|
4917
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])
|
|
4918
5208
|
}),
|
|
4919
|
-
/* @__PURE__ */
|
|
5209
|
+
/* @__PURE__ */ jsxs40(TooltipContent2, {
|
|
4920
5210
|
children: [
|
|
4921
5211
|
item.label,
|
|
4922
5212
|
": ",
|
|
@@ -4929,7 +5219,7 @@ function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
|
4929
5219
|
});
|
|
4930
5220
|
}
|
|
4931
5221
|
// src/components/DashboardLayout.tsx
|
|
4932
|
-
import { jsx as
|
|
5222
|
+
import { jsx as jsx58, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
4933
5223
|
function DashboardLayout2({
|
|
4934
5224
|
title,
|
|
4935
5225
|
description,
|
|
@@ -4940,24 +5230,24 @@ function DashboardLayout2({
|
|
|
4940
5230
|
footer,
|
|
4941
5231
|
density
|
|
4942
5232
|
}) {
|
|
4943
|
-
return /* @__PURE__ */
|
|
5233
|
+
return /* @__PURE__ */ jsxs41("div", {
|
|
4944
5234
|
"data-density": density,
|
|
4945
5235
|
"data-scroll": "none",
|
|
4946
5236
|
className: "grid min-w-0 gap-6",
|
|
4947
5237
|
children: [
|
|
4948
|
-
/* @__PURE__ */
|
|
5238
|
+
/* @__PURE__ */ jsx58(PageHeader2, {
|
|
4949
5239
|
title,
|
|
4950
5240
|
description,
|
|
4951
5241
|
actions
|
|
4952
5242
|
}),
|
|
4953
5243
|
filters,
|
|
4954
|
-
stats.length > 0 && /* @__PURE__ */
|
|
5244
|
+
stats.length > 0 && /* @__PURE__ */ jsx58("div", {
|
|
4955
5245
|
className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
|
|
4956
|
-
children: stats.map(({ id, ...stat }) => /* @__PURE__ */
|
|
5246
|
+
children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx58(StatCard2, {
|
|
4957
5247
|
...stat
|
|
4958
5248
|
}, id))
|
|
4959
5249
|
}),
|
|
4960
|
-
/* @__PURE__ */
|
|
5250
|
+
/* @__PURE__ */ jsx58("div", {
|
|
4961
5251
|
className: "grid min-w-0 gap-4",
|
|
4962
5252
|
children
|
|
4963
5253
|
}),
|
|
@@ -4966,18 +5256,18 @@ function DashboardLayout2({
|
|
|
4966
5256
|
});
|
|
4967
5257
|
}
|
|
4968
5258
|
// src/components/BillingUsage.tsx
|
|
4969
|
-
import { jsx as
|
|
5259
|
+
import { jsx as jsx59, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
4970
5260
|
function BillingUsage2({ plan, price, period, metrics, onManage, pending, density }) {
|
|
4971
|
-
return /* @__PURE__ */
|
|
5261
|
+
return /* @__PURE__ */ jsxs42(Card2, {
|
|
4972
5262
|
density,
|
|
4973
5263
|
"aria-label": "Billing and usage",
|
|
4974
5264
|
children: [
|
|
4975
|
-
/* @__PURE__ */
|
|
5265
|
+
/* @__PURE__ */ jsxs42(CardHeader2, {
|
|
4976
5266
|
children: [
|
|
4977
|
-
/* @__PURE__ */
|
|
5267
|
+
/* @__PURE__ */ jsx59(CardTitle2, {
|
|
4978
5268
|
children: plan
|
|
4979
5269
|
}),
|
|
4980
|
-
/* @__PURE__ */
|
|
5270
|
+
/* @__PURE__ */ jsxs42(CardDescription2, {
|
|
4981
5271
|
children: [
|
|
4982
5272
|
price,
|
|
4983
5273
|
" · ",
|
|
@@ -4986,32 +5276,32 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4986
5276
|
})
|
|
4987
5277
|
]
|
|
4988
5278
|
}),
|
|
4989
|
-
/* @__PURE__ */
|
|
5279
|
+
/* @__PURE__ */ jsx59(CardContent2, {
|
|
4990
5280
|
className: "grid gap-4",
|
|
4991
|
-
children: metrics.map((metric) => /* @__PURE__ */
|
|
5281
|
+
children: metrics.map((metric) => /* @__PURE__ */ jsxs42(Meter2, {
|
|
4992
5282
|
value: metric.used,
|
|
4993
5283
|
max: metric.limit,
|
|
4994
5284
|
"aria-label": metric.label,
|
|
4995
5285
|
children: [
|
|
4996
|
-
/* @__PURE__ */
|
|
5286
|
+
/* @__PURE__ */ jsxs42("div", {
|
|
4997
5287
|
className: "mb-2 flex items-center justify-between gap-3 text-sm",
|
|
4998
5288
|
children: [
|
|
4999
|
-
/* @__PURE__ */
|
|
5289
|
+
/* @__PURE__ */ jsx59(MeterLabel2, {
|
|
5000
5290
|
children: metric.label
|
|
5001
5291
|
}),
|
|
5002
|
-
/* @__PURE__ */
|
|
5292
|
+
/* @__PURE__ */ jsx59(MeterValue2, {
|
|
5003
5293
|
children: () => `${metric.used.toLocaleString()} / ${metric.limit.toLocaleString()}${metric.unit ? ` ${metric.unit}` : ""}`
|
|
5004
5294
|
})
|
|
5005
5295
|
]
|
|
5006
5296
|
}),
|
|
5007
|
-
/* @__PURE__ */
|
|
5008
|
-
children: /* @__PURE__ */
|
|
5297
|
+
/* @__PURE__ */ jsx59(MeterTrack2, {
|
|
5298
|
+
children: /* @__PURE__ */ jsx59(MeterIndicator2, {})
|
|
5009
5299
|
})
|
|
5010
5300
|
]
|
|
5011
5301
|
}, metric.id))
|
|
5012
5302
|
}),
|
|
5013
|
-
/* @__PURE__ */
|
|
5014
|
-
children: /* @__PURE__ */
|
|
5303
|
+
/* @__PURE__ */ jsx59(CardFooter2, {
|
|
5304
|
+
children: /* @__PURE__ */ jsx59(Button2, {
|
|
5015
5305
|
type: "button",
|
|
5016
5306
|
variant: "outline",
|
|
5017
5307
|
onClick: onManage,
|
|
@@ -5022,4 +5312,4 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
5022
5312
|
]
|
|
5023
5313
|
});
|
|
5024
5314
|
}
|
|
5025
|
-
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, 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 };
|