@tscircuit/runframe 0.0.370 → 0.0.372

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.
@@ -1039,7 +1039,7 @@ var RenderLogViewer = ({
1039
1039
  };
1040
1040
 
1041
1041
  // package.json
1042
- var version = "0.0.369";
1042
+ var version = "0.0.371";
1043
1043
 
1044
1044
  // lib/components/CircuitJsonPreview/CircuitJsonPreview.tsx
1045
1045
  import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
@@ -1563,14 +1563,14 @@ var useRunFrameStore = create()(
1563
1563
  )
1564
1564
  );
1565
1565
 
1566
- // lib/components/ui/alert-dialog.tsx
1566
+ // lib/components/ui/dialog.tsx
1567
1567
  import * as React6 from "react";
1568
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
1568
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
1569
1569
  import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
1570
- var AlertDialog = AlertDialogPrimitive.Root;
1571
- var AlertDialogPortal = AlertDialogPrimitive.Portal;
1572
- var AlertDialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
1573
- AlertDialogPrimitive.Overlay,
1570
+ var Dialog = DialogPrimitive.Root;
1571
+ var DialogPortal = DialogPrimitive.Portal;
1572
+ var DialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
1573
+ DialogPrimitive.Overlay,
1574
1574
  {
1575
1575
  className: cn(
1576
1576
  "rf-fixed rf-inset-0 rf-z-50 rf-bg-black/80 data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0",
@@ -1580,23 +1580,24 @@ var AlertDialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /*
1580
1580
  ref
1581
1581
  }
1582
1582
  ));
1583
- AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
1584
- var AlertDialogContent = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs13(AlertDialogPortal, { children: [
1585
- /* @__PURE__ */ jsx17(AlertDialogOverlay, {}),
1583
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
1584
+ var DialogContent = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(DialogPortal, { children: [
1585
+ /* @__PURE__ */ jsx17(DialogOverlay, {}),
1586
1586
  /* @__PURE__ */ jsx17(
1587
- AlertDialogPrimitive.Content,
1587
+ DialogPrimitive.Content,
1588
1588
  {
1589
1589
  ref,
1590
1590
  className: cn(
1591
1591
  "rf-fixed rf-left-[50%] rf-top-[50%] rf-z-50 rf-grid rf-w-full rf-max-w-lg rf-translate-x-[-50%] rf-translate-y-[-50%] rf-gap-4 rf-border rf-border-zinc-200 rf-bg-white rf-p-6 rf-shadow-lg rf-duration-200 data-[state=open]:rf-animate-in data-[state=closed]:rf-animate-out data-[state=closed]:rf-fade-out-0 data-[state=open]:rf-fade-in-0 data-[state=closed]:rf-zoom-out-95 data-[state=open]:rf-zoom-in-95 data-[state=closed]:rf-slide-out-to-left-1/2 data-[state=closed]:rf-slide-out-to-top-[48%] data-[state=open]:rf-slide-in-from-left-1/2 data-[state=open]:rf-slide-in-from-top-[48%] sm:rf-rounded-lg dark:rf-border-zinc-800 dark:rf-bg-zinc-950",
1592
1592
  className
1593
1593
  ),
1594
- ...props
1594
+ ...props,
1595
+ children
1595
1596
  }
1596
1597
  )
1597
1598
  ] }));
1598
- AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
1599
- var AlertDialogHeader = ({
1599
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
1600
+ var DialogHeader = ({
1600
1601
  className,
1601
1602
  ...props
1602
1603
  }) => /* @__PURE__ */ jsx17(
@@ -1609,8 +1610,8 @@ var AlertDialogHeader = ({
1609
1610
  ...props
1610
1611
  }
1611
1612
  );
1612
- AlertDialogHeader.displayName = "AlertDialogHeader";
1613
- var AlertDialogFooter = ({
1613
+ DialogHeader.displayName = "DialogHeader";
1614
+ var DialogFooter = ({
1614
1615
  className,
1615
1616
  ...props
1616
1617
  }) => /* @__PURE__ */ jsx17(
@@ -1623,18 +1624,18 @@ var AlertDialogFooter = ({
1623
1624
  ...props
1624
1625
  }
1625
1626
  );
1626
- AlertDialogFooter.displayName = "AlertDialogFooter";
1627
- var AlertDialogTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
1628
- AlertDialogPrimitive.Title,
1627
+ DialogFooter.displayName = "DialogFooter";
1628
+ var DialogTitle = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
1629
+ DialogPrimitive.Title,
1629
1630
  {
1630
1631
  ref,
1631
1632
  className: cn("rf-text-lg rf-font-semibold", className),
1632
1633
  ...props
1633
1634
  }
1634
1635
  ));
1635
- AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
1636
- var AlertDialogDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
1637
- AlertDialogPrimitive.Description,
1636
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
1637
+ var DialogDescription = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
1638
+ DialogPrimitive.Description,
1638
1639
  {
1639
1640
  ref,
1640
1641
  className: cn(
@@ -1644,29 +1645,7 @@ var AlertDialogDescription = React6.forwardRef(({ className, ...props }, ref) =>
1644
1645
  ...props
1645
1646
  }
1646
1647
  ));
1647
- AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
1648
- var AlertDialogAction = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
1649
- AlertDialogPrimitive.Action,
1650
- {
1651
- ref,
1652
- className: cn(buttonVariants(), className),
1653
- ...props
1654
- }
1655
- ));
1656
- AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
1657
- var AlertDialogCancel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx17(
1658
- AlertDialogPrimitive.Cancel,
1659
- {
1660
- ref,
1661
- className: cn(
1662
- buttonVariants({ variant: "outline" }),
1663
- "rf-mt-2 sm:rf-mt-0",
1664
- className
1665
- ),
1666
- ...props
1667
- }
1668
- ));
1669
- AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
1648
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
1670
1649
 
1671
1650
  // lib/components/OrderDialog/OrderDialog.tsx
1672
1651
  import { QueryClient, QueryClientProvider } from "react-query";
@@ -1929,13 +1908,22 @@ var OrderDialog = ({
1929
1908
  circuitJson,
1930
1909
  packageReleaseId
1931
1910
  }) => {
1932
- return /* @__PURE__ */ jsx20(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx20(AlertDialog, { open: isOpen, onOpenChange: onClose, children: /* @__PURE__ */ jsx20(AlertDialogContent, { className: "!rf-max-w-[660px] !rf-p-0", children: /* @__PURE__ */ jsx20("div", { className: "rf-relative rf-w-full", children: stage === "initial" && /* @__PURE__ */ jsx20(
1933
- InitialOrderScreen,
1911
+ return /* @__PURE__ */ jsx20(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx20(
1912
+ Dialog,
1934
1913
  {
1935
- onCancel: onClose,
1936
- packageReleaseId: packageReleaseId ?? ""
1914
+ open: isOpen,
1915
+ onOpenChange: (open) => {
1916
+ if (!open) onClose();
1917
+ },
1918
+ children: /* @__PURE__ */ jsx20(DialogContent, { className: "!rf-max-w-[660px] !rf-p-0", children: /* @__PURE__ */ jsx20("div", { className: "rf-relative rf-w-full", children: stage === "initial" && /* @__PURE__ */ jsx20(
1919
+ InitialOrderScreen,
1920
+ {
1921
+ onCancel: onClose,
1922
+ packageReleaseId: packageReleaseId ?? ""
1923
+ }
1924
+ ) }) })
1937
1925
  }
1938
- ) }) }) }) });
1926
+ ) });
1939
1927
  };
1940
1928
 
1941
1929
  // lib/components/OrderDialog/CliOrderDialog.tsx
@@ -2000,6 +1988,7 @@ export {
2000
1988
  Tabs,
2001
1989
  TabsList,
2002
1990
  TabsTrigger,
1991
+ buttonVariants,
2003
1992
  Button,
2004
1993
  DropdownMenu,
2005
1994
  DropdownMenuTrigger,
@@ -2016,13 +2005,6 @@ export {
2016
2005
  debug_default,
2017
2006
  API_BASE,
2018
2007
  useRunFrameStore,
2019
- AlertDialog,
2020
- AlertDialogContent,
2021
- AlertDialogHeader,
2022
- AlertDialogFooter,
2023
- AlertDialogTitle,
2024
- AlertDialogDescription,
2025
- AlertDialogCancel,
2026
2008
  toast,
2027
2009
  useOrderDialogCli,
2028
2010
  useOrderDialog,
package/dist/preview.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  linkify,
9
9
  useOrderDialog,
10
10
  useOrderDialogCli
11
- } from "./chunk-MAIBX4W6.js";
11
+ } from "./chunk-ZHZYFWBK.js";
12
12
  export {
13
13
  BomTable,
14
14
  CadViewer,