/** * @license * Copyright 2026 Aglyn LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { type CSSObject, type Theme } from '@aglyn/shared-ui-theme'; import { type BoxProps } from '@mui/material'; import type { ReactNode } from 'react'; /** * The wash a grid's no-rows overlay paints, for an empty state that is NOT * inside one. * * Every list built on `DataTableComponent` draws this component inside MUI * X's `GridOverlay`, which fills itself with `background.default` at * `action.disabledOpacity`. A hand-built table — the screens tree — has no * overlay to inherit that from, so its empty cell asks for the fill here * instead of spelling the formula a second time. * * The tokens are read through `theme.vars` wherever the theme has them. On a * CSS-variables theme — the console's — `theme.palette` is bound to the * DEFAULT color scheme, so a palette read composes the LIGHT value and keeps * it through a switch to dark; only the `--mui-palette-*` variables follow * the scheme. `theme.alpha` is MUI's theme-bound helper: handed a variable it * spells the `rgba(var(--…Channel) / …)` form that stays bound to it, and * handed a literal — a published site renders under a plain `createTheme()`, * which has no `vars` — it composes a literal `rgba()`. * * Pass it as an `sx` on its own, or spread it into one that carries more. */ export declare const emptyStateBackdropSx: (theme: Theme) => CSSObject; export interface EmptyStateProps extends Omit { /** The headline — what is not here. */ label: ReactNode; /** One sentence on what to do about it. Optional. */ description?: ReactNode; /** The way out: a create button, an upload button. Optional. */ action?: ReactNode; /** Drops the illustration where vertical space is tight. */ compact?: boolean; } /** The illustration, as its own element so callers can reuse the fills. */ export declare function EmptyStateIllustration(props: { width?: number; }): import("react").JSX.Element; export declare namespace EmptyStateIllustration { var displayName: string; } export declare function EmptyStateComponent(props: EmptyStateProps): import("react").JSX.Element; export declare namespace EmptyStateComponent { var displayName: string; } export default EmptyStateComponent;