orbital-motion 0.1.1

Shared motion tokens, atoms, and presence utilities for Orbital
Documentation
//! Preview registration for motion catalog pages.

mod component_doc_markdown;
mod component_doc_props;
mod components;
mod demo;
mod motion_atoms;
mod motion_choreography;
mod motion_overview;
mod motion_reduced_motion;
mod motion_settings;
mod motion_tokens;
mod presence_demos;
mod presence_group_demo;
pub mod preview_shell;
pub mod static_registrations;
mod tab;
mod types;

use icondata_core::Icon;
use leptos::prelude::*;

#[cfg(all(feature = "preview", not(target_arch = "wasm32")))]
inventory::collect!(PreviewRegistration);

/// Static metadata for a generated motion preview page.
pub struct PreviewRegistration {
    pub slug: &'static str,
    pub label: &'static str,
    pub section: &'static str,
    pub section_priority: u16,
    pub category: &'static str,
    pub category_priority: u16,
    pub category_default_collapsed: bool,
    pub group: &'static str,
    pub group_priority: u16,
    pub nav_item: bool,
    pub icon: Icon,
    pub render: fn() -> AnyView,
}

pub use demo::{demo_tile_styles, MotionDemoCell};
pub use motion_atoms::MotionAtomsGallery;
pub use motion_choreography::MotionChoreographyStaggerDemo;
pub use motion_overview::MotionOverview;
pub use motion_reduced_motion::MotionReducedMotionDemo;
pub use motion_settings::MotionSettingsDemo;
pub use motion_tokens::MotionTokensReference;
pub use presence_demos::{OrbitalPresenceAppearDemo, OrbitalPresenceBasicFadeDemo};
pub use presence_group_demo::OrbitalPresenceGroupDemo;
pub use preview_shell::{ComponentPreviewCard, OrbitalComponentView};
pub use types::{ComponentPropDoc, PreviewRenderMode};

#[cfg(feature = "preview")]
pub use crate::group::ORBITALPRESENCEGROUP_PREVIEW_REGISTRATION;
#[cfg(feature = "preview")]
pub use crate::presence::ORBITALPRESENCE_PREVIEW_REGISTRATION;
#[cfg(feature = "preview")]
pub use motion_atoms::MOTIONATOMSGALLERY_PREVIEW_REGISTRATION;
#[cfg(feature = "preview")]
pub use motion_choreography::MOTIONCHOREOGRAPHYSTAGGERDEMO_PREVIEW_REGISTRATION;
#[cfg(feature = "preview")]
pub use motion_overview::MOTIONOVERVIEW_PREVIEW_REGISTRATION;
#[cfg(feature = "preview")]
pub use motion_reduced_motion::MOTIONREDUCEDMOTIONDEMO_PREVIEW_REGISTRATION;
#[cfg(feature = "preview")]
pub use motion_settings::MOTIONSETTINGSDEMO_PREVIEW_REGISTRATION;
#[cfg(feature = "preview")]
pub use motion_tokens::MOTIONTOKENSREFERENCE_PREVIEW_REGISTRATION;