From ad771c56c464f1f74717c3d8336a13367aeb3e9d Mon Sep 17 00:00:00 2001 From: "rust-for-web[bot]" <191031261+rust-for-web[bot]@users.noreply.github.com> Date: Sat, 2 Aug 2025 19:41:16 +0200 Subject: [PATCH] feat: update to upstream v0.533.0 (#126) 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 | 1 + book-examples/yew/src/icons.rs | 1 + packages/dioxus/src/a_large_small.rs | 8 ++-- packages/dioxus/src/case_lower.rs | 8 ++-- packages/dioxus/src/case_sensitive.rs | 8 ++-- packages/dioxus/src/case_upper.rs | 6 +-- packages/dioxus/src/closed_caption.rs | 48 +++++++++++++++++++++ packages/dioxus/src/flag_triangle_left.rs | 2 +- packages/dioxus/src/flag_triangle_right.rs | 2 +- packages/dioxus/src/folder_symlink.rs | 2 +- packages/dioxus/src/heart.rs | 2 +- packages/dioxus/src/heart_crack.rs | 4 +- packages/dioxus/src/heart_handshake.rs | 5 +-- packages/dioxus/src/heart_minus.rs | 2 +- packages/dioxus/src/heart_off.rs | 11 ++--- packages/dioxus/src/heart_plus.rs | 2 +- packages/dioxus/src/heart_pulse.rs | 4 +- packages/dioxus/src/lib.rs | 20 +++++---- packages/dioxus/src/sailboat.rs | 6 +-- packages/leptos/src/a_large_small.rs | 8 ++-- packages/leptos/src/case_lower.rs | 8 ++-- packages/leptos/src/case_sensitive.rs | 8 ++-- packages/leptos/src/case_upper.rs | 6 +-- packages/leptos/src/closed_caption.rs | 37 ++++++++++++++++ packages/leptos/src/flag_triangle_left.rs | 2 +- packages/leptos/src/flag_triangle_right.rs | 2 +- packages/leptos/src/folder_symlink.rs | 2 +- packages/leptos/src/heart.rs | 2 +- packages/leptos/src/heart_crack.rs | 4 +- packages/leptos/src/heart_handshake.rs | 5 +-- packages/leptos/src/heart_minus.rs | 2 +- packages/leptos/src/heart_off.rs | 6 +-- packages/leptos/src/heart_plus.rs | 2 +- packages/leptos/src/heart_pulse.rs | 4 +- packages/leptos/src/lib.rs | 20 +++++---- packages/leptos/src/sailboat.rs | 6 +-- packages/yew/src/a_large_small.rs | 8 ++-- packages/yew/src/case_lower.rs | 8 ++-- packages/yew/src/case_sensitive.rs | 8 ++-- packages/yew/src/case_upper.rs | 8 ++-- packages/yew/src/closed_caption.rs | 49 ++++++++++++++++++++++ packages/yew/src/flag_triangle_left.rs | 2 +- packages/yew/src/flag_triangle_right.rs | 2 +- packages/yew/src/folder_symlink.rs | 2 +- packages/yew/src/heart.rs | 2 +- packages/yew/src/heart_crack.rs | 6 ++- packages/yew/src/heart_handshake.rs | 7 +--- packages/yew/src/heart_minus.rs | 2 +- packages/yew/src/heart_off.rs | 8 ++-- packages/yew/src/heart_plus.rs | 2 +- packages/yew/src/heart_pulse.rs | 4 +- packages/yew/src/lib.rs | 20 +++++---- packages/yew/src/sailboat.rs | 8 ++-- scripts/src/lib.rs | 2 +- 55 files changed, 289 insertions(+), 143 deletions(-) create mode 100644 packages/dioxus/src/closed_caption.rs create mode 100644 packages/leptos/src/closed_caption.rs create mode 100644 packages/yew/src/closed_caption.rs diff --git a/book-examples/dioxus/src/icons.rs b/book-examples/dioxus/src/icons.rs index 9736120..db53d2f 100644 --- a/book-examples/dioxus/src/icons.rs +++ b/book-examples/dioxus/src/icons.rs @@ -2621,6 +2621,12 @@ pub fn IconsC2() -> Element { }, "Clock Plus", ), + ( + rsx! { + ClosedCaption {} + }, + "Closed Caption", + ), ( rsx! { Cloud {} @@ -2783,12 +2789,6 @@ pub fn IconsC2() -> Element { }, "Cog", ), - ( - rsx! { - Coins {} - }, - "Coins", - ), ]; rsx! { for (icon , name) in icons { @@ -2804,6 +2804,12 @@ pub fn IconsC2() -> Element { #[component] pub fn IconsC3() -> Element { let icons = [ + ( + rsx! { + Coins {} + }, + "Coins", + ), ( rsx! { Columns2 {} diff --git a/book-examples/leptos/src/icons.rs b/book-examples/leptos/src/icons.rs index 23aa163..74b9f79 100644 --- a/book-examples/leptos/src/icons.rs +++ b/book-examples/leptos/src/icons.rs @@ -540,6 +540,7 @@ pub fn IconsC() -> impl IntoView { (view! { }.into_any(), "Clock Arrow Up"), (view! { }.into_any(), "Clock Fading"), (view! { }.into_any(), "Clock Plus"), + (view! { }.into_any(), "Closed Caption"), (view! { }.into_any(), "Cloud"), (view! { }.into_any(), "Cloud Alert"), (view! { }.into_any(), "Cloud Check"), diff --git a/book-examples/yew/src/icons.rs b/book-examples/yew/src/icons.rs index b71521e..155cfd2 100644 --- a/book-examples/yew/src/icons.rs +++ b/book-examples/yew/src/icons.rs @@ -569,6 +569,7 @@ pub fn IconsC() -> Html { (html! { }, "Clock Arrow Up"), (html! { }, "Clock Fading"), (html! { }, "Clock Plus"), + (html! { }, "Closed Caption"), (html! { }, "Cloud"), (html! { }, "Cloud Alert"), (html! { }, "Cloud Check"), diff --git a/packages/dioxus/src/a_large_small.rs b/packages/dioxus/src/a_large_small.rs index a105fef..6a5abc1 100644 --- a/packages/dioxus/src/a_large_small.rs +++ b/packages/dioxus/src/a_large_small.rs @@ -34,10 +34,10 @@ pub fn ALargeSmall(props: ALargeSmallProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M21 14h-5" } - path { "d": "M16 16v-3.5a2.5 2.5 0 0 1 5 0V16" } - path { "d": "M4.5 13h6" } - path { "d": "m3 16 4.5-9 4.5 9" } + path { "d": "m15 16 2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16" } + path { "d": "M15.697 14h5.606" } + path { "d": "m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16" } + path { "d": "M3.304 13h6.392" } } } } diff --git a/packages/dioxus/src/case_lower.rs b/packages/dioxus/src/case_lower.rs index 80adc1e..ac46fe0 100644 --- a/packages/dioxus/src/case_lower.rs +++ b/packages/dioxus/src/case_lower.rs @@ -34,10 +34,10 @@ pub fn CaseLower(props: CaseLowerProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - circle { "cx": "7", "cy": "12", "r": "3" } - path { "d": "M10 9v6" } - circle { "cx": "17", "cy": "12", "r": "3" } - path { "d": "M14 7v8" } + path { "d": "M10 9v7" } + path { "d": "M14 6v10" } + circle { "cx": "17.5", "cy": "12.5", "r": "3.5" } + circle { "cx": "6.5", "cy": "12.5", "r": "3.5" } } } } diff --git a/packages/dioxus/src/case_sensitive.rs b/packages/dioxus/src/case_sensitive.rs index 5956b5c..9f3136c 100644 --- a/packages/dioxus/src/case_sensitive.rs +++ b/packages/dioxus/src/case_sensitive.rs @@ -34,10 +34,10 @@ pub fn CaseSensitive(props: CaseSensitiveProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "m3 15 4-8 4 8" } - path { "d": "M4 13h6" } - circle { "cx": "18", "cy": "12", "r": "3" } - path { "d": "M21 9v6" } + path { "d": "m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16" } + path { "d": "M22 9v7" } + path { "d": "M3.304 13h6.392" } + circle { "cx": "18.5", "cy": "12.5", "r": "3.5" } } } } diff --git a/packages/dioxus/src/case_upper.rs b/packages/dioxus/src/case_upper.rs index 50949df..da78318 100644 --- a/packages/dioxus/src/case_upper.rs +++ b/packages/dioxus/src/case_upper.rs @@ -34,9 +34,9 @@ pub fn CaseUpper(props: CaseUpperProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "m3 15 4-8 4 8" } - path { "d": "M4 13h6" } - path { "d": "M15 11h4.5a2 2 0 0 1 0 4H15V7h4a2 2 0 0 1 0 4" } + path { "d": "M15 11h4.5a1 1 0 0 1 0 5h-4a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h3a1 1 0 0 1 0 5" } + path { "d": "m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16" } + path { "d": "M3.304 13h6.392" } } } } diff --git a/packages/dioxus/src/closed_caption.rs b/packages/dioxus/src/closed_caption.rs new file mode 100644 index 0000000..3f742d1 --- /dev/null +++ b/packages/dioxus/src/closed_caption.rs @@ -0,0 +1,48 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ClosedCaptionProps { + #[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 ClosedCaption(props: ClosedCaptionProps) -> 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 9.17a3 3 0 1 0 0 5.66" } + path { "d": "M17 9.17a3 3 0 1 0 0 5.66" } + rect { + "x": "2", + "y": "5", + "width": "20", + "height": "14", + "rx": "2", + } + } + } +} diff --git a/packages/dioxus/src/flag_triangle_left.rs b/packages/dioxus/src/flag_triangle_left.rs index ce3729e..b83f800 100644 --- a/packages/dioxus/src/flag_triangle_left.rs +++ b/packages/dioxus/src/flag_triangle_left.rs @@ -34,7 +34,7 @@ pub fn FlagTriangleLeft(props: FlagTriangleLeftProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M17 22V2L7 7l10 5" } + path { "d": "M18 22V2.8a.8.8 0 0 0-1.17-.71L5.45 7.78a.8.8 0 0 0 0 1.44L18 15.5" } } } } diff --git a/packages/dioxus/src/flag_triangle_right.rs b/packages/dioxus/src/flag_triangle_right.rs index a2cf403..3f2d151 100644 --- a/packages/dioxus/src/flag_triangle_right.rs +++ b/packages/dioxus/src/flag_triangle_right.rs @@ -34,7 +34,7 @@ pub fn FlagTriangleRight(props: FlagTriangleRightProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M7 22V2l10 5-10 5" } + path { "d": "M6 22V2.8a.8.8 0 0 1 1.17-.71l11.38 5.69a.8.8 0 0 1 0 1.44L6 15.5" } } } } diff --git a/packages/dioxus/src/folder_symlink.rs b/packages/dioxus/src/folder_symlink.rs index 1ad4af3..8cad074 100644 --- a/packages/dioxus/src/folder_symlink.rs +++ b/packages/dioxus/src/folder_symlink.rs @@ -34,7 +34,7 @@ pub fn FolderSymlink(props: FolderSymlinkProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M2 9V5a2 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 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7" } + path { "d": "M2 9.35V5a2 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 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h7" } path { "d": "m8 16 3-3-3-3" } } } diff --git a/packages/dioxus/src/heart.rs b/packages/dioxus/src/heart.rs index 1403cb1..6bce6fd 100644 --- a/packages/dioxus/src/heart.rs +++ b/packages/dioxus/src/heart.rs @@ -34,7 +34,7 @@ pub fn Heart(props: HeartProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" } + path { "d": "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" } } } } diff --git a/packages/dioxus/src/heart_crack.rs b/packages/dioxus/src/heart_crack.rs index 2eb096d..df92633 100644 --- a/packages/dioxus/src/heart_crack.rs +++ b/packages/dioxus/src/heart_crack.rs @@ -34,8 +34,8 @@ pub fn HeartCrack(props: HeartCrackProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" } - path { "d": "m12 13-1-1 2-2-3-3 2-2" } + path { "d": "M12.409 5.824c-.702.792-1.15 1.496-1.415 2.166l2.153 2.156a.5.5 0 0 1 0 .707l-2.293 2.293a.5.5 0 0 0 0 .707L12 15" } + path { "d": "M13.508 20.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.677.6.6 0 0 0 .818.001A5.5 5.5 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5z" } } } } diff --git a/packages/dioxus/src/heart_handshake.rs b/packages/dioxus/src/heart_handshake.rs index d74f89a..a153e86 100644 --- a/packages/dioxus/src/heart_handshake.rs +++ b/packages/dioxus/src/heart_handshake.rs @@ -34,10 +34,7 @@ pub fn HeartHandshake(props: HeartHandshakeProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" } - path { "d": "M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66" } - path { "d": "m18 15-2-2" } - path { "d": "m15 18-2-2" } + path { "d": "M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762" } } } } diff --git a/packages/dioxus/src/heart_minus.rs b/packages/dioxus/src/heart_minus.rs index fb2878e..28dc7da 100644 --- a/packages/dioxus/src/heart_minus.rs +++ b/packages/dioxus/src/heart_minus.rs @@ -34,7 +34,7 @@ pub fn HeartMinus(props: HeartMinusProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M13.5 19.5 12 21l-7-7c-1.5-1.45-3-3.2-3-5.5A5.5 5.5 0 0 1 7.5 3c1.76 0 3 .5 4.5 2 1.5-1.5 2.74-2 4.5-2a5.5 5.5 0 0 1 5.402 6.5" } + path { "d": "m14.876 18.99-1.368 1.323a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5a5.2 5.2 0 0 1-.244 1.572" } path { "d": "M15 15h6" } } } diff --git a/packages/dioxus/src/heart_off.rs b/packages/dioxus/src/heart_off.rs index dfbb8a3..066fe77 100644 --- a/packages/dioxus/src/heart_off.rs +++ b/packages/dioxus/src/heart_off.rs @@ -34,14 +34,9 @@ pub fn HeartOff(props: HeartOffProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "2", - "y1": "2", - "x2": "22", - "y2": "22", - } - path { "d": "M16.5 16.5 12 21l-7-7c-1.5-1.45-3-3.2-3-5.5a5.5 5.5 0 0 1 2.14-4.35" } - path { "d": "M8.76 3.1c1.15.22 2.13.78 3.24 1.9 1.5-1.5 2.74-2 4.5-2A5.5 5.5 0 0 1 22 8.5c0 2.12-1.3 3.78-2.67 5.17" } + path { "d": "M10.5 4.893a5.5 5.5 0 0 1 1.091.931.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 1.872-1.002 3.356-2.187 4.655" } + path { "d": "m16.967 16.967-3.459 3.346a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 2.747-4.761" } + path { "d": "m2 2 20 20" } } } } diff --git a/packages/dioxus/src/heart_plus.rs b/packages/dioxus/src/heart_plus.rs index 3837568..a054f4a 100644 --- a/packages/dioxus/src/heart_plus.rs +++ b/packages/dioxus/src/heart_plus.rs @@ -34,7 +34,7 @@ pub fn HeartPlus(props: HeartPlusProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M13.5 19.5 12 21l-7-7c-1.5-1.45-3-3.2-3-5.5A5.5 5.5 0 0 1 7.5 3c1.76 0 3 .5 4.5 2 1.5-1.5 2.74-2 4.5-2a5.5 5.5 0 0 1 5.402 6.5" } + path { "d": "m14.479 19.374-.971.939a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5a5.2 5.2 0 0 1-.219 1.49" } path { "d": "M15 15h6" } path { "d": "M18 12v6" } } diff --git a/packages/dioxus/src/heart_pulse.rs b/packages/dioxus/src/heart_pulse.rs index 33ec869..bb35937 100644 --- a/packages/dioxus/src/heart_pulse.rs +++ b/packages/dioxus/src/heart_pulse.rs @@ -34,8 +34,8 @@ pub fn HeartPulse(props: HeartPulseProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z" } - path { "d": "M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27" } + path { "d": "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" } + path { "d": "M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27" } } } } diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs index 43e74a2..029723f 100644 --- a/packages/dioxus/src/lib.rs +++ b/packages/dioxus/src/lib.rs @@ -670,11 +670,11 @@ mod caravan; mod card_sim; #[cfg(feature = "food-beverage")] mod carrot; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] mod case_lower; #[cfg(feature = "text")] mod case_sensitive; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] mod case_upper; #[cfg(any( feature = "connectivity", @@ -976,6 +976,8 @@ mod clock_arrow_up; mod clock_fading; #[cfg(feature = "time")] mod clock_plus; +#[cfg(any(feature = "accessibility", feature = "multimedia"))] +mod closed_caption; #[cfg(feature = "weather")] mod cloud; #[cfg(feature = "development")] @@ -1501,9 +1503,9 @@ mod fish_symbol; mod flag; #[cfg(any(feature = "account", feature = "social"))] mod flag_off; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] mod flag_triangle_left; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] mod flag_triangle_right; #[cfg(any(feature = "weather", feature = "social", feature = "gaming"))] mod flame; @@ -4792,11 +4794,11 @@ pub use caravan::*; pub use card_sim::*; #[cfg(feature = "food-beverage")] pub use carrot::*; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] pub use case_lower::*; #[cfg(feature = "text")] pub use case_sensitive::*; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] pub use case_upper::*; #[cfg(any( feature = "connectivity", @@ -5098,6 +5100,8 @@ pub use clock_arrow_up::*; pub use clock_fading::*; #[cfg(feature = "time")] pub use clock_plus::*; +#[cfg(any(feature = "accessibility", feature = "multimedia"))] +pub use closed_caption::*; #[cfg(feature = "weather")] pub use cloud::*; #[cfg(feature = "development")] @@ -5623,9 +5627,9 @@ pub use fish_symbol::*; pub use flag::*; #[cfg(any(feature = "account", feature = "social"))] pub use flag_off::*; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] pub use flag_triangle_left::*; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] pub use flag_triangle_right::*; #[cfg(any(feature = "weather", feature = "social", feature = "gaming"))] pub use flame::*; diff --git a/packages/dioxus/src/sailboat.rs b/packages/dioxus/src/sailboat.rs index 52e7c2a..9d12bd3 100644 --- a/packages/dioxus/src/sailboat.rs +++ b/packages/dioxus/src/sailboat.rs @@ -34,9 +34,9 @@ pub fn Sailboat(props: SailboatProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M22 18H2a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4Z" } - path { "d": "M21 14 10 2 3 14h18Z" } - path { "d": "M10 2v16" } + path { "d": "M10 2v15" } + path { "d": "M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z" } + path { "d": "M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z" } } } } diff --git a/packages/leptos/src/a_large_small.rs b/packages/leptos/src/a_large_small.rs index 4c71b9f..d14d72d 100644 --- a/packages/leptos/src/a_large_small.rs +++ b/packages/leptos/src/a_large_small.rs @@ -29,10 +29,10 @@ pub fn ALargeSmall( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/leptos/src/case_lower.rs b/packages/leptos/src/case_lower.rs index 9849899..4a7e939 100644 --- a/packages/leptos/src/case_lower.rs +++ b/packages/leptos/src/case_lower.rs @@ -29,10 +29,10 @@ pub fn CaseLower( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/leptos/src/case_sensitive.rs b/packages/leptos/src/case_sensitive.rs index a368927..7d54ba4 100644 --- a/packages/leptos/src/case_sensitive.rs +++ b/packages/leptos/src/case_sensitive.rs @@ -29,10 +29,10 @@ pub fn CaseSensitive( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/leptos/src/case_upper.rs b/packages/leptos/src/case_upper.rs index 0579c71..9123b43 100644 --- a/packages/leptos/src/case_upper.rs +++ b/packages/leptos/src/case_upper.rs @@ -29,9 +29,9 @@ pub fn CaseUpper( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/closed_caption.rs b/packages/leptos/src/closed_caption.rs new file mode 100644 index 0000000..76869b3 --- /dev/null +++ b/packages/leptos/src/closed_caption.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ClosedCaption( + #[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/flag_triangle_left.rs b/packages/leptos/src/flag_triangle_left.rs index abca53b..529b55f 100644 --- a/packages/leptos/src/flag_triangle_left.rs +++ b/packages/leptos/src/flag_triangle_left.rs @@ -29,7 +29,7 @@ pub fn FlagTriangleLeft( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/flag_triangle_right.rs b/packages/leptos/src/flag_triangle_right.rs index bde06ba..11c7a66 100644 --- a/packages/leptos/src/flag_triangle_right.rs +++ b/packages/leptos/src/flag_triangle_right.rs @@ -29,7 +29,7 @@ pub fn FlagTriangleRight( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/folder_symlink.rs b/packages/leptos/src/folder_symlink.rs index bab5752..26ec9ce 100644 --- a/packages/leptos/src/folder_symlink.rs +++ b/packages/leptos/src/folder_symlink.rs @@ -29,7 +29,7 @@ pub fn FolderSymlink( stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/leptos/src/heart.rs b/packages/leptos/src/heart.rs index 8a41e38..89a0c78 100644 --- a/packages/leptos/src/heart.rs +++ b/packages/leptos/src/heart.rs @@ -29,7 +29,7 @@ pub fn Heart( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/heart_crack.rs b/packages/leptos/src/heart_crack.rs index d1870c4..aed7473 100644 --- a/packages/leptos/src/heart_crack.rs +++ b/packages/leptos/src/heart_crack.rs @@ -29,8 +29,8 @@ pub fn HeartCrack( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/heart_handshake.rs b/packages/leptos/src/heart_handshake.rs index 93c409a..97e162d 100644 --- a/packages/leptos/src/heart_handshake.rs +++ b/packages/leptos/src/heart_handshake.rs @@ -29,10 +29,7 @@ pub fn HeartHandshake( stroke-linecap="round" stroke-linejoin="round" > - - - - + } } diff --git a/packages/leptos/src/heart_minus.rs b/packages/leptos/src/heart_minus.rs index d3316f8..d3edb2e 100644 --- a/packages/leptos/src/heart_minus.rs +++ b/packages/leptos/src/heart_minus.rs @@ -29,7 +29,7 @@ pub fn HeartMinus( stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/leptos/src/heart_off.rs b/packages/leptos/src/heart_off.rs index 140fa2f..7b0efb1 100644 --- a/packages/leptos/src/heart_off.rs +++ b/packages/leptos/src/heart_off.rs @@ -29,9 +29,9 @@ pub fn HeartOff( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/heart_plus.rs b/packages/leptos/src/heart_plus.rs index 804a225..93a1cfd 100644 --- a/packages/leptos/src/heart_plus.rs +++ b/packages/leptos/src/heart_plus.rs @@ -29,7 +29,7 @@ pub fn HeartPlus( stroke-linecap="round" stroke-linejoin="round" > - + diff --git a/packages/leptos/src/heart_pulse.rs b/packages/leptos/src/heart_pulse.rs index 8d50c34..3943bed 100644 --- a/packages/leptos/src/heart_pulse.rs +++ b/packages/leptos/src/heart_pulse.rs @@ -29,8 +29,8 @@ pub fn HeartPulse( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/lib.rs b/packages/leptos/src/lib.rs index 2809976..f51c597 100644 --- a/packages/leptos/src/lib.rs +++ b/packages/leptos/src/lib.rs @@ -670,11 +670,11 @@ mod caravan; mod card_sim; #[cfg(feature = "food-beverage")] mod carrot; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] mod case_lower; #[cfg(feature = "text")] mod case_sensitive; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] mod case_upper; #[cfg(any( feature = "connectivity", @@ -976,6 +976,8 @@ mod clock_arrow_up; mod clock_fading; #[cfg(feature = "time")] mod clock_plus; +#[cfg(any(feature = "accessibility", feature = "multimedia"))] +mod closed_caption; #[cfg(feature = "weather")] mod cloud; #[cfg(feature = "development")] @@ -1501,9 +1503,9 @@ mod fish_symbol; mod flag; #[cfg(any(feature = "account", feature = "social"))] mod flag_off; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] mod flag_triangle_left; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] mod flag_triangle_right; #[cfg(any(feature = "weather", feature = "social", feature = "gaming"))] mod flame; @@ -4792,11 +4794,11 @@ pub use caravan::*; pub use card_sim::*; #[cfg(feature = "food-beverage")] pub use carrot::*; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] pub use case_lower::*; #[cfg(feature = "text")] pub use case_sensitive::*; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] pub use case_upper::*; #[cfg(any( feature = "connectivity", @@ -5098,6 +5100,8 @@ pub use clock_arrow_up::*; pub use clock_fading::*; #[cfg(feature = "time")] pub use clock_plus::*; +#[cfg(any(feature = "accessibility", feature = "multimedia"))] +pub use closed_caption::*; #[cfg(feature = "weather")] pub use cloud::*; #[cfg(feature = "development")] @@ -5623,9 +5627,9 @@ pub use fish_symbol::*; pub use flag::*; #[cfg(any(feature = "account", feature = "social"))] pub use flag_off::*; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] pub use flag_triangle_left::*; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] pub use flag_triangle_right::*; #[cfg(any(feature = "weather", feature = "social", feature = "gaming"))] pub use flame::*; diff --git a/packages/leptos/src/sailboat.rs b/packages/leptos/src/sailboat.rs index 222ba70..c968bed 100644 --- a/packages/leptos/src/sailboat.rs +++ b/packages/leptos/src/sailboat.rs @@ -29,9 +29,9 @@ pub fn Sailboat( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/a_large_small.rs b/packages/yew/src/a_large_small.rs index 9a8fa3d..96dbb48 100644 --- a/packages/yew/src/a_large_small.rs +++ b/packages/yew/src/a_large_small.rs @@ -41,10 +41,10 @@ pub fn ALargeSmall(props: &ALargeSmallProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/yew/src/case_lower.rs b/packages/yew/src/case_lower.rs index 254fcd4..1672826 100644 --- a/packages/yew/src/case_lower.rs +++ b/packages/yew/src/case_lower.rs @@ -41,10 +41,10 @@ pub fn CaseLower(props: &CaseLowerProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/yew/src/case_sensitive.rs b/packages/yew/src/case_sensitive.rs index af7b45d..0e5c3e8 100644 --- a/packages/yew/src/case_sensitive.rs +++ b/packages/yew/src/case_sensitive.rs @@ -41,10 +41,10 @@ pub fn CaseSensitive(props: &CaseSensitiveProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/yew/src/case_upper.rs b/packages/yew/src/case_upper.rs index ac45bf9..4e4b91f 100644 --- a/packages/yew/src/case_upper.rs +++ b/packages/yew/src/case_upper.rs @@ -41,9 +41,11 @@ pub fn CaseUpper(props: &CaseUpperProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/closed_caption.rs b/packages/yew/src/closed_caption.rs new file mode 100644 index 0000000..2954d40 --- /dev/null +++ b/packages/yew/src/closed_caption.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ClosedCaptionProps { + #[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 ClosedCaption(props: &ClosedCaptionProps) -> 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/flag_triangle_left.rs b/packages/yew/src/flag_triangle_left.rs index 950be84..c33d7f1 100644 --- a/packages/yew/src/flag_triangle_left.rs +++ b/packages/yew/src/flag_triangle_left.rs @@ -41,7 +41,7 @@ pub fn FlagTriangleLeft(props: &FlagTriangleLeftProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/flag_triangle_right.rs b/packages/yew/src/flag_triangle_right.rs index ae90936..9034f7b 100644 --- a/packages/yew/src/flag_triangle_right.rs +++ b/packages/yew/src/flag_triangle_right.rs @@ -41,7 +41,7 @@ pub fn FlagTriangleRight(props: &FlagTriangleRightProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/folder_symlink.rs b/packages/yew/src/folder_symlink.rs index 32c8d75..ffe52c2 100644 --- a/packages/yew/src/folder_symlink.rs +++ b/packages/yew/src/folder_symlink.rs @@ -42,7 +42,7 @@ pub fn FolderSymlink(props: &FolderSymlinkProps) -> Html { stroke-linejoin="round" > diff --git a/packages/yew/src/heart.rs b/packages/yew/src/heart.rs index 5e9354b..459eba7 100644 --- a/packages/yew/src/heart.rs +++ b/packages/yew/src/heart.rs @@ -42,7 +42,7 @@ pub fn Heart(props: &HeartProps) -> Html { stroke-linejoin="round" > } diff --git a/packages/yew/src/heart_crack.rs b/packages/yew/src/heart_crack.rs index cd094af..2015522 100644 --- a/packages/yew/src/heart_crack.rs +++ b/packages/yew/src/heart_crack.rs @@ -42,9 +42,11 @@ pub fn HeartCrack(props: &HeartCrackProps) -> Html { stroke-linejoin="round" > + - } } diff --git a/packages/yew/src/heart_handshake.rs b/packages/yew/src/heart_handshake.rs index 3e56bed..9e4f6a4 100644 --- a/packages/yew/src/heart_handshake.rs +++ b/packages/yew/src/heart_handshake.rs @@ -42,13 +42,8 @@ pub fn HeartHandshake(props: &HeartHandshakeProps) -> Html { stroke-linejoin="round" > - - - } } diff --git a/packages/yew/src/heart_minus.rs b/packages/yew/src/heart_minus.rs index 21516b9..18e5da4 100644 --- a/packages/yew/src/heart_minus.rs +++ b/packages/yew/src/heart_minus.rs @@ -42,7 +42,7 @@ pub fn HeartMinus(props: &HeartMinusProps) -> Html { stroke-linejoin="round" > diff --git a/packages/yew/src/heart_off.rs b/packages/yew/src/heart_off.rs index 72c3236..f8e7bef 100644 --- a/packages/yew/src/heart_off.rs +++ b/packages/yew/src/heart_off.rs @@ -41,11 +41,13 @@ pub fn HeartOff(props: &HeartOffProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/heart_plus.rs b/packages/yew/src/heart_plus.rs index 4d1dcf4..a45aed8 100644 --- a/packages/yew/src/heart_plus.rs +++ b/packages/yew/src/heart_plus.rs @@ -42,7 +42,7 @@ pub fn HeartPlus(props: &HeartPlusProps) -> Html { stroke-linejoin="round" > diff --git a/packages/yew/src/heart_pulse.rs b/packages/yew/src/heart_pulse.rs index 05c8703..529a624 100644 --- a/packages/yew/src/heart_pulse.rs +++ b/packages/yew/src/heart_pulse.rs @@ -42,9 +42,9 @@ pub fn HeartPulse(props: &HeartPulseProps) -> Html { stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/lib.rs b/packages/yew/src/lib.rs index 17a3711..32c3b47 100644 --- a/packages/yew/src/lib.rs +++ b/packages/yew/src/lib.rs @@ -672,11 +672,11 @@ mod caravan; mod card_sim; #[cfg(feature = "food-beverage")] mod carrot; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] mod case_lower; #[cfg(feature = "text")] mod case_sensitive; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] mod case_upper; #[cfg(any( feature = "connectivity", @@ -978,6 +978,8 @@ mod clock_arrow_up; mod clock_fading; #[cfg(feature = "time")] mod clock_plus; +#[cfg(any(feature = "accessibility", feature = "multimedia"))] +mod closed_caption; #[cfg(feature = "weather")] mod cloud; #[cfg(feature = "development")] @@ -1503,9 +1505,9 @@ mod fish_symbol; mod flag; #[cfg(any(feature = "account", feature = "social"))] mod flag_off; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] mod flag_triangle_left; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] mod flag_triangle_right; #[cfg(any(feature = "weather", feature = "social", feature = "gaming"))] mod flame; @@ -4794,11 +4796,11 @@ pub use caravan::*; pub use card_sim::*; #[cfg(feature = "food-beverage")] pub use carrot::*; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] pub use case_lower::*; #[cfg(feature = "text")] pub use case_sensitive::*; -#[cfg(feature = "text")] +#[cfg(any(feature = "text", feature = "development"))] pub use case_upper::*; #[cfg(any( feature = "connectivity", @@ -5100,6 +5102,8 @@ pub use clock_arrow_up::*; pub use clock_fading::*; #[cfg(feature = "time")] pub use clock_plus::*; +#[cfg(any(feature = "accessibility", feature = "multimedia"))] +pub use closed_caption::*; #[cfg(feature = "weather")] pub use cloud::*; #[cfg(feature = "development")] @@ -5625,9 +5629,9 @@ pub use fish_symbol::*; pub use flag::*; #[cfg(any(feature = "account", feature = "social"))] pub use flag_off::*; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] pub use flag_triangle_left::*; -#[cfg(feature = "development")] +#[cfg(any(feature = "development", feature = "navigation"))] pub use flag_triangle_right::*; #[cfg(any(feature = "weather", feature = "social", feature = "gaming"))] pub use flame::*; diff --git a/packages/yew/src/sailboat.rs b/packages/yew/src/sailboat.rs index 15574e8..882d18c 100644 --- a/packages/yew/src/sailboat.rs +++ b/packages/yew/src/sailboat.rs @@ -41,9 +41,11 @@ pub fn Sailboat(props: &SailboatProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/scripts/src/lib.rs b/scripts/src/lib.rs index 4c58066..5dc30ec 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.532.0"; +pub const UPSTREAM_GIT_REF: &str = "0.533.0"; pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";