feat: update to upstream v0.544.0 (#159)

Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com>
This commit is contained in:
rust-for-web[bot] 2025-09-11 21:08:39 +02:00 committed by GitHub
parent 3a3919f7dd
commit 925aeedfc0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 167 additions and 25 deletions

View file

@ -3489,6 +3489,12 @@ pub fn IconsE1() -> Element {
},
"Euro",
),
(
rsx! {
EvCharger {}
},
"Ev Charger",
),
(
rsx! {
Expand {}

View file

@ -711,6 +711,7 @@ pub fn IconsE() -> impl IntoView {
(view! { <Eraser /> }.into_any(), "Eraser"),
(view! { <EthernetPort /> }.into_any(), "Ethernet Port"),
(view! { <Euro /> }.into_any(), "Euro"),
(view! { <EvCharger /> }.into_any(), "Ev Charger"),
(view! { <Expand /> }.into_any(), "Expand"),
(view! { <ExternalLink /> }.into_any(), "External Link"),
(view! { <Eye /> }.into_any(), "Eye"),

View file

@ -738,6 +738,7 @@ pub fn IconsE() -> Html {
(html! { <Eraser /> }, "Eraser"),
(html! { <EthernetPort /> }, "Ethernet Port"),
(html! { <Euro /> }, "Euro"),
(html! { <EvCharger /> }, "Ev Charger"),
(html! { <Expand /> }, "Expand"),
(html! { <ExternalLink /> }, "External Link"),
(html! { <Eye /> }, "Eye"),

View file

@ -0,0 +1,44 @@
use dioxus::prelude::*;
#[derive(Clone, PartialEq, Props)]
pub struct EvChargerProps {
#[props(default = 24)]
pub size: usize,
#[props(default = "currentColor".to_owned())]
pub color: String,
#[props(default = "none".to_owned())]
pub fill: String,
#[props(default = 2)]
pub stroke_width: usize,
#[props(default = false)]
pub absolute_stroke_width: bool,
pub class: Option<String>,
pub style: Option<String>,
}
#[component]
pub fn EvCharger(props: EvChargerProps) -> Element {
let stroke_width = if props.absolute_stroke_width {
props.stroke_width * 24 / props.size
} else {
props.stroke_width
};
rsx! {
svg {
"xmlns": "http://www.w3.org/2000/svg",
"class": if let Some(class) = props.class { "{class}" },
"style": if let Some(style) = props.style { "{style}" },
"width": "{props.size}",
"height": "{props.size}",
"viewBox": "0 0 24 24",
"fill": "{props.fill}",
"stroke": "{props.color}",
"stroke-width": "{stroke_width}",
"stroke-linecap": "round",
"stroke-linejoin": "round",
path { "d": "M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5" }
path { "d": "M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16" }
path { "d": "M2 21h13" }
path { "d": "M3 7h11" }
path { "d": "m9 11-2 3h3l-2 3" }
}
}
}

View file

@ -34,20 +34,10 @@ pub fn Fuel(props: FuelProps) -> Element {
"stroke-width": "{stroke_width}",
"stroke-linecap": "round",
"stroke-linejoin": "round",
line {
"x1": "3",
"x2": "15",
"y1": "22",
"y2": "22",
}
line {
"x1": "4",
"x2": "14",
"y1": "9",
"y2": "9",
}
path { "d": "M14 22V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v18" }
path { "d": "M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L18 5" }
path { "d": "M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5" }
path { "d": "M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16" }
path { "d": "M2 21h13" }
path { "d": "M3 9h11" }
}
}
}

View file

@ -1317,6 +1317,8 @@ mod eraser;
mod ethernet_port;
#[cfg(feature = "finance")]
mod euro;
#[cfg(any(feature = "transportation", feature = "navigation"))]
mod ev_charger;
#[cfg(any(feature = "text", feature = "arrows"))]
mod expand;
#[cfg(any(feature = "arrows", feature = "text", feature = "social"))]
@ -5474,6 +5476,8 @@ pub use eraser::*;
pub use ethernet_port::*;
#[cfg(feature = "finance")]
pub use euro::*;
#[cfg(any(feature = "transportation", feature = "navigation"))]
pub use ev_charger::*;
#[cfg(any(feature = "text", feature = "arrows"))]
pub use expand::*;
#[cfg(any(feature = "arrows", feature = "text", feature = "social"))]

View file

@ -0,0 +1,39 @@
use leptos::{prelude::*, svg::Svg};
#[component]
pub fn EvCharger(
#[prop(default = 24.into(), into)] size: Signal<usize>,
#[prop(default = "currentColor".into(), into)] color: Signal<String>,
#[prop(default = "none".into(), into)] fill: Signal<String>,
#[prop(default = 2.into(), into)] stroke_width: Signal<usize>,
#[prop(default = false.into(), into)] absolute_stroke_width: Signal<bool>,
#[prop(optional)] node_ref: NodeRef<Svg>,
) -> impl IntoView {
let stroke_width = Signal::derive(move || {
if absolute_stroke_width.get() {
stroke_width.get() * 24 / size.get()
} else {
stroke_width.get()
}
});
view! {
<svg
node_ref=node_ref
class:lucide=true
xmlns="http://www.w3.org/2000/svg"
width=size
height=size
viewBox="0 0 24 24"
fill=fill
stroke=color
stroke-width=stroke_width
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5" />
<path d="M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16" />
<path d="M2 21h13" />
<path d="M3 7h11" />
<path d="m9 11-2 3h3l-2 3" />
</svg>
}
}

View file

@ -29,10 +29,10 @@ pub fn Fuel(
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="3" x2="15" y1="22" y2="22" />
<line x1="4" x2="14" y1="9" y2="9" />
<path d="M14 22V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v18" />
<path d="M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L18 5" />
<path d="M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5" />
<path d="M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16" />
<path d="M2 21h13" />
<path d="M3 9h11" />
</svg>
}
}

View file

@ -1317,6 +1317,8 @@ mod eraser;
mod ethernet_port;
#[cfg(feature = "finance")]
mod euro;
#[cfg(any(feature = "transportation", feature = "navigation"))]
mod ev_charger;
#[cfg(any(feature = "text", feature = "arrows"))]
mod expand;
#[cfg(any(feature = "arrows", feature = "text", feature = "social"))]
@ -5474,6 +5476,8 @@ pub use eraser::*;
pub use ethernet_port::*;
#[cfg(feature = "finance")]
pub use euro::*;
#[cfg(any(feature = "transportation", feature = "navigation"))]
pub use ev_charger::*;
#[cfg(any(feature = "text", feature = "arrows"))]
pub use expand::*;
#[cfg(any(feature = "arrows", feature = "text", feature = "social"))]

View file

@ -0,0 +1,51 @@
use yew::prelude::*;
#[derive(PartialEq, Properties)]
pub struct EvChargerProps {
#[prop_or(24)]
pub size: usize,
#[prop_or(AttrValue::from("currentColor"))]
pub color: AttrValue,
#[prop_or(AttrValue::from("none"))]
pub fill: AttrValue,
#[prop_or(2)]
pub stroke_width: usize,
#[prop_or(false)]
pub absolute_stroke_width: bool,
#[prop_or_default]
pub class: Classes,
#[prop_or_default]
pub style: std::option::Option<AttrValue>,
#[prop_or_default]
pub node_ref: NodeRef,
}
#[function_component]
pub fn EvCharger(props: &EvChargerProps) -> Html {
let stroke_width = if props.absolute_stroke_width {
props.stroke_width * 24 / props.size
} else {
props.stroke_width
};
html! {
<svg
ref={props.node_ref.clone()}
class={classes!("lucide", props.class
.clone())}
style={props.style.clone()}
xmlns="http://www.w3.org/2000/svg"
width={props.size.to_string()}
height={props.size.to_string()}
viewBox="0 0 24 24"
fill={& props.fill}
stroke={& props.color}
stroke-width={stroke_width.to_string()}
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5" />
<path d="M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16" />
<path d="M2 21h13" />
<path d="M3 7h11" />
<path d="m9 11-2 3h3l-2 3" />
</svg>
}
}

View file

@ -41,12 +41,10 @@ pub fn Fuel(props: &FuelProps) -> Html {
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="3" x2="15" y1="22" y2="22" />
<line x1="4" x2="14" y1="9" y2="9" />
<path d="M14 22V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v18" />
<path
d="M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 2 2a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42L18 5"
/>
<path d="M14 13h2a2 2 0 0 1 2 2v2a2 2 0 0 0 4 0v-6.998a2 2 0 0 0-.59-1.42L18 5" />
<path d="M14 21V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v16" />
<path d="M2 21h13" />
<path d="M3 9h11" />
</svg>
}
}

View file

@ -1319,6 +1319,8 @@ mod eraser;
mod ethernet_port;
#[cfg(feature = "finance")]
mod euro;
#[cfg(any(feature = "transportation", feature = "navigation"))]
mod ev_charger;
#[cfg(any(feature = "text", feature = "arrows"))]
mod expand;
#[cfg(any(feature = "arrows", feature = "text", feature = "social"))]
@ -5476,6 +5478,8 @@ pub use eraser::*;
pub use ethernet_port::*;
#[cfg(feature = "finance")]
pub use euro::*;
#[cfg(any(feature = "transportation", feature = "navigation"))]
pub use ev_charger::*;
#[cfg(any(feature = "text", feature = "arrows"))]
pub use expand::*;
#[cfg(any(feature = "arrows", feature = "text", feature = "social"))]

View file

@ -11,5 +11,5 @@ pub const GITHUB_OWNER: &str = "RustForWeb";
pub const GITHUB_REPO: &str = "lucide";
pub const UPSTREAM_GIT_URL: &str = "https://github.com/lucide-icons/lucide.git";
pub const UPSTREAM_GIT_REF: &str = "0.543.0";
pub const UPSTREAM_GIT_REF: &str = "0.544.0";
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";