From baa7efdf9d21450413338aa05d21f63233ada2d0 Mon Sep 17 00:00:00 2001
From: "rust-for-web[bot]"
<191031261+rust-for-web[bot]@users.noreply.github.com>
Date: Fri, 27 Jun 2025 12:36:35 +0200
Subject: [PATCH] feat: update to upstream v0.523.0 (#103)
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/bottle_wine.rs | 41 ++++++++++++++++++++++++
packages/dioxus/src/lib.rs | 4 +++
packages/leptos/src/bottle_wine.rs | 36 +++++++++++++++++++++
packages/leptos/src/lib.rs | 4 +++
packages/yew/src/bottle_wine.rs | 50 ++++++++++++++++++++++++++++++
packages/yew/src/lib.rs | 4 +++
scripts/src/lib.rs | 2 +-
10 files changed, 148 insertions(+), 1 deletion(-)
create mode 100644 packages/dioxus/src/bottle_wine.rs
create mode 100644 packages/leptos/src/bottle_wine.rs
create mode 100644 packages/yew/src/bottle_wine.rs
diff --git a/book-examples/dioxus/src/icons.rs b/book-examples/dioxus/src/icons.rs
index 01023f3..34f02ce 100644
--- a/book-examples/dioxus/src/icons.rs
+++ b/book-examples/dioxus/src/icons.rs
@@ -1397,6 +1397,12 @@ pub fn IconsB2() -> Element {
},
"Bot Off",
),
+ (
+ rsx! {
+ BottleWine {}
+ },
+ "Bottle Wine",
+ ),
(
rsx! {
BowArrow {}
diff --git a/book-examples/leptos/src/icons.rs b/book-examples/leptos/src/icons.rs
index b8a0a0f..01aede0 100644
--- a/book-examples/leptos/src/icons.rs
+++ b/book-examples/leptos/src/icons.rs
@@ -315,6 +315,7 @@ pub fn IconsB() -> impl IntoView {
(view! { }.into_any(), "Bot"),
(view! { }.into_any(), "Bot Message Square"),
(view! { }.into_any(), "Bot Off"),
+ (view! { }.into_any(), "Bottle Wine"),
(view! { }.into_any(), "Bow Arrow"),
(view! { }.into_any(), "Box"),
(view! { }.into_any(), "Boxes"),
diff --git a/book-examples/yew/src/icons.rs b/book-examples/yew/src/icons.rs
index b996f66..32ef8cb 100644
--- a/book-examples/yew/src/icons.rs
+++ b/book-examples/yew/src/icons.rs
@@ -324,6 +324,7 @@ pub fn IconsB() -> Html {
(html! { }, "Bot"),
(html! { }, "Bot Message Square"),
(html! { }, "Bot Off"),
+ (html! { }, "Bottle Wine"),
(html! { }, "Bow Arrow"),
(html! { }, "Box"),
(html! { }, "Boxes"),
diff --git a/packages/dioxus/src/bottle_wine.rs b/packages/dioxus/src/bottle_wine.rs
new file mode 100644
index 0000000..a4cc14c
--- /dev/null
+++ b/packages/dioxus/src/bottle_wine.rs
@@ -0,0 +1,41 @@
+use dioxus::prelude::*;
+#[derive(Clone, PartialEq, Props)]
+pub struct BottleWineProps {
+ #[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 BottleWine(props: BottleWineProps) -> 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": "M10 3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a6 6 0 0 0 1.2 3.6l.6.8A6 6 0 0 1 17 13v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a6 6 0 0 1 1.2-3.6l.6-.8A6 6 0 0 0 10 5z" }
+ path { "d": "M17 13h-4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4" }
+ }
+ }
+}
diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs
index 9fc3fa2..310a6c0 100644
--- a/packages/dioxus/src/lib.rs
+++ b/packages/dioxus/src/lib.rs
@@ -518,6 +518,8 @@ mod bot;
mod bot_message_square;
#[cfg(any(feature = "development", feature = "social"))]
mod bot_off;
+#[cfg(feature = "food-beverage")]
+mod bottle_wine;
#[cfg(any(feature = "gaming", feature = "tools"))]
mod bow_arrow;
#[cfg(any(
@@ -4600,6 +4602,8 @@ pub use bot::*;
pub use bot_message_square::*;
#[cfg(any(feature = "development", feature = "social"))]
pub use bot_off::*;
+#[cfg(feature = "food-beverage")]
+pub use bottle_wine::*;
#[cfg(any(feature = "gaming", feature = "tools"))]
pub use bow_arrow::*;
#[cfg(any(
diff --git a/packages/leptos/src/bottle_wine.rs b/packages/leptos/src/bottle_wine.rs
new file mode 100644
index 0000000..4e1331e
--- /dev/null
+++ b/packages/leptos/src/bottle_wine.rs
@@ -0,0 +1,36 @@
+use leptos::{prelude::*, svg::Svg};
+#[component]
+pub fn BottleWine(
+ #[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