mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-20 04:14:12 +01:00
migrate guesser
This commit is contained in:
33 files changed
+802
-635
No files matched your search
@@ -1,2 +1,48 @@
|
||||
.Trigger {
|
||||
.Overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
|
||||
background-color: var(--black-a9);
|
||||
}
|
||||
|
||||
.Content {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 2;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-3);
|
||||
|
||||
box-sizing: border-box;
|
||||
width: calc(100dvw - 2 * var(--space-4));
|
||||
max-width: var(--alert-max-width);
|
||||
padding: var(--space-4);
|
||||
|
||||
background-color: var(--gray-2);
|
||||
box-shadow: var(--shadow-subtle);
|
||||
border-radius: var(--space-4);
|
||||
outline: var(--outline-interactive) !important;
|
||||
}
|
||||
|
||||
.Title {
|
||||
margin: 0;
|
||||
font-size: var(--font-size-heading-4);
|
||||
color: var(--gray-12);
|
||||
}
|
||||
|
||||
.Description {
|
||||
margin: 0;
|
||||
color: var(--gray-11);
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-3);
|
||||
|
||||
margin-top: var(--space-3);
|
||||
}
|
||||
@@ -1,5 +1,11 @@
|
||||
import { AlertDialog as _ } from "radix-ui";
|
||||
import type { ComponentProps } from "react";
|
||||
import { classNames } from "../../ui/classNames";
|
||||
import { composeRadixComponents } from "../../ui/compose";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
export const AlertDialog = composeRadixComponents(_, styles);
|
||||
function Actions({ className, ...props }: ComponentProps<"div">) {
|
||||
return <div className={classNames(styles.actions, className)} {...props} />;
|
||||
}
|
||||
|
||||
export const AlertDialog = { ...composeRadixComponents(_, styles), Actions };
|
||||
Reference in new issue
Block a user