diff --git a/book-examples/dioxus/src/icons.rs b/book-examples/dioxus/src/icons.rs index a45a992e..a8c58f56 100644 --- a/book-examples/dioxus/src/icons.rs +++ b/book-examples/dioxus/src/icons.rs @@ -4063,6 +4063,12 @@ pub fn IconsF1() -> Element { }, "Fishing Hook", ), + ( + rsx! { + FishingRod {} + }, + "Fishing Rod", + ), ( rsx! { Flag {} @@ -4231,12 +4237,6 @@ pub fn IconsF1() -> Element { }, "Folder Git", ), - ( - rsx! { - FolderGit2 {} - }, - "Folder Git 2", - ), ]; rsx! { for (icon , name) in icons { @@ -4252,6 +4252,12 @@ pub fn IconsF1() -> Element { #[component] pub fn IconsF2() -> Element { let icons = [ + ( + rsx! { + FolderGit2 {} + }, + "Folder Git 2", + ), ( rsx! { FolderHeart {} @@ -10685,6 +10691,84 @@ pub fn IconsZ1() -> Element { }, "Zap Off", ), + ( + rsx! { + ZodiacAquarius {} + }, + "Zodiac Aquarius", + ), + ( + rsx! { + ZodiacAries {} + }, + "Zodiac Aries", + ), + ( + rsx! { + ZodiacCancer {} + }, + "Zodiac Cancer", + ), + ( + rsx! { + ZodiacCapricorn {} + }, + "Zodiac Capricorn", + ), + ( + rsx! { + ZodiacGemini {} + }, + "Zodiac Gemini", + ), + ( + rsx! { + ZodiacLeo {} + }, + "Zodiac Leo", + ), + ( + rsx! { + ZodiacLibra {} + }, + "Zodiac Libra", + ), + ( + rsx! { + ZodiacOphiuchus {} + }, + "Zodiac Ophiuchus", + ), + ( + rsx! { + ZodiacPisces {} + }, + "Zodiac Pisces", + ), + ( + rsx! { + ZodiacSagittarius {} + }, + "Zodiac Sagittarius", + ), + ( + rsx! { + ZodiacScorpio {} + }, + "Zodiac Scorpio", + ), + ( + rsx! { + ZodiacTaurus {} + }, + "Zodiac Taurus", + ), + ( + rsx! { + ZodiacVirgo {} + }, + "Zodiac Virgo", + ), ( rsx! { ZoomIn {} diff --git a/book-examples/leptos/src/icons.rs b/book-examples/leptos/src/icons.rs index e205fd4b..ef286c10 100644 --- a/book-examples/leptos/src/icons.rs +++ b/book-examples/leptos/src/icons.rs @@ -902,6 +902,7 @@ pub fn IconsF1() -> impl IntoView { (view! { }.into_any(), "Fish Off"), (view! { }.into_any(), "Fish Symbol"), (view! { }.into_any(), "Fishing Hook"), + (view! { }.into_any(), "Fishing Rod"), (view! { }.into_any(), "Flag"), (view! { }.into_any(), "Flag Off"), (view! { }.into_any(), "Flag Triangle Left"), @@ -930,7 +931,6 @@ pub fn IconsF1() -> impl IntoView { (view! { }.into_any(), "Folder Dot"), (view! { }.into_any(), "Folder Down"), (view! { }.into_any(), "Folder Git"), - (view! { }.into_any(), "Folder Git 2"), ] key=|icon| icon.1 children=move |(icon, name)| { @@ -948,6 +948,7 @@ pub fn IconsF2() -> impl IntoView { view! { }.into_any(), "Folder Git 2"), (view! { }.into_any(), "Folder Heart"), (view! { }.into_any(), "Folder Input"), (view! { }.into_any(), "Folder Kanban"), @@ -2396,6 +2397,19 @@ pub fn IconsZ1() -> impl IntoView { each=move || [ (view! { }.into_any(), "Zap"), (view! { }.into_any(), "Zap Off"), + (view! { }.into_any(), "Zodiac Aquarius"), + (view! { }.into_any(), "Zodiac Aries"), + (view! { }.into_any(), "Zodiac Cancer"), + (view! { }.into_any(), "Zodiac Capricorn"), + (view! { }.into_any(), "Zodiac Gemini"), + (view! { }.into_any(), "Zodiac Leo"), + (view! { }.into_any(), "Zodiac Libra"), + (view! { }.into_any(), "Zodiac Ophiuchus"), + (view! { }.into_any(), "Zodiac Pisces"), + (view! { }.into_any(), "Zodiac Sagittarius"), + (view! { }.into_any(), "Zodiac Scorpio"), + (view! { }.into_any(), "Zodiac Taurus"), + (view! { }.into_any(), "Zodiac Virgo"), (view! { }.into_any(), "Zoom In"), (view! { }.into_any(), "Zoom Out"), ] diff --git a/book-examples/yew/src/icons.rs b/book-examples/yew/src/icons.rs index e5f203d3..b28d8a69 100644 --- a/book-examples/yew/src/icons.rs +++ b/book-examples/yew/src/icons.rs @@ -850,6 +850,7 @@ pub fn IconsF() -> Html { (html! { }, "Fish Off"), (html! { }, "Fish Symbol"), (html! { }, "Fishing Hook"), + (html! { }, "Fishing Rod"), (html! { }, "Flag"), (html! { }, "Flag Off"), (html! { }, "Flag Triangle Left"), @@ -2270,6 +2271,19 @@ pub fn IconsZ() -> Html { let icons = [ (html! { }, "Zap"), (html! { }, "Zap Off"), + (html! { }, "Zodiac Aquarius"), + (html! { }, "Zodiac Aries"), + (html! { }, "Zodiac Cancer"), + (html! { }, "Zodiac Capricorn"), + (html! { }, "Zodiac Gemini"), + (html! { }, "Zodiac Leo"), + (html! { }, "Zodiac Libra"), + (html! { }, "Zodiac Ophiuchus"), + (html! { }, "Zodiac Pisces"), + (html! { }, "Zodiac Sagittarius"), + (html! { }, "Zodiac Scorpio"), + (html! { }, "Zodiac Taurus"), + (html! { }, "Zodiac Virgo"), (html! { }, "Zoom In"), (html! { }, "Zoom Out"), ]; diff --git a/packages/dioxus/src/cuboid.rs b/packages/dioxus/src/cuboid.rs index 7b2873a6..f2bb9104 100644 --- a/packages/dioxus/src/cuboid.rs +++ b/packages/dioxus/src/cuboid.rs @@ -34,9 +34,9 @@ pub fn Cuboid(props: CuboidProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z" } - path { "d": "M10 22v-8L2.25 9.15" } - path { "d": "m10 14 11.77-6.87" } + path { "d": "M10 22v-8" } + path { "d": "M2.336 8.89 10 14l11.715-7.029" } + path { "d": "M22 14a2 2 0 0 1-.971 1.715l-10 6a2 2 0 0 1-2.138-.05l-6-4A2 2 0 0 1 2 16v-6a2 2 0 0 1 .971-1.715l10-6a2 2 0 0 1 2.138.05l6 4A2 2 0 0 1 22 8z" } } } } diff --git a/packages/dioxus/src/fishing_rod.rs b/packages/dioxus/src/fishing_rod.rs new file mode 100644 index 00000000..1f934085 --- /dev/null +++ b/packages/dioxus/src/fishing_rod.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct FishingRodProps { + #[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 FishingRod(props: FishingRodProps) -> 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": "M4 11h1" } + path { "d": "M8 15a2 2 0 0 1-4 0V3a1 1 0 0 1 1-1h.5C14 2 20 9 20 18v4" } + circle { "cx": "18", "cy": "18", "r": "2" } + } + } +} diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs index a428fb31..b5d951d1 100644 --- a/packages/dioxus/src/lib.rs +++ b/packages/dioxus/src/lib.rs @@ -1137,7 +1137,7 @@ mod cross; mod crosshair; #[cfg(feature = "gaming")] mod crown; -#[cfg(any(feature = "shapes", feature = "math", feature = "buildings"))] +#[cfg(any(feature = "shapes", feature = "math", feature = "food-beverage"))] mod cuboid; #[cfg(feature = "food-beverage")] mod cup_soda; @@ -1505,6 +1505,8 @@ mod fish_off; mod fish_symbol; #[cfg(any(feature = "sports", feature = "travel"))] mod fishing_hook; +#[cfg(any(feature = "sports", feature = "travel"))] +mod fishing_rod; #[cfg(any(feature = "account", feature = "social"))] mod flag; #[cfg(any(feature = "account", feature = "social"))] @@ -4247,6 +4249,32 @@ mod zap; feature = "weather" ))] mod zap_off; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_aquarius; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_aries; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_cancer; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_capricorn; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_gemini; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_leo; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_libra; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_ophiuchus; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_pisces; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_sagittarius; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_scorpio; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_taurus; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_virgo; #[cfg(any( feature = "accessibility", feature = "layout", @@ -5397,7 +5425,7 @@ pub use cross::*; pub use crosshair::*; #[cfg(feature = "gaming")] pub use crown::*; -#[cfg(any(feature = "shapes", feature = "math", feature = "buildings"))] +#[cfg(any(feature = "shapes", feature = "math", feature = "food-beverage"))] pub use cuboid::*; #[cfg(feature = "food-beverage")] pub use cup_soda::*; @@ -5765,6 +5793,8 @@ pub use fish_off::*; pub use fish_symbol::*; #[cfg(any(feature = "sports", feature = "travel"))] pub use fishing_hook::*; +#[cfg(any(feature = "sports", feature = "travel"))] +pub use fishing_rod::*; #[cfg(any(feature = "account", feature = "social"))] pub use flag::*; #[cfg(any(feature = "account", feature = "social"))] @@ -8507,6 +8537,32 @@ pub use zap::*; feature = "weather" ))] pub use zap_off::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_aquarius::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_aries::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_cancer::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_capricorn::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_gemini::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_leo::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_libra::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_ophiuchus::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_pisces::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_sagittarius::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_scorpio::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_taurus::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_virgo::*; #[cfg(any( feature = "accessibility", feature = "layout", diff --git a/packages/dioxus/src/package_check.rs b/packages/dioxus/src/package_check.rs index bc19f3ed..8da81657 100644 --- a/packages/dioxus/src/package_check.rs +++ b/packages/dioxus/src/package_check.rs @@ -34,16 +34,11 @@ pub fn PackageCheck(props: PackageCheckProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "m16 16 2 2 4-4" } - path { "d": "M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14" } - path { "d": "m7.5 4.27 9 5.15" } - polyline { "points": "3.29 7 12 12 20.71 7" } - line { - "x1": "12", - "x2": "12", - "y1": "22", - "y2": "12", - } + path { "d": "M12 22V12" } + path { "d": "m16 17 2 2 4-4" } + path { "d": "M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753" } + path { "d": "M3.29 7 12 12l8.71-5" } + path { "d": "m7.5 4.27 8.997 5.148" } } } } diff --git a/packages/dioxus/src/package_minus.rs b/packages/dioxus/src/package_minus.rs index 620e5af1..43affb3d 100644 --- a/packages/dioxus/src/package_minus.rs +++ b/packages/dioxus/src/package_minus.rs @@ -34,16 +34,11 @@ pub fn PackageMinus(props: PackageMinusProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M16 16h6" } - path { "d": "M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14" } - path { "d": "m7.5 4.27 9 5.15" } - polyline { "points": "3.29 7 12 12 20.71 7" } - line { - "x1": "12", - "x2": "12", - "y1": "22", - "y2": "12", - } + path { "d": "M12 22V12" } + path { "d": "M16 17h6" } + path { "d": "M21 13V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.675-.955" } + path { "d": "M3.29 7 12 12l8.71-5" } + path { "d": "m7.5 4.27 8.997 5.148" } } } } diff --git a/packages/dioxus/src/package_plus.rs b/packages/dioxus/src/package_plus.rs index 29990d33..9fd5c55f 100644 --- a/packages/dioxus/src/package_plus.rs +++ b/packages/dioxus/src/package_plus.rs @@ -34,17 +34,12 @@ pub fn PackagePlus(props: PackagePlusProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M16 16h6" } - path { "d": "M19 13v6" } - path { "d": "M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14" } - path { "d": "m7.5 4.27 9 5.15" } - polyline { "points": "3.29 7 12 12 20.71 7" } - line { - "x1": "12", - "x2": "12", - "y1": "22", - "y2": "12", - } + path { "d": "M12 22V12" } + path { "d": "M16 17h6" } + path { "d": "M19 14v6" } + path { "d": "M21 10.535V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.675-.955" } + path { "d": "M3.29 7 12 12l8.71-5" } + path { "d": "m7.5 4.27 8.997 5.148" } } } } diff --git a/packages/dioxus/src/package_search.rs b/packages/dioxus/src/package_search.rs index df8b4552..378ca54e 100644 --- a/packages/dioxus/src/package_search.rs +++ b/packages/dioxus/src/package_search.rs @@ -34,17 +34,12 @@ pub fn PackageSearch(props: PackageSearchProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14" } - path { "d": "m7.5 4.27 9 5.15" } - polyline { "points": "3.29 7 12 12 20.71 7" } - line { - "x1": "12", - "x2": "12", - "y1": "22", - "y2": "12", - } - circle { "cx": "18.5", "cy": "15.5", "r": "2.5" } - path { "d": "M20.27 17.27 22 19" } + path { "d": "M12 22V12" } + path { "d": "M20.27 18.27 22 20" } + path { "d": "M21 10.498V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l.98-.559" } + path { "d": "M3.29 7 12 12l8.71-5" } + path { "d": "m7.5 4.27 8.997 5.148" } + circle { "cx": "18.5", "cy": "16.5", "r": "2.5" } } } } diff --git a/packages/dioxus/src/package_x.rs b/packages/dioxus/src/package_x.rs index 54361379..88a6af04 100644 --- a/packages/dioxus/src/package_x.rs +++ b/packages/dioxus/src/package_x.rs @@ -34,16 +34,12 @@ pub fn PackageX(props: PackageXProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14" } - path { "d": "m7.5 4.27 9 5.15" } - polyline { "points": "3.29 7 12 12 20.71 7" } - line { - "x1": "12", - "x2": "12", - "y1": "22", - "y2": "12", - } - path { "d": "m17 13 5 5m-5 0 5-5" } + path { "d": "M12 22V12" } + path { "d": "m16.5 14.5 5 5" } + path { "d": "m16.5 19.5 5-5" } + path { "d": "M21 10.5V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l.13-.074" } + path { "d": "M3.29 7 12 12l8.71-5" } + path { "d": "m7.5 4.27 8.997 5.148" } } } } diff --git a/packages/dioxus/src/receipt.rs b/packages/dioxus/src/receipt.rs index 056de78f..fcafb715 100644 --- a/packages/dioxus/src/receipt.rs +++ b/packages/dioxus/src/receipt.rs @@ -34,9 +34,9 @@ pub fn Receipt(props: ReceiptProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" } - path { "d": "M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8" } - path { "d": "M12 17.5v-11" } + path { "d": "M12 17V7" } + path { "d": "M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8" } + path { "d": "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z" } } } } diff --git a/packages/dioxus/src/receipt_cent.rs b/packages/dioxus/src/receipt_cent.rs index 3d437700..411fcaf3 100644 --- a/packages/dioxus/src/receipt_cent.rs +++ b/packages/dioxus/src/receipt_cent.rs @@ -34,9 +34,9 @@ pub fn ReceiptCent(props: ReceiptCentProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" } - path { "d": "M12 6.5v11" } - path { "d": "M15 9.4a4 4 0 1 0 0 5.2" } + path { "d": "M12 7v10" } + path { "d": "M14.828 14.829a4 4 0 0 1-5.656 0 4 4 0 0 1 0-5.657 4 4 0 0 1 5.656 0" } + path { "d": "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z" } } } } diff --git a/packages/dioxus/src/receipt_euro.rs b/packages/dioxus/src/receipt_euro.rs index 113d1ca1..a5c811f4 100644 --- a/packages/dioxus/src/receipt_euro.rs +++ b/packages/dioxus/src/receipt_euro.rs @@ -34,9 +34,9 @@ pub fn ReceiptEuro(props: ReceiptEuroProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" } + path { "d": "M15.828 14.829a4 4 0 0 1-5.656 0 4 4 0 0 1 0-5.657 4 4 0 0 1 5.656 0" } + path { "d": "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z" } path { "d": "M8 12h5" } - path { "d": "M16 9.5a4 4 0 1 0 0 5.2" } } } } diff --git a/packages/dioxus/src/receipt_indian_rupee.rs b/packages/dioxus/src/receipt_indian_rupee.rs index f4086e57..6bdaa00d 100644 --- a/packages/dioxus/src/receipt_indian_rupee.rs +++ b/packages/dioxus/src/receipt_indian_rupee.rs @@ -34,10 +34,10 @@ pub fn ReceiptIndianRupee(props: ReceiptIndianRupeeProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" } - path { "d": "M8 7h8" } - path { "d": "M12 17.5 8 15h1a4 4 0 0 0 0-8" } + path { "d": "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z" } path { "d": "M8 11h8" } + path { "d": "M8 7h8" } + path { "d": "M9 7a4 4 0 0 1 0 8H8l3 2" } } } } diff --git a/packages/dioxus/src/receipt_japanese_yen.rs b/packages/dioxus/src/receipt_japanese_yen.rs index 8b2be4ea..829e18ac 100644 --- a/packages/dioxus/src/receipt_japanese_yen.rs +++ b/packages/dioxus/src/receipt_japanese_yen.rs @@ -34,11 +34,11 @@ pub fn ReceiptJapaneseYen(props: ReceiptJapaneseYenProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" } path { "d": "m12 10 3-3" } - path { "d": "m9 7 3 3v7.5" } + path { "d": "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z" } path { "d": "M9 11h6" } path { "d": "M9 15h6" } + path { "d": "m9 7 3 3v7" } } } } diff --git a/packages/dioxus/src/receipt_pound_sterling.rs b/packages/dioxus/src/receipt_pound_sterling.rs index 7d6f58e9..7b1d2540 100644 --- a/packages/dioxus/src/receipt_pound_sterling.rs +++ b/packages/dioxus/src/receipt_pound_sterling.rs @@ -34,9 +34,9 @@ pub fn ReceiptPoundSterling(props: ReceiptPoundSterlingProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" } + path { "d": "M10 17V9.5a1 1 0 0 1 5 0" } + path { "d": "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z" } path { "d": "M8 13h5" } - path { "d": "M10 17V9.5a2.5 2.5 0 0 1 5 0" } path { "d": "M8 17h7" } } } diff --git a/packages/dioxus/src/receipt_russian_ruble.rs b/packages/dioxus/src/receipt_russian_ruble.rs index 8a1ad620..8a977c8a 100644 --- a/packages/dioxus/src/receipt_russian_ruble.rs +++ b/packages/dioxus/src/receipt_russian_ruble.rs @@ -34,9 +34,9 @@ pub fn ReceiptRussianRuble(props: ReceiptRussianRubleProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" } + path { "d": "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z" } + path { "d": "M8 11h5a2 2 0 0 0 0-4h-3v10" } path { "d": "M8 15h5" } - path { "d": "M8 11h5a2 2 0 1 0 0-4h-3v10" } } } } diff --git a/packages/dioxus/src/receipt_swiss_franc.rs b/packages/dioxus/src/receipt_swiss_franc.rs index c7eeedeb..9ea2b92e 100644 --- a/packages/dioxus/src/receipt_swiss_franc.rs +++ b/packages/dioxus/src/receipt_swiss_franc.rs @@ -34,9 +34,9 @@ pub fn ReceiptSwissFranc(props: ReceiptSwissFrancProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z" } - path { "d": "M10 17V7h5" } path { "d": "M10 11h4" } + path { "d": "M10 17V7h5" } + path { "d": "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z" } path { "d": "M8 15h5" } } } diff --git a/packages/dioxus/src/receipt_turkish_lira.rs b/packages/dioxus/src/receipt_turkish_lira.rs index 252032b9..27350588 100644 --- a/packages/dioxus/src/receipt_turkish_lira.rs +++ b/packages/dioxus/src/receipt_turkish_lira.rs @@ -34,9 +34,9 @@ pub fn ReceiptTurkishLira(props: ReceiptTurkishLiraProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M10 6.5v11a5.5 5.5 0 0 0 5.5-5.5" } + path { "d": "M10 7v10a5 5 0 0 0 5-5" } path { "d": "m14 8-6 3" } - path { "d": "M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1z" } + path { "d": "M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z" } } } } diff --git a/packages/dioxus/src/zodiac_aquarius.rs b/packages/dioxus/src/zodiac_aquarius.rs new file mode 100644 index 00000000..fd1ca7cb --- /dev/null +++ b/packages/dioxus/src/zodiac_aquarius.rs @@ -0,0 +1,41 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacAquariusProps { + #[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 ZodiacAquarius(props: ZodiacAquariusProps) -> 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": "m2 10 2.456-3.684a.7.7 0 0 1 1.106-.013l2.39 3.413a.7.7 0 0 0 1.096-.001l2.402-3.432a.7.7 0 0 1 1.098 0l2.402 3.432a.7.7 0 0 0 1.098 0l2.389-3.413a.7.7 0 0 1 1.106.013L22 10" } + path { "d": "m2 18.002 2.456-3.684a.7.7 0 0 1 1.106-.013l2.39 3.413a.7.7 0 0 0 1.097 0l2.402-3.432a.7.7 0 0 1 1.098 0l2.402 3.432a.7.7 0 0 0 1.098 0l2.389-3.413a.7.7 0 0 1 1.106.013L22 18.002" } + } + } +} diff --git a/packages/dioxus/src/zodiac_aries.rs b/packages/dioxus/src/zodiac_aries.rs new file mode 100644 index 00000000..46acf654 --- /dev/null +++ b/packages/dioxus/src/zodiac_aries.rs @@ -0,0 +1,41 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacAriesProps { + #[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 ZodiacAries(props: ZodiacAriesProps) -> 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 7.5a4.5 4.5 0 1 1 5 4.5" } + path { "d": "M7 12a4.5 4.5 0 1 1 5-4.5V21" } + } + } +} diff --git a/packages/dioxus/src/zodiac_cancer.rs b/packages/dioxus/src/zodiac_cancer.rs new file mode 100644 index 00000000..99aa2952 --- /dev/null +++ b/packages/dioxus/src/zodiac_cancer.rs @@ -0,0 +1,43 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacCancerProps { + #[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 ZodiacCancer(props: ZodiacCancerProps) -> 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": "M21 14.5A9 6.5 0 0 1 5.5 19" } + path { "d": "M3 9.5A9 6.5 0 0 1 18.5 5" } + circle { "cx": "17.5", "cy": "14.5", "r": "3.5" } + circle { "cx": "6.5", "cy": "9.5", "r": "3.5" } + } + } +} diff --git a/packages/dioxus/src/zodiac_capricorn.rs b/packages/dioxus/src/zodiac_capricorn.rs new file mode 100644 index 00000000..f94de4a9 --- /dev/null +++ b/packages/dioxus/src/zodiac_capricorn.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacCapricornProps { + #[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 ZodiacCapricorn(props: ZodiacCapricornProps) -> 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": "M11 21a3 3 0 0 0 3-3V6.5a1 1 0 0 0-7 0" } + path { "d": "M7 19V6a3 3 0 0 0-3-3h0" } + circle { "cx": "17", "cy": "17", "r": "3" } + } + } +} diff --git a/packages/dioxus/src/zodiac_gemini.rs b/packages/dioxus/src/zodiac_gemini.rs new file mode 100644 index 00000000..1c51c936 --- /dev/null +++ b/packages/dioxus/src/zodiac_gemini.rs @@ -0,0 +1,43 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacGeminiProps { + #[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 ZodiacGemini(props: ZodiacGeminiProps) -> 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": "M16 4.525v14.948" } + path { "d": "M20 3A17 17 0 0 1 4 3" } + path { "d": "M4 21a17 17 0 0 1 16 0" } + path { "d": "M8 4.525v14.948" } + } + } +} diff --git a/packages/dioxus/src/zodiac_leo.rs b/packages/dioxus/src/zodiac_leo.rs new file mode 100644 index 00000000..faafa83d --- /dev/null +++ b/packages/dioxus/src/zodiac_leo.rs @@ -0,0 +1,41 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacLeoProps { + #[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 ZodiacLeo(props: ZodiacLeoProps) -> 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 16c0-4-3-4.5-3-8a5 5 0 0 1 10 0c0 3.466-3 6.196-3 10a3 3 0 0 0 6 0" } + circle { "cx": "7", "cy": "16", "r": "3" } + } + } +} diff --git a/packages/dioxus/src/zodiac_libra.rs b/packages/dioxus/src/zodiac_libra.rs new file mode 100644 index 00000000..8fe09f65 --- /dev/null +++ b/packages/dioxus/src/zodiac_libra.rs @@ -0,0 +1,41 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacLibraProps { + #[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 ZodiacLibra(props: ZodiacLibraProps) -> 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 16h6.857c.162-.012.19-.323.038-.38a6 6 0 1 1 4.212 0c-.153.057-.125.368.038.38H21" } + path { "d": "M3 20h18" } + } + } +} diff --git a/packages/dioxus/src/zodiac_ophiuchus.rs b/packages/dioxus/src/zodiac_ophiuchus.rs new file mode 100644 index 00000000..1ae0ef7b --- /dev/null +++ b/packages/dioxus/src/zodiac_ophiuchus.rs @@ -0,0 +1,41 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacOphiuchusProps { + #[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 ZodiacOphiuchus(props: ZodiacOphiuchusProps) -> 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 10A6.06 6.06 0 0 1 12 10 A6.06 6.06 0 0 0 21 10" } + path { "d": "M6 3v12a6 6 0 0 0 12 0V3" } + } + } +} diff --git a/packages/dioxus/src/zodiac_pisces.rs b/packages/dioxus/src/zodiac_pisces.rs new file mode 100644 index 00000000..00ceb1d2 --- /dev/null +++ b/packages/dioxus/src/zodiac_pisces.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacPiscesProps { + #[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 ZodiacPisces(props: ZodiacPiscesProps) -> 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": "M19 21a15 15 0 0 1 0-18" } + path { "d": "M20 12H4" } + path { "d": "M5 3a15 15 0 0 1 0 18" } + } + } +} diff --git a/packages/dioxus/src/zodiac_sagittarius.rs b/packages/dioxus/src/zodiac_sagittarius.rs new file mode 100644 index 00000000..b20690c3 --- /dev/null +++ b/packages/dioxus/src/zodiac_sagittarius.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacSagittariusProps { + #[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 ZodiacSagittarius(props: ZodiacSagittariusProps) -> 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": "M15 3h6v6" } + path { "d": "M21 3 3 21" } + path { "d": "m9 9 6 6" } + } + } +} diff --git a/packages/dioxus/src/zodiac_scorpio.rs b/packages/dioxus/src/zodiac_scorpio.rs new file mode 100644 index 00000000..9c54b33d --- /dev/null +++ b/packages/dioxus/src/zodiac_scorpio.rs @@ -0,0 +1,43 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacScorpioProps { + #[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 ZodiacScorpio(props: ZodiacScorpioProps) -> 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 19V5.5a1 1 0 0 1 5 0V17a2 2 0 0 0 2 2h5l-3-3" } + path { "d": "m22 19-3 3" } + path { "d": "M5 19V5.5a1 1 0 0 1 5 0" } + path { "d": "M5 5.5A2.5 2.5 0 0 0 2.5 3" } + } + } +} diff --git a/packages/dioxus/src/zodiac_taurus.rs b/packages/dioxus/src/zodiac_taurus.rs new file mode 100644 index 00000000..c0d48f7b --- /dev/null +++ b/packages/dioxus/src/zodiac_taurus.rs @@ -0,0 +1,41 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacTaurusProps { + #[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 ZodiacTaurus(props: ZodiacTaurusProps) -> 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": "15", "r": "6" } + path { "d": "M18 3A6 6 0 0 1 6 3" } + } + } +} diff --git a/packages/dioxus/src/zodiac_virgo.rs b/packages/dioxus/src/zodiac_virgo.rs new file mode 100644 index 00000000..14b01e0a --- /dev/null +++ b/packages/dioxus/src/zodiac_virgo.rs @@ -0,0 +1,43 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ZodiacVirgoProps { + #[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 ZodiacVirgo(props: ZodiacVirgoProps) -> 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": "M11 5.5a1 1 0 0 1 5 0V16a5 5 0 0 0 5 5" } + path { "d": "M16 11.5a1 1 0 0 1 5 0V16a5 5 0 0 1-5 5" } + path { "d": "M6 19V6a3 3 0 0 0-3-3h0" } + path { "d": "M6 5.5a1 1 0 0 1 5 0V19" } + } + } +} diff --git a/packages/icon-name/src/lib.rs b/packages/icon-name/src/lib.rs index aebe4def..46415f2a 100644 --- a/packages/icon-name/src/lib.rs +++ b/packages/icon-name/src/lib.rs @@ -5,7 +5,7 @@ //! See [the Rust Lucide book](https://lucide.rustforweb.org/) for more documenation. /// [Lucide](https://lucide.dev/) icon names. -pub static ICON_NAMES: [&str; 1688usize] = [ +pub static ICON_NAMES: [&str; 1702usize] = [ "a-arrow-down", "a-arrow-up", "a-large-small", @@ -653,6 +653,7 @@ pub static ICON_NAMES: [&str; 1688usize] = [ "fish-off", "fish-symbol", "fishing-hook", + "fishing-rod", "flag", "flag-off", "flag-triangle-left", @@ -1692,6 +1693,19 @@ pub static ICON_NAMES: [&str; 1688usize] = [ "youtube", "zap", "zap-off", + "zodiac-aquarius", + "zodiac-aries", + "zodiac-cancer", + "zodiac-capricorn", + "zodiac-gemini", + "zodiac-leo", + "zodiac-libra", + "zodiac-ophiuchus", + "zodiac-pisces", + "zodiac-sagittarius", + "zodiac-scorpio", + "zodiac-taurus", + "zodiac-virgo", "zoom-in", "zoom-out", ]; diff --git a/packages/leptos/src/cuboid.rs b/packages/leptos/src/cuboid.rs index 3b97d917..aae15e67 100644 --- a/packages/leptos/src/cuboid.rs +++ b/packages/leptos/src/cuboid.rs @@ -29,9 +29,9 @@ pub fn Cuboid( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/fishing_rod.rs b/packages/leptos/src/fishing_rod.rs new file mode 100644 index 00000000..b0698915 --- /dev/null +++ b/packages/leptos/src/fishing_rod.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn FishingRod( + #[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 24a4f10b..44d17f73 100644 --- a/packages/leptos/src/lib.rs +++ b/packages/leptos/src/lib.rs @@ -1137,7 +1137,7 @@ mod cross; mod crosshair; #[cfg(feature = "gaming")] mod crown; -#[cfg(any(feature = "shapes", feature = "math", feature = "buildings"))] +#[cfg(any(feature = "shapes", feature = "math", feature = "food-beverage"))] mod cuboid; #[cfg(feature = "food-beverage")] mod cup_soda; @@ -1505,6 +1505,8 @@ mod fish_off; mod fish_symbol; #[cfg(any(feature = "sports", feature = "travel"))] mod fishing_hook; +#[cfg(any(feature = "sports", feature = "travel"))] +mod fishing_rod; #[cfg(any(feature = "account", feature = "social"))] mod flag; #[cfg(any(feature = "account", feature = "social"))] @@ -4247,6 +4249,32 @@ mod zap; feature = "weather" ))] mod zap_off; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_aquarius; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_aries; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_cancer; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_capricorn; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_gemini; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_leo; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_libra; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_ophiuchus; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_pisces; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_sagittarius; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_scorpio; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_taurus; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_virgo; #[cfg(any( feature = "accessibility", feature = "layout", @@ -5397,7 +5425,7 @@ pub use cross::*; pub use crosshair::*; #[cfg(feature = "gaming")] pub use crown::*; -#[cfg(any(feature = "shapes", feature = "math", feature = "buildings"))] +#[cfg(any(feature = "shapes", feature = "math", feature = "food-beverage"))] pub use cuboid::*; #[cfg(feature = "food-beverage")] pub use cup_soda::*; @@ -5765,6 +5793,8 @@ pub use fish_off::*; pub use fish_symbol::*; #[cfg(any(feature = "sports", feature = "travel"))] pub use fishing_hook::*; +#[cfg(any(feature = "sports", feature = "travel"))] +pub use fishing_rod::*; #[cfg(any(feature = "account", feature = "social"))] pub use flag::*; #[cfg(any(feature = "account", feature = "social"))] @@ -8507,6 +8537,32 @@ pub use zap::*; feature = "weather" ))] pub use zap_off::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_aquarius::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_aries::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_cancer::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_capricorn::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_gemini::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_leo::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_libra::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_ophiuchus::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_pisces::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_sagittarius::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_scorpio::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_taurus::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_virgo::*; #[cfg(any( feature = "accessibility", feature = "layout", diff --git a/packages/leptos/src/package_check.rs b/packages/leptos/src/package_check.rs index 431c768f..c29ea29a 100644 --- a/packages/leptos/src/package_check.rs +++ b/packages/leptos/src/package_check.rs @@ -29,11 +29,11 @@ pub fn PackageCheck( stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/leptos/src/package_minus.rs b/packages/leptos/src/package_minus.rs index 038c5c8a..9a62c423 100644 --- a/packages/leptos/src/package_minus.rs +++ b/packages/leptos/src/package_minus.rs @@ -29,11 +29,11 @@ pub fn PackageMinus( stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/leptos/src/package_plus.rs b/packages/leptos/src/package_plus.rs index f2dda59c..27bcb122 100644 --- a/packages/leptos/src/package_plus.rs +++ b/packages/leptos/src/package_plus.rs @@ -29,12 +29,12 @@ pub fn PackagePlus( stroke-linecap="round" stroke-linejoin="round" > - - - - - - + + + + + + } } diff --git a/packages/leptos/src/package_search.rs b/packages/leptos/src/package_search.rs index 9e836d00..0435d925 100644 --- a/packages/leptos/src/package_search.rs +++ b/packages/leptos/src/package_search.rs @@ -29,12 +29,12 @@ pub fn PackageSearch( stroke-linecap="round" stroke-linejoin="round" > - - - - - - + + + + + + } } diff --git a/packages/leptos/src/package_x.rs b/packages/leptos/src/package_x.rs index d14ed860..d1e33310 100644 --- a/packages/leptos/src/package_x.rs +++ b/packages/leptos/src/package_x.rs @@ -29,11 +29,12 @@ pub fn PackageX( stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + + } } diff --git a/packages/leptos/src/receipt.rs b/packages/leptos/src/receipt.rs index 7fe8c616..be730b89 100644 --- a/packages/leptos/src/receipt.rs +++ b/packages/leptos/src/receipt.rs @@ -29,9 +29,9 @@ pub fn Receipt( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/receipt_cent.rs b/packages/leptos/src/receipt_cent.rs index 80a28750..b43b9636 100644 --- a/packages/leptos/src/receipt_cent.rs +++ b/packages/leptos/src/receipt_cent.rs @@ -29,9 +29,9 @@ pub fn ReceiptCent( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/receipt_euro.rs b/packages/leptos/src/receipt_euro.rs index aaf37880..a891d40f 100644 --- a/packages/leptos/src/receipt_euro.rs +++ b/packages/leptos/src/receipt_euro.rs @@ -29,9 +29,9 @@ pub fn ReceiptEuro( stroke-linecap="round" stroke-linejoin="round" > - + + - } } diff --git a/packages/leptos/src/receipt_indian_rupee.rs b/packages/leptos/src/receipt_indian_rupee.rs index e4919b91..c47f6bf3 100644 --- a/packages/leptos/src/receipt_indian_rupee.rs +++ b/packages/leptos/src/receipt_indian_rupee.rs @@ -29,10 +29,10 @@ pub fn ReceiptIndianRupee( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/receipt_japanese_yen.rs b/packages/leptos/src/receipt_japanese_yen.rs index 603b8688..a9e27560 100644 --- a/packages/leptos/src/receipt_japanese_yen.rs +++ b/packages/leptos/src/receipt_japanese_yen.rs @@ -29,11 +29,11 @@ pub fn ReceiptJapaneseYen( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/receipt_pound_sterling.rs b/packages/leptos/src/receipt_pound_sterling.rs index f159a442..471a4c98 100644 --- a/packages/leptos/src/receipt_pound_sterling.rs +++ b/packages/leptos/src/receipt_pound_sterling.rs @@ -29,9 +29,9 @@ pub fn ReceiptPoundSterling( stroke-linecap="round" stroke-linejoin="round" > - + + - } diff --git a/packages/leptos/src/receipt_russian_ruble.rs b/packages/leptos/src/receipt_russian_ruble.rs index a2387ccc..da57af06 100644 --- a/packages/leptos/src/receipt_russian_ruble.rs +++ b/packages/leptos/src/receipt_russian_ruble.rs @@ -29,9 +29,9 @@ pub fn ReceiptRussianRuble( stroke-linecap="round" stroke-linejoin="round" > - + + - } } diff --git a/packages/leptos/src/receipt_swiss_franc.rs b/packages/leptos/src/receipt_swiss_franc.rs index dca72000..96478c29 100644 --- a/packages/leptos/src/receipt_swiss_franc.rs +++ b/packages/leptos/src/receipt_swiss_franc.rs @@ -29,9 +29,9 @@ pub fn ReceiptSwissFranc( stroke-linecap="round" stroke-linejoin="round" > - - + + } diff --git a/packages/leptos/src/receipt_turkish_lira.rs b/packages/leptos/src/receipt_turkish_lira.rs index caa371bf..f72c018b 100644 --- a/packages/leptos/src/receipt_turkish_lira.rs +++ b/packages/leptos/src/receipt_turkish_lira.rs @@ -29,9 +29,9 @@ pub fn ReceiptTurkishLira( stroke-linecap="round" stroke-linejoin="round" > - + - + } } diff --git a/packages/leptos/src/zodiac_aquarius.rs b/packages/leptos/src/zodiac_aquarius.rs new file mode 100644 index 00000000..8155a97f --- /dev/null +++ b/packages/leptos/src/zodiac_aquarius.rs @@ -0,0 +1,36 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacAquarius( + #[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/zodiac_aries.rs b/packages/leptos/src/zodiac_aries.rs new file mode 100644 index 00000000..2f45c86a --- /dev/null +++ b/packages/leptos/src/zodiac_aries.rs @@ -0,0 +1,36 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacAries( + #[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/zodiac_cancer.rs b/packages/leptos/src/zodiac_cancer.rs new file mode 100644 index 00000000..c2b8feeb --- /dev/null +++ b/packages/leptos/src/zodiac_cancer.rs @@ -0,0 +1,38 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacCancer( + #[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/zodiac_capricorn.rs b/packages/leptos/src/zodiac_capricorn.rs new file mode 100644 index 00000000..c77a6ffa --- /dev/null +++ b/packages/leptos/src/zodiac_capricorn.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacCapricorn( + #[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/zodiac_gemini.rs b/packages/leptos/src/zodiac_gemini.rs new file mode 100644 index 00000000..3575d5f1 --- /dev/null +++ b/packages/leptos/src/zodiac_gemini.rs @@ -0,0 +1,38 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacGemini( + #[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/zodiac_leo.rs b/packages/leptos/src/zodiac_leo.rs new file mode 100644 index 00000000..1592c3c1 --- /dev/null +++ b/packages/leptos/src/zodiac_leo.rs @@ -0,0 +1,36 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacLeo( + #[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/zodiac_libra.rs b/packages/leptos/src/zodiac_libra.rs new file mode 100644 index 00000000..54c84df6 --- /dev/null +++ b/packages/leptos/src/zodiac_libra.rs @@ -0,0 +1,36 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacLibra( + #[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/zodiac_ophiuchus.rs b/packages/leptos/src/zodiac_ophiuchus.rs new file mode 100644 index 00000000..3eb93239 --- /dev/null +++ b/packages/leptos/src/zodiac_ophiuchus.rs @@ -0,0 +1,36 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacOphiuchus( + #[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/zodiac_pisces.rs b/packages/leptos/src/zodiac_pisces.rs new file mode 100644 index 00000000..5f0fe5ea --- /dev/null +++ b/packages/leptos/src/zodiac_pisces.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacPisces( + #[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/zodiac_sagittarius.rs b/packages/leptos/src/zodiac_sagittarius.rs new file mode 100644 index 00000000..4289f631 --- /dev/null +++ b/packages/leptos/src/zodiac_sagittarius.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacSagittarius( + #[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/zodiac_scorpio.rs b/packages/leptos/src/zodiac_scorpio.rs new file mode 100644 index 00000000..d4ae28b3 --- /dev/null +++ b/packages/leptos/src/zodiac_scorpio.rs @@ -0,0 +1,38 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacScorpio( + #[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/zodiac_taurus.rs b/packages/leptos/src/zodiac_taurus.rs new file mode 100644 index 00000000..8b170c39 --- /dev/null +++ b/packages/leptos/src/zodiac_taurus.rs @@ -0,0 +1,36 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacTaurus( + #[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/zodiac_virgo.rs b/packages/leptos/src/zodiac_virgo.rs new file mode 100644 index 00000000..2f00644a --- /dev/null +++ b/packages/leptos/src/zodiac_virgo.rs @@ -0,0 +1,38 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ZodiacVirgo( + #[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/cuboid.rs b/packages/yew/src/cuboid.rs index 2dd93ec8..73f61605 100644 --- a/packages/yew/src/cuboid.rs +++ b/packages/yew/src/cuboid.rs @@ -41,11 +41,11 @@ pub fn Cuboid(props: &CuboidProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + + - - } } diff --git a/packages/yew/src/fishing_rod.rs b/packages/yew/src/fishing_rod.rs new file mode 100644 index 00000000..84095f31 --- /dev/null +++ b/packages/yew/src/fishing_rod.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct FishingRodProps { + #[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, +} +#[component] +pub fn FishingRod(props: &FishingRodProps) -> 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 6001bd11..8d0308f8 100644 --- a/packages/yew/src/lib.rs +++ b/packages/yew/src/lib.rs @@ -1139,7 +1139,7 @@ mod cross; mod crosshair; #[cfg(feature = "gaming")] mod crown; -#[cfg(any(feature = "shapes", feature = "math", feature = "buildings"))] +#[cfg(any(feature = "shapes", feature = "math", feature = "food-beverage"))] mod cuboid; #[cfg(feature = "food-beverage")] mod cup_soda; @@ -1507,6 +1507,8 @@ mod fish_off; mod fish_symbol; #[cfg(any(feature = "sports", feature = "travel"))] mod fishing_hook; +#[cfg(any(feature = "sports", feature = "travel"))] +mod fishing_rod; #[cfg(any(feature = "account", feature = "social"))] mod flag; #[cfg(any(feature = "account", feature = "social"))] @@ -4249,6 +4251,32 @@ mod zap; feature = "weather" ))] mod zap_off; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_aquarius; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_aries; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_cancer; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_capricorn; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_gemini; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_leo; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_libra; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_ophiuchus; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_pisces; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_sagittarius; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_scorpio; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_taurus; +#[cfg(any(feature = "social", feature = "emoji"))] +mod zodiac_virgo; #[cfg(any( feature = "accessibility", feature = "layout", @@ -5399,7 +5427,7 @@ pub use cross::*; pub use crosshair::*; #[cfg(feature = "gaming")] pub use crown::*; -#[cfg(any(feature = "shapes", feature = "math", feature = "buildings"))] +#[cfg(any(feature = "shapes", feature = "math", feature = "food-beverage"))] pub use cuboid::*; #[cfg(feature = "food-beverage")] pub use cup_soda::*; @@ -5767,6 +5795,8 @@ pub use fish_off::*; pub use fish_symbol::*; #[cfg(any(feature = "sports", feature = "travel"))] pub use fishing_hook::*; +#[cfg(any(feature = "sports", feature = "travel"))] +pub use fishing_rod::*; #[cfg(any(feature = "account", feature = "social"))] pub use flag::*; #[cfg(any(feature = "account", feature = "social"))] @@ -8509,6 +8539,32 @@ pub use zap::*; feature = "weather" ))] pub use zap_off::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_aquarius::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_aries::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_cancer::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_capricorn::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_gemini::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_leo::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_libra::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_ophiuchus::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_pisces::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_sagittarius::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_scorpio::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_taurus::*; +#[cfg(any(feature = "social", feature = "emoji"))] +pub use zodiac_virgo::*; #[cfg(any( feature = "accessibility", feature = "layout", diff --git a/packages/yew/src/package_check.rs b/packages/yew/src/package_check.rs index ad0a9475..6dcca673 100644 --- a/packages/yew/src/package_check.rs +++ b/packages/yew/src/package_check.rs @@ -41,13 +41,13 @@ pub fn PackageCheck(props: &PackageCheckProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + + - - - + + } } diff --git a/packages/yew/src/package_minus.rs b/packages/yew/src/package_minus.rs index 99b9f56b..a60f6f97 100644 --- a/packages/yew/src/package_minus.rs +++ b/packages/yew/src/package_minus.rs @@ -41,13 +41,13 @@ pub fn PackageMinus(props: &PackageMinusProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + + - - - + + } } diff --git a/packages/yew/src/package_plus.rs b/packages/yew/src/package_plus.rs index 8dd8db27..8aed2140 100644 --- a/packages/yew/src/package_plus.rs +++ b/packages/yew/src/package_plus.rs @@ -41,14 +41,14 @@ pub fn PackagePlus(props: &PackagePlusProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + + - - - + + } } diff --git a/packages/yew/src/package_search.rs b/packages/yew/src/package_search.rs index daa26783..26fec846 100644 --- a/packages/yew/src/package_search.rs +++ b/packages/yew/src/package_search.rs @@ -41,14 +41,14 @@ pub fn PackageSearch(props: &PackageSearchProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + + - - - - - + + + } } diff --git a/packages/yew/src/package_x.rs b/packages/yew/src/package_x.rs index 204cb7fb..66724da8 100644 --- a/packages/yew/src/package_x.rs +++ b/packages/yew/src/package_x.rs @@ -41,13 +41,14 @@ pub fn PackageX(props: &PackageXProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + + + - - - - + + } } diff --git a/packages/yew/src/receipt.rs b/packages/yew/src/receipt.rs index 0c96fbec..4e4d7269 100644 --- a/packages/yew/src/receipt.rs +++ b/packages/yew/src/receipt.rs @@ -41,9 +41,11 @@ pub fn Receipt(props: &ReceiptProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/receipt_cent.rs b/packages/yew/src/receipt_cent.rs index 7a7a18fc..4a0b7da6 100644 --- a/packages/yew/src/receipt_cent.rs +++ b/packages/yew/src/receipt_cent.rs @@ -41,9 +41,11 @@ pub fn ReceiptCent(props: &ReceiptCentProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/receipt_euro.rs b/packages/yew/src/receipt_euro.rs index 04f65e91..5194ad84 100644 --- a/packages/yew/src/receipt_euro.rs +++ b/packages/yew/src/receipt_euro.rs @@ -41,9 +41,11 @@ pub fn ReceiptEuro(props: &ReceiptEuroProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + + - } } diff --git a/packages/yew/src/receipt_indian_rupee.rs b/packages/yew/src/receipt_indian_rupee.rs index c5db7add..2c20afad 100644 --- a/packages/yew/src/receipt_indian_rupee.rs +++ b/packages/yew/src/receipt_indian_rupee.rs @@ -41,10 +41,12 @@ pub fn ReceiptIndianRupee(props: &ReceiptIndianRupeeProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/receipt_japanese_yen.rs b/packages/yew/src/receipt_japanese_yen.rs index 11bb1eb5..cb67d090 100644 --- a/packages/yew/src/receipt_japanese_yen.rs +++ b/packages/yew/src/receipt_japanese_yen.rs @@ -41,11 +41,13 @@ pub fn ReceiptJapaneseYen(props: &ReceiptJapaneseYenProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/receipt_pound_sterling.rs b/packages/yew/src/receipt_pound_sterling.rs index 8f7812ab..5e85aaf1 100644 --- a/packages/yew/src/receipt_pound_sterling.rs +++ b/packages/yew/src/receipt_pound_sterling.rs @@ -41,9 +41,11 @@ pub fn ReceiptPoundSterling(props: &ReceiptPoundSterlingProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + + - } diff --git a/packages/yew/src/receipt_russian_ruble.rs b/packages/yew/src/receipt_russian_ruble.rs index fc4af7d0..a44e8c14 100644 --- a/packages/yew/src/receipt_russian_ruble.rs +++ b/packages/yew/src/receipt_russian_ruble.rs @@ -41,9 +41,11 @@ pub fn ReceiptRussianRuble(props: &ReceiptRussianRubleProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + + - } } diff --git a/packages/yew/src/receipt_swiss_franc.rs b/packages/yew/src/receipt_swiss_franc.rs index 9e5709b9..9b47ceea 100644 --- a/packages/yew/src/receipt_swiss_franc.rs +++ b/packages/yew/src/receipt_swiss_franc.rs @@ -41,9 +41,11 @@ pub fn ReceiptSwissFranc(props: &ReceiptSwissFrancProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } diff --git a/packages/yew/src/receipt_turkish_lira.rs b/packages/yew/src/receipt_turkish_lira.rs index 6ad7ecaf..e0242f3d 100644 --- a/packages/yew/src/receipt_turkish_lira.rs +++ b/packages/yew/src/receipt_turkish_lira.rs @@ -41,9 +41,11 @@ pub fn ReceiptTurkishLira(props: &ReceiptTurkishLiraProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + - + } } diff --git a/packages/yew/src/zodiac_aquarius.rs b/packages/yew/src/zodiac_aquarius.rs new file mode 100644 index 00000000..123d1276 --- /dev/null +++ b/packages/yew/src/zodiac_aquarius.rs @@ -0,0 +1,52 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacAquariusProps { + #[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, +} +#[component] +pub fn ZodiacAquarius(props: &ZodiacAquariusProps) -> 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/zodiac_aries.rs b/packages/yew/src/zodiac_aries.rs new file mode 100644 index 00000000..e8c352b1 --- /dev/null +++ b/packages/yew/src/zodiac_aries.rs @@ -0,0 +1,48 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacAriesProps { + #[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, +} +#[component] +pub fn ZodiacAries(props: &ZodiacAriesProps) -> 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/zodiac_cancer.rs b/packages/yew/src/zodiac_cancer.rs new file mode 100644 index 00000000..4fc486f4 --- /dev/null +++ b/packages/yew/src/zodiac_cancer.rs @@ -0,0 +1,50 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacCancerProps { + #[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, +} +#[component] +pub fn ZodiacCancer(props: &ZodiacCancerProps) -> 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/zodiac_capricorn.rs b/packages/yew/src/zodiac_capricorn.rs new file mode 100644 index 00000000..72f10edf --- /dev/null +++ b/packages/yew/src/zodiac_capricorn.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacCapricornProps { + #[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, +} +#[component] +pub fn ZodiacCapricorn(props: &ZodiacCapricornProps) -> 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/zodiac_gemini.rs b/packages/yew/src/zodiac_gemini.rs new file mode 100644 index 00000000..2158703e --- /dev/null +++ b/packages/yew/src/zodiac_gemini.rs @@ -0,0 +1,50 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacGeminiProps { + #[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, +} +#[component] +pub fn ZodiacGemini(props: &ZodiacGeminiProps) -> 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/zodiac_leo.rs b/packages/yew/src/zodiac_leo.rs new file mode 100644 index 00000000..6f1231cd --- /dev/null +++ b/packages/yew/src/zodiac_leo.rs @@ -0,0 +1,48 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacLeoProps { + #[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, +} +#[component] +pub fn ZodiacLeo(props: &ZodiacLeoProps) -> 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/zodiac_libra.rs b/packages/yew/src/zodiac_libra.rs new file mode 100644 index 00000000..1df125a8 --- /dev/null +++ b/packages/yew/src/zodiac_libra.rs @@ -0,0 +1,50 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacLibraProps { + #[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, +} +#[component] +pub fn ZodiacLibra(props: &ZodiacLibraProps) -> 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/zodiac_ophiuchus.rs b/packages/yew/src/zodiac_ophiuchus.rs new file mode 100644 index 00000000..9cf5b4b8 --- /dev/null +++ b/packages/yew/src/zodiac_ophiuchus.rs @@ -0,0 +1,48 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacOphiuchusProps { + #[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, +} +#[component] +pub fn ZodiacOphiuchus(props: &ZodiacOphiuchusProps) -> 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/zodiac_pisces.rs b/packages/yew/src/zodiac_pisces.rs new file mode 100644 index 00000000..2d68986a --- /dev/null +++ b/packages/yew/src/zodiac_pisces.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacPiscesProps { + #[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, +} +#[component] +pub fn ZodiacPisces(props: &ZodiacPiscesProps) -> 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/zodiac_sagittarius.rs b/packages/yew/src/zodiac_sagittarius.rs new file mode 100644 index 00000000..a2d0d932 --- /dev/null +++ b/packages/yew/src/zodiac_sagittarius.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacSagittariusProps { + #[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, +} +#[component] +pub fn ZodiacSagittarius(props: &ZodiacSagittariusProps) -> 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/zodiac_scorpio.rs b/packages/yew/src/zodiac_scorpio.rs new file mode 100644 index 00000000..45d508c0 --- /dev/null +++ b/packages/yew/src/zodiac_scorpio.rs @@ -0,0 +1,50 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacScorpioProps { + #[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, +} +#[component] +pub fn ZodiacScorpio(props: &ZodiacScorpioProps) -> 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/zodiac_taurus.rs b/packages/yew/src/zodiac_taurus.rs new file mode 100644 index 00000000..2128870b --- /dev/null +++ b/packages/yew/src/zodiac_taurus.rs @@ -0,0 +1,48 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacTaurusProps { + #[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, +} +#[component] +pub fn ZodiacTaurus(props: &ZodiacTaurusProps) -> 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/zodiac_virgo.rs b/packages/yew/src/zodiac_virgo.rs new file mode 100644 index 00000000..b4631382 --- /dev/null +++ b/packages/yew/src/zodiac_virgo.rs @@ -0,0 +1,50 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ZodiacVirgoProps { + #[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, +} +#[component] +pub fn ZodiacVirgo(props: &ZodiacVirgoProps) -> 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 efa13ced..bf81b9fb 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.575.0"; +pub const UPSTREAM_GIT_REF: &str = "0.576.0"; pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";