mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
code: nextjs,frontends,scss (7 files)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// Dialog molecule component styles
|
||||
|
||||
.trigger {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.closeButton {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 8px;
|
||||
color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
|
||||
}
|
||||
|
||||
.description {
|
||||
color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
|
||||
}
|
||||
@@ -1,21 +1,22 @@
|
||||
'use client'
|
||||
|
||||
import {
|
||||
Box,
|
||||
Dialog as MuiDialog,
|
||||
DialogProps as MuiDialogProps,
|
||||
DialogTitle as MuiDialogTitle,
|
||||
IconButton,
|
||||
Typography,
|
||||
} from '@mui/material'
|
||||
import { forwardRef, ReactNode } from 'react'
|
||||
|
||||
import { Box } from '@/fakemui/fakemui/layout'
|
||||
import { Typography } from '@/fakemui/fakemui/data-display'
|
||||
import { IconButton } from '@/fakemui/fakemui/inputs'
|
||||
import {
|
||||
Dialog as FakeMuiDialog,
|
||||
DialogTitle as FakeMuiDialogTitle,
|
||||
} from '@/fakemui/fakemui/utils'
|
||||
import { Close } from '@/fakemui/icons'
|
||||
|
||||
import { DialogContent, type DialogContentProps } from './dialog/Body'
|
||||
import { DialogFooter, type DialogFooterProps } from './dialog/Footer'
|
||||
import { DialogHeader, type DialogHeaderProps } from './dialog/Header'
|
||||
|
||||
import styles from './Dialog.module.scss'
|
||||
|
||||
export interface DialogProps extends Omit<MuiDialogProps, 'onClose'> {
|
||||
onOpenChange?: (open: boolean) => void
|
||||
onClose?: () => void
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
// DialogBody molecule component styles
|
||||
|
||||
.body {
|
||||
position: relative;
|
||||
padding: 16px 24px;
|
||||
|
||||
&.hasCloseButton {
|
||||
padding-top: 48px;
|
||||
}
|
||||
}
|
||||
|
||||
.closeButton {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
top: 8px;
|
||||
color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// DialogFooter molecule component styles
|
||||
|
||||
.footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 16px 24px;
|
||||
gap: 8px;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// DialogHeader molecule component styles
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// DialogSections molecule component styles
|
||||
|
||||
.sections {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// MenuItem molecule component styles
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
width: 100%;
|
||||
|
||||
&.hasDescription {
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.label {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.43;
|
||||
}
|
||||
|
||||
.description {
|
||||
margin-top: 4px;
|
||||
color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
|
||||
}
|
||||
|
||||
.detail {
|
||||
color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
Reference in New Issue
Block a user