leptos-use/src/lib.rs

62 lines
1.4 KiB
Rust
Raw Normal View History

2023-06-03 14:58:30 +01:00
#![feature(doc_cfg)]
2023-05-27 03:00:08 +01:00
//! Collection of essential Leptos utilities inspired by SolidJS USE / VueUse
2023-05-14 22:45:38 +01:00
pub mod core;
2023-05-29 01:52:03 +01:00
#[cfg(feature = "docs")]
pub mod docs;
2023-06-03 05:25:45 +01:00
#[cfg(feature = "math")]
pub mod math;
#[cfg(feature = "storage")]
pub mod storage;
2023-06-10 19:15:41 +01:00
pub mod utils;
2023-06-05 00:02:13 +01:00
#[cfg(web_sys_unstable_apis)]
mod use_element_size;
2023-06-10 23:59:32 +01:00
#[cfg(web_sys_unstable_apis)]
mod use_resize_observer;
#[cfg(web_sys_unstable_apis)]
pub use use_element_size::*;
#[cfg(web_sys_unstable_apis)]
pub use use_resize_observer::*;
mod use_breakpoints;
mod use_debounce_fn;
2023-06-11 01:01:54 +01:00
mod use_element_visibility;
2023-05-27 03:00:08 +01:00
mod use_event_listener;
2023-06-10 13:49:00 +01:00
mod use_favicon;
2023-06-10 23:59:32 +01:00
mod use_intersection_observer;
2023-06-10 03:19:00 +01:00
mod use_media_query;
2023-06-02 13:38:01 +01:00
mod use_mouse;
2023-06-13 00:31:38 +01:00
mod use_mutation_observer;
mod use_preferred_contrast;
mod use_preferred_dark;
2023-05-27 03:00:08 +01:00
mod use_scroll;
2023-05-29 01:52:03 +01:00
mod use_supported;
2023-05-27 03:00:08 +01:00
mod use_throttle_fn;
2023-05-29 01:52:03 +01:00
mod watch;
mod watch_debounced;
2023-06-10 00:57:35 +01:00
mod watch_pausable;
mod watch_throttled;
2023-06-11 17:11:16 +01:00
mod whenever;
2023-06-10 19:15:41 +01:00
pub use use_breakpoints::*;
pub use use_debounce_fn::*;
2023-06-11 01:01:54 +01:00
pub use use_element_visibility::*;
pub use use_event_listener::*;
2023-06-10 13:49:00 +01:00
pub use use_favicon::*;
2023-06-10 23:59:32 +01:00
pub use use_intersection_observer::*;
2023-06-10 03:19:00 +01:00
pub use use_media_query::*;
2023-06-02 13:38:01 +01:00
pub use use_mouse::*;
2023-06-13 00:31:38 +01:00
pub use use_mutation_observer::*;
pub use use_preferred_contrast::*;
pub use use_preferred_dark::*;
2023-05-19 00:58:48 +01:00
pub use use_scroll::*;
2023-05-29 01:52:03 +01:00
pub use use_supported::*;
2023-05-19 00:58:48 +01:00
pub use use_throttle_fn::*;
2023-05-29 01:52:03 +01:00
pub use watch::*;
pub use watch_debounced::*;
2023-06-10 00:57:35 +01:00
pub use watch_pausable::*;
pub use watch_throttled::*;
2023-06-11 17:11:16 +01:00
pub use whenever::*;