feat: update to upstream v0.519.0 (#96)

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-23 12:57:25 +00:00 committed by GitHub
parent 2eb242af87
commit 98f1c4998c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 170 additions and 21 deletions

View file

@ -8321,6 +8321,12 @@ pub fn IconsS2() -> Element {
},
"Split",
),
(
rsx! {
Spool {}
},
"Spool",
),
(
rsx! {
SprayCan {}
@ -8831,12 +8837,6 @@ pub fn IconsS2() -> Element {
},
"Sun",
),
(
rsx! {
SunDim {}
},
"Sun Dim",
),
];
rsx! {
for (icon , name) in icons {
@ -8852,6 +8852,12 @@ pub fn IconsS2() -> Element {
#[component]
pub fn IconsS3() -> Element {
let icons = [
(
rsx! {
SunDim {}
},
"Sun Dim",
),
(
rsx! {
SunMedium {}

View file

@ -1721,6 +1721,7 @@ pub fn IconsS() -> impl IntoView {
(view! { <Spline /> }.into_any(), "Spline"),
(view! { <SplinePointer /> }.into_any(), "Spline Pointer"),
(view! { <Split /> }.into_any(), "Split"),
(view! { <Spool /> }.into_any(), "Spool"),
(view! { <SprayCan /> }.into_any(), "Spray Can"),
(view! { <Sprout /> }.into_any(), "Sprout"),
(view! { <Square /> }.into_any(), "Square"),

View file

@ -1740,6 +1740,7 @@ pub fn IconsS() -> Html {
(html! { <Spline /> }, "Spline"),
(html! { <SplinePointer /> }, "Spline Pointer"),
(html! { <Split /> }, "Split"),
(html! { <Spool /> }, "Spool"),
(html! { <SprayCan /> }, "Spray Can"),
(html! { <Sprout /> }, "Sprout"),
(html! { <Square /> }, "Square"),

View file

@ -34,14 +34,14 @@ pub fn Blocks(props: BlocksProps) -> Element {
"stroke-width": "{stroke_width}",
"stroke-linecap": "round",
"stroke-linejoin": "round",
path { "d": "M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2" }
rect {
"width": "7",
"height": "7",
"x": "14",
"y": "3",
"y": "2",
"width": "8",
"height": "8",
"rx": "1",
}
path { "d": "M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3" }
}
}
}

View file

@ -419,7 +419,7 @@ mod bitcoin;
mod blend;
#[cfg(feature = "home")]
mod blinds;
#[cfg(any(feature = "development", feature = "shapes"))]
#[cfg(any(feature = "development", feature = "layout", feature = "shapes"))]
mod blocks;
#[cfg(any(feature = "connectivity", feature = "devices"))]
mod bluetooth;
@ -3319,6 +3319,8 @@ mod spline;
mod spline_pointer;
#[cfg(any(feature = "development", feature = "arrows"))]
mod split;
#[cfg(any(feature = "communication", feature = "tools", feature = "social"))]
mod spool;
#[cfg(any(feature = "design", feature = "tools"))]
mod spray_can;
#[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))]
@ -4493,7 +4495,7 @@ pub use bitcoin::*;
pub use blend::*;
#[cfg(feature = "home")]
pub use blinds::*;
#[cfg(any(feature = "development", feature = "shapes"))]
#[cfg(any(feature = "development", feature = "layout", feature = "shapes"))]
pub use blocks::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]
pub use bluetooth::*;
@ -7393,6 +7395,8 @@ pub use spline::*;
pub use spline_pointer::*;
#[cfg(any(feature = "development", feature = "arrows"))]
pub use split::*;
#[cfg(any(feature = "communication", feature = "tools", feature = "social"))]
pub use spool::*;
#[cfg(any(feature = "design", feature = "tools"))]
pub use spray_can::*;
#[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))]

View file

@ -0,0 +1,41 @@
use dioxus::prelude::*;
#[derive(Clone, PartialEq, Props)]
pub struct SpoolProps {
#[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 Spool(props: SpoolProps) -> 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": "M17 13.44 4.442 17.082A2 2 0 0 0 4.982 21H19a2 2 0 0 0 .558-3.921l-1.115-.32A2 2 0 0 1 17 14.837V7.66" }
path { "d": "m7 10.56 12.558-3.642A2 2 0 0 0 19.018 3H5a2 2 0 0 0-.558 3.921l1.115.32A2 2 0 0 1 7 9.163v7.178" }
}
}
}

View file

@ -29,8 +29,8 @@ pub fn Blocks(
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="7" height="7" x="14" y="3" rx="1" />
<path d="M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3" />
<path d="M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2" />
<rect x="14" y="2" width="8" height="8" rx="1" />
</svg>
}
}

View file

@ -419,7 +419,7 @@ mod bitcoin;
mod blend;
#[cfg(feature = "home")]
mod blinds;
#[cfg(any(feature = "development", feature = "shapes"))]
#[cfg(any(feature = "development", feature = "layout", feature = "shapes"))]
mod blocks;
#[cfg(any(feature = "connectivity", feature = "devices"))]
mod bluetooth;
@ -3319,6 +3319,8 @@ mod spline;
mod spline_pointer;
#[cfg(any(feature = "development", feature = "arrows"))]
mod split;
#[cfg(any(feature = "communication", feature = "tools", feature = "social"))]
mod spool;
#[cfg(any(feature = "design", feature = "tools"))]
mod spray_can;
#[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))]
@ -4493,7 +4495,7 @@ pub use bitcoin::*;
pub use blend::*;
#[cfg(feature = "home")]
pub use blinds::*;
#[cfg(any(feature = "development", feature = "shapes"))]
#[cfg(any(feature = "development", feature = "layout", feature = "shapes"))]
pub use blocks::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]
pub use bluetooth::*;
@ -7393,6 +7395,8 @@ pub use spline::*;
pub use spline_pointer::*;
#[cfg(any(feature = "development", feature = "arrows"))]
pub use split::*;
#[cfg(any(feature = "communication", feature = "tools", feature = "social"))]
pub use spool::*;
#[cfg(any(feature = "design", feature = "tools"))]
pub use spray_can::*;
#[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))]

View file

@ -0,0 +1,36 @@
use leptos::{prelude::*, svg::Svg};
#[component]
pub fn Spool(
#[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="M17 13.44 4.442 17.082A2 2 0 0 0 4.982 21H19a2 2 0 0 0 .558-3.921l-1.115-.32A2 2 0 0 1 17 14.837V7.66" />
<path d="m7 10.56 12.558-3.642A2 2 0 0 0 19.018 3H5a2 2 0 0 0-.558 3.921l1.115.32A2 2 0 0 1 7 9.163v7.178" />
</svg>
}
}

View file

@ -41,10 +41,10 @@ pub fn Blocks(props: &BlocksProps) -> Html {
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="7" height="7" x="14" y="3" rx="1" />
<path
d="M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3"
d="M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2"
/>
<rect x="14" y="2" width="8" height="8" rx="1" />
</svg>
}
}

View file

@ -421,7 +421,7 @@ mod bitcoin;
mod blend;
#[cfg(feature = "home")]
mod blinds;
#[cfg(any(feature = "development", feature = "shapes"))]
#[cfg(any(feature = "development", feature = "layout", feature = "shapes"))]
mod blocks;
#[cfg(any(feature = "connectivity", feature = "devices"))]
mod bluetooth;
@ -3321,6 +3321,8 @@ mod spline;
mod spline_pointer;
#[cfg(any(feature = "development", feature = "arrows"))]
mod split;
#[cfg(any(feature = "communication", feature = "tools", feature = "social"))]
mod spool;
#[cfg(any(feature = "design", feature = "tools"))]
mod spray_can;
#[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))]
@ -4495,7 +4497,7 @@ pub use bitcoin::*;
pub use blend::*;
#[cfg(feature = "home")]
pub use blinds::*;
#[cfg(any(feature = "development", feature = "shapes"))]
#[cfg(any(feature = "development", feature = "layout", feature = "shapes"))]
pub use blocks::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]
pub use bluetooth::*;
@ -7395,6 +7397,8 @@ pub use spline::*;
pub use spline_pointer::*;
#[cfg(any(feature = "development", feature = "arrows"))]
pub use split::*;
#[cfg(any(feature = "communication", feature = "tools", feature = "social"))]
pub use spool::*;
#[cfg(any(feature = "design", feature = "tools"))]
pub use spray_can::*;
#[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))]

52
packages/yew/src/spool.rs Normal file
View file

@ -0,0 +1,52 @@
use yew::prelude::*;
#[derive(PartialEq, Properties)]
pub struct SpoolProps {
#[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 Spool(props: &SpoolProps) -> 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="M17 13.44 4.442 17.082A2 2 0 0 0 4.982 21H19a2 2 0 0 0 .558-3.921l-1.115-.32A2 2 0 0 1 17 14.837V7.66"
/>
<path
d="m7 10.56 12.558-3.642A2 2 0 0 0 19.018 3H5a2 2 0 0 0-.558 3.921l1.115.32A2 2 0 0 1 7 9.163v7.178"
/>
</svg>
}
}

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