Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,67 @@
"use client";
/*
* Documentation:
* Dialog — https://app.subframe.com/f023064a5ca0/library?component=Dialog_ecae5971-a047-4e67-9edd-3d361c1deef2
*/
import React from "react";
import * as SubframeCore from "@subframe/core";
import * as SubframeUtils from "../../utils";
export interface ContentProps
extends React.ComponentProps<typeof SubframeCore.Dialog.Content> {
children?: React.ReactNode;
className?: string;
}
const Content = React.forwardRef<HTMLDivElement, ContentProps>(function Content(
{ children, className, ...otherProps }: ContentProps,
ref
) {
return children ? (
<SubframeCore.Dialog.Content asChild={true} {...otherProps}>
<div
className={SubframeUtils.twClassNames(
"flex min-w-[320px] flex-col items-start gap-2 rounded-md border border-solid border-[#e5e5e5] bg-[#ffffff] shadow-lg max-h-[90vh] overflow-auto",
className
)}
ref={ref}
>
{children}
</div>
</SubframeCore.Dialog.Content>
) : null;
});
export interface DialogRootProps
extends React.ComponentProps<typeof SubframeCore.Dialog.Root> {
children?: React.ReactNode;
open?: boolean;
onOpenChange?: (open: boolean) => void;
className?: string;
}
const DialogRoot = React.forwardRef<HTMLDivElement, DialogRootProps>(
function DialogRoot(
{ children, className, ...otherProps }: DialogRootProps,
ref
) {
return children ? (
<SubframeCore.Dialog.Root asChild={true} {...otherProps}>
<div
className={SubframeUtils.twClassNames(
"flex h-full w-full flex-col items-center justify-center gap-2 bg-surface-neutral-overlay",
className
)}
ref={ref}
>
{children}
</div>
</SubframeCore.Dialog.Root>
) : null;
}
);
export const Dialog = Object.assign(DialogRoot, {
Content,
});
@@ -0,0 +1,10 @@
"use client";
import { Dialog as DialogComponent } from "./Dialog";
/**
* Add wrapper components and business logic here.
* If you modify this file, disable Subframe sync for it to prevent overwrites.
* Learn more: https://docs.subframe.com/concepts/syncing-components#wrapping-components
*/
export const Dialog = DialogComponent;