diff --git a/crates/lsc/src/button.rs b/crates/lsc/src/button.rs index 7cdc58a..97ad834 100644 --- a/crates/lsc/src/button.rs +++ b/crates/lsc/src/button.rs @@ -1,8 +1,10 @@ +//! Button component and supporting types. + use enum_iterator::Sequence; use leptos::{either::Either, prelude::*}; use serde::{Deserialize, Serialize}; -use crate::NamedColor; +use crate::colors::NamedColor; /// The color of an `lsc` [`Button`]. #[derive( diff --git a/crates/lsc/src/colors.rs b/crates/lsc/src/colors.rs index 548c2b8..7f38777 100644 --- a/crates/lsc/src/colors.rs +++ b/crates/lsc/src/colors.rs @@ -1,3 +1,5 @@ +//! Named colors, inherited from Radix. + use enum_iterator::Sequence; use serde::{Deserialize, Serialize}; diff --git a/crates/lsc/src/lib.rs b/crates/lsc/src/lib.rs index 83cf006..8ececf3 100644 --- a/crates/lsc/src/lib.rs +++ b/crates/lsc/src/lib.rs @@ -1,9 +1,6 @@ //! Leptos Styled Components -mod button; -mod colors; +pub mod button; +pub mod colors; pub mod icons; -mod link; - -/// Re-export of the `radix_leptos_icons` crate. -pub use self::{button::*, colors::*, link::*}; +pub mod link; diff --git a/crates/lsc/src/link.rs b/crates/lsc/src/link.rs index 0a93007..2954593 100644 --- a/crates/lsc/src/link.rs +++ b/crates/lsc/src/link.rs @@ -1,8 +1,10 @@ +//! Link component and supporting types. + use enum_iterator::Sequence; use leptos::prelude::*; use serde::{Deserialize, Serialize}; -use crate::NamedColor; +use crate::colors::NamedColor; /// The size of an `lsc` [`Link`]. #[derive( diff --git a/crates/site-app/src/components/header.rs b/crates/site-app/src/components/header.rs index 60e64cb..5134ca3 100644 --- a/crates/site-app/src/components/header.rs +++ b/crates/site-app/src/components/header.rs @@ -1,5 +1,5 @@ use leptos::prelude::*; -use lsc::*; +use lsc::{button::*, link::*}; use crate::AuthStatus; diff --git a/crates/site-app/src/lib.rs b/crates/site-app/src/lib.rs index 2446ca2..55cd7a4 100644 --- a/crates/site-app/src/lib.rs +++ b/crates/site-app/src/lib.rs @@ -57,8 +57,8 @@ pub fn App() -> impl IntoView { - - + + diff --git a/crates/site-app/src/pages/home_page.rs b/crates/site-app/src/pages/home_page.rs index 2ade053..8b958e0 100644 --- a/crates/site-app/src/pages/home_page.rs +++ b/crates/site-app/src/pages/home_page.rs @@ -1,5 +1,5 @@ use leptos::prelude::*; -use lsc::*; +use lsc::{button::*, icons::*}; use crate::components::Section; @@ -21,7 +21,7 @@ pub fn HomePage() -> impl IntoView {