@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
49 lines (48 loc) • 1.31 kB
JavaScript
/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
* v1.5.0-next.4
*/
export const CSS = {
modal: "modal",
title: "title",
header: "header",
footer: "footer",
scrim: "scrim",
back: "back",
close: "close",
secondary: "secondary",
primary: "primary",
overflowHidden: "overflow-hidden",
container: "container",
containerOpen: "container--open",
content: "content",
contentNoFooter: "content--no-footer",
contentBottom: "content-bottom",
contentTop: "content-top",
slottedInShell: "slotted-in-shell",
// these classes help apply the animation in phases to only set transform on open/close
// this helps avoid a positioning issue for any floating-ui-owning children
openingIdle: "modal--opening-idle",
openingActive: "modal--opening-active",
closingIdle: "modal--closing-idle",
closingActive: "modal--closing-active"
};
export const DURATIONS = {
slow: 14000,
medium: 10000,
fast: 6000,
test: 300 / 1000
};
export const ICONS = {
close: "x"
};
export const SLOTS = {
content: "content",
contentBottom: "content-bottom",
contentTop: "content-top",
header: "header",
back: "back",
secondary: "secondary",
primary: "primary"
};