Skip to main content

orbital_motion/preview/
mod.rs

1//! Preview registration for motion catalog pages.
2
3mod component_doc_markdown;
4mod component_doc_props;
5mod components;
6mod demo;
7mod motion_atoms;
8mod motion_choreography;
9mod motion_overview;
10mod motion_reduced_motion;
11mod motion_settings;
12mod motion_tokens;
13mod presence_demos;
14mod presence_group_demo;
15pub mod preview_shell;
16pub mod static_registrations;
17mod tab;
18mod types;
19
20use icondata_core::Icon;
21use leptos::prelude::*;
22
23#[cfg(all(feature = "preview", not(target_arch = "wasm32")))]
24inventory::collect!(PreviewRegistration);
25
26/// Static metadata for a generated motion preview page.
27pub struct PreviewRegistration {
28    pub slug: &'static str,
29    pub label: &'static str,
30    pub section: &'static str,
31    pub section_priority: u16,
32    pub category: &'static str,
33    pub category_priority: u16,
34    pub category_default_collapsed: bool,
35    pub group: &'static str,
36    pub group_priority: u16,
37    pub nav_item: bool,
38    pub icon: Icon,
39    pub render: fn() -> AnyView,
40}
41
42pub use demo::{demo_tile_styles, MotionDemoCell};
43pub use motion_atoms::MotionAtomsGallery;
44pub use motion_choreography::MotionChoreographyStaggerDemo;
45pub use motion_overview::MotionOverview;
46pub use motion_reduced_motion::MotionReducedMotionDemo;
47pub use motion_settings::MotionSettingsDemo;
48pub use motion_tokens::MotionTokensReference;
49pub use presence_demos::{OrbitalPresenceAppearDemo, OrbitalPresenceBasicFadeDemo};
50pub use presence_group_demo::OrbitalPresenceGroupDemo;
51pub use preview_shell::{ComponentPreviewCard, OrbitalComponentView};
52pub use types::{ComponentPropDoc, PreviewRenderMode};
53
54#[cfg(feature = "preview")]
55pub use crate::group::ORBITALPRESENCEGROUP_PREVIEW_REGISTRATION;
56#[cfg(feature = "preview")]
57pub use crate::presence::ORBITALPRESENCE_PREVIEW_REGISTRATION;
58#[cfg(feature = "preview")]
59pub use motion_atoms::MOTIONATOMSGALLERY_PREVIEW_REGISTRATION;
60#[cfg(feature = "preview")]
61pub use motion_choreography::MOTIONCHOREOGRAPHYSTAGGERDEMO_PREVIEW_REGISTRATION;
62#[cfg(feature = "preview")]
63pub use motion_overview::MOTIONOVERVIEW_PREVIEW_REGISTRATION;
64#[cfg(feature = "preview")]
65pub use motion_reduced_motion::MOTIONREDUCEDMOTIONDEMO_PREVIEW_REGISTRATION;
66#[cfg(feature = "preview")]
67pub use motion_settings::MOTIONSETTINGSDEMO_PREVIEW_REGISTRATION;
68#[cfg(feature = "preview")]
69pub use motion_tokens::MOTIONTOKENSREFERENCE_PREVIEW_REGISTRATION;