UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

33 lines (32 loc) 1.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TooltipViewportDataAttributes = void 0; let TooltipViewportDataAttributes = exports.TooltipViewportDataAttributes = /*#__PURE__*/function (TooltipViewportDataAttributes) { /** * Applied to the direct child of the viewport when no transitions are present or the new content when it's entering. */ TooltipViewportDataAttributes["current"] = "data-current"; /** * Applied to the direct child of the viewport that contains the exiting content when transitions are present. */ TooltipViewportDataAttributes["previous"] = "data-previous"; /** * Indicates the direction from which the popup was activated. * This can be used to create directional animations based on how the popup was triggered. * Contains space-separated values for both horizontal and vertical axes. * @type {`${'left' | 'right'} {'top' | 'bottom'}`} */ TooltipViewportDataAttributes["activationDirection"] = "data-activation-direction"; /** * Indicates that the viewport is currently transitioning between old and new content. */ TooltipViewportDataAttributes["transitioning"] = "data-transitioning"; /** * Present if animations should be instant. * @type {'delay' | 'dismiss' | 'focus'} */ TooltipViewportDataAttributes["instant"] = "data-instant"; return TooltipViewportDataAttributes; }({});