From caf1ced58c1d846bcb7c399668ae62af1e0b3847 Mon Sep 17 00:00:00 2001 From: "rust-for-web[bot]" <191031261+rust-for-web[bot]@users.noreply.github.com> Date: Sun, 3 Aug 2025 12:23:45 +0200 Subject: [PATCH] feat: update to upstream v0.535.0 (#128) Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com> --- book-examples/dioxus/src/icons.rs | 18 ++++++---- book-examples/leptos/src/icons.rs | 3 +- book-examples/yew/src/icons.rs | 3 +- packages/dioxus/src/book_heart.rs | 2 +- packages/dioxus/src/calendar_heart.rs | 7 ++-- packages/dioxus/src/file_heart.rs | 4 +-- packages/dioxus/src/folder_heart.rs | 4 +-- packages/dioxus/src/hand_fist.rs | 43 ++++++++++++++++++++++ packages/dioxus/src/hand_grab.rs | 44 +++++++++++++++++++++++ packages/dioxus/src/hand_heart.rs | 6 ++-- packages/dioxus/src/lib.rs | 22 +++++++++--- packages/dioxus/src/scan_heart.rs | 2 +- packages/leptos/src/book_heart.rs | 2 +- packages/leptos/src/calendar_heart.rs | 7 ++-- packages/leptos/src/file_heart.rs | 4 +-- packages/leptos/src/folder_heart.rs | 4 +-- packages/leptos/src/hand_fist.rs | 38 ++++++++++++++++++++ packages/leptos/src/hand_grab.rs | 39 ++++++++++++++++++++ packages/leptos/src/hand_heart.rs | 6 ++-- packages/leptos/src/lib.rs | 22 +++++++++--- packages/leptos/src/scan_heart.rs | 2 +- packages/yew/src/book_heart.rs | 4 +-- packages/yew/src/calendar_heart.rs | 9 ++--- packages/yew/src/file_heart.rs | 4 +-- packages/yew/src/folder_heart.rs | 4 +-- packages/yew/src/hand_fist.rs | 52 +++++++++++++++++++++++++++ packages/yew/src/hand_grab.rs | 51 ++++++++++++++++++++++++++ packages/yew/src/hand_heart.rs | 6 ++-- packages/yew/src/lib.rs | 22 +++++++++--- packages/yew/src/scan_heart.rs | 6 ++-- scripts/src/lib.rs | 2 +- 31 files changed, 381 insertions(+), 61 deletions(-) create mode 100644 packages/dioxus/src/hand_fist.rs create mode 100644 packages/dioxus/src/hand_grab.rs create mode 100644 packages/leptos/src/hand_fist.rs create mode 100644 packages/leptos/src/hand_grab.rs create mode 100644 packages/yew/src/hand_fist.rs create mode 100644 packages/yew/src/hand_grab.rs diff --git a/book-examples/dioxus/src/icons.rs b/book-examples/dioxus/src/icons.rs index db53d2f..c0de2c0 100644 --- a/book-examples/dioxus/src/icons.rs +++ b/book-examples/dioxus/src/icons.rs @@ -4607,12 +4607,6 @@ pub fn IconsG1() -> Element { }, "Gpu", ), - ( - rsx! { - Grab {} - }, - "Grab", - ), ( rsx! { GraduationCap {} @@ -4736,6 +4730,18 @@ pub fn IconsH1() -> Element { }, "Hand Coins", ), + ( + rsx! { + HandFist {} + }, + "Hand Fist", + ), + ( + rsx! { + HandGrab {} + }, + "Hand Grab", + ), ( rsx! { HandHeart {} diff --git a/book-examples/leptos/src/icons.rs b/book-examples/leptos/src/icons.rs index 74b9f79..3451f0a 100644 --- a/book-examples/leptos/src/icons.rs +++ b/book-examples/leptos/src/icons.rs @@ -930,7 +930,6 @@ pub fn IconsG() -> impl IntoView { (view! { }.into_any(), "Globe Lock"), (view! { }.into_any(), "Goal"), (view! { }.into_any(), "Gpu"), - (view! { }.into_any(), "Grab"), (view! { }.into_any(), "Graduation Cap"), (view! { }.into_any(), "Grape"), (view! { }.into_any(), "Grid 2 X 2"), @@ -966,6 +965,8 @@ pub fn IconsH() -> impl IntoView { (view! { }.into_any(), "Hammer"), (view! { }.into_any(), "Hand"), (view! { }.into_any(), "Hand Coins"), + (view! { }.into_any(), "Hand Fist"), + (view! { }.into_any(), "Hand Grab"), (view! { }.into_any(), "Hand Heart"), (view! { }.into_any(), "Hand Helping"), (view! { }.into_any(), "Hand Metal"), diff --git a/book-examples/yew/src/icons.rs b/book-examples/yew/src/icons.rs index 155cfd2..57051c7 100644 --- a/book-examples/yew/src/icons.rs +++ b/book-examples/yew/src/icons.rs @@ -961,7 +961,6 @@ pub fn IconsG() -> Html { (html! { }, "Globe Lock"), (html! { }, "Goal"), (html! { }, "Gpu"), - (html! { }, "Grab"), (html! { }, "Graduation Cap"), (html! { }, "Grape"), (html! { }, "Grid 2 X 2"), @@ -996,6 +995,8 @@ pub fn IconsH() -> Html { (html! { }, "Hammer"), (html! { }, "Hand"), (html! { }, "Hand Coins"), + (html! { }, "Hand Fist"), + (html! { }, "Hand Grab"), (html! { }, "Hand Heart"), (html! { }, "Hand Helping"), (html! { }, "Hand Metal"), diff --git a/packages/dioxus/src/book_heart.rs b/packages/dioxus/src/book_heart.rs index 3508373..2e55155 100644 --- a/packages/dioxus/src/book_heart.rs +++ b/packages/dioxus/src/book_heart.rs @@ -34,8 +34,8 @@ pub fn BookHeart(props: BookHeartProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M16 8.2A2.22 2.22 0 0 0 13.8 6c-.8 0-1.4.3-1.8.9-.4-.6-1-.9-1.8-.9A2.22 2.22 0 0 0 8 8.2c0 .6.3 1.2.7 1.6A226.652 226.652 0 0 0 12 13a404 404 0 0 0 3.3-3.1 2.413 2.413 0 0 0 .7-1.7" } 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" } + path { "d": "M8.62 9.8A2.25 2.25 0 1 1 12 6.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z" } } } } diff --git a/packages/dioxus/src/calendar_heart.rs b/packages/dioxus/src/calendar_heart.rs index 5a18e5c..5257858 100644 --- a/packages/dioxus/src/calendar_heart.rs +++ b/packages/dioxus/src/calendar_heart.rs @@ -34,10 +34,11 @@ pub fn CalendarHeart(props: CalendarHeartProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M3 10h18V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7" } - path { "d": "M8 2v4" } + path { "d": "M12.127 22H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.125" } + path { "d": "M14.62 18.8A2.25 2.25 0 1 1 18 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z" } path { "d": "M16 2v4" } - path { "d": "M21.29 14.7a2.43 2.43 0 0 0-2.65-.52c-.3.12-.57.3-.8.53l-.34.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L17.5 22l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z" } + path { "d": "M3 10h18" } + path { "d": "M8 2v4" } } } } diff --git a/packages/dioxus/src/file_heart.rs b/packages/dioxus/src/file_heart.rs index 1f04f49..705de8a 100644 --- a/packages/dioxus/src/file_heart.rs +++ b/packages/dioxus/src/file_heart.rs @@ -34,9 +34,9 @@ pub fn FileHeart(props: FileHeartProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2" } path { "d": "M14 2v4a2 2 0 0 0 2 2h4" } - path { "d": "M10.29 10.7a2.43 2.43 0 0 0-2.66-.52c-.29.12-.56.3-.78.53l-.35.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L6.5 18l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z" } + path { "d": "M2.62 13.8A2.25 2.25 0 1 1 6 10.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z" } + path { "d": "M4 6.005V4a2 2 0 0 1 2-2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-1.9-1.376" } } } } diff --git a/packages/dioxus/src/folder_heart.rs b/packages/dioxus/src/folder_heart.rs index 120d4df..fd09b35 100644 --- a/packages/dioxus/src/folder_heart.rs +++ b/packages/dioxus/src/folder_heart.rs @@ -34,8 +34,8 @@ pub fn FolderHeart(props: FolderHeartProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M11 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v1.5" } - path { "d": "M13.9 17.45c-1.2-1.2-1.14-2.8-.2-3.73a2.43 2.43 0 0 1 3.44 0l.36.34.34-.34a2.43 2.43 0 0 1 3.45-.01c.95.95 1 2.53-.2 3.74L17.5 21Z" } + path { "d": "M10.638 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v3.417" } + path { "d": "M14.62 18.8A2.25 2.25 0 1 1 18 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z" } } } } diff --git a/packages/dioxus/src/hand_fist.rs b/packages/dioxus/src/hand_fist.rs new file mode 100644 index 0000000..55e0b83 --- /dev/null +++ b/packages/dioxus/src/hand_fist.rs @@ -0,0 +1,43 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct HandFistProps { + #[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 HandFist(props: HandFistProps) -> 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.035 17.012a3 3 0 0 0-3-3l-.311-.002a.72.72 0 0 1-.505-1.229l1.195-1.195A2 2 0 0 1 10.828 11H12a2 2 0 0 0 0-4H9.243a3 3 0 0 0-2.122.879l-2.707 2.707A4.83 4.83 0 0 0 3 14a8 8 0 0 0 8 8h2a8 8 0 0 0 8-8V7a2 2 0 1 0-4 0v2a2 2 0 1 0 4 0" } + path { "d": "M13.888 9.662A2 2 0 0 0 17 8V5A2 2 0 1 0 13 5" } + path { "d": "M9 5A2 2 0 1 0 5 5V10" } + path { "d": "M9 7V4A2 2 0 1 1 13 4V7.268" } + } + } +} diff --git a/packages/dioxus/src/hand_grab.rs b/packages/dioxus/src/hand_grab.rs new file mode 100644 index 0000000..40481d8 --- /dev/null +++ b/packages/dioxus/src/hand_grab.rs @@ -0,0 +1,44 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct HandGrabProps { + #[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 HandGrab(props: HandGrabProps) -> 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": "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" } + path { "d": "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" } + path { "d": "M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" } + path { "d": "M6 14a2 2 0 0 0-2-2a2 2 0 0 0-2 2" } + path { "d": "M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-4a8 8 0 0 1-8-8 2 2 0 1 1 4 0" } + } + } +} diff --git a/packages/dioxus/src/hand_heart.rs b/packages/dioxus/src/hand_heart.rs index b1e4deb..50f0759 100644 --- a/packages/dioxus/src/hand_heart.rs +++ b/packages/dioxus/src/hand_heart.rs @@ -34,10 +34,10 @@ pub fn HandHeart(props: HandHeartProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M11 14h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16" } - path { "d": "m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9" } + path { "d": "M11 14h2a2 2 0 0 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16" } + path { "d": "m14.45 13.39 5.05-4.694C20.196 8 21 6.85 21 5.75a2.75 2.75 0 0 0-4.797-1.837.276.276 0 0 1-.406 0A2.75 2.75 0 0 0 11 5.75c0 1.2.802 2.248 1.5 2.946L16 11.95" } path { "d": "m2 15 6 6" } - path { "d": "M19.5 8.5c.7-.7 1.5-1.6 1.5-2.7A2.73 2.73 0 0 0 16 4a2.78 2.78 0 0 0-5 1.8c0 1.2.8 2 1.5 2.8L16 12Z" } + path { "d": "m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a1 1 0 0 0-2.75-2.91" } } } } diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs index 029723f..c06c6e5 100644 --- a/packages/dioxus/src/lib.rs +++ b/packages/dioxus/src/lib.rs @@ -1737,8 +1737,6 @@ mod globe_lock; mod goal; #[cfg(any(feature = "devices", feature = "gaming"))] mod gpu; -#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] -mod grab; #[cfg(feature = "buildings")] mod graduation_cap; #[cfg(feature = "food-beverage")] @@ -1785,6 +1783,15 @@ mod hammer; mod hand; #[cfg(any(feature = "finance", feature = "account"))] mod hand_coins; +#[cfg(any( + feature = "social", + feature = "emoji", + feature = "communication", + feature = "sports" +))] +mod hand_fist; +#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] +mod hand_grab; #[cfg(feature = "social")] mod hand_heart; #[cfg(feature = "emoji")] @@ -5861,8 +5868,6 @@ pub use globe_lock::*; pub use goal::*; #[cfg(any(feature = "devices", feature = "gaming"))] pub use gpu::*; -#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] -pub use grab::*; #[cfg(feature = "buildings")] pub use graduation_cap::*; #[cfg(feature = "food-beverage")] @@ -5909,6 +5914,15 @@ pub use hammer::*; pub use hand::*; #[cfg(any(feature = "finance", feature = "account"))] pub use hand_coins::*; +#[cfg(any( + feature = "social", + feature = "emoji", + feature = "communication", + feature = "sports" +))] +pub use hand_fist::*; +#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] +pub use hand_grab::*; #[cfg(feature = "social")] pub use hand_heart::*; #[cfg(feature = "emoji")] diff --git a/packages/dioxus/src/scan_heart.rs b/packages/dioxus/src/scan_heart.rs index fc67198..b503228 100644 --- a/packages/dioxus/src/scan_heart.rs +++ b/packages/dioxus/src/scan_heart.rs @@ -34,11 +34,11 @@ pub fn ScanHeart(props: ScanHeartProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M11.246 16.657a1 1 0 0 0 1.508 0l3.57-4.101A2.75 2.75 0 1 0 12 9.168a2.75 2.75 0 1 0-4.324 3.388z" } path { "d": "M17 3h2a2 2 0 0 1 2 2v2" } path { "d": "M21 17v2a2 2 0 0 1-2 2h-2" } path { "d": "M3 7V5a2 2 0 0 1 2-2h2" } path { "d": "M7 21H5a2 2 0 0 1-2-2v-2" } + path { "d": "M7.828 13.07A3 3 0 0 1 12 8.764a3 3 0 0 1 4.172 4.306l-3.447 3.62a1 1 0 0 1-1.449 0z" } } } } diff --git a/packages/leptos/src/book_heart.rs b/packages/leptos/src/book_heart.rs index fac3fb7..2b55bd4 100644 --- a/packages/leptos/src/book_heart.rs +++ b/packages/leptos/src/book_heart.rs @@ -29,8 +29,8 @@ pub fn BookHeart( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/calendar_heart.rs b/packages/leptos/src/calendar_heart.rs index 9aca0b4..85d3e3e 100644 --- a/packages/leptos/src/calendar_heart.rs +++ b/packages/leptos/src/calendar_heart.rs @@ -29,10 +29,11 @@ pub fn CalendarHeart( stroke-linecap="round" stroke-linejoin="round" > - - + + - + + } } diff --git a/packages/leptos/src/file_heart.rs b/packages/leptos/src/file_heart.rs index 939c1d7..ead5848 100644 --- a/packages/leptos/src/file_heart.rs +++ b/packages/leptos/src/file_heart.rs @@ -29,9 +29,9 @@ pub fn FileHeart( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/folder_heart.rs b/packages/leptos/src/folder_heart.rs index d20cdaf..4c0b34b 100644 --- a/packages/leptos/src/folder_heart.rs +++ b/packages/leptos/src/folder_heart.rs @@ -29,8 +29,8 @@ pub fn FolderHeart( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/hand_fist.rs b/packages/leptos/src/hand_fist.rs new file mode 100644 index 0000000..4834f80 --- /dev/null +++ b/packages/leptos/src/hand_fist.rs @@ -0,0 +1,38 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn HandFist( + #[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, +) -> impl IntoView { + let stroke_width = Signal::derive(move || { + if absolute_stroke_width.get() { + stroke_width.get() * 24 / size.get() + } else { + stroke_width.get() + } + }); + view! { + + + + + + + } +} diff --git a/packages/leptos/src/hand_grab.rs b/packages/leptos/src/hand_grab.rs new file mode 100644 index 0000000..54ba0d8 --- /dev/null +++ b/packages/leptos/src/hand_grab.rs @@ -0,0 +1,39 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn HandGrab( + #[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, +) -> impl IntoView { + let stroke_width = Signal::derive(move || { + if absolute_stroke_width.get() { + stroke_width.get() * 24 / size.get() + } else { + stroke_width.get() + } + }); + view! { + + + + + + + + } +} diff --git a/packages/leptos/src/hand_heart.rs b/packages/leptos/src/hand_heart.rs index ea89695..510f600 100644 --- a/packages/leptos/src/hand_heart.rs +++ b/packages/leptos/src/hand_heart.rs @@ -29,10 +29,10 @@ pub fn HandHeart( stroke-linecap="round" stroke-linejoin="round" > - - + + - + } } diff --git a/packages/leptos/src/lib.rs b/packages/leptos/src/lib.rs index f51c597..1d99043 100644 --- a/packages/leptos/src/lib.rs +++ b/packages/leptos/src/lib.rs @@ -1737,8 +1737,6 @@ mod globe_lock; mod goal; #[cfg(any(feature = "devices", feature = "gaming"))] mod gpu; -#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] -mod grab; #[cfg(feature = "buildings")] mod graduation_cap; #[cfg(feature = "food-beverage")] @@ -1785,6 +1783,15 @@ mod hammer; mod hand; #[cfg(any(feature = "finance", feature = "account"))] mod hand_coins; +#[cfg(any( + feature = "social", + feature = "emoji", + feature = "communication", + feature = "sports" +))] +mod hand_fist; +#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] +mod hand_grab; #[cfg(feature = "social")] mod hand_heart; #[cfg(feature = "emoji")] @@ -5861,8 +5868,6 @@ pub use globe_lock::*; pub use goal::*; #[cfg(any(feature = "devices", feature = "gaming"))] pub use gpu::*; -#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] -pub use grab::*; #[cfg(feature = "buildings")] pub use graduation_cap::*; #[cfg(feature = "food-beverage")] @@ -5909,6 +5914,15 @@ pub use hammer::*; pub use hand::*; #[cfg(any(feature = "finance", feature = "account"))] pub use hand_coins::*; +#[cfg(any( + feature = "social", + feature = "emoji", + feature = "communication", + feature = "sports" +))] +pub use hand_fist::*; +#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] +pub use hand_grab::*; #[cfg(feature = "social")] pub use hand_heart::*; #[cfg(feature = "emoji")] diff --git a/packages/leptos/src/scan_heart.rs b/packages/leptos/src/scan_heart.rs index 8065895..2398929 100644 --- a/packages/leptos/src/scan_heart.rs +++ b/packages/leptos/src/scan_heart.rs @@ -29,11 +29,11 @@ pub fn ScanHeart( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/book_heart.rs b/packages/yew/src/book_heart.rs index 37fc9ff..0d8f813 100644 --- a/packages/yew/src/book_heart.rs +++ b/packages/yew/src/book_heart.rs @@ -42,10 +42,10 @@ pub fn BookHeart(props: &BookHeartProps) -> Html { stroke-linejoin="round" > } diff --git a/packages/yew/src/calendar_heart.rs b/packages/yew/src/calendar_heart.rs index 372e7f4..fc42d7a 100644 --- a/packages/yew/src/calendar_heart.rs +++ b/packages/yew/src/calendar_heart.rs @@ -41,12 +41,13 @@ pub fn CalendarHeart(props: &CalendarHeartProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + + } } diff --git a/packages/yew/src/file_heart.rs b/packages/yew/src/file_heart.rs index ff458af..3f39c8b 100644 --- a/packages/yew/src/file_heart.rs +++ b/packages/yew/src/file_heart.rs @@ -41,11 +41,11 @@ pub fn FileHeart(props: &FileHeartProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/folder_heart.rs b/packages/yew/src/folder_heart.rs index 1ad1cef..9093bc6 100644 --- a/packages/yew/src/folder_heart.rs +++ b/packages/yew/src/folder_heart.rs @@ -42,10 +42,10 @@ pub fn FolderHeart(props: &FolderHeartProps) -> Html { stroke-linejoin="round" > } diff --git a/packages/yew/src/hand_fist.rs b/packages/yew/src/hand_fist.rs new file mode 100644 index 0000000..6180b98 --- /dev/null +++ b/packages/yew/src/hand_fist.rs @@ -0,0 +1,52 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct HandFistProps { + #[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, + #[prop_or_default] + pub node_ref: NodeRef, +} +#[function_component] +pub fn HandFist(props: &HandFistProps) -> Html { + let stroke_width = if props.absolute_stroke_width { + props.stroke_width * 24 / props.size + } else { + props.stroke_width + }; + html! { + + + + + + + } +} diff --git a/packages/yew/src/hand_grab.rs b/packages/yew/src/hand_grab.rs new file mode 100644 index 0000000..051a6ba --- /dev/null +++ b/packages/yew/src/hand_grab.rs @@ -0,0 +1,51 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct HandGrabProps { + #[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, + #[prop_or_default] + pub node_ref: NodeRef, +} +#[function_component] +pub fn HandGrab(props: &HandGrabProps) -> Html { + let stroke_width = if props.absolute_stroke_width { + props.stroke_width * 24 / props.size + } else { + props.stroke_width + }; + html! { + + + + + + + + } +} diff --git a/packages/yew/src/hand_heart.rs b/packages/yew/src/hand_heart.rs index 81e7f2b..c41ac28 100644 --- a/packages/yew/src/hand_heart.rs +++ b/packages/yew/src/hand_heart.rs @@ -41,13 +41,13 @@ pub fn HandHeart(props: &HandHeartProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/yew/src/lib.rs b/packages/yew/src/lib.rs index 32c3b47..993c6f5 100644 --- a/packages/yew/src/lib.rs +++ b/packages/yew/src/lib.rs @@ -1739,8 +1739,6 @@ mod globe_lock; mod goal; #[cfg(any(feature = "devices", feature = "gaming"))] mod gpu; -#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] -mod grab; #[cfg(feature = "buildings")] mod graduation_cap; #[cfg(feature = "food-beverage")] @@ -1787,6 +1785,15 @@ mod hammer; mod hand; #[cfg(any(feature = "finance", feature = "account"))] mod hand_coins; +#[cfg(any( + feature = "social", + feature = "emoji", + feature = "communication", + feature = "sports" +))] +mod hand_fist; +#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] +mod hand_grab; #[cfg(feature = "social")] mod hand_heart; #[cfg(feature = "emoji")] @@ -5863,8 +5870,6 @@ pub use globe_lock::*; pub use goal::*; #[cfg(any(feature = "devices", feature = "gaming"))] pub use gpu::*; -#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] -pub use grab::*; #[cfg(feature = "buildings")] pub use graduation_cap::*; #[cfg(feature = "food-beverage")] @@ -5911,6 +5916,15 @@ pub use hammer::*; pub use hand::*; #[cfg(any(feature = "finance", feature = "account"))] pub use hand_coins::*; +#[cfg(any( + feature = "social", + feature = "emoji", + feature = "communication", + feature = "sports" +))] +pub use hand_fist::*; +#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))] +pub use hand_grab::*; #[cfg(feature = "social")] pub use hand_heart::*; #[cfg(feature = "emoji")] diff --git a/packages/yew/src/scan_heart.rs b/packages/yew/src/scan_heart.rs index eb3ff83..c1f8aad 100644 --- a/packages/yew/src/scan_heart.rs +++ b/packages/yew/src/scan_heart.rs @@ -41,13 +41,13 @@ pub fn ScanHeart(props: &ScanHeartProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/scripts/src/lib.rs b/scripts/src/lib.rs index 6fa44f5..2c44aa6 100644 --- a/scripts/src/lib.rs +++ b/scripts/src/lib.rs @@ -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.534.0"; +pub const UPSTREAM_GIT_REF: &str = "0.535.0"; pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";