From 36250ce306ad5881a57920fdeecf7fa2d22450a0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Jun 2025 06:05:16 +0000 Subject: [PATCH] feat: update to upstream v0.518.0 (#95) Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com> --- book-examples/dioxus/src/icons.rs | 46 +++++++++------- book-examples/leptos/src/icons.rs | 16 ++++-- book-examples/yew/src/icons.rs | 15 ++--- packages/dioxus/src/badge_question_mark.rs | 47 ++++++++++++++++ packages/dioxus/src/circle_question_mark.rs | 42 ++++++++++++++ packages/dioxus/src/drone.rs | 54 ++++++++++++++++++ packages/dioxus/src/egg.rs | 2 +- packages/dioxus/src/egg_off.rs | 11 +--- packages/dioxus/src/file_question_mark.rs | 42 ++++++++++++++ packages/dioxus/src/lib.rs | 36 ++++++------ packages/dioxus/src/mail_question_mark.rs | 43 +++++++++++++++ .../src/message_circle_question_mark.rs | 42 ++++++++++++++ packages/dioxus/src/shield_question_mark.rs | 42 ++++++++++++++ packages/leptos/src/badge_question_mark.rs | 37 +++++++++++++ packages/leptos/src/circle_question_mark.rs | 37 +++++++++++++ packages/leptos/src/drone.rs | 43 +++++++++++++++ packages/leptos/src/egg.rs | 2 +- packages/leptos/src/egg_off.rs | 6 +- packages/leptos/src/file_question_mark.rs | 37 +++++++++++++ packages/leptos/src/lib.rs | 36 ++++++------ packages/leptos/src/mail_question_mark.rs | 38 +++++++++++++ .../src/message_circle_question_mark.rs | 37 +++++++++++++ packages/leptos/src/shield_question_mark.rs | 37 +++++++++++++ packages/yew/src/badge_question_mark.rs | 51 +++++++++++++++++ packages/yew/src/circle_question_mark.rs | 49 +++++++++++++++++ packages/yew/src/drone.rs | 55 +++++++++++++++++++ packages/yew/src/egg.rs | 4 +- packages/yew/src/egg_off.rs | 10 +--- packages/yew/src/file_question_mark.rs | 49 +++++++++++++++++ packages/yew/src/lib.rs | 36 ++++++------ packages/yew/src/mail_question_mark.rs | 50 +++++++++++++++++ .../yew/src/message_circle_question_mark.rs | 49 +++++++++++++++++ packages/yew/src/shield_question_mark.rs | 51 +++++++++++++++++ scripts/src/lib.rs | 2 +- 34 files changed, 1049 insertions(+), 105 deletions(-) create mode 100644 packages/dioxus/src/badge_question_mark.rs create mode 100644 packages/dioxus/src/circle_question_mark.rs create mode 100644 packages/dioxus/src/drone.rs create mode 100644 packages/dioxus/src/file_question_mark.rs create mode 100644 packages/dioxus/src/mail_question_mark.rs create mode 100644 packages/dioxus/src/message_circle_question_mark.rs create mode 100644 packages/dioxus/src/shield_question_mark.rs create mode 100644 packages/leptos/src/badge_question_mark.rs create mode 100644 packages/leptos/src/circle_question_mark.rs create mode 100644 packages/leptos/src/drone.rs create mode 100644 packages/leptos/src/file_question_mark.rs create mode 100644 packages/leptos/src/mail_question_mark.rs create mode 100644 packages/leptos/src/message_circle_question_mark.rs create mode 100644 packages/leptos/src/shield_question_mark.rs create mode 100644 packages/yew/src/badge_question_mark.rs create mode 100644 packages/yew/src/circle_question_mark.rs create mode 100644 packages/yew/src/drone.rs create mode 100644 packages/yew/src/file_question_mark.rs create mode 100644 packages/yew/src/mail_question_mark.rs create mode 100644 packages/yew/src/message_circle_question_mark.rs create mode 100644 packages/yew/src/shield_question_mark.rs diff --git a/book-examples/dioxus/src/icons.rs b/book-examples/dioxus/src/icons.rs index c8f8d1f..a3a44a5 100644 --- a/book-examples/dioxus/src/icons.rs +++ b/book-examples/dioxus/src/icons.rs @@ -770,12 +770,6 @@ pub fn IconsB1() -> Element { }, "Badge Euro", ), - ( - rsx! { - BadgeHelp {} - }, - "Badge Help", - ), ( rsx! { BadgeIndianRupee {} @@ -818,6 +812,12 @@ pub fn IconsB1() -> Element { }, "Badge Pound Sterling", ), + ( + rsx! { + BadgeQuestionMark {} + }, + "Badge Question Mark", + ), ( rsx! { BadgeRussianRuble {} @@ -2303,12 +2303,6 @@ pub fn IconsC2() -> Element { }, "Circle Gauge", ), - ( - rsx! { - CircleHelp {} - }, - "Circle Help", - ), ( rsx! { CircleMinus {} @@ -2369,6 +2363,12 @@ pub fn IconsC2() -> Element { }, "Circle Power", ), + ( + rsx! { + CircleQuestionMark {} + }, + "Circle Question Mark", + ), ( rsx! { CircleSlash {} @@ -3323,6 +3323,12 @@ pub fn IconsD1() -> Element { }, "Drill", ), + ( + rsx! { + Drone {} + }, + "Drone", + ), ( rsx! { Droplet {} @@ -3793,9 +3799,9 @@ pub fn IconsF1() -> Element { ), ( rsx! { - FileQuestion {} + FileQuestionMark {} }, - "File Question", + "File Question Mark", ), ( rsx! { @@ -5689,9 +5695,9 @@ pub fn IconsM1() -> Element { ), ( rsx! { - MailQuestion {} + MailQuestionMark {} }, - "Mail Question", + "Mail Question Mark", ), ( rsx! { @@ -5923,9 +5929,9 @@ pub fn IconsM1() -> Element { ), ( rsx! { - MessageCircleQuestion {} + MessageCircleQuestionMark {} }, - "Message Circle Question", + "Message Circle Question Mark", ), ( rsx! { @@ -7972,9 +7978,9 @@ pub fn IconsS1() -> Element { ), ( rsx! { - ShieldQuestion {} + ShieldQuestionMark {} }, - "Shield Question", + "Shield Question Mark", ), ( rsx! { diff --git a/book-examples/leptos/src/icons.rs b/book-examples/leptos/src/icons.rs index 1f8310b..477ee29 100644 --- a/book-examples/leptos/src/icons.rs +++ b/book-examples/leptos/src/icons.rs @@ -213,7 +213,6 @@ pub fn IconsB() -> impl IntoView { (view! { }.into_any(), "Badge Check"), (view! { }.into_any(), "Badge Dollar Sign"), (view! { }.into_any(), "Badge Euro"), - (view! { }.into_any(), "Badge Help"), (view! { }.into_any(), "Badge Indian Rupee"), (view! { }.into_any(), "Badge Info"), (view! { }.into_any(), "Badge Japanese Yen"), @@ -221,6 +220,7 @@ pub fn IconsB() -> impl IntoView { (view! { }.into_any(), "Badge Percent"), (view! { }.into_any(), "Badge Plus"), (view! { }.into_any(), "Badge Pound Sterling"), + (view! { }.into_any(), "Badge Question Mark"), (view! { }.into_any(), "Badge Russian Ruble"), (view! { }.into_any(), "Badge Swiss Franc"), (view! { }.into_any(), "Badge X"), @@ -487,7 +487,6 @@ pub fn IconsC() -> impl IntoView { (view! { }.into_any(), "Circle Fading Arrow Up"), (view! { }.into_any(), "Circle Fading Plus"), (view! { }.into_any(), "Circle Gauge"), - (view! { }.into_any(), "Circle Help"), (view! { }.into_any(), "Circle Minus"), (view! { }.into_any(), "Circle Off"), (view! { }.into_any(), "Circle Parking"), @@ -498,6 +497,7 @@ pub fn IconsC() -> impl IntoView { (view! { }.into_any(), "Circle Plus"), (view! { }.into_any(), "Circle Pound Sterling"), (view! { }.into_any(), "Circle Power"), + (view! { }.into_any(), "Circle Question Mark"), (view! { }.into_any(), "Circle Slash"), (view! { }.into_any(), "Circle Slash 2"), (view! { }.into_any(), "Circle Small"), @@ -669,6 +669,7 @@ pub fn IconsD() -> impl IntoView { (view! { }.into_any(), "Drama"), (view! { }.into_any(), "Dribbble"), (view! { }.into_any(), "Drill"), + (view! { }.into_any(), "Drone"), (view! { }.into_any(), "Droplet"), (view! { }.into_any(), "Droplet Off"), (view! { }.into_any(), "Droplets"), @@ -779,7 +780,7 @@ pub fn IconsF() -> impl IntoView { (view! { }.into_any(), "File Pen Line"), (view! { }.into_any(), "File Plus"), (view! { }.into_any(), "File Plus 2"), - (view! { }.into_any(), "File Question"), + (view! { }.into_any(), "File Question Mark"), (view! { }.into_any(), "File Scan"), (view! { }.into_any(), "File Search"), (view! { }.into_any(), "File Search 2"), @@ -1197,7 +1198,7 @@ pub fn IconsM() -> impl IntoView { (view! { }.into_any(), "Mail Minus"), (view! { }.into_any(), "Mail Open"), (view! { }.into_any(), "Mail Plus"), - (view! { }.into_any(), "Mail Question"), + (view! { }.into_any(), "Mail Question Mark"), (view! { }.into_any(), "Mail Search"), (view! { }.into_any(), "Mail Warning"), (view! { }.into_any(), "Mail X"), @@ -1236,7 +1237,10 @@ pub fn IconsM() -> impl IntoView { (view! { }.into_any(), "Message Circle More"), (view! { }.into_any(), "Message Circle Off"), (view! { }.into_any(), "Message Circle Plus"), - (view! { }.into_any(), "Message Circle Question"), + ( + view! { }.into_any(), + "Message Circle Question Mark", + ), (view! { }.into_any(), "Message Circle Reply"), (view! { }.into_any(), "Message Circle Warning"), (view! { }.into_any(), "Message Circle X"), @@ -1662,7 +1666,7 @@ pub fn IconsS() -> impl IntoView { (view! { }.into_any(), "Shield Minus"), (view! { }.into_any(), "Shield Off"), (view! { }.into_any(), "Shield Plus"), - (view! { }.into_any(), "Shield Question"), + (view! { }.into_any(), "Shield Question Mark"), (view! { }.into_any(), "Shield User"), (view! { }.into_any(), "Shield X"), (view! { }.into_any(), "Ship"), diff --git a/book-examples/yew/src/icons.rs b/book-examples/yew/src/icons.rs index 8634ba7..76ab56c 100644 --- a/book-examples/yew/src/icons.rs +++ b/book-examples/yew/src/icons.rs @@ -219,7 +219,6 @@ pub fn IconsB() -> Html { (html! { }, "Badge Check"), (html! { }, "Badge Dollar Sign"), (html! { }, "Badge Euro"), - (html! { }, "Badge Help"), (html! { }, "Badge Indian Rupee"), (html! { }, "Badge Info"), (html! { }, "Badge Japanese Yen"), @@ -227,6 +226,7 @@ pub fn IconsB() -> Html { (html! { }, "Badge Percent"), (html! { }, "Badge Plus"), (html! { }, "Badge Pound Sterling"), + (html! { }, "Badge Question Mark"), (html! { }, "Badge Russian Ruble"), (html! { }, "Badge Swiss Franc"), (html! { }, "Badge X"), @@ -516,7 +516,6 @@ pub fn IconsC() -> Html { (html! { }, "Circle Fading Arrow Up"), (html! { }, "Circle Fading Plus"), (html! { }, "Circle Gauge"), - (html! { }, "Circle Help"), (html! { }, "Circle Minus"), (html! { }, "Circle Off"), (html! { }, "Circle Parking"), @@ -527,6 +526,7 @@ pub fn IconsC() -> Html { (html! { }, "Circle Plus"), (html! { }, "Circle Pound Sterling"), (html! { }, "Circle Power"), + (html! { }, "Circle Question Mark"), (html! { }, "Circle Slash"), (html! { }, "Circle Slash 2"), (html! { }, "Circle Small"), @@ -697,6 +697,7 @@ pub fn IconsD() -> Html { (html! { }, "Drama"), (html! { }, "Dribbble"), (html! { }, "Drill"), + (html! { }, "Drone"), (html! { }, "Droplet"), (html! { }, "Droplet Off"), (html! { }, "Droplets"), @@ -805,7 +806,7 @@ pub fn IconsF() -> Html { (html! { }, "File Pen Line"), (html! { }, "File Plus"), (html! { }, "File Plus 2"), - (html! { }, "File Question"), + (html! { }, "File Question Mark"), (html! { }, "File Scan"), (html! { }, "File Search"), (html! { }, "File Search 2"), @@ -1222,7 +1223,7 @@ pub fn IconsM() -> Html { (html! { }, "Mail Minus"), (html! { }, "Mail Open"), (html! { }, "Mail Plus"), - (html! { }, "Mail Question"), + (html! { }, "Mail Question Mark"), (html! { }, "Mail Search"), (html! { }, "Mail Warning"), (html! { }, "Mail X"), @@ -1262,8 +1263,8 @@ pub fn IconsM() -> Html { (html! { }, "Message Circle Off"), (html! { }, "Message Circle Plus"), ( - html! { }, - "Message Circle Question", + html! { }, + "Message Circle Question Mark", ), (html! { }, "Message Circle Reply"), (html! { }, "Message Circle Warning"), @@ -1684,7 +1685,7 @@ pub fn IconsS() -> Html { (html! { }, "Shield Minus"), (html! { }, "Shield Off"), (html! { }, "Shield Plus"), - (html! { }, "Shield Question"), + (html! { }, "Shield Question Mark"), (html! { }, "Shield User"), (html! { }, "Shield X"), (html! { }, "Ship"), diff --git a/packages/dioxus/src/badge_question_mark.rs b/packages/dioxus/src/badge_question_mark.rs new file mode 100644 index 0000000..66bf653 --- /dev/null +++ b/packages/dioxus/src/badge_question_mark.rs @@ -0,0 +1,47 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct BadgeQuestionMarkProps { + #[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 BadgeQuestionMark(props: BadgeQuestionMarkProps) -> 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": "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" } + path { "d": "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" } + line { + "x1": "12", + "x2": "12.01", + "y1": "17", + "y2": "17", + } + } + } +} diff --git a/packages/dioxus/src/circle_question_mark.rs b/packages/dioxus/src/circle_question_mark.rs new file mode 100644 index 0000000..e1d73a2 --- /dev/null +++ b/packages/dioxus/src/circle_question_mark.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct CircleQuestionMarkProps { + #[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 CircleQuestionMark(props: CircleQuestionMarkProps) -> 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", + circle { "cx": "12", "cy": "12", "r": "10" } + path { "d": "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" } + path { "d": "M12 17h.01" } + } + } +} diff --git a/packages/dioxus/src/drone.rs b/packages/dioxus/src/drone.rs new file mode 100644 index 0000000..e488b1d --- /dev/null +++ b/packages/dioxus/src/drone.rs @@ -0,0 +1,54 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct DroneProps { + #[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 Drone(props: DroneProps) -> 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 10 7 7" } + path { "d": "m10 14-3 3" } + path { "d": "m14 10 3-3" } + path { "d": "m14 14 3 3" } + path { "d": "M14.205 4.139a4 4 0 1 1 5.439 5.863" } + path { "d": "M19.637 14a4 4 0 1 1-5.432 5.868" } + path { "d": "M4.367 10a4 4 0 1 1 5.438-5.862" } + path { "d": "M9.795 19.862a4 4 0 1 1-5.429-5.873" } + rect { + "x": "10", + "y": "8", + "width": "4", + "height": "8", + "rx": "1", + } + } + } +} diff --git a/packages/dioxus/src/egg.rs b/packages/dioxus/src/egg.rs index 866e909..c4c8203 100644 --- a/packages/dioxus/src/egg.rs +++ b/packages/dioxus/src/egg.rs @@ -34,7 +34,7 @@ pub fn Egg(props: EggProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M12 22c6.23-.05 7.87-5.57 7.5-10-.36-4.34-3.95-9.96-7.5-10-3.55.04-7.14 5.66-7.5 10-.37 4.43 1.27 9.95 7.5 10z" } + path { "d": "M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12" } } } } diff --git a/packages/dioxus/src/egg_off.rs b/packages/dioxus/src/egg_off.rs index dff8a7c..7728d59 100644 --- a/packages/dioxus/src/egg_off.rs +++ b/packages/dioxus/src/egg_off.rs @@ -34,14 +34,9 @@ pub fn EggOff(props: EggOffProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M6.399 6.399C5.362 8.157 4.65 10.189 4.5 12c-.37 4.43 1.27 9.95 7.5 10 3.256-.026 5.259-1.547 6.375-3.625" } - path { "d": "M19.532 13.875A14.07 14.07 0 0 0 19.5 12c-.36-4.34-3.95-9.96-7.5-10-1.04.012-2.082.502-3.046 1.297" } - line { - "x1": "2", - "x2": "22", - "y1": "2", - "y2": "22", - } + path { "d": "m2 2 20 20" } + path { "d": "M20 14.347V14c0-6-4-12-8-12-1.078 0-2.157.436-3.157 1.19" } + path { "d": "M6.206 6.21C4.871 8.4 4 11.2 4 14a8 8 0 0 0 14.568 4.568" } } } } diff --git a/packages/dioxus/src/file_question_mark.rs b/packages/dioxus/src/file_question_mark.rs new file mode 100644 index 0000000..8fdc7a8 --- /dev/null +++ b/packages/dioxus/src/file_question_mark.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct FileQuestionMarkProps { + #[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 FileQuestionMark(props: FileQuestionMarkProps) -> 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 17h.01" } + path { "d": "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z" } + path { "d": "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3" } + } + } +} diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs index 47c4b41..996d710 100644 --- a/packages/dioxus/src/lib.rs +++ b/packages/dioxus/src/lib.rs @@ -284,8 +284,6 @@ mod badge_check; mod badge_dollar_sign; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_euro; -#[cfg(any(feature = "accessibility", feature = "social"))] -mod badge_help; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_indian_rupee; #[cfg(any(feature = "account", feature = "accessibility", feature = "social"))] @@ -305,6 +303,8 @@ mod badge_percent; mod badge_plus; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_pound_sterling; +#[cfg(any(feature = "accessibility", feature = "social", feature = "shapes"))] +mod badge_question_mark; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_russian_ruble; #[cfg(any(feature = "shopping", feature = "finance"))] @@ -860,8 +860,6 @@ mod circle_fading_arrow_up; mod circle_fading_plus; #[cfg(any(feature = "transportation", feature = "sports", feature = "science"))] mod circle_gauge; -#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] -mod circle_help; #[cfg(feature = "math")] mod circle_minus; #[cfg(feature = "shapes")] @@ -892,6 +890,8 @@ mod circle_plus; mod circle_pound_sterling; #[cfg(feature = "connectivity")] mod circle_power; +#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] +mod circle_question_mark; #[cfg(any(feature = "development", feature = "math"))] mod circle_slash; #[cfg(any(feature = "shapes", feature = "math", feature = "development"))] @@ -1256,6 +1256,8 @@ mod drama; mod dribbble; #[cfg(any(feature = "tools", feature = "home", feature = "devices"))] mod drill; +#[cfg(any(feature = "transportation", feature = "devices"))] +mod drone; #[cfg(any(feature = "weather", feature = "gaming"))] mod droplet; #[cfg(any(feature = "weather", feature = "gaming"))] @@ -1429,7 +1431,7 @@ mod file_plus; #[cfg(feature = "files")] mod file_plus_2; #[cfg(feature = "files")] -mod file_question; +mod file_question_mark; #[cfg(feature = "files")] mod file_scan; #[cfg(feature = "files")] @@ -2193,7 +2195,7 @@ mod mail_open; #[cfg(feature = "mail")] mod mail_plus; #[cfg(feature = "mail")] -mod mail_question; +mod mail_question_mark; #[cfg(feature = "mail")] mod mail_search; #[cfg(feature = "mail")] @@ -2271,7 +2273,7 @@ mod message_circle_off; #[cfg(feature = "social")] mod message_circle_plus; #[cfg(feature = "social")] -mod message_circle_question; +mod message_circle_question_mark; #[cfg(feature = "social")] mod message_circle_reply; #[cfg(any(feature = "social", feature = "notifications"))] @@ -3173,7 +3175,7 @@ mod shield_plus; feature = "development", feature = "gaming" ))] -mod shield_question; +mod shield_question_mark; #[cfg(any(feature = "account", feature = "security", feature = "development"))] mod shield_user; #[cfg(any( @@ -4356,8 +4358,6 @@ pub use badge_check::*; pub use badge_dollar_sign::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_euro::*; -#[cfg(any(feature = "accessibility", feature = "social"))] -pub use badge_help::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_indian_rupee::*; #[cfg(any(feature = "account", feature = "accessibility", feature = "social"))] @@ -4377,6 +4377,8 @@ pub use badge_percent::*; pub use badge_plus::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_pound_sterling::*; +#[cfg(any(feature = "accessibility", feature = "social", feature = "shapes"))] +pub use badge_question_mark::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_russian_ruble::*; #[cfg(any(feature = "shopping", feature = "finance"))] @@ -4932,8 +4934,6 @@ pub use circle_fading_arrow_up::*; pub use circle_fading_plus::*; #[cfg(any(feature = "transportation", feature = "sports", feature = "science"))] pub use circle_gauge::*; -#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] -pub use circle_help::*; #[cfg(feature = "math")] pub use circle_minus::*; #[cfg(feature = "shapes")] @@ -4964,6 +4964,8 @@ pub use circle_plus::*; pub use circle_pound_sterling::*; #[cfg(feature = "connectivity")] pub use circle_power::*; +#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] +pub use circle_question_mark::*; #[cfg(any(feature = "development", feature = "math"))] pub use circle_slash::*; #[cfg(any(feature = "shapes", feature = "math", feature = "development"))] @@ -5328,6 +5330,8 @@ pub use drama::*; pub use dribbble::*; #[cfg(any(feature = "tools", feature = "home", feature = "devices"))] pub use drill::*; +#[cfg(any(feature = "transportation", feature = "devices"))] +pub use drone::*; #[cfg(any(feature = "weather", feature = "gaming"))] pub use droplet::*; #[cfg(any(feature = "weather", feature = "gaming"))] @@ -5501,7 +5505,7 @@ pub use file_plus::*; #[cfg(feature = "files")] pub use file_plus_2::*; #[cfg(feature = "files")] -pub use file_question::*; +pub use file_question_mark::*; #[cfg(feature = "files")] pub use file_scan::*; #[cfg(feature = "files")] @@ -6265,7 +6269,7 @@ pub use mail_open::*; #[cfg(feature = "mail")] pub use mail_plus::*; #[cfg(feature = "mail")] -pub use mail_question::*; +pub use mail_question_mark::*; #[cfg(feature = "mail")] pub use mail_search::*; #[cfg(feature = "mail")] @@ -6343,7 +6347,7 @@ pub use message_circle_off::*; #[cfg(feature = "social")] pub use message_circle_plus::*; #[cfg(feature = "social")] -pub use message_circle_question::*; +pub use message_circle_question_mark::*; #[cfg(feature = "social")] pub use message_circle_reply::*; #[cfg(any(feature = "social", feature = "notifications"))] @@ -7245,7 +7249,7 @@ pub use shield_plus::*; feature = "development", feature = "gaming" ))] -pub use shield_question::*; +pub use shield_question_mark::*; #[cfg(any(feature = "account", feature = "security", feature = "development"))] pub use shield_user::*; #[cfg(any( diff --git a/packages/dioxus/src/mail_question_mark.rs b/packages/dioxus/src/mail_question_mark.rs new file mode 100644 index 0000000..71a1d0a --- /dev/null +++ b/packages/dioxus/src/mail_question_mark.rs @@ -0,0 +1,43 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct MailQuestionMarkProps { + #[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 MailQuestionMark(props: MailQuestionMarkProps) -> 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": "M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5" } + path { "d": "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" } + path { "d": "M18 15.28c.2-.4.5-.8.9-1a2.1 2.1 0 0 1 2.6.4c.3.4.5.8.5 1.3 0 1.3-2 2-2 2" } + path { "d": "M20 22v.01" } + } + } +} diff --git a/packages/dioxus/src/message_circle_question_mark.rs b/packages/dioxus/src/message_circle_question_mark.rs new file mode 100644 index 0000000..faa6bd7 --- /dev/null +++ b/packages/dioxus/src/message_circle_question_mark.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct MessageCircleQuestionMarkProps { + #[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 MessageCircleQuestionMark(props: MessageCircleQuestionMarkProps) -> 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": "M7.9 20A9 9 0 1 0 4 16.1L2 22Z" } + path { "d": "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" } + path { "d": "M12 17h.01" } + } + } +} diff --git a/packages/dioxus/src/shield_question_mark.rs b/packages/dioxus/src/shield_question_mark.rs new file mode 100644 index 0000000..810d869 --- /dev/null +++ b/packages/dioxus/src/shield_question_mark.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ShieldQuestionMarkProps { + #[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 ShieldQuestionMark(props: ShieldQuestionMarkProps) -> 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": "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" } + path { "d": "M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3" } + path { "d": "M12 17h.01" } + } + } +} diff --git a/packages/leptos/src/badge_question_mark.rs b/packages/leptos/src/badge_question_mark.rs new file mode 100644 index 0000000..d9a07d9 --- /dev/null +++ b/packages/leptos/src/badge_question_mark.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn BadgeQuestionMark( + #[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/circle_question_mark.rs b/packages/leptos/src/circle_question_mark.rs new file mode 100644 index 0000000..36b748e --- /dev/null +++ b/packages/leptos/src/circle_question_mark.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn CircleQuestionMark( + #[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/drone.rs b/packages/leptos/src/drone.rs new file mode 100644 index 0000000..305a572 --- /dev/null +++ b/packages/leptos/src/drone.rs @@ -0,0 +1,43 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn Drone( + #[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/egg.rs b/packages/leptos/src/egg.rs index 00b4a87..7879226 100644 --- a/packages/leptos/src/egg.rs +++ b/packages/leptos/src/egg.rs @@ -29,7 +29,7 @@ pub fn Egg( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/egg_off.rs b/packages/leptos/src/egg_off.rs index 4364e7b..c4f72d5 100644 --- a/packages/leptos/src/egg_off.rs +++ b/packages/leptos/src/egg_off.rs @@ -29,9 +29,9 @@ pub fn EggOff( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/file_question_mark.rs b/packages/leptos/src/file_question_mark.rs new file mode 100644 index 0000000..acab269 --- /dev/null +++ b/packages/leptos/src/file_question_mark.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn FileQuestionMark( + #[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/lib.rs b/packages/leptos/src/lib.rs index ce5f3ae..cd6c046 100644 --- a/packages/leptos/src/lib.rs +++ b/packages/leptos/src/lib.rs @@ -284,8 +284,6 @@ mod badge_check; mod badge_dollar_sign; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_euro; -#[cfg(any(feature = "accessibility", feature = "social"))] -mod badge_help; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_indian_rupee; #[cfg(any(feature = "account", feature = "accessibility", feature = "social"))] @@ -305,6 +303,8 @@ mod badge_percent; mod badge_plus; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_pound_sterling; +#[cfg(any(feature = "accessibility", feature = "social", feature = "shapes"))] +mod badge_question_mark; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_russian_ruble; #[cfg(any(feature = "shopping", feature = "finance"))] @@ -860,8 +860,6 @@ mod circle_fading_arrow_up; mod circle_fading_plus; #[cfg(any(feature = "transportation", feature = "sports", feature = "science"))] mod circle_gauge; -#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] -mod circle_help; #[cfg(feature = "math")] mod circle_minus; #[cfg(feature = "shapes")] @@ -892,6 +890,8 @@ mod circle_plus; mod circle_pound_sterling; #[cfg(feature = "connectivity")] mod circle_power; +#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] +mod circle_question_mark; #[cfg(any(feature = "development", feature = "math"))] mod circle_slash; #[cfg(any(feature = "shapes", feature = "math", feature = "development"))] @@ -1256,6 +1256,8 @@ mod drama; mod dribbble; #[cfg(any(feature = "tools", feature = "home", feature = "devices"))] mod drill; +#[cfg(any(feature = "transportation", feature = "devices"))] +mod drone; #[cfg(any(feature = "weather", feature = "gaming"))] mod droplet; #[cfg(any(feature = "weather", feature = "gaming"))] @@ -1429,7 +1431,7 @@ mod file_plus; #[cfg(feature = "files")] mod file_plus_2; #[cfg(feature = "files")] -mod file_question; +mod file_question_mark; #[cfg(feature = "files")] mod file_scan; #[cfg(feature = "files")] @@ -2193,7 +2195,7 @@ mod mail_open; #[cfg(feature = "mail")] mod mail_plus; #[cfg(feature = "mail")] -mod mail_question; +mod mail_question_mark; #[cfg(feature = "mail")] mod mail_search; #[cfg(feature = "mail")] @@ -2271,7 +2273,7 @@ mod message_circle_off; #[cfg(feature = "social")] mod message_circle_plus; #[cfg(feature = "social")] -mod message_circle_question; +mod message_circle_question_mark; #[cfg(feature = "social")] mod message_circle_reply; #[cfg(any(feature = "social", feature = "notifications"))] @@ -3173,7 +3175,7 @@ mod shield_plus; feature = "development", feature = "gaming" ))] -mod shield_question; +mod shield_question_mark; #[cfg(any(feature = "account", feature = "security", feature = "development"))] mod shield_user; #[cfg(any( @@ -4356,8 +4358,6 @@ pub use badge_check::*; pub use badge_dollar_sign::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_euro::*; -#[cfg(any(feature = "accessibility", feature = "social"))] -pub use badge_help::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_indian_rupee::*; #[cfg(any(feature = "account", feature = "accessibility", feature = "social"))] @@ -4377,6 +4377,8 @@ pub use badge_percent::*; pub use badge_plus::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_pound_sterling::*; +#[cfg(any(feature = "accessibility", feature = "social", feature = "shapes"))] +pub use badge_question_mark::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_russian_ruble::*; #[cfg(any(feature = "shopping", feature = "finance"))] @@ -4932,8 +4934,6 @@ pub use circle_fading_arrow_up::*; pub use circle_fading_plus::*; #[cfg(any(feature = "transportation", feature = "sports", feature = "science"))] pub use circle_gauge::*; -#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] -pub use circle_help::*; #[cfg(feature = "math")] pub use circle_minus::*; #[cfg(feature = "shapes")] @@ -4964,6 +4964,8 @@ pub use circle_plus::*; pub use circle_pound_sterling::*; #[cfg(feature = "connectivity")] pub use circle_power::*; +#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] +pub use circle_question_mark::*; #[cfg(any(feature = "development", feature = "math"))] pub use circle_slash::*; #[cfg(any(feature = "shapes", feature = "math", feature = "development"))] @@ -5328,6 +5330,8 @@ pub use drama::*; pub use dribbble::*; #[cfg(any(feature = "tools", feature = "home", feature = "devices"))] pub use drill::*; +#[cfg(any(feature = "transportation", feature = "devices"))] +pub use drone::*; #[cfg(any(feature = "weather", feature = "gaming"))] pub use droplet::*; #[cfg(any(feature = "weather", feature = "gaming"))] @@ -5501,7 +5505,7 @@ pub use file_plus::*; #[cfg(feature = "files")] pub use file_plus_2::*; #[cfg(feature = "files")] -pub use file_question::*; +pub use file_question_mark::*; #[cfg(feature = "files")] pub use file_scan::*; #[cfg(feature = "files")] @@ -6265,7 +6269,7 @@ pub use mail_open::*; #[cfg(feature = "mail")] pub use mail_plus::*; #[cfg(feature = "mail")] -pub use mail_question::*; +pub use mail_question_mark::*; #[cfg(feature = "mail")] pub use mail_search::*; #[cfg(feature = "mail")] @@ -6343,7 +6347,7 @@ pub use message_circle_off::*; #[cfg(feature = "social")] pub use message_circle_plus::*; #[cfg(feature = "social")] -pub use message_circle_question::*; +pub use message_circle_question_mark::*; #[cfg(feature = "social")] pub use message_circle_reply::*; #[cfg(any(feature = "social", feature = "notifications"))] @@ -7245,7 +7249,7 @@ pub use shield_plus::*; feature = "development", feature = "gaming" ))] -pub use shield_question::*; +pub use shield_question_mark::*; #[cfg(any(feature = "account", feature = "security", feature = "development"))] pub use shield_user::*; #[cfg(any( diff --git a/packages/leptos/src/mail_question_mark.rs b/packages/leptos/src/mail_question_mark.rs new file mode 100644 index 0000000..f4343c6 --- /dev/null +++ b/packages/leptos/src/mail_question_mark.rs @@ -0,0 +1,38 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn MailQuestionMark( + #[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/message_circle_question_mark.rs b/packages/leptos/src/message_circle_question_mark.rs new file mode 100644 index 0000000..7ce53e8 --- /dev/null +++ b/packages/leptos/src/message_circle_question_mark.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn MessageCircleQuestionMark( + #[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/shield_question_mark.rs b/packages/leptos/src/shield_question_mark.rs new file mode 100644 index 0000000..151c100 --- /dev/null +++ b/packages/leptos/src/shield_question_mark.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ShieldQuestionMark( + #[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/yew/src/badge_question_mark.rs b/packages/yew/src/badge_question_mark.rs new file mode 100644 index 0000000..f135ea9 --- /dev/null +++ b/packages/yew/src/badge_question_mark.rs @@ -0,0 +1,51 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct BadgeQuestionMarkProps { + #[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 BadgeQuestionMark(props: &BadgeQuestionMarkProps) -> 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/circle_question_mark.rs b/packages/yew/src/circle_question_mark.rs new file mode 100644 index 0000000..94e8182 --- /dev/null +++ b/packages/yew/src/circle_question_mark.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct CircleQuestionMarkProps { + #[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 CircleQuestionMark(props: &CircleQuestionMarkProps) -> 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/drone.rs b/packages/yew/src/drone.rs new file mode 100644 index 0000000..8ec1b52 --- /dev/null +++ b/packages/yew/src/drone.rs @@ -0,0 +1,55 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct DroneProps { + #[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 Drone(props: &DroneProps) -> 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/egg.rs b/packages/yew/src/egg.rs index 5be02b0..6965be0 100644 --- a/packages/yew/src/egg.rs +++ b/packages/yew/src/egg.rs @@ -41,9 +41,7 @@ pub fn Egg(props: &EggProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/egg_off.rs b/packages/yew/src/egg_off.rs index 33a8370..a552fe2 100644 --- a/packages/yew/src/egg_off.rs +++ b/packages/yew/src/egg_off.rs @@ -41,13 +41,9 @@ pub fn EggOff(props: &EggOffProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/file_question_mark.rs b/packages/yew/src/file_question_mark.rs new file mode 100644 index 0000000..b239644 --- /dev/null +++ b/packages/yew/src/file_question_mark.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct FileQuestionMarkProps { + #[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 FileQuestionMark(props: &FileQuestionMarkProps) -> 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/lib.rs b/packages/yew/src/lib.rs index 91d933f..5a7238a 100644 --- a/packages/yew/src/lib.rs +++ b/packages/yew/src/lib.rs @@ -286,8 +286,6 @@ mod badge_check; mod badge_dollar_sign; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_euro; -#[cfg(any(feature = "accessibility", feature = "social"))] -mod badge_help; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_indian_rupee; #[cfg(any(feature = "account", feature = "accessibility", feature = "social"))] @@ -307,6 +305,8 @@ mod badge_percent; mod badge_plus; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_pound_sterling; +#[cfg(any(feature = "accessibility", feature = "social", feature = "shapes"))] +mod badge_question_mark; #[cfg(any(feature = "shopping", feature = "finance"))] mod badge_russian_ruble; #[cfg(any(feature = "shopping", feature = "finance"))] @@ -862,8 +862,6 @@ mod circle_fading_arrow_up; mod circle_fading_plus; #[cfg(any(feature = "transportation", feature = "sports", feature = "science"))] mod circle_gauge; -#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] -mod circle_help; #[cfg(feature = "math")] mod circle_minus; #[cfg(feature = "shapes")] @@ -894,6 +892,8 @@ mod circle_plus; mod circle_pound_sterling; #[cfg(feature = "connectivity")] mod circle_power; +#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] +mod circle_question_mark; #[cfg(any(feature = "development", feature = "math"))] mod circle_slash; #[cfg(any(feature = "shapes", feature = "math", feature = "development"))] @@ -1258,6 +1258,8 @@ mod drama; mod dribbble; #[cfg(any(feature = "tools", feature = "home", feature = "devices"))] mod drill; +#[cfg(any(feature = "transportation", feature = "devices"))] +mod drone; #[cfg(any(feature = "weather", feature = "gaming"))] mod droplet; #[cfg(any(feature = "weather", feature = "gaming"))] @@ -1431,7 +1433,7 @@ mod file_plus; #[cfg(feature = "files")] mod file_plus_2; #[cfg(feature = "files")] -mod file_question; +mod file_question_mark; #[cfg(feature = "files")] mod file_scan; #[cfg(feature = "files")] @@ -2195,7 +2197,7 @@ mod mail_open; #[cfg(feature = "mail")] mod mail_plus; #[cfg(feature = "mail")] -mod mail_question; +mod mail_question_mark; #[cfg(feature = "mail")] mod mail_search; #[cfg(feature = "mail")] @@ -2273,7 +2275,7 @@ mod message_circle_off; #[cfg(feature = "social")] mod message_circle_plus; #[cfg(feature = "social")] -mod message_circle_question; +mod message_circle_question_mark; #[cfg(feature = "social")] mod message_circle_reply; #[cfg(any(feature = "social", feature = "notifications"))] @@ -3175,7 +3177,7 @@ mod shield_plus; feature = "development", feature = "gaming" ))] -mod shield_question; +mod shield_question_mark; #[cfg(any(feature = "account", feature = "security", feature = "development"))] mod shield_user; #[cfg(any( @@ -4358,8 +4360,6 @@ pub use badge_check::*; pub use badge_dollar_sign::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_euro::*; -#[cfg(any(feature = "accessibility", feature = "social"))] -pub use badge_help::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_indian_rupee::*; #[cfg(any(feature = "account", feature = "accessibility", feature = "social"))] @@ -4379,6 +4379,8 @@ pub use badge_percent::*; pub use badge_plus::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_pound_sterling::*; +#[cfg(any(feature = "accessibility", feature = "social", feature = "shapes"))] +pub use badge_question_mark::*; #[cfg(any(feature = "shopping", feature = "finance"))] pub use badge_russian_ruble::*; #[cfg(any(feature = "shopping", feature = "finance"))] @@ -4934,8 +4936,6 @@ pub use circle_fading_arrow_up::*; pub use circle_fading_plus::*; #[cfg(any(feature = "transportation", feature = "sports", feature = "science"))] pub use circle_gauge::*; -#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] -pub use circle_help::*; #[cfg(feature = "math")] pub use circle_minus::*; #[cfg(feature = "shapes")] @@ -4966,6 +4966,8 @@ pub use circle_plus::*; pub use circle_pound_sterling::*; #[cfg(feature = "connectivity")] pub use circle_power::*; +#[cfg(any(feature = "accessibility", feature = "text", feature = "notifications"))] +pub use circle_question_mark::*; #[cfg(any(feature = "development", feature = "math"))] pub use circle_slash::*; #[cfg(any(feature = "shapes", feature = "math", feature = "development"))] @@ -5330,6 +5332,8 @@ pub use drama::*; pub use dribbble::*; #[cfg(any(feature = "tools", feature = "home", feature = "devices"))] pub use drill::*; +#[cfg(any(feature = "transportation", feature = "devices"))] +pub use drone::*; #[cfg(any(feature = "weather", feature = "gaming"))] pub use droplet::*; #[cfg(any(feature = "weather", feature = "gaming"))] @@ -5503,7 +5507,7 @@ pub use file_plus::*; #[cfg(feature = "files")] pub use file_plus_2::*; #[cfg(feature = "files")] -pub use file_question::*; +pub use file_question_mark::*; #[cfg(feature = "files")] pub use file_scan::*; #[cfg(feature = "files")] @@ -6267,7 +6271,7 @@ pub use mail_open::*; #[cfg(feature = "mail")] pub use mail_plus::*; #[cfg(feature = "mail")] -pub use mail_question::*; +pub use mail_question_mark::*; #[cfg(feature = "mail")] pub use mail_search::*; #[cfg(feature = "mail")] @@ -6345,7 +6349,7 @@ pub use message_circle_off::*; #[cfg(feature = "social")] pub use message_circle_plus::*; #[cfg(feature = "social")] -pub use message_circle_question::*; +pub use message_circle_question_mark::*; #[cfg(feature = "social")] pub use message_circle_reply::*; #[cfg(any(feature = "social", feature = "notifications"))] @@ -7247,7 +7251,7 @@ pub use shield_plus::*; feature = "development", feature = "gaming" ))] -pub use shield_question::*; +pub use shield_question_mark::*; #[cfg(any(feature = "account", feature = "security", feature = "development"))] pub use shield_user::*; #[cfg(any( diff --git a/packages/yew/src/mail_question_mark.rs b/packages/yew/src/mail_question_mark.rs new file mode 100644 index 0000000..434aafc --- /dev/null +++ b/packages/yew/src/mail_question_mark.rs @@ -0,0 +1,50 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct MailQuestionMarkProps { + #[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 MailQuestionMark(props: &MailQuestionMarkProps) -> 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/message_circle_question_mark.rs b/packages/yew/src/message_circle_question_mark.rs new file mode 100644 index 0000000..7f31574 --- /dev/null +++ b/packages/yew/src/message_circle_question_mark.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct MessageCircleQuestionMarkProps { + #[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 MessageCircleQuestionMark(props: &MessageCircleQuestionMarkProps) -> 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/shield_question_mark.rs b/packages/yew/src/shield_question_mark.rs new file mode 100644 index 0000000..30f921e --- /dev/null +++ b/packages/yew/src/shield_question_mark.rs @@ -0,0 +1,51 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ShieldQuestionMarkProps { + #[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 ShieldQuestionMark(props: &ShieldQuestionMarkProps) -> Html { + let stroke_width = if props.absolute_stroke_width { + props.stroke_width * 24 / props.size + } else { + props.stroke_width + }; + html! { + + + + + + } +} diff --git a/scripts/src/lib.rs b/scripts/src/lib.rs index 838622a..a29bd06 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.517.0"; +pub const UPSTREAM_GIT_REF: &str = "0.518.0"; pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";