Reorganize repo structure and standards references

This commit is contained in:
david committed 2026-06-29 05:03:42 +02:00
1 parent 3cb93a81be
commit be2054274d
5885 files changed
+2588 -195

No files matched your search

@@ -0,0 +1,67 @@
"use client";
/*
* Documentation:
* Modal Blank — https://app.subframe.com/f023064a5ca0/library?component=Modal+Blank_ca59db17-43fb-4247-8094-3c55162e902d
*/
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 ModalBlankRootProps
extends React.ComponentProps<typeof SubframeCore.Dialog.Root> {
children?: React.ReactNode;
open?: boolean;
onOpenChange?: (open: boolean) => void;
className?: string;
}
const ModalBlankRoot = React.forwardRef<HTMLDivElement, ModalBlankRootProps>(
function ModalBlankRoot(
{ children, className, ...otherProps }: ModalBlankRootProps,
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 ModalBlank = Object.assign(ModalBlankRoot, {
Content,
});
@@ -0,0 +1,10 @@
"use client";
import { ModalBlank as ModalBlankComponent } from "./ModalBlank";
/**
* 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 ModalBlank = ModalBlankComponent;