freya_components/
lib.rs

1pub mod accordion;
2pub mod activable_route_context;
3pub mod button;
4pub mod cache;
5pub mod checkbox;
6pub mod chip;
7pub mod context_menu;
8pub mod drag_drop;
9pub mod draggable_canvas;
10pub mod dropdown;
11pub mod element_expansions;
12pub mod floating_tab;
13pub mod icons;
14pub mod image_viewer;
15pub mod input;
16pub mod integration;
17pub mod loader;
18pub mod menu;
19pub mod popup;
20pub mod portal;
21pub mod progressbar;
22pub mod radio_item;
23pub mod resizable_container;
24pub mod scrollviews;
25pub mod selectable_text;
26pub mod sidebar;
27pub mod slider;
28pub mod switch;
29pub mod table;
30pub mod theming;
31pub mod tile;
32pub mod tooltip;
33
34#[cfg(feature = "remote-asset")]
35pub use ureq::http::Uri;
36
37cfg_if::cfg_if! {
38    if #[cfg(feature = "router")] {
39        pub mod activable_route;
40        pub mod link;
41        pub mod native_router;
42    }
43}
44
45cfg_if::cfg_if! {
46    if #[cfg(feature = "plot")] {
47        pub mod plot;
48    }
49}
50
51cfg_if::cfg_if! {
52    if #[cfg(feature = "gif")] {
53        pub mod gif_viewer;
54    }
55}
56
57/// | 1 | 2 | 3 | 4 |
58/// | ------------- | ------------- | ------------- | ------------- |
59/// | ![Switch Preview][gallery_toggled_switch] | ![Button Preview][gallery_button] | ![Filled Button Preview][gallery_filled_button] | ![Outline Button Preview][gallery_outline_button] |
60/// | [Switch](switch::Switch)        | [Button](button::Button)        | [Filled Button](button::Button)        | [Outline Button](button::Button)        |
61/// | ![Slider Preview][gallery_slider] | ![Checkbox Preview][gallery_checkbox] | ![RadioItem Preview][gallery_radio] | ![Input Preview][gallery_input] |
62/// | [Slider](slider::Slider)        | [Checkbox](checkbox::Checkbox)        | [RadioItem](radio_item::RadioItem)        | [Input](input::Input)        |
63/// | ![ProgressBar Preview][gallery_progressbar] | ![Dropdown Preview][gallery_dropdown] | ![GifViewer Preview][gallery_gif_viewer] | ![Accordion Preview][gallery_accordion] |
64/// | [ProgressBar](progressbar::ProgressBar)        | [Dropdown](dropdown::Dropdown)        |  [GifViewer](gif_viewer::GifViewer) | [Accordion](accordion::Accordion) |
65/// | ![Floating Tab Preview][gallery_floating_tab] | ![ImageViewer Preview][gallery_image_viewer] |  ![ScrollView Preview][gallery_scrollview] |  ![VirtualScrollView Preview][gallery_virtual_scrollview] |
66/// | [FloatingTab](floating_tab::FloatingTab)        | [ImageViewer](image_viewer::ImageViewer) | [ScrollView](scrollviews::ScrollView) | [VirtualScrollView](scrollviews::VirtualScrollView) |
67/// | ![Circular Loader Preview][gallery_circular_loader] |  | ![Tooltip Preview][gallery_tooltip] |  |
68/// | [CircularLoader](loader::CircularLoader)        | | [Tooltip](tooltip::Tooltip) | |
69#[cfg_attr(feature = "docs",
70    doc = embed_doc_image::embed_image!("gallery_button", "images/gallery_button.png"),
71    doc = embed_doc_image::embed_image!("gallery_filled_button", "images/gallery_filled_button.png"),
72    doc = embed_doc_image::embed_image!("gallery_outline_button", "images/gallery_outline_button.png"),
73    doc = embed_doc_image::embed_image!("gallery_toggled_switch", "images/gallery_toggled_switch.png"),
74    doc = embed_doc_image::embed_image!("gallery_slider", "images/gallery_slider.png"),
75    doc = embed_doc_image::embed_image!("gallery_checkbox", "images/gallery_checkbox.png"),
76    doc = embed_doc_image::embed_image!("gallery_radio", "images/gallery_radio.png"),
77    doc = embed_doc_image::embed_image!("gallery_input", "images/gallery_input.png"),
78    doc = embed_doc_image::embed_image!("gallery_progressbar", "images/gallery_progressbar.png"),
79    doc = embed_doc_image::embed_image!("gallery_dropdown", "images/gallery_dropdown.png"),
80    doc = embed_doc_image::embed_image!("gallery_accordion", "images/gallery_accordion.png"),
81    doc = embed_doc_image::embed_image!("gallery_floating_tab", "images/gallery_floating_tab.png"),
82    doc = embed_doc_image::embed_image!("gallery_image_viewer", "images/gallery_image_viewer.png"),
83    doc = embed_doc_image::embed_image!("gallery_scrollview", "images/gallery_scrollview.png"),
84    doc = embed_doc_image::embed_image!("gallery_virtual_scrollview", "images/gallery_virtual_scrollview.png"),
85    doc = embed_doc_image::embed_image!("gallery_circular_loader", "images/gallery_circular_loader.png"),
86    doc = embed_doc_image::embed_image!("gallery_tooltip", "images/gallery_tooltip.png"),
87    doc = embed_doc_image::embed_image!("gallery_gif_viewer", "images/gallery_gif_viewer.png"),
88)]
89pub fn gallery() {}