# All files / src/layout constants.ts

0% Statements 0/28
0% Branches 0/1
0% Functions 0/1
0% Lines 0/28

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29

     import type { CSSTransitionClassNames } from "../transition";
    import type {
      SupportedPhoneLayout,
      SupportedTabletLayout,
      SupportedWideLayout,
    } from "./types";

    export const DEFAULT_PHONE_LAYOUT: SupportedPhoneLayout = "temporary";
    export const DEFAULT_TABLET_LAYOUT: SupportedTabletLayout = "toggleable";
    export const DEFAULT_LANDSCAPE_TABLET_LAYOUT: SupportedTabletLayout =
      "toggleable";
    export const DEFAULT_DESKTOP_LAYOUT: SupportedWideLayout = "full-height";

    export const DEFAULT_LAYOUT_MAIN_CLASSNAMES: Readonly<CSSTransitionClassNames> =
      {
        enter: "rmd-layout-transition--enter",
        enterActive: "rmd-layout-main--nav-offset",
        enterDone: "rmd-layout-main--nav-offset",
        exit: "rmd-layout-transition--exit",
      };

    export const DEFAULT_LAYOUT_NAV_TOGGLE_CLASSNAMES: Readonly<CSSTransitionClassNames> =
      {
        enter: "rmd-layout-transition--enter",
        enterActive: "rmd-layout-nav-toggle--offset",
        enterDone: "rmd-layout-nav-toggle--offset",
        exit: "rmd-layout-transition--exit",
      };