orbital-motion 0.1.1

Shared motion tokens, atoms, and presence utilities for Orbital
Documentation
#![recursion_limit = "256"]

//! Shared motion vocabulary for Orbital components.
//!
//! Tokens, atoms, presence transitions, and reduced-motion utilities consumed by
//! `orbital-base-components` and `orbital-core-components`.

pub mod atom;
pub mod callback;
pub mod collapse;
pub mod group;
pub mod presence;
pub mod reduced_motion;
pub mod slot;
pub mod tokens;

#[cfg(feature = "preview")]
pub mod preview;

#[cfg(feature = "preview")]
pub(crate) mod components {
    pub use crate::preview::{ComponentPreviewCard, OrbitalComponentView};
}

pub use atom::{MotionAtom, SlideFrom};
pub use callback::MotionElementCallback;
pub use group::{MotionGroupContext, OrbitalPresenceGroup, OrbitalPresenceGroupItem};
pub use presence::{presence_styles, OrbitalPresence, PresenceMotion};
pub use reduced_motion::use_reduced_motion;
pub use slot::{resolve_presence_motion, resolve_presence_motion_derived, MotionSlot};
pub use tokens::{MotionCurve, MotionDuration};