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:
* Drawer — https://app.subframe.com/f023064a5ca0/library?component=Drawer_1e71b2cb-8d72-4e67-b368-8805179e9444
*/
import React from "react";
import * as SubframeCore from "@subframe/core";
import * as SubframeUtils from "../../utils";
export interface ContentProps
extends React.ComponentProps<typeof SubframeCore.Drawer.Content> {
children?: React.ReactNode;
className?: string;
}
const Content = React.forwardRef<HTMLDivElement, ContentProps>(function Content(
{ children, className, ...otherProps }: ContentProps,
ref
) {
return children ? (
<SubframeCore.Drawer.Content asChild={true} {...otherProps}>
<div
className={SubframeUtils.twClassNames(
"flex h-full min-w-[320px] flex-col items-start gap-2 border-l border-solid border-[#e5e5e5] bg-[#ffffff]",
className
)}
ref={ref}
>
{children}
</div>
</SubframeCore.Drawer.Content>
) : null;
});
export interface DrawerRootProps
extends React.ComponentProps<typeof SubframeCore.Drawer.Root> {
children?: React.ReactNode;
open?: boolean;
onOpenChange?: (open: boolean) => void;
className?: string;
}
const DrawerRoot = React.forwardRef<HTMLDivElement, DrawerRootProps>(
function DrawerRoot(
{ children, className, ...otherProps }: DrawerRootProps,
ref
) {
return children ? (
<SubframeCore.Drawer.Root asChild={true} {...otherProps}>
<div
className={SubframeUtils.twClassNames(
"flex h-full w-full flex-col items-end justify-center gap-2 bg-[#00000066]",
className
)}
ref={ref}
>
{children}
</div>
</SubframeCore.Drawer.Root>
) : null;
}
);
export const Drawer = Object.assign(DrawerRoot, {
Content,
});
@@ -0,0 +1,10 @@
"use client";
import { Drawer as DrawerComponent } from "./Drawer";
/**
* 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 Drawer = DrawerComponent;