Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
+38
@@ -0,0 +1,38 @@
|
||||
"use client";
|
||||
/*
|
||||
* Documentation:
|
||||
* Dialog Layout — https://app.subframe.com/f023064a5ca0/library?component=Dialog+Layout_ff4920a8-df26-4012-934d-0a9edbf5e373
|
||||
* Modal Blank — https://app.subframe.com/f023064a5ca0/library?component=Modal+Blank_ca59db17-43fb-4247-8094-3c55162e902d
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import { ModalBlank } from "../../components/ModalBlank";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
|
||||
export interface DialogLayoutRootProps
|
||||
extends React.ComponentProps<typeof ModalBlank> {
|
||||
children?: React.ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const DialogLayoutRoot = React.forwardRef<
|
||||
React.ElementRef<typeof ModalBlank>,
|
||||
DialogLayoutRootProps
|
||||
>(function DialogLayoutRoot(
|
||||
{ children, className, ...otherProps }: DialogLayoutRootProps,
|
||||
ref
|
||||
) {
|
||||
return (
|
||||
<ModalBlank className={className} ref={ref} {...otherProps}>
|
||||
<ModalBlank.Content>
|
||||
{children ? (
|
||||
<div className="flex w-full grow shrink-0 basis-0 items-start gap-6">
|
||||
{children}
|
||||
</div>
|
||||
) : null}
|
||||
</ModalBlank.Content>
|
||||
</ModalBlank>
|
||||
);
|
||||
});
|
||||
|
||||
export const DialogLayout = DialogLayoutRoot;
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
"use client";
|
||||
import { DialogLayout as DialogLayoutComponent } from "./DialogLayout";
|
||||
|
||||
/**
|
||||
* 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 DialogLayout = DialogLayoutComponent;
|
||||
Reference in new issue
Block a user