From e00c3bc91906f2e73788b89c5315d26367e8e415 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 24 Jun 2025 10:21:19 +0200
Subject: [PATCH] feat: update to upstream v0.520.0 (#99)
Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com>
---
book-examples/dioxus/src/icons.rs | 6 ++++
book-examples/leptos/src/icons.rs | 1 +
book-examples/yew/src/icons.rs | 1 +
packages/dioxus/src/georgian_lari.rs | 43 ++++++++++++++++++++++++
packages/dioxus/src/lib.rs | 4 +++
packages/leptos/src/georgian_lari.rs | 38 +++++++++++++++++++++
packages/leptos/src/lib.rs | 4 +++
packages/yew/src/georgian_lari.rs | 50 ++++++++++++++++++++++++++++
packages/yew/src/lib.rs | 4 +++
scripts/src/lib.rs | 2 +-
10 files changed, 152 insertions(+), 1 deletion(-)
create mode 100644 packages/dioxus/src/georgian_lari.rs
create mode 100644 packages/leptos/src/georgian_lari.rs
create mode 100644 packages/yew/src/georgian_lari.rs
diff --git a/book-examples/dioxus/src/icons.rs b/book-examples/dioxus/src/icons.rs
index d449bca..cdd4eed 100644
--- a/book-examples/dioxus/src/icons.rs
+++ b/book-examples/dioxus/src/icons.rs
@@ -4427,6 +4427,12 @@ pub fn IconsG1() -> Element {
},
"Gem",
),
+ (
+ rsx! {
+ GeorgianLari {}
+ },
+ "Georgian Lari",
+ ),
(
rsx! {
Ghost {}
diff --git a/book-examples/leptos/src/icons.rs b/book-examples/leptos/src/icons.rs
index 464d953..e43ebd0 100644
--- a/book-examples/leptos/src/icons.rs
+++ b/book-examples/leptos/src/icons.rs
@@ -897,6 +897,7 @@ pub fn IconsG() -> impl IntoView {
(view! { }.into_any(), "Gauge"),
(view! { }.into_any(), "Gavel"),
(view! { }.into_any(), "Gem"),
+ (view! { }.into_any(), "Georgian Lari"),
(view! { }.into_any(), "Ghost"),
(view! { }.into_any(), "Gift"),
(view! { }.into_any(), "Git Branch"),
diff --git a/book-examples/yew/src/icons.rs b/book-examples/yew/src/icons.rs
index c7d3151..29b4f65 100644
--- a/book-examples/yew/src/icons.rs
+++ b/book-examples/yew/src/icons.rs
@@ -922,6 +922,7 @@ pub fn IconsG() -> Html {
(html! { }, "Gauge"),
(html! { }, "Gavel"),
(html! { }, "Gem"),
+ (html! { }, "Georgian Lari"),
(html! { }, "Ghost"),
(html! { }, "Gift"),
(html! { }, "Git Branch"),
diff --git a/packages/dioxus/src/georgian_lari.rs b/packages/dioxus/src/georgian_lari.rs
new file mode 100644
index 0000000..070091e
--- /dev/null
+++ b/packages/dioxus/src/georgian_lari.rs
@@ -0,0 +1,43 @@
+use dioxus::prelude::*;
+#[derive(Clone, PartialEq, Props)]
+pub struct GeorgianLariProps {
+ #[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,
+ pub style: Option,
+}
+#[component]
+pub fn GeorgianLari(props: GeorgianLariProps) -> 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": "M11.5 21a7.5 7.5 0 1 1 7.35-9" }
+ path { "d": "M13 12V3" }
+ path { "d": "M4 21h16" }
+ path { "d": "M9 12V3" }
+ }
+ }
+}
diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs
index 0584827..aa7827b 100644
--- a/packages/dioxus/src/lib.rs
+++ b/packages/dioxus/src/lib.rs
@@ -1677,6 +1677,8 @@ mod gauge;
mod gavel;
#[cfg(any(feature = "gaming", feature = "development", feature = "finance"))]
mod gem;
+#[cfg(feature = "finance")]
+mod georgian_lari;
#[cfg(feature = "gaming")]
mod ghost;
#[cfg(any(feature = "gaming", feature = "account"))]
@@ -5753,6 +5755,8 @@ pub use gauge::*;
pub use gavel::*;
#[cfg(any(feature = "gaming", feature = "development", feature = "finance"))]
pub use gem::*;
+#[cfg(feature = "finance")]
+pub use georgian_lari::*;
#[cfg(feature = "gaming")]
pub use ghost::*;
#[cfg(any(feature = "gaming", feature = "account"))]
diff --git a/packages/leptos/src/georgian_lari.rs b/packages/leptos/src/georgian_lari.rs
new file mode 100644
index 0000000..8eca458
--- /dev/null
+++ b/packages/leptos/src/georgian_lari.rs
@@ -0,0 +1,38 @@
+use leptos::{prelude::*, svg::Svg};
+#[component]
+pub fn GeorgianLari(
+ #[prop(default = 24.into(), into)] size: Signal,
+ #[prop(default = "currentColor".into(), into)] color: Signal,
+ #[prop(default = "none".into(), into)] fill: Signal,
+ #[prop(default = 2.into(), into)] stroke_width: Signal,
+ #[prop(default = false.into(), into)] absolute_stroke_width: Signal,
+ #[prop(optional)] node_ref: NodeRef