diff --git a/demo/Cargo.toml b/demo/Cargo.toml index 9cd1532..2867825 100644 --- a/demo/Cargo.toml +++ b/demo/Cargo.toml @@ -12,14 +12,7 @@ leptos_meta = { version = "0.5.7" } leptos_router = { version = "0.5.7" } leptos_devtools = { version = "0.0.1", optional = true} thaw = { path = "../thaw", default-features = false } -icondata = { version = "0.1.0", features = [ - "AiCloseOutlined", - "AiCheckOutlined", - "AiGithubOutlined", - "AiUserOutlined", - "AiSearchOutlined", - "AiUnorderedListOutlined" -] } +icondata = "0.3.0" demo_markdown = { path = "../demo_markdown" } [features] @@ -41,4 +34,4 @@ nightly = ["leptos/nightly", "leptos_meta/nightly", "leptos_router/nightly"] opt-level = 1 [profile.dev.package."*"] -opt-level = 3 \ No newline at end of file +opt-level = 3 diff --git a/demo/src/components/site_header.rs b/demo/src/components/site_header.rs index dacbb75..730c869 100644 --- a/demo/src/components/site_header.rs +++ b/demo/src/components/site_header.rs @@ -141,14 +141,14 @@ pub fn SiteHeader() -> impl IntoView { comp_ref=auto_complete_ref > - + diff --git a/thaw/src/message/mod.rs b/thaw/src/message/mod.rs index 1ea50ee..02cc741 100644 --- a/thaw/src/message/mod.rs +++ b/thaw/src/message/mod.rs @@ -3,7 +3,6 @@ mod message_provider; mod theme; use crate::{theme::use_theme, Icon, Theme, components::{If, Then}}; -use icondata::*; use leptos::*; use uuid::Uuid; pub use message_provider::*; @@ -20,9 +19,9 @@ pub enum MessageVariant { impl MessageVariant { fn icon(&self) -> Icon { match self { - MessageVariant::Success => icondata::Icon::Ai(AiCloseCircleFilled), - MessageVariant::Warning => icondata::Icon::Ai(AiExclamationCircleFilled), - MessageVariant::Error => icondata::Icon::Ai(AiCheckCircleFilled), + MessageVariant::Success => icondata::AiCloseCircleFilled, + MessageVariant::Warning => icondata::AiExclamationCircleFilled, + MessageVariant::Error => icondata::AiCheckCircleFilled, } } fn theme_color(&self, theme: &Theme) -> String { @@ -64,7 +63,7 @@ pub(crate) fn Message(
- +
diff --git a/thaw/src/mobile/nav_bar/mod.rs b/thaw/src/mobile/nav_bar/mod.rs index f28a431..163eee4 100644 --- a/thaw/src/mobile/nav_bar/mod.rs +++ b/thaw/src/mobile/nav_bar/mod.rs @@ -78,7 +78,7 @@ pub fn NavBar(
- + {move || left_text.get()} diff --git a/thaw/src/modal/mod.rs b/thaw/src/modal/mod.rs index 6daa285..f679931 100644 --- a/thaw/src/modal/mod.rs +++ b/thaw/src/modal/mod.rs @@ -35,7 +35,7 @@ pub fn Modal( - + {children()} diff --git a/thaw/src/time_picker/mod.rs b/thaw/src/time_picker/mod.rs index fb80152..5350d54 100644 --- a/thaw/src/time_picker/mod.rs +++ b/thaw/src/time_picker/mod.rs @@ -5,7 +5,7 @@ use crate::{ components::{Binder, Follower, FollowerPlacement}, use_theme, utils::{mount_style, ComponentRef}, - AiIcon, Button, ButtonSize, ButtonVariant, Icon, Input, InputSuffix, SignalWatch, Theme, + Button, ButtonSize, ButtonVariant, Icon, Input, InputSuffix, SignalWatch, Theme, }; use leptos::*; pub use theme::TimePickerTheme; @@ -77,7 +77,7 @@ pub fn TimePicker(