mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 06:19:22 -05:00
🐳 chore: update leptos_icons dependency
This commit is contained in:
parent
d14c2aab7e
commit
a79ea5b4dc
5 changed files with 6 additions and 6 deletions
|
@ -17,7 +17,7 @@ leptos = { version = "0.3.0", features = ["stable"] }
|
||||||
stylers = "0.3.1"
|
stylers = "0.3.1"
|
||||||
web-sys = { version = "0.3.62", features = ["DomRect"] }
|
web-sys = { version = "0.3.62", features = ["DomRect"] }
|
||||||
leptos_dom = { version = "0.3.0" }
|
leptos_dom = { version = "0.3.0" }
|
||||||
leptos-icons = { git = "https://github.com/Carlosted/leptos-icons.git", features = ["AiCloseOutlined", "AiCheckOutlined"] }
|
leptos_icons = { version = "0.0.10", features = ["AiCloseOutlined", "AiCheckOutlined"] }
|
||||||
wasm-bindgen = "0.2.85"
|
wasm-bindgen = "0.2.85"
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
|
|
|
@ -8,4 +8,4 @@ edition = "2021"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
leptos = { version = "0.3.0", features = ["stable"] }
|
leptos = { version = "0.3.0", features = ["stable"] }
|
||||||
melt-ui = { path = "../../" }
|
melt-ui = { path = "../../" }
|
||||||
leptos-icons = { git = "https://github.com/Carlosted/leptos-icons.git", features = ["AiCloseOutlined", "AiCheckOutlined"] }
|
leptos_icons = { version = "0.0.10", features = ["AiCloseOutlined", "AiCheckOutlined"] }
|
|
@ -40,7 +40,7 @@ pub fn Button(
|
||||||
#[prop(optional, into)] type_: MaybeSignal<ButtonType>,
|
#[prop(optional, into)] type_: MaybeSignal<ButtonType>,
|
||||||
#[prop(optional, into)] color: MaybeSignal<ButtonColor>,
|
#[prop(optional, into)] color: MaybeSignal<ButtonColor>,
|
||||||
#[prop(optional, into)] round: MaybeSignal<bool>,
|
#[prop(optional, into)] round: MaybeSignal<bool>,
|
||||||
#[prop(optional, into)] icon: Option<leptos_icons::Icon>,
|
#[prop(optional, into)] icon: Option<IconData>,
|
||||||
#[prop(optional)] children: Option<Children>,
|
#[prop(optional)] children: Option<Children>,
|
||||||
) -> impl IntoView {
|
) -> impl IntoView {
|
||||||
let theme = use_theme(cx, Theme::light);
|
let theme = use_theme(cx, Theme::light);
|
||||||
|
@ -80,7 +80,7 @@ pub fn Button(
|
||||||
{
|
{
|
||||||
if let Some(icon) = icon {
|
if let Some(icon) = icon {
|
||||||
view!{cx,
|
view!{cx,
|
||||||
<LeptosIcon icon=icon style=icon_style/>
|
<Icon icon=icon style=icon_style/>
|
||||||
}.into()
|
}.into()
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
|
@ -35,7 +35,7 @@ pub fn Checkbox(
|
||||||
move || {
|
move || {
|
||||||
if checked.get() {
|
if checked.get() {
|
||||||
view! {cx,
|
view! {cx,
|
||||||
<LeptosIcon icon=AiIcon::AiCheckOutlined style="color: white"/>
|
<Icon icon=AiIcon::AiCheckOutlined style="color: white"/>
|
||||||
}.into()
|
}.into()
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
|
@ -31,7 +31,7 @@ pub fn Modal(
|
||||||
cx,
|
cx,
|
||||||
<>
|
<>
|
||||||
<span style="cursor: pointer;" on:click=move |_| if let Some(on_cancel) = &on_cancel { on_cancel.set(())}>
|
<span style="cursor: pointer;" on:click=move |_| if let Some(on_cancel) = &on_cancel { on_cancel.set(())}>
|
||||||
<LeptosIcon icon=AiIcon::AiCloseOutlined/>
|
<Icon icon=AiIcon::AiCloseOutlined/>
|
||||||
</span>
|
</span>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue