diff --git a/book-examples/dioxus/src/icons.rs b/book-examples/dioxus/src/icons.rs index 0056fde..0f577a5 100644 --- a/book-examples/dioxus/src/icons.rs +++ b/book-examples/dioxus/src/icons.rs @@ -8453,6 +8453,12 @@ pub fn IconsS2() -> Element { }, "Square Dashed Mouse Pointer", ), + ( + rsx! { + SquareDashedTopSolid {} + }, + "Square Dashed Top Solid", + ), ( rsx! { SquareDivide {} @@ -8777,12 +8783,6 @@ pub fn IconsS2() -> Element { }, "Sun Dim", ), - ( - rsx! { - SunMedium {} - }, - "Sun Medium", - ), ]; rsx! { for (icon , name) in icons { @@ -8798,6 +8798,12 @@ pub fn IconsS2() -> Element { #[component] pub fn IconsS3() -> Element { let icons = [ + ( + rsx! { + SunMedium {} + }, + "Sun Medium", + ), ( rsx! { SunMoon {} diff --git a/book-examples/leptos/src/icons.rs b/book-examples/leptos/src/icons.rs index 1780abd..3291db6 100644 --- a/book-examples/leptos/src/icons.rs +++ b/book-examples/leptos/src/icons.rs @@ -1743,6 +1743,7 @@ pub fn IconsS() -> impl IntoView { (view! { }.into_any(), "Square Dashed Bottom Code"), (view! { }.into_any(), "Square Dashed Kanban"), (view! { }.into_any(), "Square Dashed Mouse Pointer"), + (view! { }.into_any(), "Square Dashed Top Solid"), (view! { }.into_any(), "Square Divide"), (view! { }.into_any(), "Square Dot"), (view! { }.into_any(), "Square Equal"), diff --git a/book-examples/yew/src/icons.rs b/book-examples/yew/src/icons.rs index bf4060b..a594b36 100644 --- a/book-examples/yew/src/icons.rs +++ b/book-examples/yew/src/icons.rs @@ -1786,6 +1786,10 @@ pub fn IconsS() -> Html { html! { }, "Square Dashed Mouse Pointer", ), + ( + html! { }, + "Square Dashed Top Solid", + ), (html! { }, "Square Divide"), (html! { }, "Square Dot"), (html! { }, "Square Equal"), diff --git a/packages/dioxus/src/axis_3_d.rs b/packages/dioxus/src/axis_3_d.rs index 5e87589..2013de8 100644 --- a/packages/dioxus/src/axis_3_d.rs +++ b/packages/dioxus/src/axis_3_d.rs @@ -34,8 +34,10 @@ pub fn Axis3D(props: Axis3DProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 4v16h16" } - path { "d": "m4 20 7-7" } + path { "d": "M13.5 10.5 15 9" } + path { "d": "M4 4v15a1 1 0 0 0 1 1h15" } + path { "d": "M4.293 19.707 6 18" } + path { "d": "m9 15 1.5-1.5" } } } } diff --git a/packages/dioxus/src/chevrons_left_right_ellipsis.rs b/packages/dioxus/src/chevrons_left_right_ellipsis.rs index 02882a5..8ac0e31 100644 --- a/packages/dioxus/src/chevrons_left_right_ellipsis.rs +++ b/packages/dioxus/src/chevrons_left_right_ellipsis.rs @@ -34,11 +34,11 @@ pub fn ChevronsLeftRightEllipsis(props: ChevronsLeftRightEllipsisProps) -> Eleme "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "m18 8 4 4-4 4" } - path { "d": "m6 8-4 4 4 4" } - path { "d": "M8 12h.01" } path { "d": "M12 12h.01" } path { "d": "M16 12h.01" } + path { "d": "m17 7 5 5-5 5" } + path { "d": "m7 7-5 5 5 5" } + path { "d": "M8 12h.01" } } } } diff --git a/packages/dioxus/src/clock_6.rs b/packages/dioxus/src/clock_6.rs index 52c85bb..8a3f262 100644 --- a/packages/dioxus/src/clock_6.rs +++ b/packages/dioxus/src/clock_6.rs @@ -34,8 +34,8 @@ pub fn Clock6(props: Clock6Props) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M12 16.5V6" } circle { "cx": "12", "cy": "12", "r": "10" } - polyline { "points": "12 6 12 12 12 16.5" } } } } diff --git a/packages/dioxus/src/code.rs b/packages/dioxus/src/code.rs index 4e9c0a0..3be3ef1 100644 --- a/packages/dioxus/src/code.rs +++ b/packages/dioxus/src/code.rs @@ -34,8 +34,8 @@ pub fn Code(props: CodeProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "16 18 22 12 16 6" } - polyline { "points": "8 6 2 12 8 18" } + path { "d": "m16 18 6-6-6-6" } + path { "d": "m8 6-6 6 6 6" } } } } diff --git a/packages/dioxus/src/corner_down_left.rs b/packages/dioxus/src/corner_down_left.rs index d4722c5..03061be 100644 --- a/packages/dioxus/src/corner_down_left.rs +++ b/packages/dioxus/src/corner_down_left.rs @@ -34,8 +34,8 @@ pub fn CornerDownLeft(props: CornerDownLeftProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "9 10 4 15 9 20" } path { "d": "M20 4v7a4 4 0 0 1-4 4H4" } + path { "d": "m9 10-5 5 5 5" } } } } diff --git a/packages/dioxus/src/corner_down_right.rs b/packages/dioxus/src/corner_down_right.rs index ec2f80e..dfd5cac 100644 --- a/packages/dioxus/src/corner_down_right.rs +++ b/packages/dioxus/src/corner_down_right.rs @@ -34,7 +34,7 @@ pub fn CornerDownRight(props: CornerDownRightProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "15 10 20 15 15 20" } + path { "d": "m15 10 5 5-5 5" } path { "d": "M4 4v7a4 4 0 0 0 4 4h12" } } } diff --git a/packages/dioxus/src/corner_left_down.rs b/packages/dioxus/src/corner_left_down.rs index 06a626a..2a6369a 100644 --- a/packages/dioxus/src/corner_left_down.rs +++ b/packages/dioxus/src/corner_left_down.rs @@ -34,7 +34,7 @@ pub fn CornerLeftDown(props: CornerLeftDownProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "14 15 9 20 4 15" } + path { "d": "m14 15-5 5-5-5" } path { "d": "M20 4h-7a4 4 0 0 0-4 4v12" } } } diff --git a/packages/dioxus/src/corner_left_up.rs b/packages/dioxus/src/corner_left_up.rs index ee70bf7..c8e5068 100644 --- a/packages/dioxus/src/corner_left_up.rs +++ b/packages/dioxus/src/corner_left_up.rs @@ -34,7 +34,7 @@ pub fn CornerLeftUp(props: CornerLeftUpProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "14 9 9 4 4 9" } + path { "d": "M14 9 9 4 4 9" } path { "d": "M20 20h-7a4 4 0 0 1-4-4V4" } } } diff --git a/packages/dioxus/src/corner_right_down.rs b/packages/dioxus/src/corner_right_down.rs index 10ec9a2..bf142a3 100644 --- a/packages/dioxus/src/corner_right_down.rs +++ b/packages/dioxus/src/corner_right_down.rs @@ -34,7 +34,7 @@ pub fn CornerRightDown(props: CornerRightDownProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "10 15 15 20 20 15" } + path { "d": "m10 15 5 5 5-5" } path { "d": "M4 4h7a4 4 0 0 1 4 4v12" } } } diff --git a/packages/dioxus/src/corner_right_up.rs b/packages/dioxus/src/corner_right_up.rs index 0920644..1367999 100644 --- a/packages/dioxus/src/corner_right_up.rs +++ b/packages/dioxus/src/corner_right_up.rs @@ -34,7 +34,7 @@ pub fn CornerRightUp(props: CornerRightUpProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "10 9 15 4 20 9" } + path { "d": "m10 9 5-5 5 5" } path { "d": "M4 20h7a4 4 0 0 0 4-4V4" } } } diff --git a/packages/dioxus/src/corner_up_left.rs b/packages/dioxus/src/corner_up_left.rs index b54c0c2..a212d37 100644 --- a/packages/dioxus/src/corner_up_left.rs +++ b/packages/dioxus/src/corner_up_left.rs @@ -34,8 +34,8 @@ pub fn CornerUpLeft(props: CornerUpLeftProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "9 14 4 9 9 4" } path { "d": "M20 20v-7a4 4 0 0 0-4-4H4" } + path { "d": "M9 14 4 9l5-5" } } } } diff --git a/packages/dioxus/src/corner_up_right.rs b/packages/dioxus/src/corner_up_right.rs index 809cccd..89bee4b 100644 --- a/packages/dioxus/src/corner_up_right.rs +++ b/packages/dioxus/src/corner_up_right.rs @@ -34,7 +34,7 @@ pub fn CornerUpRight(props: CornerUpRightProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "15 14 20 9 15 4" } + path { "d": "m15 14 5-5-5-5" } path { "d": "M4 20v-7a4 4 0 0 1 4-4h12" } } } diff --git a/packages/dioxus/src/download.rs b/packages/dioxus/src/download.rs index 5e55452..85fcafb 100644 --- a/packages/dioxus/src/download.rs +++ b/packages/dioxus/src/download.rs @@ -34,14 +34,9 @@ pub fn Download(props: DownloadProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M12 15V3" } path { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" } - polyline { "points": "7 10 12 15 17 10" } - line { - "x1": "12", - "x2": "12", - "y1": "15", - "y2": "3", - } + path { "d": "m7 10 5 5 5-5" } } } } diff --git a/packages/dioxus/src/factory.rs b/packages/dioxus/src/factory.rs index b4033e8..5448b9e 100644 --- a/packages/dioxus/src/factory.rs +++ b/packages/dioxus/src/factory.rs @@ -34,10 +34,10 @@ pub fn Factory(props: FactoryProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z" } - path { "d": "M17 18h1" } - path { "d": "M12 18h1" } - path { "d": "M7 18h1" } + path { "d": "M12 16h.01" } + path { "d": "M16 16h.01" } + path { "d": "M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z" } + path { "d": "M8 16h.01" } } } } diff --git a/packages/dioxus/src/forward.rs b/packages/dioxus/src/forward.rs index 86f29af..fd79fe1 100644 --- a/packages/dioxus/src/forward.rs +++ b/packages/dioxus/src/forward.rs @@ -34,7 +34,7 @@ pub fn Forward(props: ForwardProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "15 17 20 12 15 7" } + path { "d": "m15 17 5-5-5-5" } path { "d": "M4 18v-2a4 4 0 0 1 4-4h12" } } } diff --git a/packages/dioxus/src/iteration_ccw.rs b/packages/dioxus/src/iteration_ccw.rs index 61c6875..bdf826d 100644 --- a/packages/dioxus/src/iteration_ccw.rs +++ b/packages/dioxus/src/iteration_ccw.rs @@ -34,8 +34,8 @@ pub fn IterationCcw(props: IterationCcwProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M20 10c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8h8" } - polyline { "points": "16 14 20 18 16 22" } + path { "d": "m16 14 4 4-4 4" } + path { "d": "M20 10a8 8 0 1 0-8 8h8" } } } } diff --git a/packages/dioxus/src/iteration_cw.rs b/packages/dioxus/src/iteration_cw.rs index 7fb67e7..277ade2 100644 --- a/packages/dioxus/src/iteration_cw.rs +++ b/packages/dioxus/src/iteration_cw.rs @@ -34,8 +34,8 @@ pub fn IterationCw(props: IterationCwProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M4 10c0-4.4 3.6-8 8-8s8 3.6 8 8-3.6 8-8 8H4" } - polyline { "points": "8 22 4 18 8 14" } + path { "d": "M4 10a8 8 0 1 1 8 8H4" } + path { "d": "m8 22-4-4 4-4" } } } } diff --git a/packages/dioxus/src/landmark.rs b/packages/dioxus/src/landmark.rs index 9e7995a..49d7144 100644 --- a/packages/dioxus/src/landmark.rs +++ b/packages/dioxus/src/landmark.rs @@ -34,37 +34,12 @@ pub fn Landmark(props: LandmarkProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "3", - "x2": "21", - "y1": "22", - "y2": "22", - } - line { - "x1": "6", - "x2": "6", - "y1": "18", - "y2": "11", - } - line { - "x1": "10", - "x2": "10", - "y1": "18", - "y2": "11", - } - line { - "x1": "14", - "x2": "14", - "y1": "18", - "y2": "11", - } - line { - "x1": "18", - "x2": "18", - "y1": "18", - "y2": "11", - } - polygon { "points": "12 2 20 7 4 7" } + path { "d": "M10 18v-7" } + path { "d": "M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z" } + path { "d": "M14 18v-7" } + path { "d": "M18 18v-7" } + path { "d": "M3 22h18" } + path { "d": "M6 18v-7" } } } } diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs index 77f6a87..e7da2d5 100644 --- a/packages/dioxus/src/lib.rs +++ b/packages/dioxus/src/lib.rs @@ -3379,6 +3379,8 @@ mod square_dashed_kanban; feature = "tools" ))] mod square_dashed_mouse_pointer; +#[cfg(any(feature = "design", feature = "development", feature = "layout"))] +mod square_dashed_top_solid; #[cfg(feature = "math")] mod square_divide; #[cfg(feature = "development")] @@ -7421,6 +7423,8 @@ pub use square_dashed_kanban::*; feature = "tools" ))] pub use square_dashed_mouse_pointer::*; +#[cfg(any(feature = "design", feature = "development", feature = "layout"))] +pub use square_dashed_top_solid::*; #[cfg(feature = "math")] pub use square_divide::*; #[cfg(feature = "development")] diff --git a/packages/dioxus/src/log_in.rs b/packages/dioxus/src/log_in.rs index 6971bb4..d309861 100644 --- a/packages/dioxus/src/log_in.rs +++ b/packages/dioxus/src/log_in.rs @@ -34,14 +34,9 @@ pub fn LogIn(props: LogInProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "m10 17 5-5-5-5" } + path { "d": "M15 12H3" } path { "d": "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" } - polyline { "points": "10 17 15 12 10 7" } - line { - "x1": "15", - "x2": "3", - "y1": "12", - "y2": "12", - } } } } diff --git a/packages/dioxus/src/log_out.rs b/packages/dioxus/src/log_out.rs index 74ce6c8..2489ccc 100644 --- a/packages/dioxus/src/log_out.rs +++ b/packages/dioxus/src/log_out.rs @@ -34,14 +34,9 @@ pub fn LogOut(props: LogOutProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "m16 17 5-5-5-5" } + path { "d": "M21 12H9" } path { "d": "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" } - polyline { "points": "16 17 21 12 16 7" } - line { - "x1": "21", - "x2": "9", - "y1": "12", - "y2": "12", - } } } } diff --git a/packages/dioxus/src/maximize_2.rs b/packages/dioxus/src/maximize_2.rs index 51f0395..8de0580 100644 --- a/packages/dioxus/src/maximize_2.rs +++ b/packages/dioxus/src/maximize_2.rs @@ -34,20 +34,10 @@ pub fn Maximize2(props: Maximize2Props) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "15 3 21 3 21 9" } - polyline { "points": "9 21 3 21 3 15" } - line { - "x1": "21", - "x2": "14", - "y1": "3", - "y2": "10", - } - line { - "x1": "3", - "x2": "10", - "y1": "21", - "y2": "14", - } + path { "d": "M15 3h6v6" } + path { "d": "m21 3-7 7" } + path { "d": "m3 21 7-7" } + path { "d": "M9 21H3v-6" } } } } diff --git a/packages/dioxus/src/minimize_2.rs b/packages/dioxus/src/minimize_2.rs index afb44d5..434cab9 100644 --- a/packages/dioxus/src/minimize_2.rs +++ b/packages/dioxus/src/minimize_2.rs @@ -34,20 +34,10 @@ pub fn Minimize2(props: Minimize2Props) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "4 14 10 14 10 20" } - polyline { "points": "20 10 14 10 14 4" } - line { - "x1": "14", - "x2": "21", - "y1": "10", - "y2": "3", - } - line { - "x1": "3", - "x2": "10", - "y1": "21", - "y2": "14", - } + path { "d": "m14 10 7-7" } + path { "d": "M20 10h-6V4" } + path { "d": "m3 21 7-7" } + path { "d": "M4 14h6v6" } } } } diff --git a/packages/dioxus/src/reply.rs b/packages/dioxus/src/reply.rs index 87cbe14..895a283 100644 --- a/packages/dioxus/src/reply.rs +++ b/packages/dioxus/src/reply.rs @@ -34,8 +34,8 @@ pub fn Reply(props: ReplyProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "9 17 4 12 9 7" } path { "d": "M20 18v-2a4 4 0 0 0-4-4H4" } + path { "d": "m9 17-5-5 5-5" } } } } diff --git a/packages/dioxus/src/reply_all.rs b/packages/dioxus/src/reply_all.rs index e27088d..4451fef 100644 --- a/packages/dioxus/src/reply_all.rs +++ b/packages/dioxus/src/reply_all.rs @@ -34,9 +34,9 @@ pub fn ReplyAll(props: ReplyAllProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "7 17 2 12 7 7" } - polyline { "points": "12 17 7 12 12 7" } + path { "d": "m12 17-5-5 5-5" } path { "d": "M22 18v-2a4 4 0 0 0-4-4H7" } + path { "d": "m7 17-5-5 5-5" } } } } diff --git a/packages/dioxus/src/satellite.rs b/packages/dioxus/src/satellite.rs index 992196d..084e691 100644 --- a/packages/dioxus/src/satellite.rs +++ b/packages/dioxus/src/satellite.rs @@ -34,11 +34,11 @@ pub fn Satellite(props: SatelliteProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M13 7 9 3 5 7l4 4" } - path { "d": "m17 11 4 4-4 4-4-4" } - path { "d": "m8 12 4 4 6-6-4-4Z" } - path { "d": "m16 8 3-3" } + path { "d": "m13.5 6.5-3.148-3.148a1.205 1.205 0 0 0-1.704 0L6.352 5.648a1.205 1.205 0 0 0 0 1.704L9.5 10.5" } + path { "d": "M16.5 7.5 19 5" } + path { "d": "m17.5 10.5 3.148 3.148a1.205 1.205 0 0 1 0 1.704l-2.296 2.296a1.205 1.205 0 0 1-1.704 0L13.5 14.5" } path { "d": "M9 21a6 6 0 0 0-6-6" } + path { "d": "M9.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l4.296-4.296a1.205 1.205 0 0 0 0-1.704l-2.296-2.296a1.205 1.205 0 0 0-1.704 0z" } } } } diff --git a/packages/dioxus/src/separator_horizontal.rs b/packages/dioxus/src/separator_horizontal.rs index 3bd3cd7..038babb 100644 --- a/packages/dioxus/src/separator_horizontal.rs +++ b/packages/dioxus/src/separator_horizontal.rs @@ -34,14 +34,9 @@ pub fn SeparatorHorizontal(props: SeparatorHorizontalProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "3", - "x2": "21", - "y1": "12", - "y2": "12", - } - polyline { "points": "8 8 12 4 16 8" } - polyline { "points": "16 16 12 20 8 16" } + path { "d": "m16 16-4 4-4-4" } + path { "d": "M3 12h18" } + path { "d": "m8 8 4-4 4 4" } } } } diff --git a/packages/dioxus/src/separator_vertical.rs b/packages/dioxus/src/separator_vertical.rs index 5fd3713..3612205 100644 --- a/packages/dioxus/src/separator_vertical.rs +++ b/packages/dioxus/src/separator_vertical.rs @@ -34,14 +34,9 @@ pub fn SeparatorVertical(props: SeparatorVerticalProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "12", - "x2": "12", - "y1": "3", - "y2": "21", - } - polyline { "points": "8 8 4 12 8 16" } - polyline { "points": "16 16 20 12 16 8" } + path { "d": "M12 3v18" } + path { "d": "m16 16 4-4-4-4" } + path { "d": "m8 8-4 4 4 4" } } } } diff --git a/packages/dioxus/src/share.rs b/packages/dioxus/src/share.rs index 3083e5e..10e2fad 100644 --- a/packages/dioxus/src/share.rs +++ b/packages/dioxus/src/share.rs @@ -34,14 +34,9 @@ pub fn Share(props: ShareProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M12 2v13" } + path { "d": "m16 6-4-4-4 4" } path { "d": "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" } - polyline { "points": "16 6 12 2 8 6" } - line { - "x1": "12", - "x2": "12", - "y1": "2", - "y2": "15", - } } } } diff --git a/packages/dioxus/src/square_code.rs b/packages/dioxus/src/square_code.rs index 5ac893b..06813b6 100644 --- a/packages/dioxus/src/square_code.rs +++ b/packages/dioxus/src/square_code.rs @@ -34,13 +34,13 @@ pub fn SquareCode(props: SquareCodeProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M10 9.5 8 12l2 2.5" } - path { "d": "m14 9.5 2 2.5-2 2.5" } + path { "d": "m10 9-3 3 3 3" } + path { "d": "m14 15 3-3-3-3" } rect { - "width": "18", - "height": "18", "x": "3", "y": "3", + "width": "18", + "height": "18", "rx": "2", } } diff --git a/packages/dioxus/src/square_dashed_top_solid.rs b/packages/dioxus/src/square_dashed_top_solid.rs new file mode 100644 index 0000000..c242d15 --- /dev/null +++ b/packages/dioxus/src/square_dashed_top_solid.rs @@ -0,0 +1,48 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct SquareDashedTopSolidProps { + #[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 SquareDashedTopSolid(props: SquareDashedTopSolidProps) -> Element { + let stroke_width = if props.absolute_stroke_width { + props.stroke_width * 24 / props.size + } else { + props.stroke_width + }; + rsx! { + svg { + "xmlns": "http://www.w3.org/2000/svg", + "class": if let Some(class) = props.class { "{class}" }, + "style": if let Some(style) = props.style { "{style}" }, + "width": "{props.size}", + "height": "{props.size}", + "viewBox": "0 0 24 24", + "fill": "{props.fill}", + "stroke": "{props.color}", + "stroke-width": "{stroke_width}", + "stroke-linecap": "round", + "stroke-linejoin": "round", + path { "d": "M14 21h1" } + path { "d": "M21 14v1" } + path { "d": "M21 19a2 2 0 0 1-2 2" } + path { "d": "M21 9v1" } + path { "d": "M3 14v1" } + path { "d": "M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2" } + path { "d": "M3 9v1" } + path { "d": "M5 21a2 2 0 0 1-2-2" } + path { "d": "M9 21h1" } + } + } +} diff --git a/packages/dioxus/src/terminal.rs b/packages/dioxus/src/terminal.rs index 232f752..d0fa55a 100644 --- a/packages/dioxus/src/terminal.rs +++ b/packages/dioxus/src/terminal.rs @@ -34,13 +34,8 @@ pub fn Terminal(props: TerminalProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "4 17 10 11 4 5" } - line { - "x1": "12", - "x2": "20", - "y1": "19", - "y2": "19", - } + path { "d": "M12 19h8" } + path { "d": "m4 17 6-6-6-6" } } } } diff --git a/packages/dioxus/src/trending_down.rs b/packages/dioxus/src/trending_down.rs index 42b1679..7f4311d 100644 --- a/packages/dioxus/src/trending_down.rs +++ b/packages/dioxus/src/trending_down.rs @@ -34,8 +34,8 @@ pub fn TrendingDown(props: TrendingDownProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "22 17 13.5 8.5 8.5 13.5 2 7" } - polyline { "points": "16 17 22 17 22 11" } + path { "d": "M16 17h6v-6" } + path { "d": "m22 17-8.5-8.5-5 5L2 7" } } } } diff --git a/packages/dioxus/src/trending_up.rs b/packages/dioxus/src/trending_up.rs index 0f9ae4e..805668c 100644 --- a/packages/dioxus/src/trending_up.rs +++ b/packages/dioxus/src/trending_up.rs @@ -34,8 +34,8 @@ pub fn TrendingUp(props: TrendingUpProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "22 7 13.5 15.5 8.5 10.5 2 17" } - polyline { "points": "16 7 22 7 22 13" } + path { "d": "M16 7h6v6" } + path { "d": "m22 7-8.5 8.5-5-5L2 17" } } } } diff --git a/packages/dioxus/src/tv.rs b/packages/dioxus/src/tv.rs index 64d4c61..254aebf 100644 --- a/packages/dioxus/src/tv.rs +++ b/packages/dioxus/src/tv.rs @@ -34,15 +34,14 @@ pub fn Tv(props: TvProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "m17 2-5 5-5-5" } rect { "width": "20", "height": "15", "x": "2", "y": "7", "rx": "2", - "ry": "2", } - polyline { "points": "17 2 12 7 7 2" } } } } diff --git a/packages/dioxus/src/type.rs b/packages/dioxus/src/type.rs index 769cbde..9c23550 100644 --- a/packages/dioxus/src/type.rs +++ b/packages/dioxus/src/type.rs @@ -34,19 +34,9 @@ pub fn Type(props: TypeProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polyline { "points": "4 7 4 4 20 4 20 7" } - line { - "x1": "9", - "x2": "15", - "y1": "20", - "y2": "20", - } - line { - "x1": "12", - "x2": "12", - "y1": "4", - "y2": "20", - } + path { "d": "M12 4v16" } + path { "d": "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" } + path { "d": "M9 20h6" } } } } diff --git a/packages/dioxus/src/university.rs b/packages/dioxus/src/university.rs index e4bf462..9b03d2f 100644 --- a/packages/dioxus/src/university.rs +++ b/packages/dioxus/src/university.rs @@ -34,13 +34,13 @@ pub fn University(props: UniversityProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - circle { "cx": "12", "cy": "10", "r": "1" } - path { "d": "M22 20V8h-4l-6-4-6 4H2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2" } - path { "d": "M6 17v.01" } - path { "d": "M6 13v.01" } - path { "d": "M18 17v.01" } - path { "d": "M18 13v.01" } - path { "d": "M14 22v-5a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" } + path { "d": "M14 21v-3a2 2 0 0 0-4 0v3" } + path { "d": "M18 12h.01" } + path { "d": "M18 16h.01" } + path { "d": "M22 7a1 1 0 0 0-1-1h-2a2 2 0 0 1-1.143-.359L13.143 2.36a2 2 0 0 0-2.286-.001L6.143 5.64A2 2 0 0 1 5 6H3a1 1 0 0 0-1 1v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2z" } + path { "d": "M6 12h.01" } + path { "d": "M6 16h.01" } + circle { "cx": "12", "cy": "10", "r": "2" } } } } diff --git a/packages/dioxus/src/upload.rs b/packages/dioxus/src/upload.rs index 7d25f8e..cfd1624 100644 --- a/packages/dioxus/src/upload.rs +++ b/packages/dioxus/src/upload.rs @@ -34,14 +34,9 @@ pub fn Upload(props: UploadProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M12 3v12" } + path { "d": "m17 8-5-5-5 5" } path { "d": "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" } - polyline { "points": "17 8 12 3 7 8" } - line { - "x1": "12", - "x2": "12", - "y1": "3", - "y2": "15", - } } } } diff --git a/packages/dioxus/src/user_check.rs b/packages/dioxus/src/user_check.rs index e850de5..307d36d 100644 --- a/packages/dioxus/src/user_check.rs +++ b/packages/dioxus/src/user_check.rs @@ -34,9 +34,9 @@ pub fn UserCheck(props: UserCheckProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "m16 11 2 2 4-4" } path { "d": "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" } circle { "cx": "9", "cy": "7", "r": "4" } - polyline { "points": "16 11 18 13 22 9" } } } } diff --git a/packages/dioxus/src/warehouse.rs b/packages/dioxus/src/warehouse.rs index 8c335bb..db103fc 100644 --- a/packages/dioxus/src/warehouse.rs +++ b/packages/dioxus/src/warehouse.rs @@ -34,15 +34,10 @@ pub fn Warehouse(props: WarehouseProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z" } - path { "d": "M6 18h12" } - path { "d": "M6 14h12" } - rect { - "width": "12", - "height": "12", - "x": "6", - "y": "10", - } + path { "d": "M18 21V10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11" } + path { "d": "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 1.132-1.803l7.95-3.974a2 2 0 0 1 1.837 0l7.948 3.974A2 2 0 0 1 22 8z" } + path { "d": "M6 13h12" } + path { "d": "M6 17h12" } } } } diff --git a/packages/dioxus/src/wrap_text.rs b/packages/dioxus/src/wrap_text.rs index 54a81b3..629b9b1 100644 --- a/packages/dioxus/src/wrap_text.rs +++ b/packages/dioxus/src/wrap_text.rs @@ -34,20 +34,10 @@ pub fn WrapText(props: WrapTextProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "3", - "x2": "21", - "y1": "6", - "y2": "6", - } + path { "d": "m16 16-2 2 2 2" } path { "d": "M3 12h15a3 3 0 1 1 0 6h-4" } - polyline { "points": "16 16 14 18 16 20" } - line { - "x1": "3", - "x2": "10", - "y1": "18", - "y2": "18", - } + path { "d": "M3 18h7" } + path { "d": "M3 6h18" } } } } diff --git a/packages/leptos/src/axis_3_d.rs b/packages/leptos/src/axis_3_d.rs index a8e62ce..ba66018 100644 --- a/packages/leptos/src/axis_3_d.rs +++ b/packages/leptos/src/axis_3_d.rs @@ -29,8 +29,10 @@ pub fn Axis3D( stroke-linecap="round" stroke-linejoin="round" > - - + + + + } } diff --git a/packages/leptos/src/chevrons_left_right_ellipsis.rs b/packages/leptos/src/chevrons_left_right_ellipsis.rs index b8ed0ee..f22ab39 100644 --- a/packages/leptos/src/chevrons_left_right_ellipsis.rs +++ b/packages/leptos/src/chevrons_left_right_ellipsis.rs @@ -29,11 +29,11 @@ pub fn ChevronsLeftRightEllipsis( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/clock_6.rs b/packages/leptos/src/clock_6.rs index e4545cb..4859f3a 100644 --- a/packages/leptos/src/clock_6.rs +++ b/packages/leptos/src/clock_6.rs @@ -29,8 +29,8 @@ pub fn Clock6( stroke-linecap="round" stroke-linejoin="round" > + - } } diff --git a/packages/leptos/src/code.rs b/packages/leptos/src/code.rs index 71deb34..4e48499 100644 --- a/packages/leptos/src/code.rs +++ b/packages/leptos/src/code.rs @@ -29,8 +29,8 @@ pub fn Code( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/corner_down_left.rs b/packages/leptos/src/corner_down_left.rs index f6b9c6e..2500815 100644 --- a/packages/leptos/src/corner_down_left.rs +++ b/packages/leptos/src/corner_down_left.rs @@ -29,8 +29,8 @@ pub fn CornerDownLeft( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/corner_down_right.rs b/packages/leptos/src/corner_down_right.rs index 9eaa947..86c13de 100644 --- a/packages/leptos/src/corner_down_right.rs +++ b/packages/leptos/src/corner_down_right.rs @@ -29,7 +29,7 @@ pub fn CornerDownRight( stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/leptos/src/corner_left_down.rs b/packages/leptos/src/corner_left_down.rs index f83221b..cd2e8c4 100644 --- a/packages/leptos/src/corner_left_down.rs +++ b/packages/leptos/src/corner_left_down.rs @@ -29,7 +29,7 @@ pub fn CornerLeftDown( stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/leptos/src/corner_left_up.rs b/packages/leptos/src/corner_left_up.rs index e3df242..3d1966b 100644 --- a/packages/leptos/src/corner_left_up.rs +++ b/packages/leptos/src/corner_left_up.rs @@ -29,7 +29,7 @@ pub fn CornerLeftUp( stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/leptos/src/corner_right_down.rs b/packages/leptos/src/corner_right_down.rs index 2c48087..5046e4d 100644 --- a/packages/leptos/src/corner_right_down.rs +++ b/packages/leptos/src/corner_right_down.rs @@ -29,7 +29,7 @@ pub fn CornerRightDown( stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/leptos/src/corner_right_up.rs b/packages/leptos/src/corner_right_up.rs index c3f5d3c..4e136b3 100644 --- a/packages/leptos/src/corner_right_up.rs +++ b/packages/leptos/src/corner_right_up.rs @@ -29,7 +29,7 @@ pub fn CornerRightUp( stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/leptos/src/corner_up_left.rs b/packages/leptos/src/corner_up_left.rs index 887540a..311c4f0 100644 --- a/packages/leptos/src/corner_up_left.rs +++ b/packages/leptos/src/corner_up_left.rs @@ -29,8 +29,8 @@ pub fn CornerUpLeft( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/corner_up_right.rs b/packages/leptos/src/corner_up_right.rs index c0ece7d..089387f 100644 --- a/packages/leptos/src/corner_up_right.rs +++ b/packages/leptos/src/corner_up_right.rs @@ -29,7 +29,7 @@ pub fn CornerUpRight( stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/leptos/src/download.rs b/packages/leptos/src/download.rs index fa47c42..fbb0a59 100644 --- a/packages/leptos/src/download.rs +++ b/packages/leptos/src/download.rs @@ -29,9 +29,9 @@ pub fn Download( stroke-linecap="round" stroke-linejoin="round" > + - - + } } diff --git a/packages/leptos/src/factory.rs b/packages/leptos/src/factory.rs index 78e04ef..518c34a 100644 --- a/packages/leptos/src/factory.rs +++ b/packages/leptos/src/factory.rs @@ -29,10 +29,10 @@ pub fn Factory( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/leptos/src/forward.rs b/packages/leptos/src/forward.rs index e7109f8..6261173 100644 --- a/packages/leptos/src/forward.rs +++ b/packages/leptos/src/forward.rs @@ -29,7 +29,7 @@ pub fn Forward( stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/leptos/src/iteration_ccw.rs b/packages/leptos/src/iteration_ccw.rs index bcad183..b12c676 100644 --- a/packages/leptos/src/iteration_ccw.rs +++ b/packages/leptos/src/iteration_ccw.rs @@ -29,8 +29,8 @@ pub fn IterationCcw( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/iteration_cw.rs b/packages/leptos/src/iteration_cw.rs index dd2a81d..2254228 100644 --- a/packages/leptos/src/iteration_cw.rs +++ b/packages/leptos/src/iteration_cw.rs @@ -29,8 +29,8 @@ pub fn IterationCw( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/landmark.rs b/packages/leptos/src/landmark.rs index 24fa233..3d64df9 100644 --- a/packages/leptos/src/landmark.rs +++ b/packages/leptos/src/landmark.rs @@ -29,12 +29,12 @@ pub fn Landmark( stroke-linecap="round" stroke-linejoin="round" > - - - - - - + + + + + + } } diff --git a/packages/leptos/src/lib.rs b/packages/leptos/src/lib.rs index deeafab..044c444 100644 --- a/packages/leptos/src/lib.rs +++ b/packages/leptos/src/lib.rs @@ -3379,6 +3379,8 @@ mod square_dashed_kanban; feature = "tools" ))] mod square_dashed_mouse_pointer; +#[cfg(any(feature = "design", feature = "development", feature = "layout"))] +mod square_dashed_top_solid; #[cfg(feature = "math")] mod square_divide; #[cfg(feature = "development")] @@ -7421,6 +7423,8 @@ pub use square_dashed_kanban::*; feature = "tools" ))] pub use square_dashed_mouse_pointer::*; +#[cfg(any(feature = "design", feature = "development", feature = "layout"))] +pub use square_dashed_top_solid::*; #[cfg(feature = "math")] pub use square_divide::*; #[cfg(feature = "development")] diff --git a/packages/leptos/src/log_in.rs b/packages/leptos/src/log_in.rs index 5280c71..fd16175 100644 --- a/packages/leptos/src/log_in.rs +++ b/packages/leptos/src/log_in.rs @@ -29,9 +29,9 @@ pub fn LogIn( stroke-linecap="round" stroke-linejoin="round" > + + - - } } diff --git a/packages/leptos/src/log_out.rs b/packages/leptos/src/log_out.rs index 26da09e..d7f24d1 100644 --- a/packages/leptos/src/log_out.rs +++ b/packages/leptos/src/log_out.rs @@ -29,9 +29,9 @@ pub fn LogOut( stroke-linecap="round" stroke-linejoin="round" > + + - - } } diff --git a/packages/leptos/src/maximize_2.rs b/packages/leptos/src/maximize_2.rs index c27ea51..73e1af6 100644 --- a/packages/leptos/src/maximize_2.rs +++ b/packages/leptos/src/maximize_2.rs @@ -29,10 +29,10 @@ pub fn Maximize2( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/leptos/src/minimize_2.rs b/packages/leptos/src/minimize_2.rs index 6a924da..be8c703 100644 --- a/packages/leptos/src/minimize_2.rs +++ b/packages/leptos/src/minimize_2.rs @@ -29,10 +29,10 @@ pub fn Minimize2( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/leptos/src/reply.rs b/packages/leptos/src/reply.rs index 3c7b840..9aeb9a6 100644 --- a/packages/leptos/src/reply.rs +++ b/packages/leptos/src/reply.rs @@ -29,8 +29,8 @@ pub fn Reply( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/reply_all.rs b/packages/leptos/src/reply_all.rs index 7aa9a34..e079a1a 100644 --- a/packages/leptos/src/reply_all.rs +++ b/packages/leptos/src/reply_all.rs @@ -29,9 +29,9 @@ pub fn ReplyAll( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/satellite.rs b/packages/leptos/src/satellite.rs index 68dc207..ab3f4f0 100644 --- a/packages/leptos/src/satellite.rs +++ b/packages/leptos/src/satellite.rs @@ -29,11 +29,11 @@ pub fn Satellite( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/leptos/src/separator_horizontal.rs b/packages/leptos/src/separator_horizontal.rs index 27aa5fe..cca3fbb 100644 --- a/packages/leptos/src/separator_horizontal.rs +++ b/packages/leptos/src/separator_horizontal.rs @@ -29,9 +29,9 @@ pub fn SeparatorHorizontal( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/separator_vertical.rs b/packages/leptos/src/separator_vertical.rs index 301187c..4b69354 100644 --- a/packages/leptos/src/separator_vertical.rs +++ b/packages/leptos/src/separator_vertical.rs @@ -29,9 +29,9 @@ pub fn SeparatorVertical( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/share.rs b/packages/leptos/src/share.rs index 5965fca..993aa46 100644 --- a/packages/leptos/src/share.rs +++ b/packages/leptos/src/share.rs @@ -29,9 +29,9 @@ pub fn Share( stroke-linecap="round" stroke-linejoin="round" > + + - - } } diff --git a/packages/leptos/src/square_code.rs b/packages/leptos/src/square_code.rs index 5745576..17f128b 100644 --- a/packages/leptos/src/square_code.rs +++ b/packages/leptos/src/square_code.rs @@ -29,9 +29,9 @@ pub fn SquareCode( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/square_dashed_top_solid.rs b/packages/leptos/src/square_dashed_top_solid.rs new file mode 100644 index 0000000..bfd3c89 --- /dev/null +++ b/packages/leptos/src/square_dashed_top_solid.rs @@ -0,0 +1,43 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn SquareDashedTopSolid( + #[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/terminal.rs b/packages/leptos/src/terminal.rs index 4bdb857..292e97e 100644 --- a/packages/leptos/src/terminal.rs +++ b/packages/leptos/src/terminal.rs @@ -29,8 +29,8 @@ pub fn Terminal( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/trending_down.rs b/packages/leptos/src/trending_down.rs index 16c6c2e..9bf5d46 100644 --- a/packages/leptos/src/trending_down.rs +++ b/packages/leptos/src/trending_down.rs @@ -29,8 +29,8 @@ pub fn TrendingDown( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/trending_up.rs b/packages/leptos/src/trending_up.rs index c7055a7..39c51a3 100644 --- a/packages/leptos/src/trending_up.rs +++ b/packages/leptos/src/trending_up.rs @@ -29,8 +29,8 @@ pub fn TrendingUp( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/tv.rs b/packages/leptos/src/tv.rs index eab4f73..0d1d0cc 100644 --- a/packages/leptos/src/tv.rs +++ b/packages/leptos/src/tv.rs @@ -29,8 +29,8 @@ pub fn Tv( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/type.rs b/packages/leptos/src/type.rs index b36ccb3..0bc5f6d 100644 --- a/packages/leptos/src/type.rs +++ b/packages/leptos/src/type.rs @@ -29,9 +29,9 @@ pub fn Type( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/university.rs b/packages/leptos/src/university.rs index 6534a66..430ee88 100644 --- a/packages/leptos/src/university.rs +++ b/packages/leptos/src/university.rs @@ -29,13 +29,13 @@ pub fn University( stroke-linecap="round" stroke-linejoin="round" > - - - - - - - + + + + + + + } } diff --git a/packages/leptos/src/upload.rs b/packages/leptos/src/upload.rs index ca91082..0c9817d 100644 --- a/packages/leptos/src/upload.rs +++ b/packages/leptos/src/upload.rs @@ -29,9 +29,9 @@ pub fn Upload( stroke-linecap="round" stroke-linejoin="round" > + + - - } } diff --git a/packages/leptos/src/user_check.rs b/packages/leptos/src/user_check.rs index f9ff63b..4f27658 100644 --- a/packages/leptos/src/user_check.rs +++ b/packages/leptos/src/user_check.rs @@ -29,9 +29,9 @@ pub fn UserCheck( stroke-linecap="round" stroke-linejoin="round" > + - } } diff --git a/packages/leptos/src/warehouse.rs b/packages/leptos/src/warehouse.rs index c53dcc8..642da0c 100644 --- a/packages/leptos/src/warehouse.rs +++ b/packages/leptos/src/warehouse.rs @@ -29,10 +29,10 @@ pub fn Warehouse( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/leptos/src/wrap_text.rs b/packages/leptos/src/wrap_text.rs index 70c2eb2..b7c57b3 100644 --- a/packages/leptos/src/wrap_text.rs +++ b/packages/leptos/src/wrap_text.rs @@ -29,10 +29,10 @@ pub fn WrapText( stroke-linecap="round" stroke-linejoin="round" > - + - - + + } } diff --git a/packages/yew/src/axis_3_d.rs b/packages/yew/src/axis_3_d.rs index 4f2e923..2fd0bdc 100644 --- a/packages/yew/src/axis_3_d.rs +++ b/packages/yew/src/axis_3_d.rs @@ -41,8 +41,10 @@ pub fn Axis3D(props: &Axis3DProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + + + } } diff --git a/packages/yew/src/chevrons_left_right_ellipsis.rs b/packages/yew/src/chevrons_left_right_ellipsis.rs index 67d62b1..bfc076e 100644 --- a/packages/yew/src/chevrons_left_right_ellipsis.rs +++ b/packages/yew/src/chevrons_left_right_ellipsis.rs @@ -41,11 +41,11 @@ pub fn ChevronsLeftRightEllipsis(props: &ChevronsLeftRightEllipsisProps) -> Html stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/clock_6.rs b/packages/yew/src/clock_6.rs index 517e6c5..a11ae95 100644 --- a/packages/yew/src/clock_6.rs +++ b/packages/yew/src/clock_6.rs @@ -41,8 +41,8 @@ pub fn Clock6(props: &Clock6Props) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - } } diff --git a/packages/yew/src/code.rs b/packages/yew/src/code.rs index 7105635..dad0f85 100644 --- a/packages/yew/src/code.rs +++ b/packages/yew/src/code.rs @@ -41,8 +41,8 @@ pub fn Code(props: &CodeProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/corner_down_left.rs b/packages/yew/src/corner_down_left.rs index 9427df9..9db881c 100644 --- a/packages/yew/src/corner_down_left.rs +++ b/packages/yew/src/corner_down_left.rs @@ -41,8 +41,8 @@ pub fn CornerDownLeft(props: &CornerDownLeftProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/corner_down_right.rs b/packages/yew/src/corner_down_right.rs index 8b1741d..e34aab6 100644 --- a/packages/yew/src/corner_down_right.rs +++ b/packages/yew/src/corner_down_right.rs @@ -41,7 +41,7 @@ pub fn CornerDownRight(props: &CornerDownRightProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/yew/src/corner_left_down.rs b/packages/yew/src/corner_left_down.rs index d01e84f..9429451 100644 --- a/packages/yew/src/corner_left_down.rs +++ b/packages/yew/src/corner_left_down.rs @@ -41,7 +41,7 @@ pub fn CornerLeftDown(props: &CornerLeftDownProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/yew/src/corner_left_up.rs b/packages/yew/src/corner_left_up.rs index 5a2a45f..90e67d2 100644 --- a/packages/yew/src/corner_left_up.rs +++ b/packages/yew/src/corner_left_up.rs @@ -41,7 +41,7 @@ pub fn CornerLeftUp(props: &CornerLeftUpProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/yew/src/corner_right_down.rs b/packages/yew/src/corner_right_down.rs index 7c0e958..536d85e 100644 --- a/packages/yew/src/corner_right_down.rs +++ b/packages/yew/src/corner_right_down.rs @@ -41,7 +41,7 @@ pub fn CornerRightDown(props: &CornerRightDownProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/yew/src/corner_right_up.rs b/packages/yew/src/corner_right_up.rs index 6c8df0e..d6098cd 100644 --- a/packages/yew/src/corner_right_up.rs +++ b/packages/yew/src/corner_right_up.rs @@ -41,7 +41,7 @@ pub fn CornerRightUp(props: &CornerRightUpProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/yew/src/corner_up_left.rs b/packages/yew/src/corner_up_left.rs index 39ddc1e..e017c41 100644 --- a/packages/yew/src/corner_up_left.rs +++ b/packages/yew/src/corner_up_left.rs @@ -41,8 +41,8 @@ pub fn CornerUpLeft(props: &CornerUpLeftProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/corner_up_right.rs b/packages/yew/src/corner_up_right.rs index cbbdfc4..51720b0 100644 --- a/packages/yew/src/corner_up_right.rs +++ b/packages/yew/src/corner_up_right.rs @@ -41,7 +41,7 @@ pub fn CornerUpRight(props: &CornerUpRightProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/yew/src/download.rs b/packages/yew/src/download.rs index 4473aba..1f53ec3 100644 --- a/packages/yew/src/download.rs +++ b/packages/yew/src/download.rs @@ -41,9 +41,9 @@ pub fn Download(props: &DownloadProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - + } } diff --git a/packages/yew/src/factory.rs b/packages/yew/src/factory.rs index 0b6f05f..d79b511 100644 --- a/packages/yew/src/factory.rs +++ b/packages/yew/src/factory.rs @@ -41,12 +41,12 @@ pub fn Factory(props: &FactoryProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + + - - - + } } diff --git a/packages/yew/src/forward.rs b/packages/yew/src/forward.rs index 0a6a1d5..4afbd0b 100644 --- a/packages/yew/src/forward.rs +++ b/packages/yew/src/forward.rs @@ -41,7 +41,7 @@ pub fn Forward(props: &ForwardProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } diff --git a/packages/yew/src/iteration_ccw.rs b/packages/yew/src/iteration_ccw.rs index 4891db9..4773664 100644 --- a/packages/yew/src/iteration_ccw.rs +++ b/packages/yew/src/iteration_ccw.rs @@ -41,8 +41,8 @@ pub fn IterationCcw(props: &IterationCcwProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/iteration_cw.rs b/packages/yew/src/iteration_cw.rs index 54ce7bd..457a145 100644 --- a/packages/yew/src/iteration_cw.rs +++ b/packages/yew/src/iteration_cw.rs @@ -41,8 +41,8 @@ pub fn IterationCw(props: &IterationCwProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/landmark.rs b/packages/yew/src/landmark.rs index 082e1f7..e73f2ac 100644 --- a/packages/yew/src/landmark.rs +++ b/packages/yew/src/landmark.rs @@ -41,12 +41,14 @@ pub fn Landmark(props: &LandmarkProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - - + + + + + + } } diff --git a/packages/yew/src/lib.rs b/packages/yew/src/lib.rs index 44a01af..499cae8 100644 --- a/packages/yew/src/lib.rs +++ b/packages/yew/src/lib.rs @@ -3381,6 +3381,8 @@ mod square_dashed_kanban; feature = "tools" ))] mod square_dashed_mouse_pointer; +#[cfg(any(feature = "design", feature = "development", feature = "layout"))] +mod square_dashed_top_solid; #[cfg(feature = "math")] mod square_divide; #[cfg(feature = "development")] @@ -7423,6 +7425,8 @@ pub use square_dashed_kanban::*; feature = "tools" ))] pub use square_dashed_mouse_pointer::*; +#[cfg(any(feature = "design", feature = "development", feature = "layout"))] +pub use square_dashed_top_solid::*; #[cfg(feature = "math")] pub use square_divide::*; #[cfg(feature = "development")] diff --git a/packages/yew/src/log_in.rs b/packages/yew/src/log_in.rs index 67317a8..df723cf 100644 --- a/packages/yew/src/log_in.rs +++ b/packages/yew/src/log_in.rs @@ -41,9 +41,9 @@ pub fn LogIn(props: &LogInProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + + - - } } diff --git a/packages/yew/src/log_out.rs b/packages/yew/src/log_out.rs index b0d8554..5e3bb35 100644 --- a/packages/yew/src/log_out.rs +++ b/packages/yew/src/log_out.rs @@ -41,9 +41,9 @@ pub fn LogOut(props: &LogOutProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + + - - } } diff --git a/packages/yew/src/maximize_2.rs b/packages/yew/src/maximize_2.rs index 1f6e061..87b6565 100644 --- a/packages/yew/src/maximize_2.rs +++ b/packages/yew/src/maximize_2.rs @@ -41,10 +41,10 @@ pub fn Maximize2(props: &Maximize2Props) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/yew/src/minimize_2.rs b/packages/yew/src/minimize_2.rs index ca23acd..75dd0a6 100644 --- a/packages/yew/src/minimize_2.rs +++ b/packages/yew/src/minimize_2.rs @@ -41,10 +41,10 @@ pub fn Minimize2(props: &Minimize2Props) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/yew/src/reply.rs b/packages/yew/src/reply.rs index cad4ae9..1444c61 100644 --- a/packages/yew/src/reply.rs +++ b/packages/yew/src/reply.rs @@ -41,8 +41,8 @@ pub fn Reply(props: &ReplyProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/reply_all.rs b/packages/yew/src/reply_all.rs index 3f1f635..9b9a552 100644 --- a/packages/yew/src/reply_all.rs +++ b/packages/yew/src/reply_all.rs @@ -41,9 +41,9 @@ pub fn ReplyAll(props: &ReplyAllProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/satellite.rs b/packages/yew/src/satellite.rs index 4729bae..b871495 100644 --- a/packages/yew/src/satellite.rs +++ b/packages/yew/src/satellite.rs @@ -41,11 +41,17 @@ pub fn Satellite(props: &SatelliteProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/yew/src/separator_horizontal.rs b/packages/yew/src/separator_horizontal.rs index 3e274e2..5514360 100644 --- a/packages/yew/src/separator_horizontal.rs +++ b/packages/yew/src/separator_horizontal.rs @@ -41,9 +41,9 @@ pub fn SeparatorHorizontal(props: &SeparatorHorizontalProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/separator_vertical.rs b/packages/yew/src/separator_vertical.rs index 3023cb2..3bbe3ae 100644 --- a/packages/yew/src/separator_vertical.rs +++ b/packages/yew/src/separator_vertical.rs @@ -41,9 +41,9 @@ pub fn SeparatorVertical(props: &SeparatorVerticalProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/share.rs b/packages/yew/src/share.rs index 017fc02..4804684 100644 --- a/packages/yew/src/share.rs +++ b/packages/yew/src/share.rs @@ -41,9 +41,9 @@ pub fn Share(props: &ShareProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + + - - } } diff --git a/packages/yew/src/square_code.rs b/packages/yew/src/square_code.rs index c0f4a3d..2a1a20e 100644 --- a/packages/yew/src/square_code.rs +++ b/packages/yew/src/square_code.rs @@ -41,9 +41,9 @@ pub fn SquareCode(props: &SquareCodeProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/square_dashed_top_solid.rs b/packages/yew/src/square_dashed_top_solid.rs new file mode 100644 index 0000000..e502d38 --- /dev/null +++ b/packages/yew/src/square_dashed_top_solid.rs @@ -0,0 +1,55 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct SquareDashedTopSolidProps { + #[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 SquareDashedTopSolid(props: &SquareDashedTopSolidProps) -> 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/terminal.rs b/packages/yew/src/terminal.rs index afeb2e9..aeec977 100644 --- a/packages/yew/src/terminal.rs +++ b/packages/yew/src/terminal.rs @@ -41,8 +41,8 @@ pub fn Terminal(props: &TerminalProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/trending_down.rs b/packages/yew/src/trending_down.rs index 5c36712..a48ab56 100644 --- a/packages/yew/src/trending_down.rs +++ b/packages/yew/src/trending_down.rs @@ -41,8 +41,8 @@ pub fn TrendingDown(props: &TrendingDownProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/trending_up.rs b/packages/yew/src/trending_up.rs index e0b8146..b541b66 100644 --- a/packages/yew/src/trending_up.rs +++ b/packages/yew/src/trending_up.rs @@ -41,8 +41,8 @@ pub fn TrendingUp(props: &TrendingUpProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/tv.rs b/packages/yew/src/tv.rs index d5bae55..e1de4ca 100644 --- a/packages/yew/src/tv.rs +++ b/packages/yew/src/tv.rs @@ -41,8 +41,8 @@ pub fn Tv(props: &TvProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/type.rs b/packages/yew/src/type.rs index 18432d8..8fb7b2a 100644 --- a/packages/yew/src/type.rs +++ b/packages/yew/src/type.rs @@ -41,9 +41,9 @@ pub fn Type(props: &TypeProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/university.rs b/packages/yew/src/university.rs index 7cc1e64..f17c06b 100644 --- a/packages/yew/src/university.rs +++ b/packages/yew/src/university.rs @@ -41,13 +41,15 @@ pub fn University(props: &UniversityProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - - - + + + + + + + } } diff --git a/packages/yew/src/upload.rs b/packages/yew/src/upload.rs index 6e374eb..dcbb3bc 100644 --- a/packages/yew/src/upload.rs +++ b/packages/yew/src/upload.rs @@ -41,9 +41,9 @@ pub fn Upload(props: &UploadProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + + - - } } diff --git a/packages/yew/src/user_check.rs b/packages/yew/src/user_check.rs index 808c797..a970fa5 100644 --- a/packages/yew/src/user_check.rs +++ b/packages/yew/src/user_check.rs @@ -41,9 +41,9 @@ pub fn UserCheck(props: &UserCheckProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - } } diff --git a/packages/yew/src/warehouse.rs b/packages/yew/src/warehouse.rs index 698278e..f417a3f 100644 --- a/packages/yew/src/warehouse.rs +++ b/packages/yew/src/warehouse.rs @@ -41,12 +41,12 @@ pub fn Warehouse(props: &WarehouseProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - - + + } } diff --git a/packages/yew/src/wrap_text.rs b/packages/yew/src/wrap_text.rs index 16bd9e6..858028e 100644 --- a/packages/yew/src/wrap_text.rs +++ b/packages/yew/src/wrap_text.rs @@ -41,10 +41,10 @@ pub fn WrapText(props: &WrapTextProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + - - + + } } diff --git a/scripts/src/lib.rs b/scripts/src/lib.rs index 07c8c1c..0b9c06d 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.510.0"; +pub const UPSTREAM_GIT_REF: &str = "0.511.0"; pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";