feat: update to upstream v0.514.0 (#89)

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-12 08:02:27 +00:00 committed by GitHub
parent d60cce5c44
commit b7e685d2e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 175 additions and 25 deletions

View file

@ -1184,6 +1184,12 @@ pub fn IconsB1() -> Element {
},
"Book A",
),
(
rsx! {
BookAlert {}
},
"Book Alert",
),
(
rsx! {
BookAudio {}
@ -1316,12 +1322,6 @@ pub fn IconsB1() -> Element {
},
"Book X",
),
(
rsx! {
Bookmark {}
},
"Bookmark",
),
];
rsx! {
for (icon , name) in icons {
@ -1337,6 +1337,12 @@ pub fn IconsB1() -> Element {
#[component]
pub fn IconsB2() -> Element {
let icons = [
(
rsx! {
Bookmark {}
},
"Bookmark",
),
(
rsx! {
BookmarkCheck {}

View file

@ -282,6 +282,7 @@ pub fn IconsB() -> impl IntoView {
(view! { <Bone /> }.into_any(), "Bone"),
(view! { <Book /> }.into_any(), "Book"),
(view! { <BookA /> }.into_any(), "Book A"),
(view! { <BookAlert /> }.into_any(), "Book Alert"),
(view! { <BookAudio /> }.into_any(), "Book Audio"),
(view! { <BookCheck /> }.into_any(), "Book Check"),
(view! { <BookCopy /> }.into_any(), "Book Copy"),

View file

@ -291,6 +291,7 @@ pub fn IconsB() -> Html {
(html! { <Bone /> }, "Bone"),
(html! { <Book /> }, "Book"),
(html! { <BookA /> }, "Book A"),
(html! { <BookAlert /> }, "Book Alert"),
(html! { <BookAudio /> }, "Book Audio"),
(html! { <BookCheck /> }, "Book Check"),
(html! { <BookCopy /> }, "Book Copy"),

View file

@ -0,0 +1,42 @@
use dioxus::prelude::*;
#[derive(Clone, PartialEq, Props)]
pub struct BookAlertProps {
#[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 BookAlert(props: BookAlertProps) -> 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 13h.01" }
path { "d": "M12 6v3" }
path { "d": "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" }
}
}
}

View file

@ -439,6 +439,8 @@ mod bone;
mod book;
#[cfg(any(feature = "text", feature = "gaming"))]
mod book_a;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]
mod book_alert;
#[cfg(any(feature = "multimedia", feature = "text"))]
mod book_audio;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]
@ -4503,6 +4505,8 @@ pub use bone::*;
pub use book::*;
#[cfg(any(feature = "text", feature = "gaming"))]
pub use book_a::*;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]
pub use book_alert::*;
#[cfg(any(feature = "multimedia", feature = "text"))]
pub use book_audio::*;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]

View file

@ -34,8 +34,8 @@ pub fn Settings2(props: Settings2Props) -> Element {
"stroke-width": "{stroke_width}",
"stroke-linecap": "round",
"stroke-linejoin": "round",
path { "d": "M20 7h-9" }
path { "d": "M14 17H5" }
path { "d": "M19 7h-9" }
circle { "cx": "17", "cy": "17", "r": "3" }
circle { "cx": "7", "cy": "7", "r": "3" }
}

View file

@ -34,12 +34,12 @@ pub fn Trophy(props: TrophyProps) -> Element {
"stroke-width": "{stroke_width}",
"stroke-linecap": "round",
"stroke-linejoin": "round",
path { "d": "M6 9H4.5a2.5 2.5 0 0 1 0-5H6" }
path { "d": "M18 9h1.5a2.5 2.5 0 0 0 0-5H18" }
path { "d": "M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978" }
path { "d": "M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978" }
path { "d": "M18 9h1.5a1 1 0 0 0 0-5H18" }
path { "d": "M4 22h16" }
path { "d": "M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22" }
path { "d": "M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22" }
path { "d": "M18 2H6v7a6 6 0 0 0 12 0V2Z" }
path { "d": "M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z" }
path { "d": "M6 9H4.5a1 1 0 0 1 0-5H6" }
}
}
}

View file

@ -0,0 +1,37 @@
use leptos::{prelude::*, svg::Svg};
#[component]
pub fn BookAlert(
#[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 13h.01" />
<path d="M12 6v3" />
<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" />
</svg>
}
}

View file

@ -439,6 +439,8 @@ mod bone;
mod book;
#[cfg(any(feature = "text", feature = "gaming"))]
mod book_a;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]
mod book_alert;
#[cfg(any(feature = "multimedia", feature = "text"))]
mod book_audio;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]
@ -4503,6 +4505,8 @@ pub use bone::*;
pub use book::*;
#[cfg(any(feature = "text", feature = "gaming"))]
pub use book_a::*;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]
pub use book_alert::*;
#[cfg(any(feature = "multimedia", feature = "text"))]
pub use book_audio::*;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]

View file

@ -29,8 +29,8 @@ pub fn Settings2(
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M20 7h-9" />
<path d="M14 17H5" />
<path d="M19 7h-9" />
<circle cx="17" cy="17" r="3" />
<circle cx="7" cy="7" r="3" />
</svg>

View file

@ -29,12 +29,12 @@ pub fn Trophy(
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6" />
<path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18" />
<path d="M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978" />
<path d="M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978" />
<path d="M18 9h1.5a1 1 0 0 0 0-5H18" />
<path d="M4 22h16" />
<path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22" />
<path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22" />
<path d="M18 2H6v7a6 6 0 0 0 12 0V2Z" />
<path d="M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z" />
<path d="M6 9H4.5a1 1 0 0 1 0-5H6" />
</svg>
}
}

View file

@ -0,0 +1,51 @@
use yew::prelude::*;
#[derive(PartialEq, Properties)]
pub struct BookAlertProps {
#[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 BookAlert(props: &BookAlertProps) -> 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 13h.01" />
<path d="M12 6v3" />
<path
d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"
/>
</svg>
}
}

View file

@ -441,6 +441,8 @@ mod bone;
mod book;
#[cfg(any(feature = "text", feature = "gaming"))]
mod book_a;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]
mod book_alert;
#[cfg(any(feature = "multimedia", feature = "text"))]
mod book_audio;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]
@ -4505,6 +4507,8 @@ pub use bone::*;
pub use book::*;
#[cfg(any(feature = "text", feature = "gaming"))]
pub use book_a::*;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]
pub use book_alert::*;
#[cfg(any(feature = "multimedia", feature = "text"))]
pub use book_audio::*;
#[cfg(any(feature = "text", feature = "development", feature = "gaming"))]

View file

@ -41,8 +41,8 @@ pub fn Settings2(props: &Settings2Props) -> Html {
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M20 7h-9" />
<path d="M14 17H5" />
<path d="M19 7h-9" />
<circle cx="17" cy="17" r="3" />
<circle cx="7" cy="7" r="3" />
</svg>

View file

@ -41,12 +41,12 @@ pub fn Trophy(props: &TrophyProps) -> Html {
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6" />
<path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18" />
<path d="M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978" />
<path d="M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978" />
<path d="M18 9h1.5a1 1 0 0 0 0-5H18" />
<path d="M4 22h16" />
<path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22" />
<path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22" />
<path d="M18 2H6v7a6 6 0 0 0 12 0V2Z" />
<path d="M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z" />
<path d="M6 9H4.5a1 1 0 0 1 0-5H6" />
</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.513.0";
pub const UPSTREAM_GIT_REF: &str = "0.514.0";
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";