Private
Public Access
1
0

feat: Fluent UI Outlook Lite + connections mockup

This commit is contained in:
2026-04-14 18:52:25 +00:00
parent 1199eff6c3
commit dfa4010406
34820 changed files with 1003813 additions and 205 deletions

View File

@@ -0,0 +1,35 @@
'use client';
import { makeResetStyles, mergeClasses } from '@griffel/react';
import { DIALOG_GAP, DIALOG_MEDIA_QUERY_BREAKPOINT_SELECTOR, DIALOG_MEDIA_QUERY_SHORT_SCREEN, SURFACE_PADDING } from '../../contexts';
export const dialogBodyClassNames = {
root: 'fui-DialogBody'
};
/**
* Styles for the root slot
*/ const useResetStyles = makeResetStyles({
overflow: 'unset',
gap: DIALOG_GAP,
display: 'grid',
maxHeight: [
`calc(100vh - 2 * ${SURFACE_PADDING})`,
`calc(100dvh - 2 * ${SURFACE_PADDING})`
],
boxSizing: 'border-box',
gridTemplateRows: 'auto 1fr',
gridTemplateColumns: '1fr 1fr auto',
[DIALOG_MEDIA_QUERY_BREAKPOINT_SELECTOR]: {
maxWidth: '100vw',
gridTemplateRows: 'auto 1fr auto'
},
[DIALOG_MEDIA_QUERY_SHORT_SCREEN]: {
maxHeight: 'unset'
}
});
/**
* Apply styling to the DialogBody slots based on the state
*/ export const useDialogBodyStyles_unstable = (state)=>{
'use no memo';
const resetStyles = useResetStyles();
state.root.className = mergeClasses(dialogBodyClassNames.root, resetStyles, state.root.className);
return state;
};