Skip to main content

orbital_motion/
lib.rs

1#![recursion_limit = "256"]
2
3//! Shared motion vocabulary for Orbital components.
4//!
5//! Tokens, atoms, presence transitions, and reduced-motion utilities consumed by
6//! `orbital-base-components` and `orbital-core-components`.
7
8pub mod atom;
9pub mod callback;
10pub mod collapse;
11pub mod group;
12pub mod presence;
13pub mod reduced_motion;
14pub mod slot;
15pub mod tokens;
16
17#[cfg(feature = "preview")]
18pub mod preview;
19
20#[cfg(feature = "preview")]
21pub(crate) mod components {
22    pub use crate::preview::{ComponentPreviewCard, OrbitalComponentView};
23}
24
25pub use atom::{MotionAtom, SlideFrom};
26pub use callback::MotionElementCallback;
27pub use group::{MotionGroupContext, OrbitalPresenceGroup, OrbitalPresenceGroupItem};
28pub use presence::{presence_styles, OrbitalPresence, PresenceMotion};
29pub use reduced_motion::use_reduced_motion;
30pub use slot::{resolve_presence_motion, resolve_presence_motion_derived, MotionSlot};
31pub use tokens::{MotionCurve, MotionDuration};