UNPKG

@base-ui/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.

45 lines 1.73 kB
import { CommonPopupDataAttributes } from "../../utils/popupStateMapping.js"; export let DrawerPopupDataAttributes = function (DrawerPopupDataAttributes) { /** * Present when the drawer is open. */ DrawerPopupDataAttributes[DrawerPopupDataAttributes["open"] = CommonPopupDataAttributes.open] = "open"; /** * Present when the drawer is closed. */ DrawerPopupDataAttributes[DrawerPopupDataAttributes["closed"] = CommonPopupDataAttributes.closed] = "closed"; /** * Present when the drawer is animating in. */ DrawerPopupDataAttributes[DrawerPopupDataAttributes["startingStyle"] = CommonPopupDataAttributes.startingStyle] = "startingStyle"; /** * Present when the drawer is animating out. */ DrawerPopupDataAttributes[DrawerPopupDataAttributes["endingStyle"] = CommonPopupDataAttributes.endingStyle] = "endingStyle"; /** * Present when the drawer is at the expanded (full-height) snap point. */ DrawerPopupDataAttributes["expanded"] = "data-expanded"; /** * Present when a nested drawer is open. */ DrawerPopupDataAttributes["nestedDrawerOpen"] = "data-nested-drawer-open"; /** * Present when a nested drawer is being swiped. */ DrawerPopupDataAttributes["nestedDrawerSwiping"] = "data-nested-drawer-swiping"; /** * Present when the drawer is dismissed by swiping. */ DrawerPopupDataAttributes["swipeDismiss"] = "data-swipe-dismiss"; /** * Indicates the swipe direction. * @type {'up' | 'down' | 'left' | 'right'} */ DrawerPopupDataAttributes["swipeDirection"] = "data-swipe-direction"; /** * Present when the drawer is being swiped. */ DrawerPopupDataAttributes["swiping"] = "data-swiping"; return DrawerPopupDataAttributes; }({});