feat: update to upstream v0.513.0 (#88)

Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2025-06-08 09:17:47 +00:00 committed by GitHub
parent 5d9f3d02f5
commit 6ada4be02c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 202 additions and 13 deletions

View file

@ -1778,6 +1778,12 @@ pub fn IconsC1() -> Element {
},
"Caravan",
),
(
rsx! {
CardSim {}
},
"Card Sim",
),
(
rsx! {
Carrot {}
@ -2144,12 +2150,6 @@ pub fn IconsC1() -> Element {
},
"Circle Arrow Out Down Left",
),
(
rsx! {
CircleArrowOutDownRight {}
},
"Circle Arrow Out Down Right",
),
];
rsx! {
for (icon , name) in icons {
@ -2165,6 +2165,12 @@ pub fn IconsC1() -> Element {
#[component]
pub fn IconsC2() -> Element {
let icons = [
(
rsx! {
CircleArrowOutDownRight {}
},
"Circle Arrow Out Down Right",
),
(
rsx! {
CircleArrowOutUpLeft {}
@ -2759,12 +2765,6 @@ pub fn IconsC2() -> Element {
},
"Columns 2",
),
(
rsx! {
Columns3 {}
},
"Columns 3",
),
];
rsx! {
for (icon , name) in icons {
@ -2780,6 +2780,12 @@ pub fn IconsC2() -> Element {
#[component]
pub fn IconsC3() -> Element {
let icons = [
(
rsx! {
Columns3 {}
},
"Columns 3",
),
(
rsx! {
Columns3Cog {}

View file

@ -393,6 +393,7 @@ pub fn IconsC() -> impl IntoView {
(view! { <CarFront /> }.into_any(), "Car Front"),
(view! { <CarTaxiFront /> }.into_any(), "Car Taxi Front"),
(view! { <Caravan /> }.into_any(), "Caravan"),
(view! { <CardSim /> }.into_any(), "Card Sim"),
(view! { <Carrot /> }.into_any(), "Carrot"),
(view! { <CaseLower /> }.into_any(), "Case Lower"),
(view! { <CaseSensitive /> }.into_any(), "Case Sensitive"),

View file

@ -404,6 +404,7 @@ pub fn IconsC() -> Html {
(html! { <CarFront /> }, "Car Front"),
(html! { <CarTaxiFront /> }, "Car Taxi Front"),
(html! { <Caravan /> }, "Caravan"),
(html! { <CardSim /> }, "Card Sim"),
(html! { <Carrot /> }, "Carrot"),
(html! { <CaseLower /> }, "Case Lower"),
(html! { <CaseSensitive /> }, "Case Sensitive"),

View file

@ -0,0 +1,49 @@
use dioxus::prelude::*;
#[derive(Clone, PartialEq, Props)]
pub struct CardSimProps {
#[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 CardSim(props: CardSimProps) -> 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": "M12 14v4" }
path { "d": "M14.172 2a2 2 0 0 1 1.414.586l3.828 3.828A2 2 0 0 1 20 7.828V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z" }
path { "d": "M8 14h8" }
rect {
"x": "8",
"y": "10",
"width": "8",
"height": "8",
"rx": "1",
}
}
}
}

View file

@ -653,6 +653,13 @@ mod car_front;
mod car_taxi_front;
#[cfg(any(feature = "transportation", feature = "travel", feature = "nature"))]
mod caravan;
#[cfg(any(
feature = "connectivity",
feature = "communication",
feature = "multimedia",
feature = "devices"
))]
mod card_sim;
#[cfg(feature = "food-beverage")]
mod carrot;
#[cfg(feature = "text")]
@ -4710,6 +4717,13 @@ pub use car_front::*;
pub use car_taxi_front::*;
#[cfg(any(feature = "transportation", feature = "travel", feature = "nature"))]
pub use caravan::*;
#[cfg(any(
feature = "connectivity",
feature = "communication",
feature = "multimedia",
feature = "devices"
))]
pub use card_sim::*;
#[cfg(feature = "food-beverage")]
pub use carrot::*;
#[cfg(feature = "text")]

View file

@ -0,0 +1,38 @@
use leptos::{prelude::*, svg::Svg};
#[component]
pub fn CardSim(
#[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="M12 14v4" />
<path d="M14.172 2a2 2 0 0 1 1.414.586l3.828 3.828A2 2 0 0 1 20 7.828V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z" />
<path d="M8 14h8" />
<rect x="8" y="10" width="8" height="8" rx="1" />
</svg>
}
}

View file

@ -653,6 +653,13 @@ mod car_front;
mod car_taxi_front;
#[cfg(any(feature = "transportation", feature = "travel", feature = "nature"))]
mod caravan;
#[cfg(any(
feature = "connectivity",
feature = "communication",
feature = "multimedia",
feature = "devices"
))]
mod card_sim;
#[cfg(feature = "food-beverage")]
mod carrot;
#[cfg(feature = "text")]
@ -4710,6 +4717,13 @@ pub use car_front::*;
pub use car_taxi_front::*;
#[cfg(any(feature = "transportation", feature = "travel", feature = "nature"))]
pub use caravan::*;
#[cfg(any(
feature = "connectivity",
feature = "communication",
feature = "multimedia",
feature = "devices"
))]
pub use card_sim::*;
#[cfg(feature = "food-beverage")]
pub use carrot::*;
#[cfg(feature = "text")]

View file

@ -0,0 +1,52 @@
use yew::prelude::*;
#[derive(PartialEq, Properties)]
pub struct CardSimProps {
#[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 CardSim(props: &CardSimProps) -> 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="M12 14v4" />
<path
d="M14.172 2a2 2 0 0 1 1.414.586l3.828 3.828A2 2 0 0 1 20 7.828V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"
/>
<path d="M8 14h8" />
<rect x="8" y="10" width="8" height="8" rx="1" />
</svg>
}
}

View file

@ -655,6 +655,13 @@ mod car_front;
mod car_taxi_front;
#[cfg(any(feature = "transportation", feature = "travel", feature = "nature"))]
mod caravan;
#[cfg(any(
feature = "connectivity",
feature = "communication",
feature = "multimedia",
feature = "devices"
))]
mod card_sim;
#[cfg(feature = "food-beverage")]
mod carrot;
#[cfg(feature = "text")]
@ -4712,6 +4719,13 @@ pub use car_front::*;
pub use car_taxi_front::*;
#[cfg(any(feature = "transportation", feature = "travel", feature = "nature"))]
pub use caravan::*;
#[cfg(any(
feature = "connectivity",
feature = "communication",
feature = "multimedia",
feature = "devices"
))]
pub use card_sim::*;
#[cfg(feature = "food-beverage")]
pub use carrot::*;
#[cfg(feature = "text")]

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.512.0";
pub const UPSTREAM_GIT_REF: &str = "0.513.0";
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";