@alexgorbatchev/shadcn 0.0.103 → 0.0.104
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-n593jqmw.js → chunk-e1hkq1mw.js} +346 -312
- package/dist/components/DescriptionList.d.ts +18 -0
- package/dist/components/json-render/index.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -1
- package/dist/prototype.js +1 -1
- package/llms/components/data-display/DescriptionList.md +56 -0
- package/llms.txt +1 -0
- package/package.json +1 -1
|
@@ -1425,13 +1425,47 @@ function ButtonGroupSeparator2({
|
|
|
1425
1425
|
...props
|
|
1426
1426
|
});
|
|
1427
1427
|
}
|
|
1428
|
+
// src/components/DescriptionList.tsx
|
|
1429
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1430
|
+
function DescriptionList2({ density, className, ...props }) {
|
|
1431
|
+
return /* @__PURE__ */ jsx17("dl", {
|
|
1432
|
+
"data-density": density,
|
|
1433
|
+
"data-slot": "description-list",
|
|
1434
|
+
className: cn2("flex w-full min-w-0 flex-col gap-panel text-sm", className),
|
|
1435
|
+
...props
|
|
1436
|
+
});
|
|
1437
|
+
}
|
|
1438
|
+
function DescriptionListItem2({ density, className, ...props }) {
|
|
1439
|
+
return /* @__PURE__ */ jsx17("div", {
|
|
1440
|
+
"data-density": density,
|
|
1441
|
+
"data-slot": "description-list-item",
|
|
1442
|
+
className: cn2("flex min-w-0 flex-col gap-1", className),
|
|
1443
|
+
...props
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
function DescriptionTerm2({ density, className, ...props }) {
|
|
1447
|
+
return /* @__PURE__ */ jsx17("dt", {
|
|
1448
|
+
"data-density": density,
|
|
1449
|
+
"data-slot": "description-term",
|
|
1450
|
+
className: cn2("min-w-0 font-medium break-words text-muted-foreground", className),
|
|
1451
|
+
...props
|
|
1452
|
+
});
|
|
1453
|
+
}
|
|
1454
|
+
function DescriptionDetails2({ density, className, ...props }) {
|
|
1455
|
+
return /* @__PURE__ */ jsx17("dd", {
|
|
1456
|
+
"data-density": density,
|
|
1457
|
+
"data-slot": "description-details",
|
|
1458
|
+
className: cn2("min-w-0 break-words whitespace-pre-wrap text-foreground", className),
|
|
1459
|
+
...props
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1428
1462
|
// src/components/Item.tsx
|
|
1429
1463
|
import { mergeProps as mergeProps5 } from "@base-ui/react/merge-props";
|
|
1430
1464
|
import { useRender as useRender5 } from "@base-ui/react/use-render";
|
|
1431
1465
|
import { cva as cva2 } from "class-variance-authority";
|
|
1432
|
-
import { jsx as
|
|
1466
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1433
1467
|
function ItemGroup2({ density, className, ...props }) {
|
|
1434
|
-
return /* @__PURE__ */
|
|
1468
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1435
1469
|
role: "list",
|
|
1436
1470
|
"data-density": density,
|
|
1437
1471
|
"data-slot": "item-group",
|
|
@@ -1440,7 +1474,7 @@ function ItemGroup2({ density, className, ...props }) {
|
|
|
1440
1474
|
});
|
|
1441
1475
|
}
|
|
1442
1476
|
function ItemSeparator2({ density, className, ...props }) {
|
|
1443
|
-
return /* @__PURE__ */
|
|
1477
|
+
return /* @__PURE__ */ jsx18(Separator2, {
|
|
1444
1478
|
"data-density": density,
|
|
1445
1479
|
"data-slot": "item-separator",
|
|
1446
1480
|
orientation: "horizontal",
|
|
@@ -1501,7 +1535,7 @@ var itemMediaVariants = cva2("flex shrink-0 items-center justify-center gap-2 gr
|
|
|
1501
1535
|
}
|
|
1502
1536
|
});
|
|
1503
1537
|
function ItemMedia2({ density, className, variant = "default", ...props }) {
|
|
1504
|
-
return /* @__PURE__ */
|
|
1538
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1505
1539
|
"data-density": density,
|
|
1506
1540
|
"data-slot": "item-media",
|
|
1507
1541
|
"data-variant": variant,
|
|
@@ -1510,7 +1544,7 @@ function ItemMedia2({ density, className, variant = "default", ...props }) {
|
|
|
1510
1544
|
});
|
|
1511
1545
|
}
|
|
1512
1546
|
function ItemContent2({ density, className, ...props }) {
|
|
1513
|
-
return /* @__PURE__ */
|
|
1547
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1514
1548
|
"data-density": density,
|
|
1515
1549
|
"data-slot": "item-content",
|
|
1516
1550
|
className: cn2("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", className),
|
|
@@ -1518,7 +1552,7 @@ function ItemContent2({ density, className, ...props }) {
|
|
|
1518
1552
|
});
|
|
1519
1553
|
}
|
|
1520
1554
|
function ItemTitle2({ density, className, wrap = false, ...props }) {
|
|
1521
|
-
return /* @__PURE__ */
|
|
1555
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1522
1556
|
"data-density": density,
|
|
1523
1557
|
"data-slot": "item-title",
|
|
1524
1558
|
className: cn2(!wrap && "line-clamp-1", "flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4", wrap && "min-w-0 max-w-full wrap-anywhere", className),
|
|
@@ -1526,7 +1560,7 @@ function ItemTitle2({ density, className, wrap = false, ...props }) {
|
|
|
1526
1560
|
});
|
|
1527
1561
|
}
|
|
1528
1562
|
function ItemDescription2({ density, className, ...props }) {
|
|
1529
|
-
return /* @__PURE__ */
|
|
1563
|
+
return /* @__PURE__ */ jsx18("p", {
|
|
1530
1564
|
"data-density": density,
|
|
1531
1565
|
"data-slot": "item-description",
|
|
1532
1566
|
className: cn2("line-clamp-2 text-start text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
|
|
@@ -1534,7 +1568,7 @@ function ItemDescription2({ density, className, ...props }) {
|
|
|
1534
1568
|
});
|
|
1535
1569
|
}
|
|
1536
1570
|
function ItemActions2({ density, className, ...props }) {
|
|
1537
|
-
return /* @__PURE__ */
|
|
1571
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1538
1572
|
"data-density": density,
|
|
1539
1573
|
"data-slot": "item-actions",
|
|
1540
1574
|
className: cn2("flex items-center gap-2", className),
|
|
@@ -1542,7 +1576,7 @@ function ItemActions2({ density, className, ...props }) {
|
|
|
1542
1576
|
});
|
|
1543
1577
|
}
|
|
1544
1578
|
function ItemHeader2({ density, className, ...props }) {
|
|
1545
|
-
return /* @__PURE__ */
|
|
1579
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1546
1580
|
"data-density": density,
|
|
1547
1581
|
"data-slot": "item-header",
|
|
1548
1582
|
className: cn2("flex basis-full items-center justify-between gap-2", className),
|
|
@@ -1550,7 +1584,7 @@ function ItemHeader2({ density, className, ...props }) {
|
|
|
1550
1584
|
});
|
|
1551
1585
|
}
|
|
1552
1586
|
function ItemFooter2({ density, className, ...props }) {
|
|
1553
|
-
return /* @__PURE__ */
|
|
1587
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1554
1588
|
"data-density": density,
|
|
1555
1589
|
"data-slot": "item-footer",
|
|
1556
1590
|
className: cn2("flex basis-full items-center justify-between gap-2", className),
|
|
@@ -1559,9 +1593,9 @@ function ItemFooter2({ density, className, ...props }) {
|
|
|
1559
1593
|
}
|
|
1560
1594
|
// src/components/Pagination.tsx
|
|
1561
1595
|
import { ChevronLeftIcon, ChevronRightIcon as ChevronRightIcon2, MoreHorizontalIcon as MoreHorizontalIcon2 } from "lucide-react";
|
|
1562
|
-
import { jsx as
|
|
1596
|
+
import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1563
1597
|
function Pagination2({ density, className, ...props }) {
|
|
1564
|
-
return /* @__PURE__ */
|
|
1598
|
+
return /* @__PURE__ */ jsx19("nav", {
|
|
1565
1599
|
role: "navigation",
|
|
1566
1600
|
"aria-label": "pagination",
|
|
1567
1601
|
"data-density": density,
|
|
@@ -1571,7 +1605,7 @@ function Pagination2({ density, className, ...props }) {
|
|
|
1571
1605
|
});
|
|
1572
1606
|
}
|
|
1573
1607
|
function PaginationContent2({ density, className, ...props }) {
|
|
1574
|
-
return /* @__PURE__ */
|
|
1608
|
+
return /* @__PURE__ */ jsx19("ul", {
|
|
1575
1609
|
"data-density": density,
|
|
1576
1610
|
"data-slot": "pagination-content",
|
|
1577
1611
|
className: cn2("flex items-center gap-0.5", className),
|
|
@@ -1579,7 +1613,7 @@ function PaginationContent2({ density, className, ...props }) {
|
|
|
1579
1613
|
});
|
|
1580
1614
|
}
|
|
1581
1615
|
function PaginationItem2({ ...props }) {
|
|
1582
|
-
return /* @__PURE__ */
|
|
1616
|
+
return /* @__PURE__ */ jsx19("li", {
|
|
1583
1617
|
"data-slot": "pagination-item",
|
|
1584
1618
|
...props
|
|
1585
1619
|
});
|
|
@@ -1592,7 +1626,7 @@ function PaginationLink2({
|
|
|
1592
1626
|
size = "icon",
|
|
1593
1627
|
...props
|
|
1594
1628
|
}) {
|
|
1595
|
-
return /* @__PURE__ */
|
|
1629
|
+
return /* @__PURE__ */ jsx19(AnalyticsLink, {
|
|
1596
1630
|
component: "PaginationLink",
|
|
1597
1631
|
analytics,
|
|
1598
1632
|
"data-density": density,
|
|
@@ -1616,11 +1650,11 @@ function PaginationPrevious2({
|
|
|
1616
1650
|
className: cn2("ps-1.5!", className),
|
|
1617
1651
|
...props,
|
|
1618
1652
|
children: [
|
|
1619
|
-
/* @__PURE__ */
|
|
1653
|
+
/* @__PURE__ */ jsx19(ChevronLeftIcon, {
|
|
1620
1654
|
"data-icon": "inline-start",
|
|
1621
1655
|
className: "rtl:rotate-180"
|
|
1622
1656
|
}),
|
|
1623
|
-
/* @__PURE__ */
|
|
1657
|
+
/* @__PURE__ */ jsx19("span", {
|
|
1624
1658
|
className: "hidden sm:block",
|
|
1625
1659
|
children: text
|
|
1626
1660
|
})
|
|
@@ -1635,11 +1669,11 @@ function PaginationNext2({ density, className, text = "Next", ...props }) {
|
|
|
1635
1669
|
className: cn2("pe-1.5!", className),
|
|
1636
1670
|
...props,
|
|
1637
1671
|
children: [
|
|
1638
|
-
/* @__PURE__ */
|
|
1672
|
+
/* @__PURE__ */ jsx19("span", {
|
|
1639
1673
|
className: "hidden sm:block",
|
|
1640
1674
|
children: text
|
|
1641
1675
|
}),
|
|
1642
|
-
/* @__PURE__ */
|
|
1676
|
+
/* @__PURE__ */ jsx19(ChevronRightIcon2, {
|
|
1643
1677
|
"data-icon": "inline-end",
|
|
1644
1678
|
className: "rtl:rotate-180"
|
|
1645
1679
|
})
|
|
@@ -1654,8 +1688,8 @@ function PaginationEllipsis2({ density, className, ...props }) {
|
|
|
1654
1688
|
className: cn2("flex size-control items-center justify-center [&_svg:not([class*='size-'])]:size-4", className),
|
|
1655
1689
|
...props,
|
|
1656
1690
|
children: [
|
|
1657
|
-
/* @__PURE__ */
|
|
1658
|
-
/* @__PURE__ */
|
|
1691
|
+
/* @__PURE__ */ jsx19(MoreHorizontalIcon2, {}),
|
|
1692
|
+
/* @__PURE__ */ jsx19("span", {
|
|
1659
1693
|
className: "sr-only",
|
|
1660
1694
|
children: "More pages"
|
|
1661
1695
|
})
|
|
@@ -1666,9 +1700,9 @@ function PaginationEllipsis2({ density, className, ...props }) {
|
|
|
1666
1700
|
import { CheckIcon } from "lucide-react";
|
|
1667
1701
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
1668
1702
|
import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
|
|
1669
|
-
import { jsx as
|
|
1703
|
+
import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1670
1704
|
function Menubar2({ density, className, ...props }) {
|
|
1671
|
-
return /* @__PURE__ */
|
|
1705
|
+
return /* @__PURE__ */ jsx20(MenubarPrimitive, {
|
|
1672
1706
|
"data-density": density,
|
|
1673
1707
|
"data-slot": "menubar",
|
|
1674
1708
|
className: (state) => cn2("flex h-control items-center gap-0.5 rounded-sm border p-px", typeof className === "function" ? className(state) : className),
|
|
@@ -1680,26 +1714,26 @@ function MenubarMenu2({
|
|
|
1680
1714
|
...props
|
|
1681
1715
|
}) {
|
|
1682
1716
|
const trackedOnOpenChange = useAnalyticsCallback("MenubarMenu", analytics, (open, _details) => ({ name: "ui.open-request", open }), props.onOpenChange);
|
|
1683
|
-
return /* @__PURE__ */
|
|
1717
|
+
return /* @__PURE__ */ jsx20(DropdownMenu2, {
|
|
1684
1718
|
"data-slot": "menubar-menu",
|
|
1685
1719
|
...props,
|
|
1686
1720
|
onOpenChange: trackedOnOpenChange
|
|
1687
1721
|
});
|
|
1688
1722
|
}
|
|
1689
1723
|
function MenubarGroup2({ ...props }) {
|
|
1690
|
-
return /* @__PURE__ */
|
|
1724
|
+
return /* @__PURE__ */ jsx20(MenuGroup2, {
|
|
1691
1725
|
"data-slot": "menubar-group",
|
|
1692
1726
|
...props
|
|
1693
1727
|
});
|
|
1694
1728
|
}
|
|
1695
1729
|
function MenubarPortal2({ ...props }) {
|
|
1696
|
-
return /* @__PURE__ */
|
|
1730
|
+
return /* @__PURE__ */ jsx20(MenuPortal, {
|
|
1697
1731
|
"data-slot": "menubar-portal",
|
|
1698
1732
|
...props
|
|
1699
1733
|
});
|
|
1700
1734
|
}
|
|
1701
1735
|
function MenubarTrigger2({ density, className, ...props }) {
|
|
1702
|
-
return /* @__PURE__ */
|
|
1736
|
+
return /* @__PURE__ */ jsx20(DropdownMenuTrigger2, {
|
|
1703
1737
|
"data-density": density,
|
|
1704
1738
|
"data-slot": "menubar-trigger",
|
|
1705
1739
|
className: (state) => cn2("flex h-full items-center rounded-sm px-control-x text-sm leading-none font-medium outline-hidden select-none hover:bg-muted aria-expanded:bg-muted", typeof className === "function" ? className(state) : className),
|
|
@@ -1714,7 +1748,7 @@ function MenubarContent2({
|
|
|
1714
1748
|
sideOffset = 8,
|
|
1715
1749
|
...props
|
|
1716
1750
|
}) {
|
|
1717
|
-
return /* @__PURE__ */
|
|
1751
|
+
return /* @__PURE__ */ jsx20(MenuPopup, {
|
|
1718
1752
|
density,
|
|
1719
1753
|
"data-slot": "menubar-content",
|
|
1720
1754
|
align,
|
|
@@ -1733,7 +1767,7 @@ function MenubarItem2({
|
|
|
1733
1767
|
...props
|
|
1734
1768
|
}) {
|
|
1735
1769
|
const trackedOnClick = useAnalyticsCallback("MenubarItem", analytics, { name: "ui.activate" }, props.onClick);
|
|
1736
|
-
return /* @__PURE__ */
|
|
1770
|
+
return /* @__PURE__ */ jsx20(MenuItem2, {
|
|
1737
1771
|
density,
|
|
1738
1772
|
"data-slot": "menubar-item",
|
|
1739
1773
|
inset,
|
|
@@ -1762,10 +1796,10 @@ function MenubarCheckboxItem2({
|
|
|
1762
1796
|
...props,
|
|
1763
1797
|
onCheckedChange: trackedOnCheckedChange,
|
|
1764
1798
|
children: [
|
|
1765
|
-
/* @__PURE__ */
|
|
1799
|
+
/* @__PURE__ */ jsx20("span", {
|
|
1766
1800
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
1767
|
-
children: /* @__PURE__ */
|
|
1768
|
-
children: /* @__PURE__ */
|
|
1801
|
+
children: /* @__PURE__ */ jsx20(MenuPrimitive.CheckboxItemIndicator, {
|
|
1802
|
+
children: /* @__PURE__ */ jsx20(CheckIcon, {})
|
|
1769
1803
|
})
|
|
1770
1804
|
}),
|
|
1771
1805
|
children
|
|
@@ -1773,7 +1807,7 @@ function MenubarCheckboxItem2({
|
|
|
1773
1807
|
});
|
|
1774
1808
|
}
|
|
1775
1809
|
function MenubarRadioGroup2({ ...props }) {
|
|
1776
|
-
return /* @__PURE__ */
|
|
1810
|
+
return /* @__PURE__ */ jsx20(MenuRadioGroup2, {
|
|
1777
1811
|
"data-slot": "menubar-radio-group",
|
|
1778
1812
|
...props
|
|
1779
1813
|
});
|
|
@@ -1786,10 +1820,10 @@ function MenubarRadioItem2({ density, className, children, inset, ...props }) {
|
|
|
1786
1820
|
className: (state) => cn2("relative flex cursor-default items-center gap-control-gap rounded-md py-1 pe-1.5 ps-7 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
1787
1821
|
...props,
|
|
1788
1822
|
children: [
|
|
1789
|
-
/* @__PURE__ */
|
|
1823
|
+
/* @__PURE__ */ jsx20("span", {
|
|
1790
1824
|
className: "pointer-events-none absolute start-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4",
|
|
1791
|
-
children: /* @__PURE__ */
|
|
1792
|
-
children: /* @__PURE__ */
|
|
1825
|
+
children: /* @__PURE__ */ jsx20(MenuPrimitive.RadioItemIndicator, {
|
|
1826
|
+
children: /* @__PURE__ */ jsx20(CheckIcon, {})
|
|
1793
1827
|
})
|
|
1794
1828
|
}),
|
|
1795
1829
|
children
|
|
@@ -1797,7 +1831,7 @@ function MenubarRadioItem2({ density, className, children, inset, ...props }) {
|
|
|
1797
1831
|
});
|
|
1798
1832
|
}
|
|
1799
1833
|
function MenubarLabel2({ density, className, inset, ...props }) {
|
|
1800
|
-
return /* @__PURE__ */
|
|
1834
|
+
return /* @__PURE__ */ jsx20(MenuLabel2, {
|
|
1801
1835
|
density,
|
|
1802
1836
|
"data-slot": "menubar-label",
|
|
1803
1837
|
inset,
|
|
@@ -1806,7 +1840,7 @@ function MenubarLabel2({ density, className, inset, ...props }) {
|
|
|
1806
1840
|
});
|
|
1807
1841
|
}
|
|
1808
1842
|
function MenubarSeparator2({ density, className, ...props }) {
|
|
1809
|
-
return /* @__PURE__ */
|
|
1843
|
+
return /* @__PURE__ */ jsx20(MenuSeparator2, {
|
|
1810
1844
|
density,
|
|
1811
1845
|
"data-slot": "menubar-separator",
|
|
1812
1846
|
className: (state) => cn2("-mx-1 my-1 h-px bg-border", typeof className === "function" ? className(state) : className),
|
|
@@ -1814,7 +1848,7 @@ function MenubarSeparator2({ density, className, ...props }) {
|
|
|
1814
1848
|
});
|
|
1815
1849
|
}
|
|
1816
1850
|
function MenubarShortcut2({ density, className, ...props }) {
|
|
1817
|
-
return /* @__PURE__ */
|
|
1851
|
+
return /* @__PURE__ */ jsx20(MenuShortcut2, {
|
|
1818
1852
|
"data-density": density,
|
|
1819
1853
|
"data-slot": "menubar-shortcut",
|
|
1820
1854
|
className: cn2("ms-auto text-xs tracking-widest text-muted-foreground group-focus/menubar-item:text-accent-foreground", className),
|
|
@@ -1822,13 +1856,13 @@ function MenubarShortcut2({ density, className, ...props }) {
|
|
|
1822
1856
|
});
|
|
1823
1857
|
}
|
|
1824
1858
|
function MenubarSub2({ ...props }) {
|
|
1825
|
-
return /* @__PURE__ */
|
|
1859
|
+
return /* @__PURE__ */ jsx20(MenuSub2, {
|
|
1826
1860
|
"data-slot": "menubar-sub",
|
|
1827
1861
|
...props
|
|
1828
1862
|
});
|
|
1829
1863
|
}
|
|
1830
1864
|
function MenubarSubTrigger2({ density, className, inset, ...props }) {
|
|
1831
|
-
return /* @__PURE__ */
|
|
1865
|
+
return /* @__PURE__ */ jsx20(MenuSubTrigger2, {
|
|
1832
1866
|
density,
|
|
1833
1867
|
"data-slot": "menubar-sub-trigger",
|
|
1834
1868
|
inset,
|
|
@@ -1837,7 +1871,7 @@ function MenubarSubTrigger2({ density, className, inset, ...props }) {
|
|
|
1837
1871
|
});
|
|
1838
1872
|
}
|
|
1839
1873
|
function MenubarSubContent2({ density, className, ...props }) {
|
|
1840
|
-
return /* @__PURE__ */
|
|
1874
|
+
return /* @__PURE__ */ jsx20(MenuSubContent2, {
|
|
1841
1875
|
density,
|
|
1842
1876
|
"data-slot": "menubar-sub-content",
|
|
1843
1877
|
className: (state) => cn2(" min-w-32 rounded-sm bg-popover p-1 text-popover-foreground shadow-frame border border-frame-edge border border-frame-edge shadow-frame duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 ", typeof className === "function" ? className(state) : className),
|
|
@@ -1848,7 +1882,7 @@ function MenubarSubContent2({ density, className, ...props }) {
|
|
|
1848
1882
|
import { ChevronDownIcon as ChevronDownIcon2 } from "lucide-react";
|
|
1849
1883
|
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
1850
1884
|
import { cva as cva3 } from "class-variance-authority";
|
|
1851
|
-
import { jsx as
|
|
1885
|
+
import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1852
1886
|
function NavigationMenu2({
|
|
1853
1887
|
analytics,
|
|
1854
1888
|
density,
|
|
@@ -1867,7 +1901,7 @@ function NavigationMenu2({
|
|
|
1867
1901
|
onValueChange: trackedOnValueChange,
|
|
1868
1902
|
children: [
|
|
1869
1903
|
children,
|
|
1870
|
-
/* @__PURE__ */
|
|
1904
|
+
/* @__PURE__ */ jsx21(NavigationMenuPositioner2, {
|
|
1871
1905
|
density: resolvedDensity,
|
|
1872
1906
|
align
|
|
1873
1907
|
})
|
|
@@ -1875,7 +1909,7 @@ function NavigationMenu2({
|
|
|
1875
1909
|
});
|
|
1876
1910
|
}
|
|
1877
1911
|
function NavigationMenuList2({ density, className, ...props }) {
|
|
1878
|
-
return /* @__PURE__ */
|
|
1912
|
+
return /* @__PURE__ */ jsx21(NavigationMenuPrimitive.List, {
|
|
1879
1913
|
"data-density": density,
|
|
1880
1914
|
"data-slot": "navigation-menu-list",
|
|
1881
1915
|
className: (state) => cn2("group flex flex-1 list-none items-center justify-center gap-0", typeof className === "function" ? className(state) : className),
|
|
@@ -1883,7 +1917,7 @@ function NavigationMenuList2({ density, className, ...props }) {
|
|
|
1883
1917
|
});
|
|
1884
1918
|
}
|
|
1885
1919
|
function NavigationMenuItem2({ density, className, ...props }) {
|
|
1886
|
-
return /* @__PURE__ */
|
|
1920
|
+
return /* @__PURE__ */ jsx21(NavigationMenuPrimitive.Item, {
|
|
1887
1921
|
"data-density": density,
|
|
1888
1922
|
"data-slot": "navigation-menu-item",
|
|
1889
1923
|
className: (state) => cn2("relative", typeof className === "function" ? className(state) : className),
|
|
@@ -1900,12 +1934,12 @@ function NavigationMenuTrigger2({ density, className, children, ...props }) {
|
|
|
1900
1934
|
children: [
|
|
1901
1935
|
children,
|
|
1902
1936
|
" ",
|
|
1903
|
-
/* @__PURE__ */
|
|
1937
|
+
/* @__PURE__ */ jsx21(NavigationMenuIndicator2, {})
|
|
1904
1938
|
]
|
|
1905
1939
|
});
|
|
1906
1940
|
}
|
|
1907
1941
|
function NavigationMenuContent2({ density, className, ...props }) {
|
|
1908
|
-
return /* @__PURE__ */
|
|
1942
|
+
return /* @__PURE__ */ jsx21(NavigationMenuPrimitive.Content, {
|
|
1909
1943
|
"data-density": density,
|
|
1910
1944
|
"data-slot": "navigation-menu-content",
|
|
1911
1945
|
className: (state) => cn2("data-ending-style:data-activation-direction=left:translate-x-[50%] data-ending-style:data-activation-direction=right:translate-x-[-50%] data-starting-style:data-activation-direction=left:translate-x-[-50%] data-starting-style:data-activation-direction=right:translate-x-[50%] h-full w-auto p-1 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-ending-style:opacity-0 data-starting-style:opacity-0 ", typeof className === "function" ? className(state) : className),
|
|
@@ -1925,12 +1959,12 @@ function NavigationMenuPositioner2({
|
|
|
1925
1959
|
const direction = useDirection2();
|
|
1926
1960
|
const container = usePortalContainer2();
|
|
1927
1961
|
const portal = usePortalNode();
|
|
1928
|
-
return /* @__PURE__ */
|
|
1962
|
+
return /* @__PURE__ */ jsx21(NavigationMenuPrimitive.Portal, {
|
|
1929
1963
|
container,
|
|
1930
1964
|
ref: portal.ref,
|
|
1931
|
-
children: /* @__PURE__ */
|
|
1965
|
+
children: /* @__PURE__ */ jsx21(PortalProvider2, {
|
|
1932
1966
|
container: portal.node,
|
|
1933
|
-
children: /* @__PURE__ */
|
|
1967
|
+
children: /* @__PURE__ */ jsx21(NavigationMenuPrimitive.Positioner, {
|
|
1934
1968
|
dir: direction,
|
|
1935
1969
|
side,
|
|
1936
1970
|
sideOffset,
|
|
@@ -1938,11 +1972,11 @@ function NavigationMenuPositioner2({
|
|
|
1938
1972
|
alignOffset,
|
|
1939
1973
|
className: (state) => cn2("isolate h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0", typeof className === "function" ? className(state) : className),
|
|
1940
1974
|
...props,
|
|
1941
|
-
children: /* @__PURE__ */
|
|
1975
|
+
children: /* @__PURE__ */ jsx21(NavigationMenuPrimitive.Popup, {
|
|
1942
1976
|
"data-density": resolvedDensity,
|
|
1943
1977
|
"data-slot": "navigation-menu-popup",
|
|
1944
1978
|
className: "data-[ending-style]:easing-[ease] xs:w-(--popup-width) relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-sm bg-popover text-popover-foreground border border-frame-edge shadow-frame transition-[opacity,transform,width,height,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:opacity-0",
|
|
1945
|
-
children: /* @__PURE__ */
|
|
1979
|
+
children: /* @__PURE__ */ jsx21(NavigationMenuPrimitive.Viewport, {
|
|
1946
1980
|
className: "relative size-full overflow-hidden"
|
|
1947
1981
|
})
|
|
1948
1982
|
})
|
|
@@ -1952,7 +1986,7 @@ function NavigationMenuPositioner2({
|
|
|
1952
1986
|
}
|
|
1953
1987
|
function NavigationMenuLink2({ analytics, density, className, ...props }) {
|
|
1954
1988
|
const trackedOnClick = useAnalyticsCallback("NavigationMenuLink", analytics, { name: "ui.activate" }, props.onClick);
|
|
1955
|
-
return /* @__PURE__ */
|
|
1989
|
+
return /* @__PURE__ */ jsx21(NavigationMenuPrimitive.Link, {
|
|
1956
1990
|
"data-density": density,
|
|
1957
1991
|
"data-slot": "navigation-menu-link",
|
|
1958
1992
|
className: (state) => cn2("flex items-center gap-2 rounded-sm p-2 text-sm transition-colors outline-none hover:bg-muted focus:bg-muted focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", typeof className === "function" ? className(state) : className),
|
|
@@ -1966,32 +2000,32 @@ function NavigationMenuIndicator2({
|
|
|
1966
2000
|
children,
|
|
1967
2001
|
...props
|
|
1968
2002
|
}) {
|
|
1969
|
-
return /* @__PURE__ */
|
|
2003
|
+
return /* @__PURE__ */ jsx21(NavigationMenuPrimitive.Icon, {
|
|
1970
2004
|
"data-density": density,
|
|
1971
2005
|
"data-slot": "navigation-menu-indicator",
|
|
1972
2006
|
className: (state) => cn2("ms-1 inline-flex size-3 shrink-0 items-center justify-center transition-transform duration-120 data-popup-open:rotate-180 [&_svg]:size-full", typeof className === "function" ? className(state) : className),
|
|
1973
2007
|
...props,
|
|
1974
|
-
children: children ?? /* @__PURE__ */
|
|
2008
|
+
children: children ?? /* @__PURE__ */ jsx21(ChevronDownIcon2, {})
|
|
1975
2009
|
});
|
|
1976
2010
|
}
|
|
1977
2011
|
// src/components/Toast.tsx
|
|
1978
2012
|
import { Toast as ToastPrimitive } from "@base-ui/react/toast";
|
|
1979
2013
|
import { CircleCheckIcon, InfoIcon, TriangleAlertIcon, OctagonXIcon, LoaderCircleIcon, XIcon } from "lucide-react";
|
|
1980
|
-
import { jsx as
|
|
2014
|
+
import { jsx as jsx22, jsxs as jsxs14, Fragment as Fragment4 } from "react/jsx-runtime";
|
|
1981
2015
|
function ToastProvider2(props) {
|
|
1982
|
-
return /* @__PURE__ */
|
|
2016
|
+
return /* @__PURE__ */ jsx22(ToastPrimitive.Provider, {
|
|
1983
2017
|
...props
|
|
1984
2018
|
});
|
|
1985
2019
|
}
|
|
1986
2020
|
function ToastPortal2({ container, ref, children, ...props }) {
|
|
1987
2021
|
const resolvedContainer = usePortalContainer2(container);
|
|
1988
2022
|
const portal = usePortalNode(ref);
|
|
1989
|
-
return /* @__PURE__ */
|
|
2023
|
+
return /* @__PURE__ */ jsx22(ToastPrimitive.Portal, {
|
|
1990
2024
|
"data-slot": "toast-portal",
|
|
1991
2025
|
container: resolvedContainer,
|
|
1992
2026
|
ref: portal.ref,
|
|
1993
2027
|
...props,
|
|
1994
|
-
children: /* @__PURE__ */
|
|
2028
|
+
children: /* @__PURE__ */ jsx22(PortalProvider2, {
|
|
1995
2029
|
container: portal.node,
|
|
1996
2030
|
children
|
|
1997
2031
|
})
|
|
@@ -2000,7 +2034,7 @@ function ToastPortal2({ container, ref, children, ...props }) {
|
|
|
2000
2034
|
function ToastViewport2({ density, dir, className, ...props }) {
|
|
2001
2035
|
const resolvedDensity = useDensity(density);
|
|
2002
2036
|
const inheritedDirection = useDirection2();
|
|
2003
|
-
return /* @__PURE__ */
|
|
2037
|
+
return /* @__PURE__ */ jsx22(ToastPrimitive.Viewport, {
|
|
2004
2038
|
dir: dir ?? inheritedDirection,
|
|
2005
2039
|
"data-density": resolvedDensity,
|
|
2006
2040
|
"data-slot": "toast-viewport",
|
|
@@ -2009,7 +2043,7 @@ function ToastViewport2({ density, dir, className, ...props }) {
|
|
|
2009
2043
|
});
|
|
2010
2044
|
}
|
|
2011
2045
|
function Toast2({ density, className, ...props }) {
|
|
2012
|
-
return /* @__PURE__ */
|
|
2046
|
+
return /* @__PURE__ */ jsx22(ToastPrimitive.Root, {
|
|
2013
2047
|
"data-density": density,
|
|
2014
2048
|
"data-slot": "toast",
|
|
2015
2049
|
className: (state) => cn2("group/toast pointer-events-auto absolute right-0 bottom-0 w-full rounded-md border border-frame-edge bg-popover text-popover-foreground shadow-frame outline-none select-none focus-visible:ring-1 focus-visible:ring-ring [--offset-y:calc(var(--toast-offset-y)*-1-var(--toast-index)*var(--spacing-panel))] [transform:translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--offset-y)+var(--toast-swipe-movement-y)))] transition-[transform,opacity] duration-120 ease-out data-limited:opacity-0 data-starting-style:opacity-0 data-ending-style:opacity-0 motion-reduce:transition-none", typeof className === "function" ? className(state) : className),
|
|
@@ -2017,21 +2051,21 @@ function Toast2({ density, className, ...props }) {
|
|
|
2017
2051
|
});
|
|
2018
2052
|
}
|
|
2019
2053
|
function ToastContent2({ className, ...props }) {
|
|
2020
|
-
return /* @__PURE__ */
|
|
2054
|
+
return /* @__PURE__ */ jsx22(ToastPrimitive.Content, {
|
|
2021
2055
|
"data-slot": "toast-content",
|
|
2022
2056
|
className: (state) => cn2("flex items-center gap-control-gap p-panel", typeof className === "function" ? className(state) : className),
|
|
2023
2057
|
...props
|
|
2024
2058
|
});
|
|
2025
2059
|
}
|
|
2026
2060
|
function ToastTitle2({ className, ...props }) {
|
|
2027
|
-
return /* @__PURE__ */
|
|
2061
|
+
return /* @__PURE__ */ jsx22(ToastPrimitive.Title, {
|
|
2028
2062
|
"data-slot": "toast-title",
|
|
2029
2063
|
className: (state) => cn2("text-sm font-medium", typeof className === "function" ? className(state) : className),
|
|
2030
2064
|
...props
|
|
2031
2065
|
});
|
|
2032
2066
|
}
|
|
2033
2067
|
function ToastDescription2({ className, ...props }) {
|
|
2034
|
-
return /* @__PURE__ */
|
|
2068
|
+
return /* @__PURE__ */ jsx22(ToastPrimitive.Description, {
|
|
2035
2069
|
"data-slot": "toast-description",
|
|
2036
2070
|
className: (state) => cn2("text-sm text-muted-foreground", typeof className === "function" ? className(state) : className),
|
|
2037
2071
|
...props
|
|
@@ -2040,14 +2074,14 @@ function ToastDescription2({ className, ...props }) {
|
|
|
2040
2074
|
function ToastAction2({
|
|
2041
2075
|
analytics,
|
|
2042
2076
|
className,
|
|
2043
|
-
render = /* @__PURE__ */
|
|
2077
|
+
render = /* @__PURE__ */ jsx22(Button2, {
|
|
2044
2078
|
variant: "outline",
|
|
2045
2079
|
size: "sm"
|
|
2046
2080
|
}),
|
|
2047
2081
|
...props
|
|
2048
2082
|
}) {
|
|
2049
2083
|
const trackedOnClick = useAnalyticsCallback("ToastAction", analytics, { name: "ui.activate" }, props.onClick);
|
|
2050
|
-
return /* @__PURE__ */
|
|
2084
|
+
return /* @__PURE__ */ jsx22(ToastPrimitive.Action, {
|
|
2051
2085
|
"data-slot": "toast-action",
|
|
2052
2086
|
render,
|
|
2053
2087
|
className: (state) => cn2("shrink-0", typeof className === "function" ? className(state) : className),
|
|
@@ -2059,21 +2093,21 @@ function ToastClose2({
|
|
|
2059
2093
|
analytics,
|
|
2060
2094
|
className,
|
|
2061
2095
|
children,
|
|
2062
|
-
render = /* @__PURE__ */
|
|
2096
|
+
render = /* @__PURE__ */ jsx22(Button2, {
|
|
2063
2097
|
variant: "ghost",
|
|
2064
2098
|
size: "icon-sm"
|
|
2065
2099
|
}),
|
|
2066
2100
|
...props
|
|
2067
2101
|
}) {
|
|
2068
2102
|
const trackedOnClick = useAnalyticsCallback("ToastClose", analytics, { name: "ui.activate" }, props.onClick);
|
|
2069
|
-
return /* @__PURE__ */
|
|
2103
|
+
return /* @__PURE__ */ jsx22(ToastPrimitive.Close, {
|
|
2070
2104
|
"data-slot": "toast-close",
|
|
2071
2105
|
"aria-label": "Close toast",
|
|
2072
2106
|
render,
|
|
2073
2107
|
className: (state) => cn2("relative shrink-0 text-muted-foreground hover:text-foreground", typeof className === "function" ? className(state) : className),
|
|
2074
2108
|
...props,
|
|
2075
2109
|
onClick: trackedOnClick,
|
|
2076
|
-
children: children ?? /* @__PURE__ */
|
|
2110
|
+
children: children ?? /* @__PURE__ */ jsx22(XIcon, {
|
|
2077
2111
|
"aria-hidden": "true"
|
|
2078
2112
|
})
|
|
2079
2113
|
});
|
|
@@ -2081,24 +2115,24 @@ function ToastClose2({
|
|
|
2081
2115
|
function ToastIcon({ type }) {
|
|
2082
2116
|
switch (type) {
|
|
2083
2117
|
case "success":
|
|
2084
|
-
return /* @__PURE__ */
|
|
2118
|
+
return /* @__PURE__ */ jsx22(CircleCheckIcon, {
|
|
2085
2119
|
"aria-hidden": "true"
|
|
2086
2120
|
});
|
|
2087
2121
|
case "info":
|
|
2088
|
-
return /* @__PURE__ */
|
|
2122
|
+
return /* @__PURE__ */ jsx22(InfoIcon, {
|
|
2089
2123
|
"aria-hidden": "true"
|
|
2090
2124
|
});
|
|
2091
2125
|
case "warning":
|
|
2092
|
-
return /* @__PURE__ */
|
|
2126
|
+
return /* @__PURE__ */ jsx22(TriangleAlertIcon, {
|
|
2093
2127
|
"aria-hidden": "true"
|
|
2094
2128
|
});
|
|
2095
2129
|
case "error":
|
|
2096
|
-
return /* @__PURE__ */
|
|
2130
|
+
return /* @__PURE__ */ jsx22(OctagonXIcon, {
|
|
2097
2131
|
"aria-hidden": "true",
|
|
2098
2132
|
className: "text-destructive"
|
|
2099
2133
|
});
|
|
2100
2134
|
case "loading":
|
|
2101
|
-
return /* @__PURE__ */
|
|
2135
|
+
return /* @__PURE__ */ jsx22(LoaderCircleIcon, {
|
|
2102
2136
|
"aria-hidden": "true",
|
|
2103
2137
|
className: "animate-spin motion-reduce:animate-none"
|
|
2104
2138
|
});
|
|
@@ -2108,27 +2142,27 @@ function ToastIcon({ type }) {
|
|
|
2108
2142
|
}
|
|
2109
2143
|
function ToastList() {
|
|
2110
2144
|
const { toasts } = ToastPrimitive.useToastManager();
|
|
2111
|
-
return /* @__PURE__ */
|
|
2112
|
-
children: toasts.map((toastItem) => /* @__PURE__ */
|
|
2145
|
+
return /* @__PURE__ */ jsx22(Fragment4, {
|
|
2146
|
+
children: toasts.map((toastItem) => /* @__PURE__ */ jsx22(Toast2, {
|
|
2113
2147
|
toast: toastItem,
|
|
2114
2148
|
children: /* @__PURE__ */ jsxs14(ToastContent2, {
|
|
2115
2149
|
children: [
|
|
2116
|
-
/* @__PURE__ */
|
|
2150
|
+
/* @__PURE__ */ jsx22("span", {
|
|
2117
2151
|
"data-slot": "toast-icon",
|
|
2118
2152
|
className: "shrink-0 empty:hidden [&_svg]:size-4",
|
|
2119
|
-
children: /* @__PURE__ */
|
|
2153
|
+
children: /* @__PURE__ */ jsx22(ToastIcon, {
|
|
2120
2154
|
type: toastItem.type
|
|
2121
2155
|
})
|
|
2122
2156
|
}),
|
|
2123
2157
|
/* @__PURE__ */ jsxs14("div", {
|
|
2124
2158
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
2125
2159
|
children: [
|
|
2126
|
-
/* @__PURE__ */
|
|
2127
|
-
/* @__PURE__ */
|
|
2160
|
+
/* @__PURE__ */ jsx22(ToastTitle2, {}),
|
|
2161
|
+
/* @__PURE__ */ jsx22(ToastDescription2, {})
|
|
2128
2162
|
]
|
|
2129
2163
|
}),
|
|
2130
|
-
/* @__PURE__ */
|
|
2131
|
-
/* @__PURE__ */
|
|
2164
|
+
/* @__PURE__ */ jsx22(ToastAction2, {}),
|
|
2165
|
+
/* @__PURE__ */ jsx22(ToastClose2, {})
|
|
2132
2166
|
]
|
|
2133
2167
|
})
|
|
2134
2168
|
}, toastItem.id))
|
|
@@ -2139,10 +2173,10 @@ function ToastToaster2({ children, density, ...props }) {
|
|
|
2139
2173
|
...props,
|
|
2140
2174
|
children: [
|
|
2141
2175
|
children,
|
|
2142
|
-
/* @__PURE__ */
|
|
2143
|
-
children: /* @__PURE__ */
|
|
2176
|
+
/* @__PURE__ */ jsx22(ToastPortal2, {
|
|
2177
|
+
children: /* @__PURE__ */ jsx22(ToastViewport2, {
|
|
2144
2178
|
density,
|
|
2145
|
-
children: /* @__PURE__ */
|
|
2179
|
+
children: /* @__PURE__ */ jsx22(ToastList, {})
|
|
2146
2180
|
})
|
|
2147
2181
|
})
|
|
2148
2182
|
]
|
|
@@ -2158,7 +2192,7 @@ function useToastManager2() {
|
|
|
2158
2192
|
import { mergeProps as mergeProps6 } from "@base-ui/react/merge-props";
|
|
2159
2193
|
import { useRender as useRender6 } from "@base-ui/react/use-render";
|
|
2160
2194
|
import { cva as cva4 } from "class-variance-authority";
|
|
2161
|
-
import { jsx as
|
|
2195
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2162
2196
|
var markerVariants2 = cva4("group/marker relative flex min-h-4 w-full items-center gap-control-gap text-start text-sm text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [a]:underline [a]:underline-offset-3 [a]:hover:text-foreground [&:is(a,button)]:outline-none [&:is(a,button)]:focus-visible:outline-1 [&:is(a,button)]:focus-visible:outline-ring", {
|
|
2163
2197
|
variants: {
|
|
2164
2198
|
variant: {
|
|
@@ -2177,7 +2211,7 @@ function Marker2({ density, className, variant = "default", render, ...props })
|
|
|
2177
2211
|
});
|
|
2178
2212
|
}
|
|
2179
2213
|
function MarkerIcon2({ density, className, ...props }) {
|
|
2180
|
-
return /* @__PURE__ */
|
|
2214
|
+
return /* @__PURE__ */ jsx23("span", {
|
|
2181
2215
|
"data-density": density,
|
|
2182
2216
|
"data-slot": "marker-icon",
|
|
2183
2217
|
"aria-hidden": "true",
|
|
@@ -2186,7 +2220,7 @@ function MarkerIcon2({ density, className, ...props }) {
|
|
|
2186
2220
|
});
|
|
2187
2221
|
}
|
|
2188
2222
|
function MarkerContent2({ density, className, ...props }) {
|
|
2189
|
-
return /* @__PURE__ */
|
|
2223
|
+
return /* @__PURE__ */ jsx23("span", {
|
|
2190
2224
|
"data-density": density,
|
|
2191
2225
|
"data-slot": "marker-content",
|
|
2192
2226
|
className: cn2("min-w-0 wrap-break-word group-data-[variant=separator]/marker:text-center [&>a]:underline [&>a]:underline-offset-3 [&>a:hover]:text-foreground", className),
|
|
@@ -2197,9 +2231,9 @@ function MarkerContent2({ density, className, ...props }) {
|
|
|
2197
2231
|
import { mergeProps as mergeProps7 } from "@base-ui/react/merge-props";
|
|
2198
2232
|
import { useRender as useRender7 } from "@base-ui/react/use-render";
|
|
2199
2233
|
import { cva as cva5 } from "class-variance-authority";
|
|
2200
|
-
import { jsx as
|
|
2234
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2201
2235
|
function BubbleGroup2({ density, className, ...props }) {
|
|
2202
|
-
return /* @__PURE__ */
|
|
2236
|
+
return /* @__PURE__ */ jsx24("div", {
|
|
2203
2237
|
"data-density": density,
|
|
2204
2238
|
"data-slot": "bubble-group",
|
|
2205
2239
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2221,7 +2255,7 @@ var bubbleVariants = cva5("group/bubble relative flex w-fit max-w-[80%] min-w-0
|
|
|
2221
2255
|
defaultVariants: { variant: "default" }
|
|
2222
2256
|
});
|
|
2223
2257
|
function Bubble2({ density, variant = "default", align = "start", className, ...props }) {
|
|
2224
|
-
return /* @__PURE__ */
|
|
2258
|
+
return /* @__PURE__ */ jsx24("div", {
|
|
2225
2259
|
"data-density": density,
|
|
2226
2260
|
"data-slot": "bubble",
|
|
2227
2261
|
"data-variant": variant,
|
|
@@ -2254,7 +2288,7 @@ function BubbleReactions2({
|
|
|
2254
2288
|
className,
|
|
2255
2289
|
...props
|
|
2256
2290
|
}) {
|
|
2257
|
-
return /* @__PURE__ */
|
|
2291
|
+
return /* @__PURE__ */ jsx24("div", {
|
|
2258
2292
|
"data-density": density,
|
|
2259
2293
|
"data-slot": "bubble-reactions",
|
|
2260
2294
|
"data-align": align,
|
|
@@ -2273,9 +2307,9 @@ var MessageContext = createContext2(null);
|
|
|
2273
2307
|
|
|
2274
2308
|
// src/components/Message.tsx
|
|
2275
2309
|
import { ChevronRightIcon as ChevronRightIcon3 } from "lucide-react";
|
|
2276
|
-
import { jsx as
|
|
2310
|
+
import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2277
2311
|
function MessageGroup2({ density, className, ...props }) {
|
|
2278
|
-
return /* @__PURE__ */
|
|
2312
|
+
return /* @__PURE__ */ jsx25("div", {
|
|
2279
2313
|
"data-density": density,
|
|
2280
2314
|
"data-slot": "message-group",
|
|
2281
2315
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2286,9 +2320,9 @@ function Message2({ density, className, align = "start", style, ...props }) {
|
|
|
2286
2320
|
const [footerOffset, setFooterOffset] = useState(0);
|
|
2287
2321
|
const context = useMemo2(() => ({ setFooterOffset }), []);
|
|
2288
2322
|
const messageStyle = { ...style, "--message-footer-offset": `${footerOffset}px` };
|
|
2289
|
-
return /* @__PURE__ */
|
|
2323
|
+
return /* @__PURE__ */ jsx25(MessageContext.Provider, {
|
|
2290
2324
|
value: context,
|
|
2291
|
-
children: /* @__PURE__ */
|
|
2325
|
+
children: /* @__PURE__ */ jsx25("div", {
|
|
2292
2326
|
"data-density": density,
|
|
2293
2327
|
"data-slot": "message",
|
|
2294
2328
|
"data-align": align,
|
|
@@ -2299,7 +2333,7 @@ function Message2({ density, className, align = "start", style, ...props }) {
|
|
|
2299
2333
|
});
|
|
2300
2334
|
}
|
|
2301
2335
|
function MessageAvatar2({ density, className, ...props }) {
|
|
2302
|
-
return /* @__PURE__ */
|
|
2336
|
+
return /* @__PURE__ */ jsx25("div", {
|
|
2303
2337
|
"data-density": density,
|
|
2304
2338
|
"data-slot": "message-avatar",
|
|
2305
2339
|
className: cn2("flex w-fit min-w-8 shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted group-has-data-[slot=message-footer]/message:-translate-y-(--message-footer-offset)", className),
|
|
@@ -2307,7 +2341,7 @@ function MessageAvatar2({ density, className, ...props }) {
|
|
|
2307
2341
|
});
|
|
2308
2342
|
}
|
|
2309
2343
|
function MessageContent2({ density, className, ...props }) {
|
|
2310
|
-
return /* @__PURE__ */
|
|
2344
|
+
return /* @__PURE__ */ jsx25("div", {
|
|
2311
2345
|
"data-density": density,
|
|
2312
2346
|
"data-slot": "message-content",
|
|
2313
2347
|
className: cn2("flex w-full min-w-0 flex-col gap-control-gap wrap-break-word group-data-[align=end]/message:[&>[data-slot]:not([data-slot=message-header])]:self-end", className),
|
|
@@ -2315,7 +2349,7 @@ function MessageContent2({ density, className, ...props }) {
|
|
|
2315
2349
|
});
|
|
2316
2350
|
}
|
|
2317
2351
|
function MessageHeader2({ density, className, ...props }) {
|
|
2318
|
-
return /* @__PURE__ */
|
|
2352
|
+
return /* @__PURE__ */ jsx25("div", {
|
|
2319
2353
|
"data-density": density,
|
|
2320
2354
|
"data-slot": "message-header",
|
|
2321
2355
|
className: cn2("flex max-w-full min-w-0 items-center px-control-x text-xs font-medium text-muted-foreground group-has-data-[variant=ghost]/message:px-0", className),
|
|
@@ -2354,7 +2388,7 @@ function MessageFooter2({ density, className, ...props }) {
|
|
|
2354
2388
|
});
|
|
2355
2389
|
}
|
|
2356
2390
|
function MessageThread2({ density, className, ...props }) {
|
|
2357
|
-
return /* @__PURE__ */
|
|
2391
|
+
return /* @__PURE__ */ jsx25(Collapsible2, {
|
|
2358
2392
|
"data-density": density,
|
|
2359
2393
|
"data-slot": "message-thread",
|
|
2360
2394
|
className: cn2("flex min-w-0 flex-col gap-control-gap", className),
|
|
@@ -2368,7 +2402,7 @@ function MessageThreadSummary2({ density, className, children, ...props }) {
|
|
|
2368
2402
|
className: cn2(buttonVariants2({ variant: "link", size: "inline" }), "group/message-thread-summary w-fit max-w-full justify-start text-xs whitespace-normal text-muted-foreground", className),
|
|
2369
2403
|
...props,
|
|
2370
2404
|
children: [
|
|
2371
|
-
/* @__PURE__ */
|
|
2405
|
+
/* @__PURE__ */ jsx25(ChevronRightIcon3, {
|
|
2372
2406
|
"aria-hidden": "true",
|
|
2373
2407
|
className: "size-3 shrink-0 group-aria-expanded/message-thread-summary:rotate-90 motion-reduce:transition-none"
|
|
2374
2408
|
}),
|
|
@@ -2377,7 +2411,7 @@ function MessageThreadSummary2({ density, className, children, ...props }) {
|
|
|
2377
2411
|
});
|
|
2378
2412
|
}
|
|
2379
2413
|
function MessageThreadReplies2({ density, className, ...props }) {
|
|
2380
|
-
return /* @__PURE__ */
|
|
2414
|
+
return /* @__PURE__ */ jsx25(CollapsibleContent2, {
|
|
2381
2415
|
"data-density": density,
|
|
2382
2416
|
"data-slot": "message-thread-replies",
|
|
2383
2417
|
className: cn2("min-w-0", className),
|
|
@@ -2388,7 +2422,7 @@ function MessageThreadReplies2({ density, className, ...props }) {
|
|
|
2388
2422
|
import { mergeProps as mergeProps8 } from "@base-ui/react/merge-props";
|
|
2389
2423
|
import { useRender as useRender9 } from "@base-ui/react/use-render";
|
|
2390
2424
|
import { cva as cva6 } from "class-variance-authority";
|
|
2391
|
-
import { jsx as
|
|
2425
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2392
2426
|
var attachmentVariants = cva6("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-md border bg-card text-card-foreground transition-colors motion-reduce:transition-none focus-within:ring-1 focus-within:ring-ring has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive data-[state=idle]:border-dashed", {
|
|
2393
2427
|
variants: {
|
|
2394
2428
|
size: {
|
|
@@ -2410,7 +2444,7 @@ function Attachment2({
|
|
|
2410
2444
|
orientation = "horizontal",
|
|
2411
2445
|
...props
|
|
2412
2446
|
}) {
|
|
2413
|
-
return /* @__PURE__ */
|
|
2447
|
+
return /* @__PURE__ */ jsx26("div", {
|
|
2414
2448
|
"data-slot": "attachment",
|
|
2415
2449
|
"data-density": density,
|
|
2416
2450
|
"data-state": state,
|
|
@@ -2430,7 +2464,7 @@ var attachmentMediaVariants = cva6("relative flex aspect-square w-10 shrink-0 it
|
|
|
2430
2464
|
defaultVariants: { variant: "icon" }
|
|
2431
2465
|
});
|
|
2432
2466
|
function AttachmentMedia2({ density, className, variant = "icon", ...props }) {
|
|
2433
|
-
return /* @__PURE__ */
|
|
2467
|
+
return /* @__PURE__ */ jsx26("div", {
|
|
2434
2468
|
"data-slot": "attachment-media",
|
|
2435
2469
|
"data-density": density,
|
|
2436
2470
|
"data-variant": variant,
|
|
@@ -2439,7 +2473,7 @@ function AttachmentMedia2({ density, className, variant = "icon", ...props }) {
|
|
|
2439
2473
|
});
|
|
2440
2474
|
}
|
|
2441
2475
|
function AttachmentContent2({ density, className, ...props }) {
|
|
2442
|
-
return /* @__PURE__ */
|
|
2476
|
+
return /* @__PURE__ */ jsx26("div", {
|
|
2443
2477
|
"data-slot": "attachment-content",
|
|
2444
2478
|
"data-density": density,
|
|
2445
2479
|
className: cn2("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
|
|
@@ -2447,7 +2481,7 @@ function AttachmentContent2({ density, className, ...props }) {
|
|
|
2447
2481
|
});
|
|
2448
2482
|
}
|
|
2449
2483
|
function AttachmentTitle2({ density, className, ...props }) {
|
|
2450
|
-
return /* @__PURE__ */
|
|
2484
|
+
return /* @__PURE__ */ jsx26("span", {
|
|
2451
2485
|
"data-slot": "attachment-title",
|
|
2452
2486
|
"data-density": density,
|
|
2453
2487
|
className: cn2("block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer", className),
|
|
@@ -2455,7 +2489,7 @@ function AttachmentTitle2({ density, className, ...props }) {
|
|
|
2455
2489
|
});
|
|
2456
2490
|
}
|
|
2457
2491
|
function AttachmentDescription2({ density, className, ...props }) {
|
|
2458
|
-
return /* @__PURE__ */
|
|
2492
|
+
return /* @__PURE__ */ jsx26("span", {
|
|
2459
2493
|
"data-slot": "attachment-description",
|
|
2460
2494
|
"data-density": density,
|
|
2461
2495
|
className: cn2("mt-0.5 block max-w-full min-w-0 truncate text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive", className),
|
|
@@ -2463,7 +2497,7 @@ function AttachmentDescription2({ density, className, ...props }) {
|
|
|
2463
2497
|
});
|
|
2464
2498
|
}
|
|
2465
2499
|
function AttachmentActions2({ density, className, ...props }) {
|
|
2466
|
-
return /* @__PURE__ */
|
|
2500
|
+
return /* @__PURE__ */ jsx26("div", {
|
|
2467
2501
|
"data-slot": "attachment-actions",
|
|
2468
2502
|
"data-density": density,
|
|
2469
2503
|
className: cn2("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:end-3 group-data-[orientation=vertical]/attachment:gap-1", className),
|
|
@@ -2476,7 +2510,7 @@ function AttachmentAction2({
|
|
|
2476
2510
|
size = "icon-xs",
|
|
2477
2511
|
...props
|
|
2478
2512
|
}) {
|
|
2479
|
-
return /* @__PURE__ */
|
|
2513
|
+
return /* @__PURE__ */ jsx26(Button2, {
|
|
2480
2514
|
"data-slot": "attachment-action",
|
|
2481
2515
|
variant,
|
|
2482
2516
|
size,
|
|
@@ -2501,7 +2535,7 @@ function AttachmentTrigger2({
|
|
|
2501
2535
|
});
|
|
2502
2536
|
}
|
|
2503
2537
|
function AttachmentGroup2({ density, className, ...props }) {
|
|
2504
|
-
return /* @__PURE__ */
|
|
2538
|
+
return /* @__PURE__ */ jsx26("div", {
|
|
2505
2539
|
"data-slot": "attachment-group",
|
|
2506
2540
|
"data-density": density,
|
|
2507
2541
|
className: cn2("flex min-w-0 scroll-fade-x snap-x snap-mandatory scroll-px-1 no-scrollbar gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", className),
|
|
@@ -2510,7 +2544,7 @@ function AttachmentGroup2({ density, className, ...props }) {
|
|
|
2510
2544
|
}
|
|
2511
2545
|
// src/components/InlineEdit.tsx
|
|
2512
2546
|
import { useEffect as useEffect2, useId as useId3, useRef as useRef2, useState as useState2 } from "react";
|
|
2513
|
-
import { jsx as
|
|
2547
|
+
import { jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2514
2548
|
function InlineEdit2({
|
|
2515
2549
|
analytics,
|
|
2516
2550
|
label,
|
|
@@ -2573,9 +2607,9 @@ function InlineEdit2({
|
|
|
2573
2607
|
disableHoverablePopup: true,
|
|
2574
2608
|
triggerId,
|
|
2575
2609
|
children: [
|
|
2576
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ jsx27(TooltipTrigger2, {
|
|
2577
2611
|
id: triggerId,
|
|
2578
|
-
render: /* @__PURE__ */
|
|
2612
|
+
render: /* @__PURE__ */ jsx27(Input2, {
|
|
2579
2613
|
analytics: false,
|
|
2580
2614
|
ref: input,
|
|
2581
2615
|
density,
|
|
@@ -2607,20 +2641,20 @@ function InlineEdit2({
|
|
|
2607
2641
|
}
|
|
2608
2642
|
})
|
|
2609
2643
|
}),
|
|
2610
|
-
error && /* @__PURE__ */
|
|
2644
|
+
error && /* @__PURE__ */ jsx27(TooltipContent2, {
|
|
2611
2645
|
density,
|
|
2612
2646
|
side: "bottom",
|
|
2613
2647
|
align: "start",
|
|
2614
2648
|
"data-testid": "InlineEdit--error-popup",
|
|
2615
2649
|
"aria-hidden": true,
|
|
2616
|
-
children: /* @__PURE__ */
|
|
2650
|
+
children: /* @__PURE__ */ jsx27("p", {
|
|
2617
2651
|
className: "text-destructive",
|
|
2618
2652
|
children: error
|
|
2619
2653
|
})
|
|
2620
2654
|
})
|
|
2621
2655
|
]
|
|
2622
2656
|
}),
|
|
2623
|
-
error && /* @__PURE__ */
|
|
2657
|
+
error && /* @__PURE__ */ jsx27("p", {
|
|
2624
2658
|
id: errorId,
|
|
2625
2659
|
role: "alert",
|
|
2626
2660
|
className: "sr-only",
|
|
@@ -2633,7 +2667,7 @@ function InlineEdit2({
|
|
|
2633
2667
|
import { useState as useState3 } from "react";
|
|
2634
2668
|
import { Radio } from "@base-ui/react/radio";
|
|
2635
2669
|
import { StarIcon, CircleOffIcon } from "lucide-react";
|
|
2636
|
-
import { jsx as
|
|
2670
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2637
2671
|
var ITEM_SIZES = { comfortable: "size-5", compact: "size-4" };
|
|
2638
2672
|
var STAR_SIZES = { comfortable: "size-3.5", compact: "size-3" };
|
|
2639
2673
|
var CLEAR_SIZES = { comfortable: "size-3", compact: "size-2.5" };
|
|
@@ -2670,7 +2704,7 @@ function StarRating2({
|
|
|
2670
2704
|
onValueChange(draft);
|
|
2671
2705
|
setDraft(null);
|
|
2672
2706
|
};
|
|
2673
|
-
return /* @__PURE__ */
|
|
2707
|
+
return /* @__PURE__ */ jsx28(RadioGroup2, {
|
|
2674
2708
|
analytics,
|
|
2675
2709
|
"aria-label": label,
|
|
2676
2710
|
"aria-busy": busy || undefined,
|
|
@@ -2680,7 +2714,7 @@ function StarRating2({
|
|
|
2680
2714
|
className: "inline-flex w-fit shrink-0 items-center gap-0.5",
|
|
2681
2715
|
onValueChange: isConfirm ? (next) => setDraft(next) : onValueChange,
|
|
2682
2716
|
onBlur,
|
|
2683
|
-
children: [1, 2, 3, 4, 5, ...clearable ? [0] : []].map((star) => /* @__PURE__ */
|
|
2717
|
+
children: [1, 2, 3, 4, 5, ...clearable ? [0] : []].map((star) => /* @__PURE__ */ jsx28(Radio.Root, {
|
|
2684
2718
|
value: star,
|
|
2685
2719
|
nativeButton: true,
|
|
2686
2720
|
...focusable ? {} : { tabIndex: -1 },
|
|
@@ -2691,17 +2725,17 @@ function StarRating2({
|
|
|
2691
2725
|
confirm(star);
|
|
2692
2726
|
}
|
|
2693
2727
|
},
|
|
2694
|
-
render: /* @__PURE__ */
|
|
2728
|
+
render: /* @__PURE__ */ jsx28(AnalyticsButton, {
|
|
2695
2729
|
component: "StarRating",
|
|
2696
2730
|
type: "button"
|
|
2697
2731
|
}),
|
|
2698
2732
|
"aria-label": star === 0 ? "Unrated" : `${star} ${star === 1 ? "star" : "stars"}`,
|
|
2699
2733
|
title: star === 0 ? "Clear rating" : `${star} stars`,
|
|
2700
2734
|
className: cn2("inline-flex shrink-0 items-center justify-center rounded-sm text-muted-foreground outline-none hover:text-primary focus-visible:ring-1 focus-visible:ring-ring data-disabled:cursor-not-allowed data-disabled:opacity-50", ITEM_SIZES[density]),
|
|
2701
|
-
children: star === 0 ? /* @__PURE__ */
|
|
2735
|
+
children: star === 0 ? /* @__PURE__ */ jsx28(CircleOffIcon, {
|
|
2702
2736
|
"aria-hidden": "true",
|
|
2703
2737
|
className: CLEAR_SIZES[density]
|
|
2704
|
-
}) : /* @__PURE__ */
|
|
2738
|
+
}) : /* @__PURE__ */ jsx28(StarIcon, {
|
|
2705
2739
|
"aria-hidden": "true",
|
|
2706
2740
|
className: star <= shown ? cn2(STAR_SIZES[density], "fill-primary text-primary") : STAR_SIZES[density]
|
|
2707
2741
|
})
|
|
@@ -2711,7 +2745,7 @@ function StarRating2({
|
|
|
2711
2745
|
// src/components/ReviewList.tsx
|
|
2712
2746
|
import { useRef as useRef3, useState as useState4 } from "react";
|
|
2713
2747
|
import { ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
|
|
2714
|
-
import { jsx as
|
|
2748
|
+
import { jsx as jsx29, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2715
2749
|
var TOGGLE_KEYS = new Set(["x", "X"]);
|
|
2716
2750
|
function isMod(event) {
|
|
2717
2751
|
return event.metaKey || event.ctrlKey;
|
|
@@ -2794,7 +2828,7 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2794
2828
|
setCursor({ row: index, cell });
|
|
2795
2829
|
};
|
|
2796
2830
|
const isTree = rows.some((row) => row.level !== undefined);
|
|
2797
|
-
return /* @__PURE__ */
|
|
2831
|
+
return /* @__PURE__ */ jsx29("div", {
|
|
2798
2832
|
"data-slot": "review-list",
|
|
2799
2833
|
role: isTree ? "treegrid" : "grid",
|
|
2800
2834
|
"aria-label": label,
|
|
@@ -2819,13 +2853,13 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2819
2853
|
"data-included": row.isIncluded || undefined,
|
|
2820
2854
|
className: cn2("flex min-w-0 items-start gap-2 rounded-sm px-1 py-0.5 focus-within:bg-accent/50", !row.isIncluded && "text-muted-foreground"),
|
|
2821
2855
|
children: [
|
|
2822
|
-
/* @__PURE__ */
|
|
2856
|
+
/* @__PURE__ */ jsx29("div", {
|
|
2823
2857
|
ref: cellRef(0),
|
|
2824
2858
|
role: "gridcell",
|
|
2825
2859
|
tabIndex: tabIndex(0),
|
|
2826
2860
|
className: "flex shrink-0 items-center pt-0.5 outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
2827
2861
|
onClick: (event) => onRowClick(event, row, index, 0),
|
|
2828
|
-
children: /* @__PURE__ */
|
|
2862
|
+
children: /* @__PURE__ */ jsx29(Checkbox2, {
|
|
2829
2863
|
"aria-label": row.checkboxLabel,
|
|
2830
2864
|
checked: row.isIncluded,
|
|
2831
2865
|
indeterminate: row.isIndeterminate,
|
|
@@ -2846,9 +2880,9 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2846
2880
|
style: isTree ? { paddingInlineStart: `${((row.level ?? 1) - 1) * 1.25}rem` } : undefined,
|
|
2847
2881
|
onClick: (event) => onRowClick(event, row, index, 1),
|
|
2848
2882
|
children: [
|
|
2849
|
-
isTree && /* @__PURE__ */
|
|
2883
|
+
isTree && /* @__PURE__ */ jsx29("span", {
|
|
2850
2884
|
className: "flex size-5 shrink-0 items-center justify-center",
|
|
2851
|
-
children: row.isExpanded !== undefined && /* @__PURE__ */
|
|
2885
|
+
children: row.isExpanded !== undefined && /* @__PURE__ */ jsx29("button", {
|
|
2852
2886
|
type: "button",
|
|
2853
2887
|
tabIndex: -1,
|
|
2854
2888
|
"aria-hidden": "true",
|
|
@@ -2859,18 +2893,18 @@ function ReviewList2({ label, rows, onIncludedChange, onExpandedChange }) {
|
|
|
2859
2893
|
setCursor({ row: index, cell: 1 });
|
|
2860
2894
|
onExpandedChange?.(row.id, !row.isExpanded);
|
|
2861
2895
|
},
|
|
2862
|
-
children: /* @__PURE__ */
|
|
2896
|
+
children: /* @__PURE__ */ jsx29(ChevronRightIcon4, {
|
|
2863
2897
|
className: cn2("size-4 transition-transform", row.isExpanded && "rotate-90")
|
|
2864
2898
|
})
|
|
2865
2899
|
})
|
|
2866
2900
|
}),
|
|
2867
|
-
/* @__PURE__ */
|
|
2901
|
+
/* @__PURE__ */ jsx29("div", {
|
|
2868
2902
|
className: "min-w-0 flex-1",
|
|
2869
2903
|
children: row.content
|
|
2870
2904
|
})
|
|
2871
2905
|
]
|
|
2872
2906
|
}),
|
|
2873
|
-
row.cells?.map((cell, offset) => /* @__PURE__ */
|
|
2907
|
+
row.cells?.map((cell, offset) => /* @__PURE__ */ jsx29("div", {
|
|
2874
2908
|
ref: cellRef(offset + 2),
|
|
2875
2909
|
role: "gridcell",
|
|
2876
2910
|
tabIndex: tabIndex(offset + 2),
|
|
@@ -2888,7 +2922,7 @@ import {
|
|
|
2888
2922
|
useId as useId4,
|
|
2889
2923
|
useRef as useRef4
|
|
2890
2924
|
} from "react";
|
|
2891
|
-
import { jsx as
|
|
2925
|
+
import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2892
2926
|
function isModified(event) {
|
|
2893
2927
|
return event.altKey || event.metaKey || event.ctrlKey || event.shiftKey;
|
|
2894
2928
|
}
|
|
@@ -2952,12 +2986,12 @@ function ChoiceTable2({
|
|
|
2952
2986
|
className: "group/choice flex min-w-0 flex-col rounded-md text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2953
2987
|
onKeyDown,
|
|
2954
2988
|
children: [
|
|
2955
|
-
/* @__PURE__ */
|
|
2989
|
+
/* @__PURE__ */ jsx30("div", {
|
|
2956
2990
|
role: "row",
|
|
2957
2991
|
"aria-rowindex": 1,
|
|
2958
2992
|
style: template,
|
|
2959
2993
|
className: "grid items-end gap-x-3 border-b px-3 py-1.5 text-xs text-muted-foreground",
|
|
2960
|
-
children: columns.map((column) => /* @__PURE__ */
|
|
2994
|
+
children: columns.map((column) => /* @__PURE__ */ jsx30("div", {
|
|
2961
2995
|
role: "columnheader",
|
|
2962
2996
|
className: cn2("min-w-0", column.isEnd && "text-end"),
|
|
2963
2997
|
children: column.header
|
|
@@ -2982,12 +3016,12 @@ function ChoiceTable2({
|
|
|
2982
3016
|
className: cn2("grid cursor-default items-start gap-x-3 gap-y-2 border-b border-l-2 border-l-transparent px-3 py-2", isChosen && "border-l-primary bg-accent/60 group-focus-visible/choice:bg-accent"),
|
|
2983
3017
|
onClick: (event) => onRowClick(event, row),
|
|
2984
3018
|
children: [
|
|
2985
|
-
row.cells.map((cell, cellIndex) => /* @__PURE__ */
|
|
3019
|
+
row.cells.map((cell, cellIndex) => /* @__PURE__ */ jsx30("div", {
|
|
2986
3020
|
role: "gridcell",
|
|
2987
3021
|
className: cn2("min-w-0 break-words", columns[cellIndex]?.isEnd && "text-end"),
|
|
2988
3022
|
children: cell
|
|
2989
3023
|
}, cellIndex)),
|
|
2990
|
-
row.detail !== undefined && /* @__PURE__ */
|
|
3024
|
+
row.detail !== undefined && /* @__PURE__ */ jsx30("div", {
|
|
2991
3025
|
"data-slot": "choice-table-detail",
|
|
2992
3026
|
role: "gridcell",
|
|
2993
3027
|
className: "col-span-full min-w-0",
|
|
@@ -3001,7 +3035,7 @@ function ChoiceTable2({
|
|
|
3001
3035
|
}
|
|
3002
3036
|
// src/components/ConfirmationDialog.tsx
|
|
3003
3037
|
import { useState as useState5 } from "react";
|
|
3004
|
-
import { jsx as
|
|
3038
|
+
import { jsx as jsx31, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3005
3039
|
function ConfirmationDialog2({
|
|
3006
3040
|
open,
|
|
3007
3041
|
title,
|
|
@@ -3013,7 +3047,7 @@ function ConfirmationDialog2({
|
|
|
3013
3047
|
}) {
|
|
3014
3048
|
const [isPending, setPending] = useState5(false);
|
|
3015
3049
|
const [error, setError] = useState5(null);
|
|
3016
|
-
return /* @__PURE__ */
|
|
3050
|
+
return /* @__PURE__ */ jsx31(AlertDialog2, {
|
|
3017
3051
|
open,
|
|
3018
3052
|
onOpenChange: (next, details) => {
|
|
3019
3053
|
if (isPending)
|
|
@@ -3025,19 +3059,19 @@ function ConfirmationDialog2({
|
|
|
3025
3059
|
},
|
|
3026
3060
|
children: /* @__PURE__ */ jsxs19(AlertDialogContent2, {
|
|
3027
3061
|
children: [
|
|
3028
|
-
/* @__PURE__ */
|
|
3029
|
-
children: /* @__PURE__ */
|
|
3062
|
+
/* @__PURE__ */ jsx31(AlertDialogHeader2, {
|
|
3063
|
+
children: /* @__PURE__ */ jsx31(AlertDialogTitle2, {
|
|
3030
3064
|
children: title
|
|
3031
3065
|
})
|
|
3032
3066
|
}),
|
|
3033
3067
|
/* @__PURE__ */ jsxs19(ScrollArea2, {
|
|
3034
3068
|
children: [
|
|
3035
|
-
/* @__PURE__ */
|
|
3069
|
+
/* @__PURE__ */ jsx31(AlertDialogDescription2, {
|
|
3036
3070
|
children: description
|
|
3037
3071
|
}),
|
|
3038
|
-
error && /* @__PURE__ */
|
|
3072
|
+
error && /* @__PURE__ */ jsx31(Alert2, {
|
|
3039
3073
|
variant: "destructive",
|
|
3040
|
-
children: /* @__PURE__ */
|
|
3074
|
+
children: /* @__PURE__ */ jsx31(AlertDescription2, {
|
|
3041
3075
|
children: error
|
|
3042
3076
|
})
|
|
3043
3077
|
})
|
|
@@ -3045,11 +3079,11 @@ function ConfirmationDialog2({
|
|
|
3045
3079
|
}),
|
|
3046
3080
|
/* @__PURE__ */ jsxs19(AlertDialogFooter2, {
|
|
3047
3081
|
children: [
|
|
3048
|
-
/* @__PURE__ */
|
|
3082
|
+
/* @__PURE__ */ jsx31(AlertDialogCancel2, {
|
|
3049
3083
|
disabled: isPending,
|
|
3050
3084
|
children: "Cancel"
|
|
3051
3085
|
}),
|
|
3052
|
-
/* @__PURE__ */
|
|
3086
|
+
/* @__PURE__ */ jsx31(Button2, {
|
|
3053
3087
|
variant: "destructive",
|
|
3054
3088
|
disabled: isPending,
|
|
3055
3089
|
onClick: async () => {
|
|
@@ -3093,7 +3127,7 @@ function useObjectURL(file) {
|
|
|
3093
3127
|
}
|
|
3094
3128
|
|
|
3095
3129
|
// src/components/ImagePicker.tsx
|
|
3096
|
-
import { jsx as
|
|
3130
|
+
import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3097
3131
|
function ImagePicker2({
|
|
3098
3132
|
analytics,
|
|
3099
3133
|
src,
|
|
@@ -3115,19 +3149,19 @@ function ImagePicker2({
|
|
|
3115
3149
|
size: "preview",
|
|
3116
3150
|
shape: "square",
|
|
3117
3151
|
children: [
|
|
3118
|
-
/* @__PURE__ */
|
|
3152
|
+
/* @__PURE__ */ jsx32(AvatarImage2, {
|
|
3119
3153
|
src: image,
|
|
3120
3154
|
alt: label
|
|
3121
3155
|
}),
|
|
3122
|
-
/* @__PURE__ */
|
|
3123
|
-
children: /* @__PURE__ */
|
|
3156
|
+
/* @__PURE__ */ jsx32(AvatarFallback2, {
|
|
3157
|
+
children: /* @__PURE__ */ jsx32(ImageIcon, {
|
|
3124
3158
|
className: "size-12",
|
|
3125
3159
|
"aria-hidden": "true"
|
|
3126
3160
|
})
|
|
3127
3161
|
})
|
|
3128
3162
|
]
|
|
3129
3163
|
}),
|
|
3130
|
-
/* @__PURE__ */
|
|
3164
|
+
/* @__PURE__ */ jsx32("input", {
|
|
3131
3165
|
ref: input,
|
|
3132
3166
|
hidden: true,
|
|
3133
3167
|
type: "file",
|
|
@@ -3152,13 +3186,13 @@ function ImagePicker2({
|
|
|
3152
3186
|
disabled,
|
|
3153
3187
|
onClick: () => input.current?.click(),
|
|
3154
3188
|
children: [
|
|
3155
|
-
/* @__PURE__ */
|
|
3189
|
+
/* @__PURE__ */ jsx32(UploadIcon, {
|
|
3156
3190
|
"data-icon": "inline-start"
|
|
3157
3191
|
}),
|
|
3158
3192
|
"Upload image"
|
|
3159
3193
|
]
|
|
3160
3194
|
}),
|
|
3161
|
-
/* @__PURE__ */
|
|
3195
|
+
/* @__PURE__ */ jsx32(Button2, {
|
|
3162
3196
|
type: "button",
|
|
3163
3197
|
variant: "outline",
|
|
3164
3198
|
disabled: disabled || !image,
|
|
@@ -3172,9 +3206,9 @@ function ImagePicker2({
|
|
|
3172
3206
|
}
|
|
3173
3207
|
// src/components/Meter.tsx
|
|
3174
3208
|
import { Meter as MeterPrimitive } from "@base-ui/react/meter";
|
|
3175
|
-
import { jsx as
|
|
3209
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3176
3210
|
function Meter2({ density, className, ...props }) {
|
|
3177
|
-
return /* @__PURE__ */
|
|
3211
|
+
return /* @__PURE__ */ jsx33(MeterPrimitive.Root, {
|
|
3178
3212
|
"data-density": density,
|
|
3179
3213
|
"data-slot": "meter",
|
|
3180
3214
|
className: (state) => cn2("flex min-w-0 flex-wrap items-center gap-field-gap", typeof className === "function" ? className(state) : className),
|
|
@@ -3182,7 +3216,7 @@ function Meter2({ density, className, ...props }) {
|
|
|
3182
3216
|
});
|
|
3183
3217
|
}
|
|
3184
3218
|
function MeterLabel2({ density, className, ...props }) {
|
|
3185
|
-
return /* @__PURE__ */
|
|
3219
|
+
return /* @__PURE__ */ jsx33(MeterPrimitive.Label, {
|
|
3186
3220
|
"data-density": density,
|
|
3187
3221
|
"data-slot": "meter-label",
|
|
3188
3222
|
className: (state) => cn2("text-sm font-medium", typeof className === "function" ? className(state) : className),
|
|
@@ -3190,7 +3224,7 @@ function MeterLabel2({ density, className, ...props }) {
|
|
|
3190
3224
|
});
|
|
3191
3225
|
}
|
|
3192
3226
|
function MeterValue2({ density, className, ...props }) {
|
|
3193
|
-
return /* @__PURE__ */
|
|
3227
|
+
return /* @__PURE__ */ jsx33(MeterPrimitive.Value, {
|
|
3194
3228
|
"data-density": density,
|
|
3195
3229
|
"data-slot": "meter-value",
|
|
3196
3230
|
className: (state) => cn2("ms-auto text-sm text-muted-foreground tabular-nums", typeof className === "function" ? className(state) : className),
|
|
@@ -3198,7 +3232,7 @@ function MeterValue2({ density, className, ...props }) {
|
|
|
3198
3232
|
});
|
|
3199
3233
|
}
|
|
3200
3234
|
function MeterTrack2({ density, className, ...props }) {
|
|
3201
|
-
return /* @__PURE__ */
|
|
3235
|
+
return /* @__PURE__ */ jsx33(MeterPrimitive.Track, {
|
|
3202
3236
|
"data-density": density,
|
|
3203
3237
|
"data-slot": "meter-track",
|
|
3204
3238
|
className: (state) => cn2("h-1 w-full overflow-hidden rounded-sm bg-muted", typeof className === "function" ? className(state) : className),
|
|
@@ -3210,7 +3244,7 @@ function MeterIndicator2({
|
|
|
3210
3244
|
className,
|
|
3211
3245
|
...props
|
|
3212
3246
|
}) {
|
|
3213
|
-
return /* @__PURE__ */
|
|
3247
|
+
return /* @__PURE__ */ jsx33(MeterPrimitive.Indicator, {
|
|
3214
3248
|
"data-density": density,
|
|
3215
3249
|
"data-slot": "meter-indicator",
|
|
3216
3250
|
className: (state) => cn2("h-full bg-primary transition-[width] motion-reduce:transition-none", typeof className === "function" ? className(state) : className),
|
|
@@ -3220,7 +3254,7 @@ function MeterIndicator2({
|
|
|
3220
3254
|
// src/components/ToolbarToggleChip.tsx
|
|
3221
3255
|
import { useId as useId5 } from "react";
|
|
3222
3256
|
import { Toolbar as ToolbarPrimitive } from "@base-ui/react/toolbar";
|
|
3223
|
-
import { jsx as
|
|
3257
|
+
import { jsx as jsx34, jsxs as jsxs21, Fragment as Fragment5 } from "react/jsx-runtime";
|
|
3224
3258
|
function pressedLabel(pressed) {
|
|
3225
3259
|
if (pressed === "mixed")
|
|
3226
3260
|
return "mixed";
|
|
@@ -3276,13 +3310,13 @@ function ToolbarToggleChip2({
|
|
|
3276
3310
|
trackedChange(pressed !== true);
|
|
3277
3311
|
},
|
|
3278
3312
|
children: [
|
|
3279
|
-
swatch && /* @__PURE__ */
|
|
3313
|
+
swatch && /* @__PURE__ */ jsx34("span", {
|
|
3280
3314
|
"aria-hidden": "true",
|
|
3281
3315
|
"data-slot": "toolbar-toggle-chip-swatch",
|
|
3282
3316
|
className: "size-3 shrink-0 rounded-sm border border-border",
|
|
3283
3317
|
style: { backgroundColor: swatch }
|
|
3284
3318
|
}),
|
|
3285
|
-
/* @__PURE__ */
|
|
3319
|
+
/* @__PURE__ */ jsx34("span", {
|
|
3286
3320
|
className: hideLabel ? "sr-only" : "min-w-0 truncate",
|
|
3287
3321
|
children
|
|
3288
3322
|
}),
|
|
@@ -3294,7 +3328,7 @@ function ToolbarToggleChip2({
|
|
|
3294
3328
|
detail
|
|
3295
3329
|
]
|
|
3296
3330
|
}),
|
|
3297
|
-
shortcut && !hideLabel && /* @__PURE__ */
|
|
3331
|
+
shortcut && !hideLabel && /* @__PURE__ */ jsx34(Kbd2, {
|
|
3298
3332
|
"aria-hidden": "true",
|
|
3299
3333
|
className: "ms-1",
|
|
3300
3334
|
children: shortcut.toUpperCase()
|
|
@@ -3303,7 +3337,7 @@ function ToolbarToggleChip2({
|
|
|
3303
3337
|
});
|
|
3304
3338
|
return /* @__PURE__ */ jsxs21(Fragment5, {
|
|
3305
3339
|
children: [
|
|
3306
|
-
disabledReason && /* @__PURE__ */
|
|
3340
|
+
disabledReason && /* @__PURE__ */ jsx34("span", {
|
|
3307
3341
|
id: reasonId,
|
|
3308
3342
|
className: "sr-only",
|
|
3309
3343
|
children: disabledReason
|
|
@@ -3311,7 +3345,7 @@ function ToolbarToggleChip2({
|
|
|
3311
3345
|
/* @__PURE__ */ jsxs21(Tooltip2, {
|
|
3312
3346
|
disabled: !disabledReason && !hideLabel,
|
|
3313
3347
|
children: [
|
|
3314
|
-
/* @__PURE__ */
|
|
3348
|
+
/* @__PURE__ */ jsx34(TooltipTrigger2, {
|
|
3315
3349
|
render: button,
|
|
3316
3350
|
closeOnClick: false
|
|
3317
3351
|
}),
|
|
@@ -3331,9 +3365,9 @@ function ToolbarToggleChip2({
|
|
|
3331
3365
|
// src/components/Stepper.tsx
|
|
3332
3366
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
3333
3367
|
import { CheckIcon as CheckIcon2 } from "lucide-react";
|
|
3334
|
-
import { jsx as
|
|
3368
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3335
3369
|
function Stepper2({ density, className, ...props }) {
|
|
3336
|
-
return /* @__PURE__ */
|
|
3370
|
+
return /* @__PURE__ */ jsx35(TabsPrimitive.Root, {
|
|
3337
3371
|
"data-density": density,
|
|
3338
3372
|
"data-slot": "stepper",
|
|
3339
3373
|
className: (state) => cn2("group/stepper flex min-w-0 flex-col gap-panel data-[orientation=vertical]:flex-row", typeof className === "function" ? className(state) : className),
|
|
@@ -3346,7 +3380,7 @@ function StepperList2({
|
|
|
3346
3380
|
activateOnFocus = false,
|
|
3347
3381
|
...props
|
|
3348
3382
|
}) {
|
|
3349
|
-
return /* @__PURE__ */
|
|
3383
|
+
return /* @__PURE__ */ jsx35(TabsPrimitive.List, {
|
|
3350
3384
|
"data-density": density,
|
|
3351
3385
|
"data-slot": "stepper-list",
|
|
3352
3386
|
activateOnFocus,
|
|
@@ -3355,7 +3389,7 @@ function StepperList2({
|
|
|
3355
3389
|
});
|
|
3356
3390
|
}
|
|
3357
3391
|
function StepperTrigger2({ density, className, ...props }) {
|
|
3358
|
-
return /* @__PURE__ */
|
|
3392
|
+
return /* @__PURE__ */ jsx35(TabsPrimitive.Tab, {
|
|
3359
3393
|
"data-density": density,
|
|
3360
3394
|
"data-slot": "stepper-trigger",
|
|
3361
3395
|
className: (state) => cn2("group/step flex min-h-control items-center gap-control-gap rounded-sm text-sm text-muted-foreground outline-none focus-visible:ring-1 focus-visible:ring-ring data-active:text-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:opacity-50", typeof className === "function" ? className(state) : className),
|
|
@@ -3363,17 +3397,17 @@ function StepperTrigger2({ density, className, ...props }) {
|
|
|
3363
3397
|
});
|
|
3364
3398
|
}
|
|
3365
3399
|
function StepperIndicator2({ completed = false, children, className, ...props }) {
|
|
3366
|
-
return /* @__PURE__ */
|
|
3400
|
+
return /* @__PURE__ */ jsx35("span", {
|
|
3367
3401
|
"aria-hidden": "true",
|
|
3368
3402
|
"data-slot": "stepper-indicator",
|
|
3369
3403
|
"data-completed": completed || undefined,
|
|
3370
3404
|
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),
|
|
3371
3405
|
...props,
|
|
3372
|
-
children: completed ? /* @__PURE__ */
|
|
3406
|
+
children: completed ? /* @__PURE__ */ jsx35(CheckIcon2, {}) : children
|
|
3373
3407
|
});
|
|
3374
3408
|
}
|
|
3375
3409
|
function StepperContent2({ density, className, ...props }) {
|
|
3376
|
-
return /* @__PURE__ */
|
|
3410
|
+
return /* @__PURE__ */ jsx35(TabsPrimitive.Panel, {
|
|
3377
3411
|
"data-density": density,
|
|
3378
3412
|
"data-slot": "stepper-content",
|
|
3379
3413
|
className: (state) => cn2("min-w-0 flex-1 outline-none focus-visible:ring-1 focus-visible:ring-ring", typeof className === "function" ? className(state) : className),
|
|
@@ -3381,7 +3415,7 @@ function StepperContent2({ density, className, ...props }) {
|
|
|
3381
3415
|
});
|
|
3382
3416
|
}
|
|
3383
3417
|
// src/components/AppShell.tsx
|
|
3384
|
-
import { jsx as
|
|
3418
|
+
import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3385
3419
|
function AppShell2({
|
|
3386
3420
|
navigation,
|
|
3387
3421
|
brand,
|
|
@@ -3406,17 +3440,17 @@ function AppShell2({
|
|
|
3406
3440
|
collapsible: "icon",
|
|
3407
3441
|
position: "container",
|
|
3408
3442
|
children: [
|
|
3409
|
-
/* @__PURE__ */
|
|
3443
|
+
/* @__PURE__ */ jsx36(SidebarHeader2, {
|
|
3410
3444
|
children: brand
|
|
3411
3445
|
}),
|
|
3412
|
-
/* @__PURE__ */
|
|
3413
|
-
children: /* @__PURE__ */
|
|
3446
|
+
/* @__PURE__ */ jsx36(SidebarContent2, {
|
|
3447
|
+
children: /* @__PURE__ */ jsx36("nav", {
|
|
3414
3448
|
"aria-label": "Primary navigation",
|
|
3415
|
-
children: /* @__PURE__ */
|
|
3416
|
-
children: /* @__PURE__ */
|
|
3417
|
-
children: navigation.map((item) => /* @__PURE__ */
|
|
3449
|
+
children: /* @__PURE__ */ jsx36(SidebarGroup2, {
|
|
3450
|
+
children: /* @__PURE__ */ jsx36(SidebarMenu2, {
|
|
3451
|
+
children: navigation.map((item) => /* @__PURE__ */ jsx36(SidebarMenuItem2, {
|
|
3418
3452
|
children: /* @__PURE__ */ jsxs22(SidebarMenuButton2, {
|
|
3419
|
-
render: /* @__PURE__ */
|
|
3453
|
+
render: /* @__PURE__ */ jsx36(AnalyticsLink, {
|
|
3420
3454
|
component: "AppShell",
|
|
3421
3455
|
render: item.render,
|
|
3422
3456
|
...item.href === undefined ? {} : { href: item.href },
|
|
@@ -3426,7 +3460,7 @@ function AppShell2({
|
|
|
3426
3460
|
tooltip: item.label,
|
|
3427
3461
|
children: [
|
|
3428
3462
|
item.icon,
|
|
3429
|
-
/* @__PURE__ */
|
|
3463
|
+
/* @__PURE__ */ jsx36("span", {
|
|
3430
3464
|
children: item.label
|
|
3431
3465
|
})
|
|
3432
3466
|
]
|
|
@@ -3436,7 +3470,7 @@ function AppShell2({
|
|
|
3436
3470
|
})
|
|
3437
3471
|
})
|
|
3438
3472
|
}),
|
|
3439
|
-
sidebarFooter && /* @__PURE__ */
|
|
3473
|
+
sidebarFooter && /* @__PURE__ */ jsx36(SidebarFooter2, {
|
|
3440
3474
|
children: sidebarFooter
|
|
3441
3475
|
})
|
|
3442
3476
|
]
|
|
@@ -3450,27 +3484,27 @@ function AppShell2({
|
|
|
3450
3484
|
"data-scroll": "none",
|
|
3451
3485
|
className: "flex shrink-0 items-center gap-control-gap border-b border-border p-panel",
|
|
3452
3486
|
children: [
|
|
3453
|
-
/* @__PURE__ */
|
|
3454
|
-
/* @__PURE__ */
|
|
3487
|
+
/* @__PURE__ */ jsx36(SidebarTrigger2, {}),
|
|
3488
|
+
/* @__PURE__ */ jsx36(Separator2, {
|
|
3455
3489
|
orientation: "vertical",
|
|
3456
3490
|
className: "h-control"
|
|
3457
3491
|
}),
|
|
3458
3492
|
header
|
|
3459
3493
|
]
|
|
3460
3494
|
}),
|
|
3461
|
-
content === "fill" ? /* @__PURE__ */
|
|
3495
|
+
content === "fill" ? /* @__PURE__ */ jsx36("div", {
|
|
3462
3496
|
"data-slot": "app-shell-content",
|
|
3463
3497
|
"data-scroll": "none",
|
|
3464
3498
|
className: "flex min-h-0 min-w-0 flex-1 flex-col",
|
|
3465
3499
|
children
|
|
3466
|
-
}) : /* @__PURE__ */
|
|
3500
|
+
}) : /* @__PURE__ */ jsx36(ScrollArea2, {
|
|
3467
3501
|
className: "min-h-0 flex-1",
|
|
3468
|
-
children: /* @__PURE__ */
|
|
3502
|
+
children: /* @__PURE__ */ jsx36("div", {
|
|
3469
3503
|
className: "flex min-w-0 flex-col gap-panel p-panel",
|
|
3470
3504
|
children
|
|
3471
3505
|
})
|
|
3472
3506
|
}),
|
|
3473
|
-
footer && /* @__PURE__ */
|
|
3507
|
+
footer && /* @__PURE__ */ jsx36("footer", {
|
|
3474
3508
|
className: "shrink-0 border-t border-border p-panel",
|
|
3475
3509
|
"data-scroll": "none",
|
|
3476
3510
|
children: footer
|
|
@@ -3820,7 +3854,7 @@ import {
|
|
|
3820
3854
|
DropletIcon,
|
|
3821
3855
|
SunIcon
|
|
3822
3856
|
} from "lucide-react";
|
|
3823
|
-
import { jsx as
|
|
3857
|
+
import { jsx as jsx37, jsxs as jsxs23, Fragment as Fragment6 } from "react/jsx-runtime";
|
|
3824
3858
|
var CONDITION_ICONS = {
|
|
3825
3859
|
clear: SunIcon,
|
|
3826
3860
|
"partly-cloudy": CloudSunIcon,
|
|
@@ -3874,7 +3908,7 @@ function WeatherSummary2({
|
|
|
3874
3908
|
className: cn2("flex min-w-0 text-foreground", isCompact ? "flex-col items-center gap-1 text-center" : "items-center gap-panel-sm", className),
|
|
3875
3909
|
children: /* @__PURE__ */ jsxs23(Fragment6, {
|
|
3876
3910
|
children: [
|
|
3877
|
-
/* @__PURE__ */
|
|
3911
|
+
/* @__PURE__ */ jsx37(ConditionIcon, {
|
|
3878
3912
|
"aria-hidden": "true",
|
|
3879
3913
|
"data-slot": "weather-summary-icon",
|
|
3880
3914
|
className: cn2("shrink-0 text-muted-foreground", isCompact ? "size-6" : "size-8")
|
|
@@ -3882,11 +3916,11 @@ function WeatherSummary2({
|
|
|
3882
3916
|
/* @__PURE__ */ jsxs23("div", {
|
|
3883
3917
|
className: cn2("flex min-w-0 flex-col gap-0.5", isCompact && "items-center"),
|
|
3884
3918
|
children: [
|
|
3885
|
-
/* @__PURE__ */
|
|
3919
|
+
/* @__PURE__ */ jsx37("div", {
|
|
3886
3920
|
className: "text-sm font-medium break-words",
|
|
3887
3921
|
children: label
|
|
3888
3922
|
}),
|
|
3889
|
-
/* @__PURE__ */
|
|
3923
|
+
/* @__PURE__ */ jsx37("div", {
|
|
3890
3924
|
className: cn2("text-sm text-muted-foreground", isCompact && "sr-only"),
|
|
3891
3925
|
children: conditionLabel
|
|
3892
3926
|
}),
|
|
@@ -3895,11 +3929,11 @@ function WeatherSummary2({
|
|
|
3895
3929
|
children: [
|
|
3896
3930
|
/* @__PURE__ */ jsxs23("span", {
|
|
3897
3931
|
children: [
|
|
3898
|
-
/* @__PURE__ */
|
|
3932
|
+
/* @__PURE__ */ jsx37("span", {
|
|
3899
3933
|
className: "sr-only",
|
|
3900
3934
|
children: "High "
|
|
3901
3935
|
}),
|
|
3902
|
-
/* @__PURE__ */
|
|
3936
|
+
/* @__PURE__ */ jsx37("span", {
|
|
3903
3937
|
className: "font-medium",
|
|
3904
3938
|
children: highText
|
|
3905
3939
|
})
|
|
@@ -3908,7 +3942,7 @@ function WeatherSummary2({
|
|
|
3908
3942
|
/* @__PURE__ */ jsxs23("span", {
|
|
3909
3943
|
className: "text-muted-foreground",
|
|
3910
3944
|
children: [
|
|
3911
|
-
/* @__PURE__ */
|
|
3945
|
+
/* @__PURE__ */ jsx37("span", {
|
|
3912
3946
|
className: "sr-only",
|
|
3913
3947
|
children: "Low "
|
|
3914
3948
|
}),
|
|
@@ -3920,14 +3954,14 @@ function WeatherSummary2({
|
|
|
3920
3954
|
probabilityText !== undefined && /* @__PURE__ */ jsxs23("div", {
|
|
3921
3955
|
className: "flex items-center gap-1 text-xs text-muted-foreground tabular-nums",
|
|
3922
3956
|
children: [
|
|
3923
|
-
/* @__PURE__ */
|
|
3957
|
+
/* @__PURE__ */ jsx37(DropletIcon, {
|
|
3924
3958
|
"aria-hidden": "true",
|
|
3925
3959
|
className: "size-3 shrink-0"
|
|
3926
3960
|
}),
|
|
3927
3961
|
/* @__PURE__ */ jsxs23("span", {
|
|
3928
3962
|
children: [
|
|
3929
3963
|
probabilityText,
|
|
3930
|
-
/* @__PURE__ */
|
|
3964
|
+
/* @__PURE__ */ jsx37("span", {
|
|
3931
3965
|
className: "sr-only",
|
|
3932
3966
|
children: " chance of precipitation"
|
|
3933
3967
|
})
|
|
@@ -3945,7 +3979,7 @@ function WeatherSummary2({
|
|
|
3945
3979
|
});
|
|
3946
3980
|
}
|
|
3947
3981
|
// src/components/WeatherForecast.tsx
|
|
3948
|
-
import { jsx as
|
|
3982
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3949
3983
|
function WeatherForecast2({
|
|
3950
3984
|
days,
|
|
3951
3985
|
label,
|
|
@@ -3956,23 +3990,23 @@ function WeatherForecast2({
|
|
|
3956
3990
|
className,
|
|
3957
3991
|
...props
|
|
3958
3992
|
}) {
|
|
3959
|
-
return /* @__PURE__ */
|
|
3993
|
+
return /* @__PURE__ */ jsx38("ul", {
|
|
3960
3994
|
"aria-label": label,
|
|
3961
3995
|
"data-slot": "weather-forecast",
|
|
3962
3996
|
"data-density": density,
|
|
3963
3997
|
className: cn2("grid min-w-0 gap-panel-sm", variant === "strip" && "grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]", className),
|
|
3964
3998
|
...props,
|
|
3965
|
-
children: days.map(({ id, ...day }) => /* @__PURE__ */
|
|
3999
|
+
children: days.map(({ id, ...day }) => /* @__PURE__ */ jsx38(WeatherSummary2, {
|
|
3966
4000
|
...day,
|
|
3967
4001
|
unit,
|
|
3968
4002
|
locale,
|
|
3969
4003
|
variant: variant === "strip" ? "compact" : "default",
|
|
3970
|
-
render: /* @__PURE__ */
|
|
4004
|
+
render: /* @__PURE__ */ jsx38("li", {})
|
|
3971
4005
|
}, id))
|
|
3972
4006
|
});
|
|
3973
4007
|
}
|
|
3974
4008
|
// src/components/PageHeader.tsx
|
|
3975
|
-
import { jsx as
|
|
4009
|
+
import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3976
4010
|
function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, density }) {
|
|
3977
4011
|
return /* @__PURE__ */ jsxs24("header", {
|
|
3978
4012
|
"data-density": density,
|
|
@@ -3987,21 +4021,21 @@ function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, densit
|
|
|
3987
4021
|
/* @__PURE__ */ jsxs24("div", {
|
|
3988
4022
|
className: "min-w-0",
|
|
3989
4023
|
children: [
|
|
3990
|
-
eyebrow != null && /* @__PURE__ */
|
|
4024
|
+
eyebrow != null && /* @__PURE__ */ jsx39("div", {
|
|
3991
4025
|
className: "mb-2 text-xs font-medium tracking-widest text-muted-foreground",
|
|
3992
4026
|
children: eyebrow
|
|
3993
4027
|
}),
|
|
3994
|
-
/* @__PURE__ */
|
|
4028
|
+
/* @__PURE__ */ jsx39("h1", {
|
|
3995
4029
|
className: "text-xl font-semibold text-foreground",
|
|
3996
4030
|
children: title
|
|
3997
4031
|
}),
|
|
3998
|
-
description && /* @__PURE__ */
|
|
4032
|
+
description && /* @__PURE__ */ jsx39("div", {
|
|
3999
4033
|
className: "mt-1 text-sm text-muted-foreground",
|
|
4000
4034
|
children: description
|
|
4001
4035
|
})
|
|
4002
4036
|
]
|
|
4003
4037
|
}),
|
|
4004
|
-
actions && /* @__PURE__ */
|
|
4038
|
+
actions && /* @__PURE__ */ jsx39("div", {
|
|
4005
4039
|
className: "flex min-w-0 max-w-full flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4006
4040
|
children: actions
|
|
4007
4041
|
})
|
|
@@ -4011,9 +4045,9 @@ function PageHeader2({ title, eyebrow, description, breadcrumbs, actions, densit
|
|
|
4011
4045
|
});
|
|
4012
4046
|
}
|
|
4013
4047
|
// src/components/PageIntro.tsx
|
|
4014
|
-
import { jsx as
|
|
4048
|
+
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4015
4049
|
function PageIntro2({ title, description, eyebrow, icon, actions, highlights, density }) {
|
|
4016
|
-
return /* @__PURE__ */
|
|
4050
|
+
return /* @__PURE__ */ jsx40("header", {
|
|
4017
4051
|
"data-density": density,
|
|
4018
4052
|
"data-slot": "page-intro",
|
|
4019
4053
|
"data-scroll": "none",
|
|
@@ -4022,7 +4056,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4022
4056
|
variant: "hero",
|
|
4023
4057
|
className: "gap-0 py-0",
|
|
4024
4058
|
children: [
|
|
4025
|
-
/* @__PURE__ */
|
|
4059
|
+
/* @__PURE__ */ jsx40("div", {
|
|
4026
4060
|
"aria-hidden": "true",
|
|
4027
4061
|
"data-slot": "page-intro-wash",
|
|
4028
4062
|
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%)]"
|
|
@@ -4033,7 +4067,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4033
4067
|
/* @__PURE__ */ jsxs25("div", {
|
|
4034
4068
|
className: "flex min-w-0 gap-panel",
|
|
4035
4069
|
children: [
|
|
4036
|
-
icon != null && /* @__PURE__ */
|
|
4070
|
+
icon != null && /* @__PURE__ */ jsx40("div", {
|
|
4037
4071
|
"aria-hidden": "true",
|
|
4038
4072
|
"data-slot": "page-intro-icon",
|
|
4039
4073
|
className: "flex size-12 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary [&_svg]:size-6",
|
|
@@ -4042,15 +4076,15 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4042
4076
|
/* @__PURE__ */ jsxs25("div", {
|
|
4043
4077
|
className: "min-w-0",
|
|
4044
4078
|
children: [
|
|
4045
|
-
eyebrow != null && /* @__PURE__ */
|
|
4079
|
+
eyebrow != null && /* @__PURE__ */ jsx40("div", {
|
|
4046
4080
|
className: "mb-1 text-xs font-medium tracking-widest text-muted-foreground",
|
|
4047
4081
|
children: eyebrow
|
|
4048
4082
|
}),
|
|
4049
|
-
/* @__PURE__ */
|
|
4083
|
+
/* @__PURE__ */ jsx40("h1", {
|
|
4050
4084
|
className: "text-2xl font-semibold text-foreground",
|
|
4051
4085
|
children: title
|
|
4052
4086
|
}),
|
|
4053
|
-
/* @__PURE__ */
|
|
4087
|
+
/* @__PURE__ */ jsx40("div", {
|
|
4054
4088
|
className: "mt-2 max-w-prose text-base text-pretty text-muted-foreground",
|
|
4055
4089
|
children: description
|
|
4056
4090
|
})
|
|
@@ -4058,13 +4092,13 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4058
4092
|
})
|
|
4059
4093
|
]
|
|
4060
4094
|
}),
|
|
4061
|
-
actions != null && /* @__PURE__ */
|
|
4095
|
+
actions != null && /* @__PURE__ */ jsx40("div", {
|
|
4062
4096
|
className: "flex min-w-0 max-w-full shrink-0 flex-wrap items-center gap-control-gap wrap-anywhere",
|
|
4063
4097
|
children: actions
|
|
4064
4098
|
})
|
|
4065
4099
|
]
|
|
4066
4100
|
}),
|
|
4067
|
-
highlights != null && highlights.length > 0 && /* @__PURE__ */
|
|
4101
|
+
highlights != null && highlights.length > 0 && /* @__PURE__ */ jsx40("ul", {
|
|
4068
4102
|
"aria-label": `What you can do in ${title}`,
|
|
4069
4103
|
"data-slot": "page-intro-highlights",
|
|
4070
4104
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(100%,13rem),1fr))] gap-panel border-t border-border p-(--card-spacing)",
|
|
@@ -4072,7 +4106,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4072
4106
|
"data-slot": "page-intro-highlight",
|
|
4073
4107
|
className: "flex min-w-0 gap-2",
|
|
4074
4108
|
children: [
|
|
4075
|
-
highlight.icon != null && /* @__PURE__ */
|
|
4109
|
+
highlight.icon != null && /* @__PURE__ */ jsx40("span", {
|
|
4076
4110
|
"aria-hidden": "true",
|
|
4077
4111
|
className: "mt-0.5 shrink-0 text-primary [&_svg]:size-4",
|
|
4078
4112
|
children: highlight.icon
|
|
@@ -4080,11 +4114,11 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4080
4114
|
/* @__PURE__ */ jsxs25("div", {
|
|
4081
4115
|
className: "min-w-0",
|
|
4082
4116
|
children: [
|
|
4083
|
-
/* @__PURE__ */
|
|
4117
|
+
/* @__PURE__ */ jsx40("div", {
|
|
4084
4118
|
className: "text-sm font-medium text-foreground",
|
|
4085
4119
|
children: highlight.title
|
|
4086
4120
|
}),
|
|
4087
|
-
/* @__PURE__ */
|
|
4121
|
+
/* @__PURE__ */ jsx40("div", {
|
|
4088
4122
|
className: "mt-0.5 text-sm text-muted-foreground",
|
|
4089
4123
|
children: highlight.description
|
|
4090
4124
|
})
|
|
@@ -4098,7 +4132,7 @@ function PageIntro2({ title, description, eyebrow, icon, actions, highlights, de
|
|
|
4098
4132
|
});
|
|
4099
4133
|
}
|
|
4100
4134
|
// src/components/WorkspaceSwitcher.tsx
|
|
4101
|
-
import { jsx as
|
|
4135
|
+
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4102
4136
|
function WorkspaceSwitcher2({
|
|
4103
4137
|
workspaces,
|
|
4104
4138
|
value,
|
|
@@ -4118,15 +4152,15 @@ function WorkspaceSwitcher2({
|
|
|
4118
4152
|
},
|
|
4119
4153
|
disabled,
|
|
4120
4154
|
children: [
|
|
4121
|
-
/* @__PURE__ */
|
|
4155
|
+
/* @__PURE__ */ jsx41(SelectTrigger2, {
|
|
4122
4156
|
"aria-label": label,
|
|
4123
4157
|
density,
|
|
4124
|
-
children: /* @__PURE__ */
|
|
4158
|
+
children: /* @__PURE__ */ jsx41(SelectValue2, {})
|
|
4125
4159
|
}),
|
|
4126
|
-
/* @__PURE__ */
|
|
4160
|
+
/* @__PURE__ */ jsx41(SelectContent2, {
|
|
4127
4161
|
density,
|
|
4128
|
-
children: /* @__PURE__ */
|
|
4129
|
-
children: workspaces.map((workspace) => /* @__PURE__ */
|
|
4162
|
+
children: /* @__PURE__ */ jsx41(SelectGroup2, {
|
|
4163
|
+
children: workspaces.map((workspace) => /* @__PURE__ */ jsx41(SelectItem2, {
|
|
4130
4164
|
value: workspace.value,
|
|
4131
4165
|
children: workspace.label
|
|
4132
4166
|
}, workspace.value))
|
|
@@ -4136,12 +4170,12 @@ function WorkspaceSwitcher2({
|
|
|
4136
4170
|
});
|
|
4137
4171
|
}
|
|
4138
4172
|
// src/components/AccountMenu.tsx
|
|
4139
|
-
import { jsx as
|
|
4173
|
+
import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4140
4174
|
function AccountMenu2({ name, email, image, onAction, density }) {
|
|
4141
4175
|
return /* @__PURE__ */ jsxs27(DropdownMenu2, {
|
|
4142
4176
|
children: [
|
|
4143
4177
|
/* @__PURE__ */ jsxs27(DropdownMenuTrigger2, {
|
|
4144
|
-
render: /* @__PURE__ */
|
|
4178
|
+
render: /* @__PURE__ */ jsx42(Button2, {
|
|
4145
4179
|
variant: "ghost",
|
|
4146
4180
|
density
|
|
4147
4181
|
}),
|
|
@@ -4150,38 +4184,38 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4150
4184
|
/* @__PURE__ */ jsxs27(Avatar2, {
|
|
4151
4185
|
className: "size-control",
|
|
4152
4186
|
children: [
|
|
4153
|
-
/* @__PURE__ */
|
|
4187
|
+
/* @__PURE__ */ jsx42(AvatarImage2, {
|
|
4154
4188
|
src: image,
|
|
4155
4189
|
alt: ""
|
|
4156
4190
|
}),
|
|
4157
|
-
/* @__PURE__ */
|
|
4191
|
+
/* @__PURE__ */ jsx42(AvatarFallback2, {
|
|
4158
4192
|
children: name.slice(0, 2).toUpperCase()
|
|
4159
4193
|
})
|
|
4160
4194
|
]
|
|
4161
4195
|
}),
|
|
4162
|
-
/* @__PURE__ */
|
|
4196
|
+
/* @__PURE__ */ jsx42("span", {
|
|
4163
4197
|
children: name
|
|
4164
4198
|
})
|
|
4165
4199
|
]
|
|
4166
4200
|
}),
|
|
4167
|
-
/* @__PURE__ */
|
|
4201
|
+
/* @__PURE__ */ jsx42(MenuPopup, {
|
|
4168
4202
|
density,
|
|
4169
4203
|
align: "end",
|
|
4170
4204
|
children: /* @__PURE__ */ jsxs27(MenuGroup2, {
|
|
4171
4205
|
children: [
|
|
4172
|
-
/* @__PURE__ */
|
|
4206
|
+
/* @__PURE__ */ jsx42(MenuLabel2, {
|
|
4173
4207
|
children: email ?? name
|
|
4174
4208
|
}),
|
|
4175
|
-
/* @__PURE__ */
|
|
4209
|
+
/* @__PURE__ */ jsx42(MenuItem2, {
|
|
4176
4210
|
onClick: () => onAction("profile"),
|
|
4177
4211
|
children: "Profile"
|
|
4178
4212
|
}),
|
|
4179
|
-
/* @__PURE__ */
|
|
4213
|
+
/* @__PURE__ */ jsx42(MenuItem2, {
|
|
4180
4214
|
onClick: () => onAction("settings"),
|
|
4181
4215
|
children: "Settings"
|
|
4182
4216
|
}),
|
|
4183
|
-
/* @__PURE__ */
|
|
4184
|
-
/* @__PURE__ */
|
|
4217
|
+
/* @__PURE__ */ jsx42(MenuSeparator2, {}),
|
|
4218
|
+
/* @__PURE__ */ jsx42(MenuItem2, {
|
|
4185
4219
|
onClick: () => onAction("sign-out"),
|
|
4186
4220
|
children: "Sign out"
|
|
4187
4221
|
})
|
|
@@ -4192,7 +4226,7 @@ function AccountMenu2({ name, email, image, onAction, density }) {
|
|
|
4192
4226
|
});
|
|
4193
4227
|
}
|
|
4194
4228
|
// src/components/StatCard.tsx
|
|
4195
|
-
import { jsx as
|
|
4229
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4196
4230
|
function StatCard2({
|
|
4197
4231
|
label,
|
|
4198
4232
|
value,
|
|
@@ -4210,33 +4244,33 @@ function StatCard2({
|
|
|
4210
4244
|
children: [
|
|
4211
4245
|
/* @__PURE__ */ jsxs28(CardHeader2, {
|
|
4212
4246
|
children: [
|
|
4213
|
-
/* @__PURE__ */
|
|
4247
|
+
/* @__PURE__ */ jsx43(CardTitle2, {
|
|
4214
4248
|
children: label
|
|
4215
4249
|
}),
|
|
4216
|
-
description && /* @__PURE__ */
|
|
4250
|
+
description && /* @__PURE__ */ jsx43(CardDescription2, {
|
|
4217
4251
|
children: description
|
|
4218
4252
|
})
|
|
4219
4253
|
]
|
|
4220
4254
|
}),
|
|
4221
|
-
/* @__PURE__ */
|
|
4255
|
+
/* @__PURE__ */ jsx43(CardContent2, {
|
|
4222
4256
|
children: /* @__PURE__ */ jsxs28("div", {
|
|
4223
4257
|
className: "flex flex-wrap items-center justify-between gap-control-gap",
|
|
4224
4258
|
children: [
|
|
4225
|
-
loading ? /* @__PURE__ */
|
|
4259
|
+
loading ? /* @__PURE__ */ jsx43(Skeleton2, {
|
|
4226
4260
|
className: "h-8 w-24",
|
|
4227
4261
|
"aria-label": `Loading ${label}`
|
|
4228
|
-
}) : /* @__PURE__ */
|
|
4262
|
+
}) : /* @__PURE__ */ jsx43("div", {
|
|
4229
4263
|
className: "text-2xl font-semibold tabular-nums",
|
|
4230
4264
|
children: value
|
|
4231
4265
|
}),
|
|
4232
|
-
change && /* @__PURE__ */
|
|
4266
|
+
change && /* @__PURE__ */ jsx43(Badge2, {
|
|
4233
4267
|
variant: changeIntent === "positive" ? "success" : changeIntent === "negative" ? "destructive" : "secondary",
|
|
4234
4268
|
children: change
|
|
4235
4269
|
})
|
|
4236
4270
|
]
|
|
4237
4271
|
})
|
|
4238
4272
|
}),
|
|
4239
|
-
children && /* @__PURE__ */
|
|
4273
|
+
children && /* @__PURE__ */ jsx43(CardFooter2, {
|
|
4240
4274
|
children
|
|
4241
4275
|
})
|
|
4242
4276
|
]
|
|
@@ -4244,7 +4278,7 @@ function StatCard2({
|
|
|
4244
4278
|
}
|
|
4245
4279
|
// src/components/AuthForm.tsx
|
|
4246
4280
|
import { useId as useId6, useState as useState7 } from "react";
|
|
4247
|
-
import { jsx as
|
|
4281
|
+
import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4248
4282
|
function AuthForm2({
|
|
4249
4283
|
mode = "sign-in",
|
|
4250
4284
|
onSubmit,
|
|
@@ -4279,16 +4313,16 @@ function AuthForm2({
|
|
|
4279
4313
|
children: [
|
|
4280
4314
|
/* @__PURE__ */ jsxs29(CardHeader2, {
|
|
4281
4315
|
children: [
|
|
4282
|
-
/* @__PURE__ */
|
|
4316
|
+
/* @__PURE__ */ jsx44(CardTitle2, {
|
|
4283
4317
|
children: title
|
|
4284
4318
|
}),
|
|
4285
|
-
/* @__PURE__ */
|
|
4319
|
+
/* @__PURE__ */ jsx44(CardDescription2, {
|
|
4286
4320
|
children: mode === "reset-password" ? "Enter your email to request a password reset." : "Enter your details to continue."
|
|
4287
4321
|
})
|
|
4288
4322
|
]
|
|
4289
4323
|
}),
|
|
4290
|
-
/* @__PURE__ */
|
|
4291
|
-
children: /* @__PURE__ */
|
|
4324
|
+
/* @__PURE__ */ jsx44(CardContent2, {
|
|
4325
|
+
children: /* @__PURE__ */ jsx44("form", {
|
|
4292
4326
|
onSubmit: submit,
|
|
4293
4327
|
"aria-label": title,
|
|
4294
4328
|
"aria-busy": pending,
|
|
@@ -4296,11 +4330,11 @@ function AuthForm2({
|
|
|
4296
4330
|
children: [
|
|
4297
4331
|
mode === "sign-up" && /* @__PURE__ */ jsxs29(Field2, {
|
|
4298
4332
|
children: [
|
|
4299
|
-
/* @__PURE__ */
|
|
4333
|
+
/* @__PURE__ */ jsx44(FieldLabel2, {
|
|
4300
4334
|
htmlFor: id + "-name",
|
|
4301
4335
|
children: "Name"
|
|
4302
4336
|
}),
|
|
4303
|
-
/* @__PURE__ */
|
|
4337
|
+
/* @__PURE__ */ jsx44(Input2, {
|
|
4304
4338
|
id: id + "-name",
|
|
4305
4339
|
name: "name",
|
|
4306
4340
|
autoComplete: "name",
|
|
@@ -4311,11 +4345,11 @@ function AuthForm2({
|
|
|
4311
4345
|
}),
|
|
4312
4346
|
/* @__PURE__ */ jsxs29(Field2, {
|
|
4313
4347
|
children: [
|
|
4314
|
-
/* @__PURE__ */
|
|
4348
|
+
/* @__PURE__ */ jsx44(FieldLabel2, {
|
|
4315
4349
|
htmlFor: id + "-email",
|
|
4316
4350
|
children: "Email"
|
|
4317
4351
|
}),
|
|
4318
|
-
/* @__PURE__ */
|
|
4352
|
+
/* @__PURE__ */ jsx44(Input2, {
|
|
4319
4353
|
id: id + "-email",
|
|
4320
4354
|
name: "email",
|
|
4321
4355
|
type: "email",
|
|
@@ -4327,11 +4361,11 @@ function AuthForm2({
|
|
|
4327
4361
|
}),
|
|
4328
4362
|
mode !== "reset-password" && /* @__PURE__ */ jsxs29(Field2, {
|
|
4329
4363
|
children: [
|
|
4330
|
-
/* @__PURE__ */
|
|
4364
|
+
/* @__PURE__ */ jsx44(FieldLabel2, {
|
|
4331
4365
|
htmlFor: id + "-password",
|
|
4332
4366
|
children: "Password"
|
|
4333
4367
|
}),
|
|
4334
|
-
/* @__PURE__ */
|
|
4368
|
+
/* @__PURE__ */ jsx44(Input2, {
|
|
4335
4369
|
id: id + "-password",
|
|
4336
4370
|
name: "password",
|
|
4337
4371
|
type: "password",
|
|
@@ -4340,7 +4374,7 @@ function AuthForm2({
|
|
|
4340
4374
|
required: true,
|
|
4341
4375
|
disabled: disabled || pending
|
|
4342
4376
|
}),
|
|
4343
|
-
mode === "sign-up" && /* @__PURE__ */
|
|
4377
|
+
mode === "sign-up" && /* @__PURE__ */ jsx44(FieldDescription2, {
|
|
4344
4378
|
children: "Use at least eight characters."
|
|
4345
4379
|
})
|
|
4346
4380
|
]
|
|
@@ -4348,10 +4382,10 @@ function AuthForm2({
|
|
|
4348
4382
|
error && /* @__PURE__ */ jsxs29(Alert2, {
|
|
4349
4383
|
variant: "destructive",
|
|
4350
4384
|
children: [
|
|
4351
|
-
/* @__PURE__ */
|
|
4385
|
+
/* @__PURE__ */ jsx44(AlertTitle2, {
|
|
4352
4386
|
children: "Request failed"
|
|
4353
4387
|
}),
|
|
4354
|
-
/* @__PURE__ */
|
|
4388
|
+
/* @__PURE__ */ jsx44(AlertDescription2, {
|
|
4355
4389
|
children: error
|
|
4356
4390
|
})
|
|
4357
4391
|
]
|
|
@@ -4360,7 +4394,7 @@ function AuthForm2({
|
|
|
4360
4394
|
type: "submit",
|
|
4361
4395
|
disabled: disabled || pending,
|
|
4362
4396
|
children: [
|
|
4363
|
-
pending && /* @__PURE__ */
|
|
4397
|
+
pending && /* @__PURE__ */ jsx44(Spinner2, {
|
|
4364
4398
|
"data-icon": "inline-start"
|
|
4365
4399
|
}),
|
|
4366
4400
|
mode === "reset-password" ? "Send reset link" : title
|
|
@@ -4371,14 +4405,14 @@ function AuthForm2({
|
|
|
4371
4405
|
})
|
|
4372
4406
|
})
|
|
4373
4407
|
}),
|
|
4374
|
-
footer && /* @__PURE__ */
|
|
4408
|
+
footer && /* @__PURE__ */ jsx44(CardFooter2, {
|
|
4375
4409
|
children: footer
|
|
4376
4410
|
})
|
|
4377
4411
|
]
|
|
4378
4412
|
});
|
|
4379
4413
|
}
|
|
4380
4414
|
// src/components/SettingsSection.tsx
|
|
4381
|
-
import { jsx as
|
|
4415
|
+
import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4382
4416
|
function SettingsSection2({
|
|
4383
4417
|
title,
|
|
4384
4418
|
description,
|
|
@@ -4391,7 +4425,7 @@ function SettingsSection2({
|
|
|
4391
4425
|
destructive = false,
|
|
4392
4426
|
density
|
|
4393
4427
|
}) {
|
|
4394
|
-
return /* @__PURE__ */
|
|
4428
|
+
return /* @__PURE__ */ jsx45("form", {
|
|
4395
4429
|
"aria-label": title,
|
|
4396
4430
|
onSubmit,
|
|
4397
4431
|
"aria-busy": pending,
|
|
@@ -4400,24 +4434,24 @@ function SettingsSection2({
|
|
|
4400
4434
|
children: [
|
|
4401
4435
|
/* @__PURE__ */ jsxs30(CardHeader2, {
|
|
4402
4436
|
children: [
|
|
4403
|
-
/* @__PURE__ */
|
|
4437
|
+
/* @__PURE__ */ jsx45(CardTitle2, {
|
|
4404
4438
|
children: title
|
|
4405
4439
|
}),
|
|
4406
|
-
description && /* @__PURE__ */
|
|
4440
|
+
description && /* @__PURE__ */ jsx45(CardDescription2, {
|
|
4407
4441
|
children: description
|
|
4408
4442
|
})
|
|
4409
4443
|
]
|
|
4410
4444
|
}),
|
|
4411
|
-
/* @__PURE__ */
|
|
4445
|
+
/* @__PURE__ */ jsx45(CardContent2, {
|
|
4412
4446
|
children: /* @__PURE__ */ jsxs30("fieldset", {
|
|
4413
4447
|
disabled: disabled || pending,
|
|
4414
4448
|
className: "min-w-0 border-0 p-0",
|
|
4415
4449
|
children: [
|
|
4416
|
-
/* @__PURE__ */
|
|
4450
|
+
/* @__PURE__ */ jsx45("legend", {
|
|
4417
4451
|
className: "sr-only",
|
|
4418
4452
|
children: title
|
|
4419
4453
|
}),
|
|
4420
|
-
/* @__PURE__ */
|
|
4454
|
+
/* @__PURE__ */ jsx45(FieldGroup2, {
|
|
4421
4455
|
children
|
|
4422
4456
|
})
|
|
4423
4457
|
]
|
|
@@ -4432,7 +4466,7 @@ function SettingsSection2({
|
|
|
4432
4466
|
variant: destructive ? "destructive" : "default",
|
|
4433
4467
|
disabled: disabled || pending,
|
|
4434
4468
|
children: [
|
|
4435
|
-
pending && /* @__PURE__ */
|
|
4469
|
+
pending && /* @__PURE__ */ jsx45(Spinner2, {
|
|
4436
4470
|
"data-icon": "inline-start"
|
|
4437
4471
|
}),
|
|
4438
4472
|
saveLabel
|
|
@@ -4445,7 +4479,7 @@ function SettingsSection2({
|
|
|
4445
4479
|
});
|
|
4446
4480
|
}
|
|
4447
4481
|
// src/components/TagInput.tsx
|
|
4448
|
-
import { jsx as
|
|
4482
|
+
import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4449
4483
|
function TagInput2({
|
|
4450
4484
|
label,
|
|
4451
4485
|
options,
|
|
@@ -4471,13 +4505,13 @@ function TagInput2({
|
|
|
4471
4505
|
ref: anchor,
|
|
4472
4506
|
density,
|
|
4473
4507
|
children: [
|
|
4474
|
-
/* @__PURE__ */
|
|
4475
|
-
children: (values) => values.map((item) => /* @__PURE__ */
|
|
4508
|
+
/* @__PURE__ */ jsx46(ComboboxValue2, {
|
|
4509
|
+
children: (values) => values.map((item) => /* @__PURE__ */ jsx46(ComboboxChip2, {
|
|
4476
4510
|
removeLabel: `Remove ${item}`,
|
|
4477
4511
|
children: item
|
|
4478
4512
|
}, item))
|
|
4479
4513
|
}),
|
|
4480
|
-
/* @__PURE__ */
|
|
4514
|
+
/* @__PURE__ */ jsx46(ComboboxChipsInput2, {
|
|
4481
4515
|
"aria-label": label,
|
|
4482
4516
|
placeholder
|
|
4483
4517
|
})
|
|
@@ -4487,13 +4521,13 @@ function TagInput2({
|
|
|
4487
4521
|
anchor,
|
|
4488
4522
|
density,
|
|
4489
4523
|
children: [
|
|
4490
|
-
/* @__PURE__ */
|
|
4524
|
+
/* @__PURE__ */ jsx46(ComboboxEmpty2, {
|
|
4491
4525
|
children: "No matching tags."
|
|
4492
4526
|
}),
|
|
4493
|
-
/* @__PURE__ */
|
|
4494
|
-
children: /* @__PURE__ */
|
|
4495
|
-
children: /* @__PURE__ */
|
|
4496
|
-
children: (item) => /* @__PURE__ */
|
|
4527
|
+
/* @__PURE__ */ jsx46(ComboboxList2, {
|
|
4528
|
+
children: /* @__PURE__ */ jsx46(ComboboxGroup2, {
|
|
4529
|
+
children: /* @__PURE__ */ jsx46(ComboboxCollection2, {
|
|
4530
|
+
children: (item) => /* @__PURE__ */ jsx46(ComboboxItem2, {
|
|
4497
4531
|
value: item,
|
|
4498
4532
|
children: item
|
|
4499
4533
|
}, item)
|
|
@@ -4508,7 +4542,7 @@ function TagInput2({
|
|
|
4508
4542
|
// src/components/FilterChip.tsx
|
|
4509
4543
|
import { useId as useId7 } from "react";
|
|
4510
4544
|
import { XIcon as XIcon2 } from "lucide-react";
|
|
4511
|
-
import { jsx as
|
|
4545
|
+
import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4512
4546
|
function FilterChip2({
|
|
4513
4547
|
density,
|
|
4514
4548
|
className,
|
|
@@ -4535,7 +4569,7 @@ function FilterChip2({
|
|
|
4535
4569
|
},
|
|
4536
4570
|
...props,
|
|
4537
4571
|
children: [
|
|
4538
|
-
/* @__PURE__ */
|
|
4572
|
+
/* @__PURE__ */ jsx47("span", {
|
|
4539
4573
|
id: labelId,
|
|
4540
4574
|
"data-slot": "filter-chip-label",
|
|
4541
4575
|
className: "min-w-0 py-1 break-words",
|
|
@@ -4549,7 +4583,7 @@ function FilterChip2({
|
|
|
4549
4583
|
onClick: onClear,
|
|
4550
4584
|
children: [
|
|
4551
4585
|
clearLabel,
|
|
4552
|
-
/* @__PURE__ */
|
|
4586
|
+
/* @__PURE__ */ jsx47(XIcon2, {
|
|
4553
4587
|
"aria-hidden": "true",
|
|
4554
4588
|
"data-icon": "inline-end"
|
|
4555
4589
|
})
|
|
@@ -4559,7 +4593,7 @@ function FilterChip2({
|
|
|
4559
4593
|
});
|
|
4560
4594
|
}
|
|
4561
4595
|
// src/components/FilterBar.tsx
|
|
4562
|
-
import { jsx as
|
|
4596
|
+
import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4563
4597
|
function FilterBar2({
|
|
4564
4598
|
label,
|
|
4565
4599
|
search,
|
|
@@ -4576,20 +4610,20 @@ function FilterBar2({
|
|
|
4576
4610
|
"data-density": density,
|
|
4577
4611
|
className: "flex min-w-0 flex-wrap items-center gap-2",
|
|
4578
4612
|
children: [
|
|
4579
|
-
/* @__PURE__ */
|
|
4613
|
+
/* @__PURE__ */ jsx48(Input2, {
|
|
4580
4614
|
"aria-label": `Search ${label}`,
|
|
4581
4615
|
type: "search",
|
|
4582
4616
|
value: search,
|
|
4583
4617
|
onChange: (event) => onSearchChange(event.target.value),
|
|
4584
4618
|
className: "min-w-40 flex-1"
|
|
4585
4619
|
}),
|
|
4586
|
-
filters.map((filter) => /* @__PURE__ */
|
|
4620
|
+
filters.map((filter) => /* @__PURE__ */ jsx48(OptionSelect2, {
|
|
4587
4621
|
"aria-label": filter.label,
|
|
4588
4622
|
value: value[filter.id] ?? "",
|
|
4589
4623
|
onValueChange: (next) => onValueChange({ ...value, [filter.id]: next }),
|
|
4590
4624
|
options: [{ value: "", label: filter.allLabel ?? `All ${filter.label.toLowerCase()}` }, ...filter.options]
|
|
4591
4625
|
}, filter.id)),
|
|
4592
|
-
/* @__PURE__ */
|
|
4626
|
+
/* @__PURE__ */ jsx48(Button2, {
|
|
4593
4627
|
type: "button",
|
|
4594
4628
|
variant: "ghost",
|
|
4595
4629
|
disabled: !search && !Object.values(value).some(Boolean),
|
|
@@ -4603,7 +4637,7 @@ function FilterBar2({
|
|
|
4603
4637
|
});
|
|
4604
4638
|
}
|
|
4605
4639
|
// src/components/BarList.tsx
|
|
4606
|
-
import { jsx as
|
|
4640
|
+
import { jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4607
4641
|
function BarList2({
|
|
4608
4642
|
label,
|
|
4609
4643
|
items,
|
|
@@ -4616,9 +4650,9 @@ function BarList2({
|
|
|
4616
4650
|
"aria-label": label,
|
|
4617
4651
|
"data-density": density,
|
|
4618
4652
|
children: [
|
|
4619
|
-
/* @__PURE__ */
|
|
4653
|
+
/* @__PURE__ */ jsx49("ul", {
|
|
4620
4654
|
className: "grid gap-3",
|
|
4621
|
-
children: items.map((item) => /* @__PURE__ */
|
|
4655
|
+
children: items.map((item) => /* @__PURE__ */ jsx49("li", {
|
|
4622
4656
|
children: /* @__PURE__ */ jsxs34(Meter2, {
|
|
4623
4657
|
min: 0,
|
|
4624
4658
|
max,
|
|
@@ -4630,8 +4664,8 @@ function BarList2({
|
|
|
4630
4664
|
/* @__PURE__ */ jsxs34("div", {
|
|
4631
4665
|
className: "flex w-full items-center justify-between gap-3 text-sm",
|
|
4632
4666
|
children: [
|
|
4633
|
-
/* @__PURE__ */
|
|
4634
|
-
children: onItemSelect ? /* @__PURE__ */
|
|
4667
|
+
/* @__PURE__ */ jsx49(MeterLabel2, {
|
|
4668
|
+
children: onItemSelect ? /* @__PURE__ */ jsx49(Button2, {
|
|
4635
4669
|
type: "button",
|
|
4636
4670
|
variant: "link",
|
|
4637
4671
|
className: "h-auto p-0",
|
|
@@ -4639,19 +4673,19 @@ function BarList2({
|
|
|
4639
4673
|
children: item.label
|
|
4640
4674
|
}) : item.label
|
|
4641
4675
|
}),
|
|
4642
|
-
/* @__PURE__ */
|
|
4676
|
+
/* @__PURE__ */ jsx49(MeterValue2, {
|
|
4643
4677
|
children: () => valueFormatter(item.value)
|
|
4644
4678
|
})
|
|
4645
4679
|
]
|
|
4646
4680
|
}),
|
|
4647
|
-
/* @__PURE__ */
|
|
4648
|
-
children: /* @__PURE__ */
|
|
4681
|
+
/* @__PURE__ */ jsx49(MeterTrack2, {
|
|
4682
|
+
children: /* @__PURE__ */ jsx49(MeterIndicator2, {})
|
|
4649
4683
|
})
|
|
4650
4684
|
]
|
|
4651
4685
|
})
|
|
4652
4686
|
}, item.id))
|
|
4653
4687
|
}),
|
|
4654
|
-
!items.length && /* @__PURE__ */
|
|
4688
|
+
!items.length && /* @__PURE__ */ jsx49("p", {
|
|
4655
4689
|
role: "status",
|
|
4656
4690
|
className: "text-sm text-muted-foreground",
|
|
4657
4691
|
children: "No data available."
|
|
@@ -4660,18 +4694,18 @@ function BarList2({
|
|
|
4660
4694
|
});
|
|
4661
4695
|
}
|
|
4662
4696
|
// src/components/StatusTracker.tsx
|
|
4663
|
-
import { jsx as
|
|
4697
|
+
import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4664
4698
|
var statusClasses = { success: "bg-success", warning: "bg-warning", error: "bg-destructive", unknown: "bg-muted" };
|
|
4665
4699
|
function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
4666
|
-
return /* @__PURE__ */
|
|
4667
|
-
children: /* @__PURE__ */
|
|
4700
|
+
return /* @__PURE__ */ jsx50(TooltipProvider2, {
|
|
4701
|
+
children: /* @__PURE__ */ jsx50("div", {
|
|
4668
4702
|
role: "group",
|
|
4669
4703
|
"aria-label": label,
|
|
4670
4704
|
"data-density": density,
|
|
4671
4705
|
className: "flex min-w-0 gap-1",
|
|
4672
4706
|
children: items.map((item) => /* @__PURE__ */ jsxs35(Tooltip2, {
|
|
4673
4707
|
children: [
|
|
4674
|
-
/* @__PURE__ */
|
|
4708
|
+
/* @__PURE__ */ jsx50(TooltipTrigger2, {
|
|
4675
4709
|
"aria-label": `${item.label}: ${item.status}`,
|
|
4676
4710
|
onClick: () => onItemSelect?.(item),
|
|
4677
4711
|
className: cn2("h-8 min-w-2 flex-1 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring", statusClasses[item.status])
|
|
@@ -4689,7 +4723,7 @@ function StatusTracker2({ label, items, onItemSelect, density }) {
|
|
|
4689
4723
|
});
|
|
4690
4724
|
}
|
|
4691
4725
|
// src/components/DashboardLayout.tsx
|
|
4692
|
-
import { jsx as
|
|
4726
|
+
import { jsx as jsx51, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4693
4727
|
function DashboardLayout2({
|
|
4694
4728
|
title,
|
|
4695
4729
|
description,
|
|
@@ -4705,19 +4739,19 @@ function DashboardLayout2({
|
|
|
4705
4739
|
"data-scroll": "none",
|
|
4706
4740
|
className: "grid min-w-0 gap-6",
|
|
4707
4741
|
children: [
|
|
4708
|
-
/* @__PURE__ */
|
|
4742
|
+
/* @__PURE__ */ jsx51(PageHeader2, {
|
|
4709
4743
|
title,
|
|
4710
4744
|
description,
|
|
4711
4745
|
actions
|
|
4712
4746
|
}),
|
|
4713
4747
|
filters,
|
|
4714
|
-
stats.length > 0 && /* @__PURE__ */
|
|
4748
|
+
stats.length > 0 && /* @__PURE__ */ jsx51("div", {
|
|
4715
4749
|
className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-4",
|
|
4716
|
-
children: stats.map(({ id, ...stat }) => /* @__PURE__ */
|
|
4750
|
+
children: stats.map(({ id, ...stat }) => /* @__PURE__ */ jsx51(StatCard2, {
|
|
4717
4751
|
...stat
|
|
4718
4752
|
}, id))
|
|
4719
4753
|
}),
|
|
4720
|
-
/* @__PURE__ */
|
|
4754
|
+
/* @__PURE__ */ jsx51("div", {
|
|
4721
4755
|
className: "grid min-w-0 gap-4",
|
|
4722
4756
|
children
|
|
4723
4757
|
}),
|
|
@@ -4726,7 +4760,7 @@ function DashboardLayout2({
|
|
|
4726
4760
|
});
|
|
4727
4761
|
}
|
|
4728
4762
|
// src/components/BillingUsage.tsx
|
|
4729
|
-
import { jsx as
|
|
4763
|
+
import { jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4730
4764
|
function BillingUsage2({ plan, price, period, metrics, onManage, pending, density }) {
|
|
4731
4765
|
return /* @__PURE__ */ jsxs37(Card2, {
|
|
4732
4766
|
density,
|
|
@@ -4734,7 +4768,7 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4734
4768
|
children: [
|
|
4735
4769
|
/* @__PURE__ */ jsxs37(CardHeader2, {
|
|
4736
4770
|
children: [
|
|
4737
|
-
/* @__PURE__ */
|
|
4771
|
+
/* @__PURE__ */ jsx52(CardTitle2, {
|
|
4738
4772
|
children: plan
|
|
4739
4773
|
}),
|
|
4740
4774
|
/* @__PURE__ */ jsxs37(CardDescription2, {
|
|
@@ -4746,7 +4780,7 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4746
4780
|
})
|
|
4747
4781
|
]
|
|
4748
4782
|
}),
|
|
4749
|
-
/* @__PURE__ */
|
|
4783
|
+
/* @__PURE__ */ jsx52(CardContent2, {
|
|
4750
4784
|
className: "grid gap-4",
|
|
4751
4785
|
children: metrics.map((metric) => /* @__PURE__ */ jsxs37(Meter2, {
|
|
4752
4786
|
value: metric.used,
|
|
@@ -4756,22 +4790,22 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4756
4790
|
/* @__PURE__ */ jsxs37("div", {
|
|
4757
4791
|
className: "mb-2 flex items-center justify-between gap-3 text-sm",
|
|
4758
4792
|
children: [
|
|
4759
|
-
/* @__PURE__ */
|
|
4793
|
+
/* @__PURE__ */ jsx52(MeterLabel2, {
|
|
4760
4794
|
children: metric.label
|
|
4761
4795
|
}),
|
|
4762
|
-
/* @__PURE__ */
|
|
4796
|
+
/* @__PURE__ */ jsx52(MeterValue2, {
|
|
4763
4797
|
children: () => `${metric.used.toLocaleString()} / ${metric.limit.toLocaleString()}${metric.unit ? ` ${metric.unit}` : ""}`
|
|
4764
4798
|
})
|
|
4765
4799
|
]
|
|
4766
4800
|
}),
|
|
4767
|
-
/* @__PURE__ */
|
|
4768
|
-
children: /* @__PURE__ */
|
|
4801
|
+
/* @__PURE__ */ jsx52(MeterTrack2, {
|
|
4802
|
+
children: /* @__PURE__ */ jsx52(MeterIndicator2, {})
|
|
4769
4803
|
})
|
|
4770
4804
|
]
|
|
4771
4805
|
}, metric.id))
|
|
4772
4806
|
}),
|
|
4773
|
-
/* @__PURE__ */
|
|
4774
|
-
children: /* @__PURE__ */
|
|
4807
|
+
/* @__PURE__ */ jsx52(CardFooter2, {
|
|
4808
|
+
children: /* @__PURE__ */ jsx52(Button2, {
|
|
4775
4809
|
type: "button",
|
|
4776
4810
|
variant: "outline",
|
|
4777
4811
|
onClick: onManage,
|
|
@@ -4782,4 +4816,4 @@ function BillingUsage2({ plan, price, period, metrics, onManage, pending, densit
|
|
|
4782
4816
|
]
|
|
4783
4817
|
});
|
|
4784
4818
|
}
|
|
4785
|
-
export { ButtonLink2, ContextMenu2, ContextMenuPortal2, ContextMenuTrigger2, ContextMenuContent2, ActionsMenu2, ActionsMenuTrigger2, ActionsMenuContextTarget2, ActionsMenuContextContent2, FormDialog2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, OptionCardGroup2, OptionCard2, EmptyState3, PageMessage2, 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, 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, PageIntro2, WorkspaceSwitcher2, AccountMenu2, StatCard2, AuthForm2, SettingsSection2, TagInput2, FilterChip2, FilterBar2, BarList2, StatusTracker2, DashboardLayout2, BillingUsage2 };
|
|
4819
|
+
export { ButtonLink2, ContextMenu2, ContextMenuPortal2, ContextMenuTrigger2, ContextMenuContent2, ActionsMenu2, ActionsMenuTrigger2, ActionsMenuContextTarget2, ActionsMenuContextContent2, FormDialog2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, OptionCardGroup2, OptionCard2, EmptyState3, PageMessage2, 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, PageIntro2, WorkspaceSwitcher2, AccountMenu2, StatCard2, AuthForm2, SettingsSection2, TagInput2, FilterChip2, FilterBar2, BarList2, StatusTracker2, DashboardLayout2, BillingUsage2 };
|