mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-29 04:44:23 +01:00
migrate settings
This commit is contained in:
25 files changed
+335
-237
No files matched your search
@@ -11,7 +11,7 @@
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 2;
|
||||
z-index: 1;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -49,7 +49,7 @@
|
||||
}
|
||||
|
||||
.body {
|
||||
--scroller-curtain-color: var(--gray-2);
|
||||
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
@@ -2,7 +2,6 @@ import { Dialog as _ } from "radix-ui";
|
||||
import type { ComponentProps } from "react";
|
||||
import { classNames } from "../../ui/classNames";
|
||||
import { composeRadixComponents } from "../../ui/compose";
|
||||
import { Scroller, ScrollerOrientation } from "../Scroller";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
// Groups a title and description
|
||||
@@ -10,15 +9,9 @@ function Header({ className, ...props }: ComponentProps<"div">) {
|
||||
return <div className={classNames(styles.header, className)} {...props} />;
|
||||
}
|
||||
|
||||
// Scrolls the content that follows the header
|
||||
function Body({ className, ...props }: ComponentProps<typeof Scroller>) {
|
||||
return (
|
||||
<Scroller
|
||||
orientation={ScrollerOrientation.Vertical}
|
||||
className={classNames(styles.body, className)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
// Stacks the content that follows the header
|
||||
function Body({ className, ...props }: ComponentProps<"div">) {
|
||||
return <div className={classNames(styles.body, className)} {...props} />;
|
||||
}
|
||||
|
||||
export const Dialog = { ...composeRadixComponents(_, styles), Header, Body };
|
||||
Reference in new issue
Block a user