2024-05-10 14:33:00 -05:00
|
|
|
#![allow(unexpected_cfgs)]
|
2023-06-23 22:13:14 +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;
|
2023-06-08 23:52:14 +01:00
|
|
|
pub mod storage;
|
2023-06-10 19:15:41 +01:00
|
|
|
pub mod utils;
|
|
|
|
|
2024-01-30 00:02:14 +00:00
|
|
|
// #[cfg(web_sys_unstable_apis)]
|
|
|
|
// mod use_webtransport;
|
|
|
|
// #[cfg(web_sys_unstable_apis)]
|
|
|
|
// pub use use_webtransport::*;
|
2023-06-10 23:59:32 +01:00
|
|
|
|
2024-02-09 03:18:53 +00:00
|
|
|
#[cfg(web_sys_unstable_apis)]
|
|
|
|
mod use_clipboard;
|
|
|
|
#[cfg(web_sys_unstable_apis)]
|
|
|
|
pub use use_clipboard::*;
|
|
|
|
|
2023-07-16 14:04:42 +01:00
|
|
|
mod is_err;
|
2023-07-16 14:00:12 +01:00
|
|
|
mod is_none;
|
2023-07-17 03:23:44 +01:00
|
|
|
mod is_ok;
|
2023-07-16 14:00:12 +01:00
|
|
|
mod is_some;
|
2023-07-17 03:23:44 +01:00
|
|
|
mod on_click_outside;
|
2023-07-24 23:18:11 +01:00
|
|
|
mod signal_debounced;
|
2023-07-17 18:55:42 +01:00
|
|
|
mod signal_throttled;
|
2024-04-10 22:58:42 +01:00
|
|
|
mod sync_signal;
|
2023-06-17 14:05:17 +01:00
|
|
|
mod use_active_element;
|
2023-06-10 23:59:32 +01:00
|
|
|
mod use_breakpoints;
|
2024-01-29 21:29:39 +00:00
|
|
|
mod use_broadcast_channel;
|
2023-06-24 01:17:23 +01:00
|
|
|
mod use_color_mode;
|
2024-01-21 17:33:53 +05:30
|
|
|
mod use_cookie;
|
2023-06-16 19:33:55 +01:00
|
|
|
mod use_css_var;
|
2023-06-24 01:17:23 +01:00
|
|
|
mod use_cycle_list;
|
2023-06-10 23:59:32 +01:00
|
|
|
mod use_debounce_fn;
|
2024-01-30 10:21:54 +01:00
|
|
|
mod use_device_orientation;
|
2024-01-01 19:29:03 +01:00
|
|
|
mod use_device_pixel_ratio;
|
2023-11-24 15:06:35 -05:00
|
|
|
mod use_display_media;
|
2023-09-17 15:45:33 +01:00
|
|
|
mod use_document;
|
2023-07-07 23:37:22 +01:00
|
|
|
mod use_document_visibility;
|
2023-07-17 03:23:44 +01:00
|
|
|
mod use_draggable;
|
2023-07-15 00:55:02 +01:00
|
|
|
mod use_drop_zone;
|
2024-01-03 20:51:33 +00:00
|
|
|
mod use_element_bounding;
|
2023-06-17 04:05:51 +01:00
|
|
|
mod use_element_hover;
|
2023-11-07 10:13:55 +00:00
|
|
|
mod use_element_size;
|
2023-06-11 01:01:54 +01:00
|
|
|
mod use_element_visibility;
|
2023-05-27 03:00:08 +01:00
|
|
|
mod use_event_listener;
|
2024-03-05 20:45:33 +00:00
|
|
|
mod use_event_source;
|
2023-06-10 13:49:00 +01:00
|
|
|
mod use_favicon;
|
2023-09-17 15:45:33 +01:00
|
|
|
mod use_geolocation;
|
|
|
|
mod use_idle;
|
2023-10-23 20:15:05 -05:00
|
|
|
mod use_infinite_scroll;
|
2023-06-10 23:59:32 +01:00
|
|
|
mod use_intersection_observer;
|
2023-06-15 18:02:13 +02:00
|
|
|
mod use_interval;
|
2023-06-14 16:15:03 +01:00
|
|
|
mod use_interval_fn;
|
2023-07-14 05:48:37 +01:00
|
|
|
mod use_intl_number_format;
|
2024-07-28 20:46:28 +01:00
|
|
|
mod use_locale;
|
2024-07-28 20:02:12 +01:00
|
|
|
mod use_locales;
|
2023-06-10 03:19:00 +01:00
|
|
|
mod use_media_query;
|
2023-06-02 13:38:01 +01:00
|
|
|
mod use_mouse;
|
2024-01-21 17:41:14 +05:30
|
|
|
mod use_mouse_in_element;
|
2023-06-13 00:31:38 +01:00
|
|
|
mod use_mutation_observer;
|
2024-02-09 04:22:23 +00:00
|
|
|
mod use_permission;
|
2023-06-10 03:47:31 +01:00
|
|
|
mod use_preferred_contrast;
|
|
|
|
mod use_preferred_dark;
|
2023-07-16 01:07:52 +01:00
|
|
|
mod use_raf_fn;
|
2023-11-07 10:13:55 +00:00
|
|
|
mod use_resize_observer;
|
2023-05-27 03:00:08 +01:00
|
|
|
mod use_scroll;
|
2023-10-04 18:09:21 +02:00
|
|
|
mod use_service_worker;
|
2023-10-02 21:05:20 +01:00
|
|
|
mod use_sorted;
|
2023-05-29 01:52:03 +01:00
|
|
|
mod use_supported;
|
2023-05-27 03:00:08 +01:00
|
|
|
mod use_throttle_fn;
|
2024-02-09 03:18:53 +00:00
|
|
|
mod use_timeout_fn;
|
2023-09-17 15:45:33 +01:00
|
|
|
mod use_timestamp;
|
2023-07-17 03:23:44 +01:00
|
|
|
mod use_to_string;
|
2024-07-27 18:23:28 +02:00
|
|
|
mod use_user_media;
|
2023-10-24 00:44:23 -05:00
|
|
|
mod use_web_notification;
|
2023-07-14 16:43:42 +01:00
|
|
|
mod use_websocket;
|
2023-09-17 15:45:33 +01:00
|
|
|
mod use_window;
|
2023-07-07 23:37:22 +01:00
|
|
|
mod use_window_focus;
|
|
|
|
mod use_window_scroll;
|
2023-06-08 23:52:14 +01:00
|
|
|
mod watch_debounced;
|
2023-06-10 00:57:35 +01:00
|
|
|
mod watch_pausable;
|
2023-06-08 23:52:14 +01:00
|
|
|
mod watch_throttled;
|
2023-07-24 21:16:59 +02:00
|
|
|
mod watch_with_options;
|
2023-06-11 17:11:16 +01:00
|
|
|
mod whenever;
|
2023-05-28 17:42:16 +01:00
|
|
|
|
2023-07-16 14:04:42 +01:00
|
|
|
pub use is_err::*;
|
2023-07-16 14:00:12 +01:00
|
|
|
pub use is_none::*;
|
2023-07-17 03:23:44 +01:00
|
|
|
pub use is_ok::*;
|
2023-07-16 14:00:12 +01:00
|
|
|
pub use is_some::*;
|
2023-07-17 03:23:44 +01:00
|
|
|
pub use on_click_outside::*;
|
2023-07-24 23:18:11 +01:00
|
|
|
pub use signal_debounced::*;
|
2023-07-17 18:55:42 +01:00
|
|
|
pub use signal_throttled::*;
|
2024-04-10 22:58:42 +01:00
|
|
|
pub use sync_signal::*;
|
2023-06-17 14:05:17 +01:00
|
|
|
pub use use_active_element::*;
|
2023-06-10 19:15:41 +01:00
|
|
|
pub use use_breakpoints::*;
|
2024-01-29 21:29:39 +00:00
|
|
|
pub use use_broadcast_channel::*;
|
2023-06-24 01:17:23 +01:00
|
|
|
pub use use_color_mode::*;
|
2024-01-21 17:33:53 +05:30
|
|
|
pub use use_cookie::*;
|
2023-06-16 19:33:55 +01:00
|
|
|
pub use use_css_var::*;
|
2023-06-24 01:17:23 +01:00
|
|
|
pub use use_cycle_list::*;
|
2023-05-26 18:09:01 +01:00
|
|
|
pub use use_debounce_fn::*;
|
2024-01-30 10:21:54 +01:00
|
|
|
pub use use_device_orientation::*;
|
2024-01-01 19:29:03 +01:00
|
|
|
pub use use_device_pixel_ratio::*;
|
2023-11-24 15:06:35 -05:00
|
|
|
pub use use_display_media::*;
|
2023-09-17 15:45:33 +01:00
|
|
|
pub use use_document::*;
|
2023-07-07 23:37:22 +01:00
|
|
|
pub use use_document_visibility::*;
|
2023-07-17 03:23:44 +01:00
|
|
|
pub use use_draggable::*;
|
2023-07-15 00:55:02 +01:00
|
|
|
pub use use_drop_zone::*;
|
2024-01-03 20:51:33 +00:00
|
|
|
pub use use_element_bounding::*;
|
2023-06-17 04:05:51 +01:00
|
|
|
pub use use_element_hover::*;
|
2023-11-07 10:13:55 +00:00
|
|
|
pub use use_element_size::*;
|
2023-06-11 01:01:54 +01:00
|
|
|
pub use use_element_visibility::*;
|
2023-05-28 17:42:16 +01:00
|
|
|
pub use use_event_listener::*;
|
2024-03-05 20:45:33 +00:00
|
|
|
pub use use_event_source::*;
|
2023-06-10 13:49:00 +01:00
|
|
|
pub use use_favicon::*;
|
2023-09-17 15:45:33 +01:00
|
|
|
pub use use_geolocation::*;
|
|
|
|
pub use use_idle::*;
|
2023-10-23 20:15:05 -05:00
|
|
|
pub use use_infinite_scroll::*;
|
2023-06-10 23:59:32 +01:00
|
|
|
pub use use_intersection_observer::*;
|
2023-06-15 18:02:13 +02:00
|
|
|
pub use use_interval::*;
|
2023-06-14 16:15:03 +01:00
|
|
|
pub use use_interval_fn::*;
|
2023-07-14 05:48:37 +01:00
|
|
|
pub use use_intl_number_format::*;
|
2024-07-28 20:46:28 +01:00
|
|
|
pub use use_locale::*;
|
2024-07-28 20:02:12 +01:00
|
|
|
pub use use_locales::*;
|
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::*;
|
2024-01-21 17:41:14 +05:30
|
|
|
pub use use_mouse_in_element::*;
|
2023-06-13 00:31:38 +01:00
|
|
|
pub use use_mutation_observer::*;
|
2024-02-09 04:22:23 +00:00
|
|
|
pub use use_permission::*;
|
2023-06-10 03:47:31 +01:00
|
|
|
pub use use_preferred_contrast::*;
|
|
|
|
pub use use_preferred_dark::*;
|
2023-07-16 01:07:52 +01:00
|
|
|
pub use use_raf_fn::*;
|
2023-11-07 10:13:55 +00:00
|
|
|
pub use use_resize_observer::*;
|
2023-05-19 00:58:48 +01:00
|
|
|
pub use use_scroll::*;
|
2023-10-04 18:09:21 +02:00
|
|
|
pub use use_service_worker::*;
|
2023-10-02 21:05:20 +01:00
|
|
|
pub use use_sorted::*;
|
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::*;
|
2024-02-09 03:18:53 +00:00
|
|
|
pub use use_timeout_fn::*;
|
2023-09-17 15:45:33 +01:00
|
|
|
pub use use_timestamp::*;
|
2023-07-17 03:23:44 +01:00
|
|
|
pub use use_to_string::*;
|
2024-07-27 18:23:28 +02:00
|
|
|
pub use use_user_media::*;
|
2023-10-24 00:44:23 -05:00
|
|
|
pub use use_web_notification::*;
|
2023-07-14 16:43:42 +01:00
|
|
|
pub use use_websocket::*;
|
2023-09-17 15:45:33 +01:00
|
|
|
pub use use_window::*;
|
2023-07-07 23:37:22 +01:00
|
|
|
pub use use_window_focus::*;
|
|
|
|
pub use use_window_scroll::*;
|
2023-06-08 23:52:14 +01:00
|
|
|
pub use watch_debounced::*;
|
2023-06-10 00:57:35 +01:00
|
|
|
pub use watch_pausable::*;
|
2023-06-08 23:52:14 +01:00
|
|
|
pub use watch_throttled::*;
|
2023-07-24 21:16:59 +02:00
|
|
|
pub use watch_with_options::*;
|
2023-06-11 17:11:16 +01:00
|
|
|
pub use whenever::*;
|