feat: update to upstream v0.516.0 (#93)

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-18 06:28:39 +00:00 committed by GitHub
parent d1d1266642
commit 2f3d8184c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 212 additions and 36 deletions

View file

@ -9986,6 +9986,12 @@ pub fn IconsW1() -> Element {
},
"Wifi",
),
(
rsx! {
WifiCog {}
},
"Wifi Cog",
),
(
rsx! {
WifiHigh {}

View file

@ -2054,6 +2054,7 @@ pub fn IconsW() -> impl IntoView {
(view! { <WheatOff /> }.into_any(), "Wheat Off"),
(view! { <WholeWord /> }.into_any(), "Whole Word"),
(view! { <Wifi /> }.into_any(), "Wifi"),
(view! { <WifiCog /> }.into_any(), "Wifi Cog"),
(view! { <WifiHigh /> }.into_any(), "Wifi High"),
(view! { <WifiLow /> }.into_any(), "Wifi Low"),
(view! { <WifiOff /> }.into_any(), "Wifi Off"),

View file

@ -2099,6 +2099,7 @@ pub fn IconsW() -> Html {
(html! { <WheatOff /> }, "Wheat Off"),
(html! { <WholeWord /> }, "Whole Word"),
(html! { <Wifi /> }, "Wifi"),
(html! { <WifiCog /> }, "Wifi Cog"),
(html! { <WifiHigh /> }, "Wifi High"),
(html! { <WifiLow /> }, "Wifi Low"),
(html! { <WifiOff /> }, "Wifi Off"),

View file

@ -4011,6 +4011,8 @@ mod wheat_off;
mod whole_word;
#[cfg(any(feature = "connectivity", feature = "devices"))]
mod wifi;
#[cfg(any(feature = "connectivity", feature = "devices", feature = "files"))]
mod wifi_cog;
#[cfg(any(feature = "connectivity", feature = "devices"))]
mod wifi_high;
#[cfg(any(feature = "connectivity", feature = "devices"))]
@ -8079,6 +8081,8 @@ pub use wheat_off::*;
pub use whole_word::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]
pub use wifi::*;
#[cfg(any(feature = "connectivity", feature = "devices", feature = "files"))]
pub use wifi_cog::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]
pub use wifi_high::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]

View file

@ -34,13 +34,14 @@ pub fn Mic(props: MicProps) -> Element {
"stroke-width": "{stroke_width}",
"stroke-linecap": "round",
"stroke-linejoin": "round",
path { "d": "M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z" }
path { "d": "M12 19v3" }
path { "d": "M19 10v2a7 7 0 0 1-14 0v-2" }
line {
"x1": "12",
"x2": "12",
"y1": "19",
"y2": "22",
rect {
"x": "9",
"y": "2",
"width": "6",
"height": "13",
"rx": "3",
}
}
}

View file

@ -34,8 +34,8 @@ pub fn Pocket(props: PocketProps) -> Element {
"stroke-width": "{stroke_width}",
"stroke-linecap": "round",
"stroke-linejoin": "round",
path { "d": "M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z" }
polyline { "points": "8 10 12 14 16 10" }
path { "d": "M20 3a2 2 0 0 1 2 2v6a1 1 0 0 1-20 0V5a2 2 0 0 1 2-2z" }
path { "d": "m8 10 4 4 4-4" }
}
}
}

View file

@ -34,11 +34,11 @@ pub fn Radio(props: RadioProps) -> Element {
"stroke-width": "{stroke_width}",
"stroke-linecap": "round",
"stroke-linejoin": "round",
path { "d": "M4.9 19.1C1 15.2 1 8.8 4.9 4.9" }
path { "d": "M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5" }
path { "d": "M16.247 7.761a6 6 0 0 1 0 8.478" }
path { "d": "M19.075 4.933a10 10 0 0 1 0 14.134" }
path { "d": "M4.925 19.067a10 10 0 0 1 0-14.134" }
path { "d": "M7.753 16.239a6 6 0 0 1 0-8.478" }
circle { "cx": "12", "cy": "12", "r": "2" }
path { "d": "M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5" }
path { "d": "M19.1 4.9C23 8.8 23 15.1 19.1 19" }
}
}
}

View file

@ -34,9 +34,9 @@ pub fn Stamp(props: StampProps) -> Element {
"stroke-width": "{stroke_width}",
"stroke-linecap": "round",
"stroke-linejoin": "round",
path { "d": "M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13" }
path { "d": "M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z" }
path { "d": "M5 22h14" }
path { "d": "M19.27 13.73A2.5 2.5 0 0 0 17.5 13h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1.5c0-.66-.26-1.3-.73-1.77Z" }
path { "d": "M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-3-3c-1.66 0-3 1-3 3s1 2 1 3.5V13" }
}
}
}

View file

@ -0,0 +1,51 @@
use dioxus::prelude::*;
#[derive(Clone, PartialEq, Props)]
pub struct WifiCogProps {
#[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 WifiCog(props: WifiCogProps) -> 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": "m14.305 19.53.923-.382" }
path { "d": "m15.228 16.852-.923-.383" }
path { "d": "m16.852 15.228-.383-.923" }
path { "d": "m16.852 20.772-.383.924" }
path { "d": "m19.148 15.228.383-.923" }
path { "d": "m19.53 21.696-.382-.924" }
path { "d": "M2 7.82a15 15 0 0 1 20 0" }
path { "d": "m20.772 16.852.924-.383" }
path { "d": "m20.772 19.148.924.383" }
path { "d": "M5 11.858a10 10 0 0 1 11.5-1.785" }
path { "d": "M8.5 15.429a5 5 0 0 1 2.413-1.31" }
circle { "cx": "18", "cy": "18", "r": "3" }
}
}
}

View file

@ -4011,6 +4011,8 @@ mod wheat_off;
mod whole_word;
#[cfg(any(feature = "connectivity", feature = "devices"))]
mod wifi;
#[cfg(any(feature = "connectivity", feature = "devices", feature = "files"))]
mod wifi_cog;
#[cfg(any(feature = "connectivity", feature = "devices"))]
mod wifi_high;
#[cfg(any(feature = "connectivity", feature = "devices"))]
@ -8079,6 +8081,8 @@ pub use wheat_off::*;
pub use whole_word::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]
pub use wifi::*;
#[cfg(any(feature = "connectivity", feature = "devices", feature = "files"))]
pub use wifi_cog::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]
pub use wifi_high::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]

View file

@ -29,9 +29,9 @@ pub fn Mic(
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z" />
<path d="M12 19v3" />
<path d="M19 10v2a7 7 0 0 1-14 0v-2" />
<line x1="12" x2="12" y1="19" y2="22" />
<rect x="9" y="2" width="6" height="13" rx="3" />
</svg>
}
}

View file

@ -29,8 +29,8 @@ pub fn Pocket(
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z" />
<polyline points="8 10 12 14 16 10" />
<path d="M20 3a2 2 0 0 1 2 2v6a1 1 0 0 1-20 0V5a2 2 0 0 1 2-2z" />
<path d="m8 10 4 4 4-4" />
</svg>
}
}

View file

@ -29,11 +29,11 @@ pub fn Radio(
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9" />
<path d="M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5" />
<path d="M16.247 7.761a6 6 0 0 1 0 8.478" />
<path d="M19.075 4.933a10 10 0 0 1 0 14.134" />
<path d="M4.925 19.067a10 10 0 0 1 0-14.134" />
<path d="M7.753 16.239a6 6 0 0 1 0-8.478" />
<circle cx="12" cy="12" r="2" />
<path d="M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5" />
<path d="M19.1 4.9C23 8.8 23 15.1 19.1 19" />
</svg>
}
}

View file

@ -29,9 +29,9 @@ pub fn Stamp(
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13" />
<path d="M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z" />
<path d="M5 22h14" />
<path d="M19.27 13.73A2.5 2.5 0 0 0 17.5 13h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1.5c0-.66-.26-1.3-.73-1.77Z" />
<path d="M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-3-3c-1.66 0-3 1-3 3s1 2 1 3.5V13" />
</svg>
}
}

View file

@ -0,0 +1,46 @@
use leptos::{prelude::*, svg::Svg};
#[component]
pub fn WifiCog(
#[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="m14.305 19.53.923-.382" />
<path d="m15.228 16.852-.923-.383" />
<path d="m16.852 15.228-.383-.923" />
<path d="m16.852 20.772-.383.924" />
<path d="m19.148 15.228.383-.923" />
<path d="m19.53 21.696-.382-.924" />
<path d="M2 7.82a15 15 0 0 1 20 0" />
<path d="m20.772 16.852.924-.383" />
<path d="m20.772 19.148.924.383" />
<path d="M5 11.858a10 10 0 0 1 11.5-1.785" />
<path d="M8.5 15.429a5 5 0 0 1 2.413-1.31" />
<circle cx="18" cy="18" r="3" />
</svg>
}
}

View file

@ -4013,6 +4013,8 @@ mod wheat_off;
mod whole_word;
#[cfg(any(feature = "connectivity", feature = "devices"))]
mod wifi;
#[cfg(any(feature = "connectivity", feature = "devices", feature = "files"))]
mod wifi_cog;
#[cfg(any(feature = "connectivity", feature = "devices"))]
mod wifi_high;
#[cfg(any(feature = "connectivity", feature = "devices"))]
@ -8081,6 +8083,8 @@ pub use wheat_off::*;
pub use whole_word::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]
pub use wifi::*;
#[cfg(any(feature = "connectivity", feature = "devices", feature = "files"))]
pub use wifi_cog::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]
pub use wifi_high::*;
#[cfg(any(feature = "connectivity", feature = "devices"))]

View file

@ -41,9 +41,9 @@ pub fn Mic(props: &MicProps) -> Html {
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z" />
<path d="M12 19v3" />
<path d="M19 10v2a7 7 0 0 1-14 0v-2" />
<line x1="12" x2="12" y1="19" y2="22" />
<rect x="9" y="2" width="6" height="13" rx="3" />
</svg>
}
}

View file

@ -41,8 +41,8 @@ pub fn Pocket(props: &PocketProps) -> Html {
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z" />
<polyline points="8 10 12 14 16 10" />
<path d="M20 3a2 2 0 0 1 2 2v6a1 1 0 0 1-20 0V5a2 2 0 0 1 2-2z" />
<path d="m8 10 4 4 4-4" />
</svg>
}
}

View file

@ -41,11 +41,11 @@ pub fn Radio(props: &RadioProps) -> Html {
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9" />
<path d="M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5" />
<path d="M16.247 7.761a6 6 0 0 1 0 8.478" />
<path d="M19.075 4.933a10 10 0 0 1 0 14.134" />
<path d="M4.925 19.067a10 10 0 0 1 0-14.134" />
<path d="M7.753 16.239a6 6 0 0 1 0-8.478" />
<circle cx="12" cy="12" r="2" />
<path d="M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5" />
<path d="M19.1 4.9C23 8.8 23 15.1 19.1 19" />
</svg>
}
}

View file

@ -41,11 +41,11 @@ pub fn Stamp(props: &StampProps) -> Html {
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M5 22h14" />
<path d="M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-6 0c0 2 1 2 1 3.5V13" />
<path
d="M19.27 13.73A2.5 2.5 0 0 0 17.5 13h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1.5c0-.66-.26-1.3-.73-1.77Z"
d="M20 15.5a2.5 2.5 0 0 0-2.5-2.5h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1z"
/>
<path d="M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-3-3c-1.66 0-3 1-3 3s1 2 1 3.5V13" />
<path d="M5 22h14" />
</svg>
}
}

View file

@ -0,0 +1,58 @@
use yew::prelude::*;
#[derive(PartialEq, Properties)]
pub struct WifiCogProps {
#[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 WifiCog(props: &WifiCogProps) -> 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="m14.305 19.53.923-.382" />
<path d="m15.228 16.852-.923-.383" />
<path d="m16.852 15.228-.383-.923" />
<path d="m16.852 20.772-.383.924" />
<path d="m19.148 15.228.383-.923" />
<path d="m19.53 21.696-.382-.924" />
<path d="M2 7.82a15 15 0 0 1 20 0" />
<path d="m20.772 16.852.924-.383" />
<path d="m20.772 19.148.924.383" />
<path d="M5 11.858a10 10 0 0 1 11.5-1.785" />
<path d="M8.5 15.429a5 5 0 0 1 2.413-1.31" />
<circle cx="18" cy="18" r="3" />
</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.515.0";
pub const UPSTREAM_GIT_REF: &str = "0.516.0";
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";