feat: update to upstream v0.530.0 (#123)

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-07-30 19:42:41 +02:00 committed by GitHub
parent f59ff839b9
commit 2c4c6f6271
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 151 additions and 1 deletions

View file

@ -9776,6 +9776,12 @@ pub fn IconsU1() -> Element {
},
"User Search",
),
(
rsx! {
UserStar {}
},
"User Star",
),
(
rsx! {
UserX {}

View file

@ -1993,6 +1993,7 @@ pub fn IconsU() -> impl IntoView {
(view! { <UserRoundSearch /> }.into_any(), "User Round Search"),
(view! { <UserRoundX /> }.into_any(), "User Round X"),
(view! { <UserSearch /> }.into_any(), "User Search"),
(view! { <UserStar /> }.into_any(), "User Star"),
(view! { <UserX /> }.into_any(), "User X"),
(view! { <Users /> }.into_any(), "Users"),
(view! { <UsersRound /> }.into_any(), "Users Round"),

View file

@ -2037,6 +2037,7 @@ pub fn IconsU() -> Html {
(html! { <UserRoundSearch /> }, "User Round Search"),
(html! { <UserRoundX /> }, "User Round X"),
(html! { <UserSearch /> }, "User Search"),
(html! { <UserStar /> }, "User Star"),
(html! { <UserX /> }, "User X"),
(html! { <Users /> }, "Users"),
(html! { <UsersRound /> }, "Users Round"),

View file

@ -3891,6 +3891,8 @@ mod user_round_x;
#[cfg(any(feature = "account", feature = "social"))]
mod user_search;
#[cfg(feature = "account")]
mod user_star;
#[cfg(feature = "account")]
mod user_x;
#[cfg(feature = "account")]
mod users;
@ -8007,6 +8009,8 @@ pub use user_round_x::*;
#[cfg(any(feature = "account", feature = "social"))]
pub use user_search::*;
#[cfg(feature = "account")]
pub use user_star::*;
#[cfg(feature = "account")]
pub use user_x::*;
#[cfg(feature = "account")]
pub use users::*;

View file

@ -0,0 +1,42 @@
use dioxus::prelude::*;
#[derive(Clone, PartialEq, Props)]
pub struct UserStarProps {
#[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 UserStar(props: UserStarProps) -> 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": "M8.5 15H7a4 4 0 0 0-4 4v2" }
path { "d": "M16.5 12.903a.229.229 0 0 1 .41 0l.997 2.022a.92.92 0 0 0 .69.501l2.23.326a.229.229 0 0 1 .127.392l-1.613 1.57a.92.92 0 0 0-.264.812l.381 2.22a.229.229 0 0 1-.333.241L17.13 19.94a.92.92 0 0 0-.853 0l-1.993 1.048a.229.229 0 0 1-.333-.242l.38-2.22a.92.92 0 0 0-.264-.81l-1.613-1.571a.229.229 0 0 1 .127-.392l2.23-.326a.92.92 0 0 0 .69-.501z" }
circle { "cx": "10", "cy": "7", "r": "4" }
}
}
}

View file

@ -3891,6 +3891,8 @@ mod user_round_x;
#[cfg(any(feature = "account", feature = "social"))]
mod user_search;
#[cfg(feature = "account")]
mod user_star;
#[cfg(feature = "account")]
mod user_x;
#[cfg(feature = "account")]
mod users;
@ -8007,6 +8009,8 @@ pub use user_round_x::*;
#[cfg(any(feature = "account", feature = "social"))]
pub use user_search::*;
#[cfg(feature = "account")]
pub use user_star::*;
#[cfg(feature = "account")]
pub use user_x::*;
#[cfg(feature = "account")]
pub use users::*;

View file

@ -0,0 +1,37 @@
use leptos::{prelude::*, svg::Svg};
#[component]
pub fn UserStar(
#[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="M8.5 15H7a4 4 0 0 0-4 4v2" />
<path d="M16.5 12.903a.229.229 0 0 1 .41 0l.997 2.022a.92.92 0 0 0 .69.501l2.23.326a.229.229 0 0 1 .127.392l-1.613 1.57a.92.92 0 0 0-.264.812l.381 2.22a.229.229 0 0 1-.333.241L17.13 19.94a.92.92 0 0 0-.853 0l-1.993 1.048a.229.229 0 0 1-.333-.242l.38-2.22a.92.92 0 0 0-.264-.81l-1.613-1.571a.229.229 0 0 1 .127-.392l2.23-.326a.92.92 0 0 0 .69-.501z" />
<circle cx="10" cy="7" r="4" />
</svg>
}
}

View file

@ -3893,6 +3893,8 @@ mod user_round_x;
#[cfg(any(feature = "account", feature = "social"))]
mod user_search;
#[cfg(feature = "account")]
mod user_star;
#[cfg(feature = "account")]
mod user_x;
#[cfg(feature = "account")]
mod users;
@ -8009,6 +8011,8 @@ pub use user_round_x::*;
#[cfg(any(feature = "account", feature = "social"))]
pub use user_search::*;
#[cfg(feature = "account")]
pub use user_star::*;
#[cfg(feature = "account")]
pub use user_x::*;
#[cfg(feature = "account")]
pub use users::*;

View file

@ -0,0 +1,51 @@
use yew::prelude::*;
#[derive(PartialEq, Properties)]
pub struct UserStarProps {
#[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 UserStar(props: &UserStarProps) -> 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="M8.5 15H7a4 4 0 0 0-4 4v2" />
<path
d="M16.5 12.903a.229.229 0 0 1 .41 0l.997 2.022a.92.92 0 0 0 .69.501l2.23.326a.229.229 0 0 1 .127.392l-1.613 1.57a.92.92 0 0 0-.264.812l.381 2.22a.229.229 0 0 1-.333.241L17.13 19.94a.92.92 0 0 0-.853 0l-1.993 1.048a.229.229 0 0 1-.333-.242l.38-2.22a.92.92 0 0 0-.264-.81l-1.613-1.571a.229.229 0 0 1 .127-.392l2.23-.326a.92.92 0 0 0 .69-.501z"
/>
<circle cx="10" cy="7" r="4" />
</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.529.0";
pub const UPSTREAM_GIT_REF: &str = "0.530.0";
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";