diff --git a/book-examples/dioxus/src/icons.rs b/book-examples/dioxus/src/icons.rs index e4c7157..e55e620 100644 --- a/book-examples/dioxus/src/icons.rs +++ b/book-examples/dioxus/src/icons.rs @@ -129,12 +129,6 @@ pub fn IconsA1() -> Element { }, "Album", ), - ( - rsx! { - AlignCenter {} - }, - "Align Center", - ), ( rsx! { AlignCenterHorizontal {} @@ -207,24 +201,6 @@ pub fn IconsA1() -> Element { }, "Align Horizontal Space Between", ), - ( - rsx! { - AlignJustify {} - }, - "Align Justify", - ), - ( - rsx! { - AlignLeft {} - }, - "Align Left", - ), - ( - rsx! { - AlignRight {} - }, - "Align Right", - ), ( rsx! { AlignStartHorizontal {} @@ -645,21 +621,6 @@ pub fn IconsA1() -> Element { }, "Arrows Up From Line", ), - ]; - rsx! { - for (icon , name) in icons { - div { - key: "{name}", - class: "flex flex-wrap items-center gap-4 text-sm", - {icon} - span { {name} } - } - } - } -} -#[component] -pub fn IconsA2() -> Element { - let icons = [ ( rsx! { Asterisk {} @@ -684,6 +645,21 @@ pub fn IconsA2() -> Element { }, "Audio Lines", ), + ]; + rsx! { + for (icon , name) in icons { + div { + key: "{name}", + class: "flex flex-wrap items-center gap-4 text-sm", + {icon} + span { {name} } + } + } + } +} +#[component] +pub fn IconsA2() -> Element { + let icons = [ ( rsx! { AudioWaveform {} @@ -5001,6 +4977,12 @@ pub fn IconsH1() -> Element { }, "House", ), + ( + rsx! { + HouseHeart {} + }, + "House Heart", + ), ( rsx! { HousePlug {} @@ -5124,18 +5106,6 @@ pub fn IconsI1() -> Element { }, "Inbox", ), - ( - rsx! { - IndentDecrease {} - }, - "Indent Decrease", - ), - ( - rsx! { - IndentIncrease {} - }, - "Indent Increase", - ), ( rsx! { IndianRupee {} @@ -5445,12 +5415,6 @@ pub fn IconsL1() -> Element { }, "Lectern", ), - ( - rsx! { - LetterText {} - }, - "Letter Text", - ), ( rsx! { Library {} @@ -5541,6 +5505,12 @@ pub fn IconsL1() -> Element { }, "List Chevrons Down Up", ), + ( + rsx! { + ListChevronsUpDown {} + }, + "List Chevrons Up Down", + ), ( rsx! { ListCollapse {} @@ -5565,6 +5535,18 @@ pub fn IconsL1() -> Element { }, "List Filter Plus", ), + ( + rsx! { + ListIndentDecrease {} + }, + "List Indent Decrease", + ), + ( + rsx! { + ListIndentIncrease {} + }, + "List Indent Increase", + ), ( rsx! { ListMinus {} @@ -9261,9 +9243,27 @@ pub fn IconsT1() -> Element { ), ( rsx! { - Text {} + TextAlignCenter {} }, - "Text", + "Text Align Center", + ), + ( + rsx! { + TextAlignEnd {} + }, + "Text Align End", + ), + ( + rsx! { + TextAlignJustify {} + }, + "Text Align Justify", + ), + ( + rsx! { + TextAlignStart {} + }, + "Text Align Start", ), ( rsx! { @@ -9277,6 +9277,12 @@ pub fn IconsT1() -> Element { }, "Text Cursor Input", ), + ( + rsx! { + TextInitial {} + }, + "Text Initial", + ), ( rsx! { TextQuote {} @@ -9295,6 +9301,12 @@ pub fn IconsT1() -> Element { }, "Text Select", ), + ( + rsx! { + TextWrap {} + }, + "Text Wrap", + ), ( rsx! { Theater {} @@ -10264,12 +10276,6 @@ pub fn IconsW1() -> Element { }, "Worm", ), - ( - rsx! { - WrapText {} - }, - "Wrap Text", - ), ( rsx! { Wrench {} diff --git a/book-examples/leptos/src/icons.rs b/book-examples/leptos/src/icons.rs index 3d391d8..52766a3 100644 --- a/book-examples/leptos/src/icons.rs +++ b/book-examples/leptos/src/icons.rs @@ -52,7 +52,6 @@ pub fn IconsA() -> impl IntoView { (view! { }.into_any(), "Alarm Clock Plus"), (view! { }.into_any(), "Alarm Smoke"), (view! { }.into_any(), "Album"), - (view! { }.into_any(), "Align Center"), (view! { }.into_any(), "Align Center Horizontal"), (view! { }.into_any(), "Align Center Vertical"), (view! { }.into_any(), "Align End Horizontal"), @@ -89,9 +88,6 @@ pub fn IconsA() -> impl IntoView { view! { }.into_any(), "Align Horizontal Space Between", ), - (view! { }.into_any(), "Align Justify"), - (view! { }.into_any(), "Align Left"), - (view! { }.into_any(), "Align Right"), (view! { }.into_any(), "Align Start Horizontal"), (view! { }.into_any(), "Align Start Vertical"), ( @@ -1010,6 +1006,7 @@ pub fn IconsH() -> impl IntoView { (view! { }.into_any(), "Hotel"), (view! { }.into_any(), "Hourglass"), (view! { }.into_any(), "House"), + (view! { }.into_any(), "House Heart"), (view! { }.into_any(), "House Plug"), (view! { }.into_any(), "House Plus"), (view! { }.into_any(), "House Wifi"), @@ -1045,8 +1042,6 @@ pub fn IconsI() -> impl IntoView { (view! { }.into_any(), "Images"), (view! { }.into_any(), "Import"), (view! { }.into_any(), "Inbox"), - (view! { }.into_any(), "Indent Decrease"), - (view! { }.into_any(), "Indent Increase"), (view! { }.into_any(), "Indian Rupee"), (view! { }.into_any(), "Infinity"), (view! { }.into_any(), "Info"), @@ -1142,7 +1137,6 @@ pub fn IconsL() -> impl IntoView { (view! { }.into_any(), "Leaf"), (view! { }.into_any(), "Leafy Green"), (view! { }.into_any(), "Lectern"), - (view! { }.into_any(), "Letter Text"), (view! { }.into_any(), "Library"), (view! { }.into_any(), "Library Big"), (view! { }.into_any(), "Life Buoy"), @@ -1158,10 +1152,13 @@ pub fn IconsL() -> impl IntoView { (view! { }.into_any(), "List Check"), (view! { }.into_any(), "List Checks"), (view! { }.into_any(), "List Chevrons Down Up"), + (view! { }.into_any(), "List Chevrons Up Down"), (view! { }.into_any(), "List Collapse"), (view! { }.into_any(), "List End"), (view! { }.into_any(), "List Filter"), (view! { }.into_any(), "List Filter Plus"), + (view! { }.into_any(), "List Indent Decrease"), + (view! { }.into_any(), "List Indent Increase"), (view! { }.into_any(), "List Minus"), (view! { }.into_any(), "List Music"), (view! { }.into_any(), "List Ordered"), @@ -1890,12 +1887,17 @@ pub fn IconsT() -> impl IntoView { (view! { }.into_any(), "Test Tube"), (view! { }.into_any(), "Test Tube Diagonal"), (view! { }.into_any(), "Test Tubes"), - (view! { }.into_any(), "Text"), + (view! { }.into_any(), "Text Align Center"), + (view! { }.into_any(), "Text Align End"), + (view! { }.into_any(), "Text Align Justify"), + (view! { }.into_any(), "Text Align Start"), (view! { }.into_any(), "Text Cursor"), (view! { }.into_any(), "Text Cursor Input"), + (view! { }.into_any(), "Text Initial"), (view! { }.into_any(), "Text Quote"), (view! { }.into_any(), "Text Search"), (view! { }.into_any(), "Text Select"), + (view! { }.into_any(), "Text Wrap"), (view! { }.into_any(), "Theater"), (view! { }.into_any(), "Thermometer"), (view! { }.into_any(), "Thermometer Snowflake"), @@ -2101,7 +2103,6 @@ pub fn IconsW() -> impl IntoView { (view! { }.into_any(), "Wine Off"), (view! { }.into_any(), "Workflow"), (view! { }.into_any(), "Worm"), - (view! { }.into_any(), "Wrap Text"), (view! { }.into_any(), "Wrench"), ] key=|icon| icon.1 diff --git a/book-examples/yew/src/icons.rs b/book-examples/yew/src/icons.rs index 68c0422..d0a5062 100644 --- a/book-examples/yew/src/icons.rs +++ b/book-examples/yew/src/icons.rs @@ -50,7 +50,6 @@ pub fn IconsA() -> Html { (html! { }, "Alarm Clock Plus"), (html! { }, "Alarm Smoke"), (html! { }, "Album"), - (html! { }, "Align Center"), ( html! { }, "Align Center Horizontal", @@ -90,9 +89,6 @@ pub fn IconsA() -> Html { html! { }, "Align Horizontal Space Between", ), - (html! { }, "Align Justify"), - (html! { }, "Align Left"), - (html! { }, "Align Right"), (html! { }, "Align Start Horizontal"), (html! { }, "Align Start Vertical"), ( @@ -1040,6 +1036,7 @@ pub fn IconsH() -> Html { (html! { }, "Hotel"), (html! { }, "Hourglass"), (html! { }, "House"), + (html! { }, "House Heart"), (html! { }, "House Plug"), (html! { }, "House Plus"), (html! { }, "House Wifi"), @@ -1074,8 +1071,6 @@ pub fn IconsI() -> Html { (html! { }, "Images"), (html! { }, "Import"), (html! { }, "Inbox"), - (html! { }, "Indent Decrease"), - (html! { }, "Indent Increase"), (html! { }, "Indian Rupee"), (html! { }, "Infinity"), (html! { }, "Info"), @@ -1168,7 +1163,6 @@ pub fn IconsL() -> Html { (html! { }, "Leaf"), (html! { }, "Leafy Green"), (html! { }, "Lectern"), - (html! { }, "Letter Text"), (html! { }, "Library"), (html! { }, "Library Big"), (html! { }, "Life Buoy"), @@ -1184,10 +1178,13 @@ pub fn IconsL() -> Html { (html! { }, "List Check"), (html! { }, "List Checks"), (html! { }, "List Chevrons Down Up"), + (html! { }, "List Chevrons Up Down"), (html! { }, "List Collapse"), (html! { }, "List End"), (html! { }, "List Filter"), (html! { }, "List Filter Plus"), + (html! { }, "List Indent Decrease"), + (html! { }, "List Indent Increase"), (html! { }, "List Minus"), (html! { }, "List Music"), (html! { }, "List Ordered"), @@ -1941,12 +1938,17 @@ pub fn IconsT() -> Html { (html! { }, "Test Tube"), (html! { }, "Test Tube Diagonal"), (html! { }, "Test Tubes"), - (html! { }, "Text"), + (html! { }, "Text Align Center"), + (html! { }, "Text Align End"), + (html! { }, "Text Align Justify"), + (html! { }, "Text Align Start"), (html! { }, "Text Cursor"), (html! { }, "Text Cursor Input"), + (html! { }, "Text Initial"), (html! { }, "Text Quote"), (html! { }, "Text Search"), (html! { }, "Text Select"), + (html! { }, "Text Wrap"), (html! { }, "Theater"), (html! { }, "Thermometer"), (html! { }, "Thermometer Snowflake"), @@ -2149,7 +2151,6 @@ pub fn IconsW() -> Html { (html! { }, "Wine Off"), (html! { }, "Workflow"), (html! { }, "Worm"), - (html! { }, "Wrap Text"), (html! { }, "Wrench"), ]; icons diff --git a/packages/dioxus/src/bug.rs b/packages/dioxus/src/bug.rs index cafb810..3e9aa10 100644 --- a/packages/dioxus/src/bug.rs +++ b/packages/dioxus/src/bug.rs @@ -34,17 +34,17 @@ pub fn Bug(props: BugProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "m8 2 1.88 1.88" } - path { "d": "M14.12 3.88 16 2" } - path { "d": "M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" } - path { "d": "M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6" } path { "d": "M12 20v-9" } - path { "d": "M6.53 9C4.6 8.8 3 7.1 3 5" } - path { "d": "M6 13H2" } - path { "d": "M3 21c0-2.1 1.7-3.9 3.8-4" } - path { "d": "M20.97 5c0 2.1-1.6 3.8-3.5 4" } + path { "d": "M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z" } + path { "d": "M14.12 3.88 16 2" } + path { "d": "M21 21a4 4 0 0 0-3.81-4" } + path { "d": "M21 5a4 4 0 0 1-3.55 3.97" } path { "d": "M22 13h-4" } - path { "d": "M17.2 17c2.1.1 3.8 1.9 3.8 4" } + path { "d": "M3 21a4 4 0 0 1 3.81-4" } + path { "d": "M3 5a4 4 0 0 0 3.55 3.97" } + path { "d": "M6 13H2" } + path { "d": "m8 2 1.88 1.88" } + path { "d": "M9 7.13V6a3 3 0 1 1 6 0v1.13" } } } } diff --git a/packages/dioxus/src/bug_off.rs b/packages/dioxus/src/bug_off.rs index 64f6472..c778004 100644 --- a/packages/dioxus/src/bug_off.rs +++ b/packages/dioxus/src/bug_off.rs @@ -34,15 +34,16 @@ pub fn BugOff(props: BugOffProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M15 7.13V6a3 3 0 0 0-5.14-2.1L8 2" } + path { "d": "M12 20v-8" } path { "d": "M14.12 3.88 16 2" } - path { "d": "M22 13h-4v-2a4 4 0 0 0-4-4h-1.3" } - path { "d": "M20.97 5c0 2.1-1.6 3.8-3.5 4" } + path { "d": "M15 7.13V6a3 3 0 0 0-5.14-2.1L8 2" } + path { "d": "M18 12.34V11a4 4 0 0 0-4-4h-1.3" } path { "d": "m2 2 20 20" } - path { "d": "M7.7 7.7A4 4 0 0 0 6 11v3a6 6 0 0 0 11.13 3.13" } - path { "d": "M12 20v-8" } + path { "d": "M21 5a4 4 0 0 1-3.55 3.97" } + path { "d": "M22 13h-3.34" } + path { "d": "M3 21a4 4 0 0 1 3.81-4" } path { "d": "M6 13H2" } - path { "d": "M3 21c0-2.1 1.7-3.9 3.8-4" } + path { "d": "M7.7 7.7A4 4 0 0 0 6 11v3a6 6 0 0 0 11.13 3.13" } } } } diff --git a/packages/dioxus/src/bug_play.rs b/packages/dioxus/src/bug_play.rs index fa3736c..80f71be 100644 --- a/packages/dioxus/src/bug_play.rs +++ b/packages/dioxus/src/bug_play.rs @@ -37,12 +37,12 @@ pub fn BugPlay(props: BugPlayProps) -> Element { path { "d": "M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97" } path { "d": "M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z" } path { "d": "M14.12 3.88 16 2" } - path { "d": "M20.97 5c0 2.1-1.6 3.8-3.5 4" } - path { "d": "M3 21c0-2.1 1.7-3.9 3.8-4" } + path { "d": "M21 5a4 4 0 0 1-3.55 3.97" } + path { "d": "M3 21a4 4 0 0 1 3.81-4" } + path { "d": "M3 5a4 4 0 0 0 3.55 3.97" } path { "d": "M6 13H2" } - path { "d": "M6.53 9C4.6 8.8 3 7.1 3 5" } path { "d": "m8 2 1.88 1.88" } - path { "d": "M9 7.13v-1a3 3 0 0 1 4.18-2.895 3 3 0 0 1 1.821 2.896v1" } + path { "d": "M9 7.13V6a3 3 0 1 1 6 0v1.13" } } } } diff --git a/packages/dioxus/src/calendar_cog.rs b/packages/dioxus/src/calendar_cog.rs index cb93fb1..e6956d6 100644 --- a/packages/dioxus/src/calendar_cog.rs +++ b/packages/dioxus/src/calendar_cog.rs @@ -43,7 +43,7 @@ pub fn CalendarCog(props: CalendarCogProps) -> Element { path { "d": "m19.53 21.696-.382-.924" } path { "d": "m20.772 16.852.924-.383" } path { "d": "m20.772 19.148.924.383" } - path { "d": "M21 11V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6" } + path { "d": "M21 10.592V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6" } path { "d": "M3 10h18" } path { "d": "M8 2v4" } circle { "cx": "18", "cy": "18", "r": "3" } diff --git a/packages/dioxus/src/chart_no_axes_column.rs b/packages/dioxus/src/chart_no_axes_column.rs index 9fd48fa..932c2d0 100644 --- a/packages/dioxus/src/chart_no_axes_column.rs +++ b/packages/dioxus/src/chart_no_axes_column.rs @@ -34,24 +34,9 @@ pub fn ChartNoAxesColumn(props: ChartNoAxesColumnProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "18", - "x2": "18", - "y1": "20", - "y2": "10", - } - line { - "x1": "12", - "x2": "12", - "y1": "20", - "y2": "4", - } - line { - "x1": "6", - "x2": "6", - "y1": "20", - "y2": "14", - } + path { "d": "M5 21v-6" } + path { "d": "M12 21V3" } + path { "d": "M19 21V9" } } } } diff --git a/packages/dioxus/src/chart_no_axes_column_decreasing.rs b/packages/dioxus/src/chart_no_axes_column_decreasing.rs index 3e1f8f9..63f234b 100644 --- a/packages/dioxus/src/chart_no_axes_column_decreasing.rs +++ b/packages/dioxus/src/chart_no_axes_column_decreasing.rs @@ -34,9 +34,9 @@ pub fn ChartNoAxesColumnDecreasing(props: ChartNoAxesColumnDecreasingProps) -> E "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M12 20V10" } - path { "d": "M18 20v-4" } - path { "d": "M6 20V4" } + path { "d": "M5 21V3" } + path { "d": "M12 21V9" } + path { "d": "M19 21v-6" } } } } diff --git a/packages/dioxus/src/chart_no_axes_column_increasing.rs b/packages/dioxus/src/chart_no_axes_column_increasing.rs index 1bbc020..a5a7a65 100644 --- a/packages/dioxus/src/chart_no_axes_column_increasing.rs +++ b/packages/dioxus/src/chart_no_axes_column_increasing.rs @@ -34,24 +34,9 @@ pub fn ChartNoAxesColumnIncreasing(props: ChartNoAxesColumnIncreasingProps) -> E "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "12", - "x2": "12", - "y1": "20", - "y2": "10", - } - line { - "x1": "18", - "x2": "18", - "y1": "20", - "y2": "4", - } - line { - "x1": "6", - "x2": "6", - "y1": "20", - "y2": "16", - } + path { "d": "M5 21v-6" } + path { "d": "M12 21V9" } + path { "d": "M19 21V3" } } } } diff --git a/packages/dioxus/src/chart_no_axes_gantt.rs b/packages/dioxus/src/chart_no_axes_gantt.rs index f792122..bf5836c 100644 --- a/packages/dioxus/src/chart_no_axes_gantt.rs +++ b/packages/dioxus/src/chart_no_axes_gantt.rs @@ -34,9 +34,9 @@ pub fn ChartNoAxesGantt(props: ChartNoAxesGanttProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M8 6h10" } - path { "d": "M6 12h9" } - path { "d": "M11 18h7" } + path { "d": "M6 5h12" } + path { "d": "M4 12h10" } + path { "d": "M12 19h8" } } } } diff --git a/packages/dioxus/src/church.rs b/packages/dioxus/src/church.rs index 5a02594..1c134ea 100644 --- a/packages/dioxus/src/church.rs +++ b/packages/dioxus/src/church.rs @@ -36,9 +36,9 @@ pub fn Church(props: ChurchProps) -> Element { "stroke-linejoin": "round", path { "d": "M10 9h4" } path { "d": "M12 7v5" } - path { "d": "M14 22v-4a2 2 0 0 0-4 0v4" } - path { "d": "M18 22V5.618a1 1 0 0 0-.553-.894l-4.553-2.277a2 2 0 0 0-1.788 0L6.553 4.724A1 1 0 0 0 6 5.618V22" } - path { "d": "m18 7 3.447 1.724a1 1 0 0 1 .553.894V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.618a1 1 0 0 1 .553-.894L6 7" } + path { "d": "M14 21v-3a2 2 0 0 0-4 0v3" } + path { "d": "m18 9 3.52 2.147a1 1 0 0 1 .48.854V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6.999a1 1 0 0 1 .48-.854L6 9" } + path { "d": "M6 21V7a1 1 0 0 1 .376-.782l5-3.999a1 1 0 0 1 1.249.001l5 4A1 1 0 0 1 18 7v14" } } } } diff --git a/packages/dioxus/src/house.rs b/packages/dioxus/src/house.rs index 5d8b961..79c404f 100644 --- a/packages/dioxus/src/house.rs +++ b/packages/dioxus/src/house.rs @@ -35,7 +35,7 @@ pub fn House(props: HouseProps) -> Element { "stroke-linecap": "round", "stroke-linejoin": "round", path { "d": "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" } - path { "d": "M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" } + path { "d": "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" } } } } diff --git a/packages/dioxus/src/house_heart.rs b/packages/dioxus/src/house_heart.rs new file mode 100644 index 0000000..c44d607 --- /dev/null +++ b/packages/dioxus/src/house_heart.rs @@ -0,0 +1,41 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct HouseHeartProps { + #[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 HouseHeart(props: HouseHeartProps) -> 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": "M8.62 13.8A2.25 2.25 0 1 1 12 10.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z" } + path { "d": "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" } + } + } +} diff --git a/packages/dioxus/src/house_plug.rs b/packages/dioxus/src/house_plug.rs index 23da006..b6b735e 100644 --- a/packages/dioxus/src/house_plug.rs +++ b/packages/dioxus/src/house_plug.rs @@ -37,7 +37,7 @@ pub fn HousePlug(props: HousePlugProps) -> Element { path { "d": "M10 12V8.964" } path { "d": "M14 12V8.964" } path { "d": "M15 12a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-2a1 1 0 0 1 1-1z" } - path { "d": "M8.5 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-2" } + path { "d": "M8.5 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2v-2" } } } } diff --git a/packages/dioxus/src/house_plus.rs b/packages/dioxus/src/house_plus.rs index 57e78ed..89c6d1a 100644 --- a/packages/dioxus/src/house_plus.rs +++ b/packages/dioxus/src/house_plus.rs @@ -34,8 +34,8 @@ pub fn HousePlus(props: HousePlusProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M12.662 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v2.475" } - path { "d": "M14.959 12.717A1 1 0 0 0 14 12h-4a1 1 0 0 0-1 1v8" } + path { "d": "M12.35 21H5a2 2 0 0 1-2-2v-9a2 2 0 0 1 .71-1.53l7-6a2 2 0 0 1 2.58 0l7 6A2 2 0 0 1 21 10v2.35" } + path { "d": "M14.8 12.4A1 1 0 0 0 14 12h-4a1 1 0 0 0-1 1v8" } path { "d": "M15 18h6" } path { "d": "M18 15v6" } } diff --git a/packages/dioxus/src/house_wifi.rs b/packages/dioxus/src/house_wifi.rs index 9959234..8ce6fe5 100644 --- a/packages/dioxus/src/house_wifi.rs +++ b/packages/dioxus/src/house_wifi.rs @@ -36,7 +36,7 @@ pub fn HouseWifi(props: HouseWifiProps) -> Element { "stroke-linejoin": "round", path { "d": "M9.5 13.866a4 4 0 0 1 5 .01" } path { "d": "M12 17h.01" } - path { "d": "M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" } + path { "d": "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" } path { "d": "M7 10.754a8 8 0 0 1 10 0" } } } diff --git a/packages/dioxus/src/kanban.rs b/packages/dioxus/src/kanban.rs index 15351a8..c02c814 100644 --- a/packages/dioxus/src/kanban.rs +++ b/packages/dioxus/src/kanban.rs @@ -34,9 +34,9 @@ pub fn Kanban(props: KanbanProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M6 5v11" } - path { "d": "M12 5v6" } - path { "d": "M18 5v14" } + path { "d": "M5 3v14" } + path { "d": "M12 3v8" } + path { "d": "M19 3v18" } } } } diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs index 3249013..ee7735b 100644 --- a/packages/dioxus/src/lib.rs +++ b/packages/dioxus/src/lib.rs @@ -43,8 +43,6 @@ mod alarm_clock_plus; mod alarm_smoke; #[cfg(any(feature = "photography", feature = "multimedia"))] mod album; -#[cfg(feature = "text")] -mod align_center; #[cfg(feature = "layout")] mod align_center_horizontal; #[cfg(feature = "layout")] @@ -69,12 +67,6 @@ mod align_horizontal_justify_start; mod align_horizontal_space_around; #[cfg(feature = "layout")] mod align_horizontal_space_between; -#[cfg(feature = "text")] -mod align_justify; -#[cfg(feature = "text")] -mod align_left; -#[cfg(feature = "text")] -mod align_right; #[cfg(feature = "layout")] mod align_start_horizontal; #[cfg(feature = "layout")] @@ -1936,6 +1928,8 @@ mod hotel; mod hourglass; #[cfg(any(feature = "buildings", feature = "home"))] mod house; +#[cfg(any(feature = "home", feature = "buildings", feature = "medical"))] +mod house_heart; #[cfg(any(feature = "buildings", feature = "home", feature = "sustainability"))] mod house_plug; #[cfg(any(feature = "buildings", feature = "medical"))] @@ -1997,10 +1991,6 @@ mod images; mod import; #[cfg(any(feature = "account", feature = "mail"))] mod inbox; -#[cfg(any(feature = "text", feature = "development"))] -mod indent_decrease; -#[cfg(any(feature = "text", feature = "development"))] -mod indent_increase; #[cfg(feature = "finance")] mod indian_rupee; #[cfg(feature = "multimedia")] @@ -2104,8 +2094,6 @@ mod leaf; mod leafy_green; #[cfg(any(feature = "communication", feature = "multimedia"))] mod lectern; -#[cfg(feature = "text")] -mod letter_text; #[cfg(any( feature = "text", feature = "photography", @@ -2148,6 +2136,8 @@ mod list_check; mod list_checks; #[cfg(any(feature = "text", feature = "arrows"))] mod list_chevrons_down_up; +#[cfg(any(feature = "text", feature = "arrows"))] +mod list_chevrons_up_down; #[cfg(feature = "text")] mod list_collapse; #[cfg(any(feature = "multimedia", feature = "text"))] @@ -2156,6 +2146,10 @@ mod list_end; mod list_filter; #[cfg(any(feature = "text", feature = "layout"))] mod list_filter_plus; +#[cfg(any(feature = "text", feature = "development"))] +mod list_indent_decrease; +#[cfg(any(feature = "text", feature = "development"))] +mod list_indent_increase; #[cfg(any(feature = "multimedia", feature = "text"))] mod list_minus; #[cfg(feature = "multimedia")] @@ -3715,18 +3709,28 @@ mod test_tube; mod test_tube_diagonal; #[cfg(feature = "science")] mod test_tubes; -#[cfg(any(feature = "text", feature = "files", feature = "cursors"))] -mod text; +#[cfg(feature = "text")] +mod text_align_center; +#[cfg(feature = "text")] +mod text_align_end; +#[cfg(feature = "text")] +mod text_align_justify; +#[cfg(feature = "text")] +mod text_align_start; #[cfg(any(feature = "text", feature = "cursors"))] mod text_cursor; #[cfg(any(feature = "text", feature = "layout"))] mod text_cursor_input; #[cfg(feature = "text")] +mod text_initial; +#[cfg(feature = "text")] mod text_quote; #[cfg(feature = "text")] mod text_search; #[cfg(any(feature = "text", feature = "cursors"))] mod text_select; +#[cfg(any(feature = "text", feature = "arrows"))] +mod text_wrap; #[cfg(any(feature = "buildings", feature = "social"))] mod theater; #[cfg(feature = "weather")] @@ -4120,8 +4124,6 @@ mod wine_off; mod workflow; #[cfg(any(feature = "animals", feature = "security"))] mod worm; -#[cfg(any(feature = "text", feature = "arrows"))] -mod wrap_text; #[cfg(any(feature = "account", feature = "development", feature = "tools"))] mod wrench; #[cfg(any(feature = "notifications", feature = "math"))] @@ -4198,8 +4200,6 @@ pub use alarm_clock_plus::*; pub use alarm_smoke::*; #[cfg(any(feature = "photography", feature = "multimedia"))] pub use album::*; -#[cfg(feature = "text")] -pub use align_center::*; #[cfg(feature = "layout")] pub use align_center_horizontal::*; #[cfg(feature = "layout")] @@ -4224,12 +4224,6 @@ pub use align_horizontal_justify_start::*; pub use align_horizontal_space_around::*; #[cfg(feature = "layout")] pub use align_horizontal_space_between::*; -#[cfg(feature = "text")] -pub use align_justify::*; -#[cfg(feature = "text")] -pub use align_left::*; -#[cfg(feature = "text")] -pub use align_right::*; #[cfg(feature = "layout")] pub use align_start_horizontal::*; #[cfg(feature = "layout")] @@ -6091,6 +6085,8 @@ pub use hotel::*; pub use hourglass::*; #[cfg(any(feature = "buildings", feature = "home"))] pub use house::*; +#[cfg(any(feature = "home", feature = "buildings", feature = "medical"))] +pub use house_heart::*; #[cfg(any(feature = "buildings", feature = "home", feature = "sustainability"))] pub use house_plug::*; #[cfg(any(feature = "buildings", feature = "medical"))] @@ -6152,10 +6148,6 @@ pub use images::*; pub use import::*; #[cfg(any(feature = "account", feature = "mail"))] pub use inbox::*; -#[cfg(any(feature = "text", feature = "development"))] -pub use indent_decrease::*; -#[cfg(any(feature = "text", feature = "development"))] -pub use indent_increase::*; #[cfg(feature = "finance")] pub use indian_rupee::*; #[cfg(feature = "multimedia")] @@ -6259,8 +6251,6 @@ pub use leaf::*; pub use leafy_green::*; #[cfg(any(feature = "communication", feature = "multimedia"))] pub use lectern::*; -#[cfg(feature = "text")] -pub use letter_text::*; #[cfg(any( feature = "text", feature = "photography", @@ -6303,6 +6293,8 @@ pub use list_check::*; pub use list_checks::*; #[cfg(any(feature = "text", feature = "arrows"))] pub use list_chevrons_down_up::*; +#[cfg(any(feature = "text", feature = "arrows"))] +pub use list_chevrons_up_down::*; #[cfg(feature = "text")] pub use list_collapse::*; #[cfg(any(feature = "multimedia", feature = "text"))] @@ -6311,6 +6303,10 @@ pub use list_end::*; pub use list_filter::*; #[cfg(any(feature = "text", feature = "layout"))] pub use list_filter_plus::*; +#[cfg(any(feature = "text", feature = "development"))] +pub use list_indent_decrease::*; +#[cfg(any(feature = "text", feature = "development"))] +pub use list_indent_increase::*; #[cfg(any(feature = "multimedia", feature = "text"))] pub use list_minus::*; #[cfg(feature = "multimedia")] @@ -7870,18 +7866,28 @@ pub use test_tube::*; pub use test_tube_diagonal::*; #[cfg(feature = "science")] pub use test_tubes::*; -#[cfg(any(feature = "text", feature = "files", feature = "cursors"))] -pub use text::*; +#[cfg(feature = "text")] +pub use text_align_center::*; +#[cfg(feature = "text")] +pub use text_align_end::*; +#[cfg(feature = "text")] +pub use text_align_justify::*; +#[cfg(feature = "text")] +pub use text_align_start::*; #[cfg(any(feature = "text", feature = "cursors"))] pub use text_cursor::*; #[cfg(any(feature = "text", feature = "layout"))] pub use text_cursor_input::*; #[cfg(feature = "text")] +pub use text_initial::*; +#[cfg(feature = "text")] pub use text_quote::*; #[cfg(feature = "text")] pub use text_search::*; #[cfg(any(feature = "text", feature = "cursors"))] pub use text_select::*; +#[cfg(any(feature = "text", feature = "arrows"))] +pub use text_wrap::*; #[cfg(any(feature = "buildings", feature = "social"))] pub use theater::*; #[cfg(feature = "weather")] @@ -8275,8 +8281,6 @@ pub use wine_off::*; pub use workflow::*; #[cfg(any(feature = "animals", feature = "security"))] pub use worm::*; -#[cfg(any(feature = "text", feature = "arrows"))] -pub use wrap_text::*; #[cfg(any(feature = "account", feature = "development", feature = "tools"))] pub use wrench::*; #[cfg(any(feature = "notifications", feature = "math"))] diff --git a/packages/dioxus/src/list.rs b/packages/dioxus/src/list.rs index 955dee1..a387249 100644 --- a/packages/dioxus/src/list.rs +++ b/packages/dioxus/src/list.rs @@ -34,12 +34,12 @@ pub fn List(props: ListProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M3 5h.01" } path { "d": "M3 12h.01" } - path { "d": "M3 18h.01" } - path { "d": "M3 6h.01" } + path { "d": "M3 19h.01" } + path { "d": "M8 5h13" } path { "d": "M8 12h13" } - path { "d": "M8 18h13" } - path { "d": "M8 6h13" } + path { "d": "M8 19h13" } } } } diff --git a/packages/dioxus/src/list_check.rs b/packages/dioxus/src/list_check.rs index 27ce49e..6d3665a 100644 --- a/packages/dioxus/src/list_check.rs +++ b/packages/dioxus/src/list_check.rs @@ -34,10 +34,10 @@ pub fn ListCheck(props: ListCheckProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M11 18H3" } - path { "d": "m15 18 2 2 4-4" } + path { "d": "M16 5H3" } path { "d": "M16 12H3" } - path { "d": "M16 6H3" } + path { "d": "M11 19H3" } + path { "d": "m15 18 2 2 4-4" } } } } diff --git a/packages/dioxus/src/list_checks.rs b/packages/dioxus/src/list_checks.rs index e054a1c..cf48e65 100644 --- a/packages/dioxus/src/list_checks.rs +++ b/packages/dioxus/src/list_checks.rs @@ -34,11 +34,11 @@ pub fn ListChecks(props: ListChecksProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M13 5h8" } + path { "d": "M13 12h8" } + path { "d": "M13 19h8" } path { "d": "m3 17 2 2 4-4" } path { "d": "m3 7 2 2 4-4" } - path { "d": "M13 6h8" } - path { "d": "M13 12h8" } - path { "d": "M13 18h8" } } } } diff --git a/packages/dioxus/src/list_chevrons_down_up.rs b/packages/dioxus/src/list_chevrons_down_up.rs index 3231679..3c10e2a 100644 --- a/packages/dioxus/src/list_chevrons_down_up.rs +++ b/packages/dioxus/src/list_chevrons_down_up.rs @@ -34,11 +34,11 @@ pub fn ListChevronsDownUp(props: ListChevronsDownUpProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "m15 18 3-3 3 3" } - path { "d": "m15 6 3 3 3-3" } + path { "d": "M3 5h8" } path { "d": "M3 12h8" } - path { "d": "M3 18h8" } - path { "d": "M3 6h8" } + path { "d": "M3 19h8" } + path { "d": "m15 5 3 3 3-3" } + path { "d": "m15 19 3-3 3 3" } } } } diff --git a/packages/dioxus/src/list_chevrons_up_down.rs b/packages/dioxus/src/list_chevrons_up_down.rs new file mode 100644 index 0000000..35d4f23 --- /dev/null +++ b/packages/dioxus/src/list_chevrons_up_down.rs @@ -0,0 +1,44 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ListChevronsUpDownProps { + #[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 ListChevronsUpDown(props: ListChevronsUpDownProps) -> 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 5h8" } + path { "d": "M3 12h8" } + path { "d": "M3 19h8" } + path { "d": "m15 8 3-3 3 3" } + path { "d": "m15 16 3 3 3-3" } + } + } +} diff --git a/packages/dioxus/src/list_collapse.rs b/packages/dioxus/src/list_collapse.rs index 762f262..7855ea0 100644 --- a/packages/dioxus/src/list_collapse.rs +++ b/packages/dioxus/src/list_collapse.rs @@ -34,9 +34,9 @@ pub fn ListCollapse(props: ListCollapseProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M10 5h11" } path { "d": "M10 12h11" } - path { "d": "M10 18h11" } - path { "d": "M10 6h11" } + path { "d": "M10 19h11" } path { "d": "m3 10 3-3-3-3" } path { "d": "m3 20 3-3-3-3" } } diff --git a/packages/dioxus/src/list_end.rs b/packages/dioxus/src/list_end.rs index 0b29f17..d69df01 100644 --- a/packages/dioxus/src/list_end.rs +++ b/packages/dioxus/src/list_end.rs @@ -34,11 +34,11 @@ pub fn ListEnd(props: ListEndProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M16 5H3" } path { "d": "M16 12H3" } - path { "d": "M16 6H3" } - path { "d": "M10 18H3" } - path { "d": "M21 6v10a2 2 0 0 1-2 2h-5" } - path { "d": "m16 16-2 2 2 2" } + path { "d": "M9 19H3" } + path { "d": "m16 16-3 3 3 3" } + path { "d": "M21 5v12a2 2 0 0 1-2 2h-6" } } } } diff --git a/packages/dioxus/src/list_filter.rs b/packages/dioxus/src/list_filter.rs index 471e963..89f88b8 100644 --- a/packages/dioxus/src/list_filter.rs +++ b/packages/dioxus/src/list_filter.rs @@ -34,9 +34,9 @@ pub fn ListFilter(props: ListFilterProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M3 6h18" } - path { "d": "M7 12h10" } - path { "d": "M10 18h4" } + path { "d": "M2 5h20" } + path { "d": "M6 12h12" } + path { "d": "M9 19h6" } } } } diff --git a/packages/dioxus/src/list_filter_plus.rs b/packages/dioxus/src/list_filter_plus.rs index 851107e..a30abf5 100644 --- a/packages/dioxus/src/list_filter_plus.rs +++ b/packages/dioxus/src/list_filter_plus.rs @@ -34,11 +34,11 @@ pub fn ListFilterPlus(props: ListFilterPlusProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M10 18h4" } - path { "d": "M11 6H3" } - path { "d": "M15 6h6" } - path { "d": "M18 9V3" } - path { "d": "M7 12h8" } + path { "d": "M12 5H2" } + path { "d": "M6 12h12" } + path { "d": "M9 19h6" } + path { "d": "M16 5h6" } + path { "d": "M19 8V2" } } } } diff --git a/packages/dioxus/src/list_indent_decrease.rs b/packages/dioxus/src/list_indent_decrease.rs new file mode 100644 index 0000000..c862918 --- /dev/null +++ b/packages/dioxus/src/list_indent_decrease.rs @@ -0,0 +1,43 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ListIndentDecreaseProps { + #[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 ListIndentDecrease(props: ListIndentDecreaseProps) -> 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 5H11" } + path { "d": "M21 12H11" } + path { "d": "M21 19H11" } + path { "d": "m7 8-4 4 4 4" } + } + } +} diff --git a/packages/dioxus/src/list_indent_increase.rs b/packages/dioxus/src/list_indent_increase.rs new file mode 100644 index 0000000..58b51c1 --- /dev/null +++ b/packages/dioxus/src/list_indent_increase.rs @@ -0,0 +1,43 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct ListIndentIncreaseProps { + #[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 ListIndentIncrease(props: ListIndentIncreaseProps) -> 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 5H11" } + path { "d": "M21 12H11" } + path { "d": "M21 19H11" } + path { "d": "m3 8 4 4-4 4" } + } + } +} diff --git a/packages/dioxus/src/list_minus.rs b/packages/dioxus/src/list_minus.rs index babac17..230e989 100644 --- a/packages/dioxus/src/list_minus.rs +++ b/packages/dioxus/src/list_minus.rs @@ -34,9 +34,9 @@ pub fn ListMinus(props: ListMinusProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M16 5H3" } path { "d": "M11 12H3" } - path { "d": "M16 6H3" } - path { "d": "M16 18H3" } + path { "d": "M16 19H3" } path { "d": "M21 12h-6" } } } diff --git a/packages/dioxus/src/list_music.rs b/packages/dioxus/src/list_music.rs index bd8d386..5d6cda6 100644 --- a/packages/dioxus/src/list_music.rs +++ b/packages/dioxus/src/list_music.rs @@ -34,11 +34,11 @@ pub fn ListMusic(props: ListMusicProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M21 15V6" } - path { "d": "M18.5 18a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" } - path { "d": "M12 12H3" } - path { "d": "M16 6H3" } - path { "d": "M12 18H3" } + path { "d": "M16 5H3" } + path { "d": "M11 12H3" } + path { "d": "M11 19H3" } + path { "d": "M21 16V5" } + circle { "cx": "18", "cy": "16", "r": "3" } } } } diff --git a/packages/dioxus/src/list_ordered.rs b/packages/dioxus/src/list_ordered.rs index c3ef150..53cf1c6 100644 --- a/packages/dioxus/src/list_ordered.rs +++ b/packages/dioxus/src/list_ordered.rs @@ -34,12 +34,12 @@ pub fn ListOrdered(props: ListOrderedProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M10 12h11" } - path { "d": "M10 18h11" } - path { "d": "M10 6h11" } - path { "d": "M4 10h2" } - path { "d": "M4 6h1v4" } - path { "d": "M6 18H4c0-1 2-2 2-3s-1-1.5-2-1" } + path { "d": "M11 5h10" } + path { "d": "M11 12h10" } + path { "d": "M11 19h10" } + path { "d": "M4 4h1v5" } + path { "d": "M4 9h2" } + path { "d": "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" } } } } diff --git a/packages/dioxus/src/list_plus.rs b/packages/dioxus/src/list_plus.rs index a19b322..39d7b60 100644 --- a/packages/dioxus/src/list_plus.rs +++ b/packages/dioxus/src/list_plus.rs @@ -34,9 +34,9 @@ pub fn ListPlus(props: ListPlusProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M16 5H3" } path { "d": "M11 12H3" } - path { "d": "M16 6H3" } - path { "d": "M16 18H3" } + path { "d": "M16 19H3" } path { "d": "M18 9v6" } path { "d": "M21 12h-6" } } diff --git a/packages/dioxus/src/list_restart.rs b/packages/dioxus/src/list_restart.rs index 4c02793..9ee5209 100644 --- a/packages/dioxus/src/list_restart.rs +++ b/packages/dioxus/src/list_restart.rs @@ -34,9 +34,9 @@ pub fn ListRestart(props: ListRestartProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M21 6H3" } + path { "d": "M21 5H3" } path { "d": "M7 12H3" } - path { "d": "M7 18H3" } + path { "d": "M7 19H3" } path { "d": "M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14" } path { "d": "M11 10v4h4" } } diff --git a/packages/dioxus/src/list_start.rs b/packages/dioxus/src/list_start.rs index 1514ee5..7209e59 100644 --- a/packages/dioxus/src/list_start.rs +++ b/packages/dioxus/src/list_start.rs @@ -34,11 +34,11 @@ pub fn ListStart(props: ListStartProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M16 12H3" } - path { "d": "M16 18H3" } - path { "d": "M10 6H3" } - path { "d": "M21 18V8a2 2 0 0 0-2-2h-5" } - path { "d": "m16 8-2-2 2-2" } + path { "d": "M3 5h6" } + path { "d": "M3 12h13" } + path { "d": "M3 19h13" } + path { "d": "m16 8-3-3 3-3" } + path { "d": "M21 19V7a2 2 0 0 0-2-2h-6" } } } } diff --git a/packages/dioxus/src/list_todo.rs b/packages/dioxus/src/list_todo.rs index 41f3288..55389a2 100644 --- a/packages/dioxus/src/list_todo.rs +++ b/packages/dioxus/src/list_todo.rs @@ -34,17 +34,17 @@ pub fn ListTodo(props: ListTodoProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M13 5h8" } + path { "d": "M13 12h8" } + path { "d": "M13 19h8" } + path { "d": "m3 17 2 2 4-4" } rect { "x": "3", - "y": "5", + "y": "4", "width": "6", "height": "6", "rx": "1", } - path { "d": "m3 17 2 2 4-4" } - path { "d": "M13 6h8" } - path { "d": "M13 12h8" } - path { "d": "M13 18h8" } } } } diff --git a/packages/dioxus/src/list_tree.rs b/packages/dioxus/src/list_tree.rs index b0bf7ac..516aa6f 100644 --- a/packages/dioxus/src/list_tree.rs +++ b/packages/dioxus/src/list_tree.rs @@ -34,11 +34,11 @@ pub fn ListTree(props: ListTreeProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M21 12h-8" } - path { "d": "M21 6H8" } - path { "d": "M21 18h-8" } - path { "d": "M3 6v4c0 1.1.9 2 2 2h3" } - path { "d": "M3 10v6c0 1.1.9 2 2 2h3" } + path { "d": "M8 5h13" } + path { "d": "M13 12h8" } + path { "d": "M13 19h8" } + path { "d": "M3 10a2 2 0 0 0 2 2h3" } + path { "d": "M3 5v12a2 2 0 0 0 2 2h3" } } } } diff --git a/packages/dioxus/src/list_video.rs b/packages/dioxus/src/list_video.rs index 55a53a2..bbcfa33 100644 --- a/packages/dioxus/src/list_video.rs +++ b/packages/dioxus/src/list_video.rs @@ -34,10 +34,10 @@ pub fn ListVideo(props: ListVideoProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M12 12H3" } - path { "d": "M12 18H3" } - path { "d": "M16 6H3" } - path { "d": "M21.033 14.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .968-.56z" } + path { "d": "M21 5H3" } + path { "d": "M10 12H3" } + path { "d": "M10 19H3" } + path { "d": "M15 12.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z" } } } } diff --git a/packages/dioxus/src/list_x.rs b/packages/dioxus/src/list_x.rs index 6a70754..b66ff9f 100644 --- a/packages/dioxus/src/list_x.rs +++ b/packages/dioxus/src/list_x.rs @@ -34,11 +34,11 @@ pub fn ListX(props: ListXProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M16 5H3" } path { "d": "M11 12H3" } - path { "d": "M16 6H3" } - path { "d": "M16 18H3" } - path { "d": "m19 10-4 4" } - path { "d": "m15 10 4 4" } + path { "d": "M16 19H3" } + path { "d": "m15.5 9.5 5 5" } + path { "d": "m20.5 9.5-5 5" } } } } diff --git a/packages/dioxus/src/logs.rs b/packages/dioxus/src/logs.rs index 6365627..d681001 100644 --- a/packages/dioxus/src/logs.rs +++ b/packages/dioxus/src/logs.rs @@ -34,15 +34,15 @@ pub fn Logs(props: LogsProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M13 12h8" } - path { "d": "M13 18h8" } - path { "d": "M13 6h8" } + path { "d": "M3 5h1" } path { "d": "M3 12h1" } - path { "d": "M3 18h1" } - path { "d": "M3 6h1" } + path { "d": "M3 19h1" } + path { "d": "M8 5h1" } path { "d": "M8 12h1" } - path { "d": "M8 18h1" } - path { "d": "M8 6h1" } + path { "d": "M8 19h1" } + path { "d": "M13 5h8" } + path { "d": "M13 12h8" } + path { "d": "M13 19h8" } } } } diff --git a/packages/dioxus/src/menu.rs b/packages/dioxus/src/menu.rs index 7e53689..dfcfb7f 100644 --- a/packages/dioxus/src/menu.rs +++ b/packages/dioxus/src/menu.rs @@ -34,9 +34,9 @@ pub fn Menu(props: MenuProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M4 5h16" } path { "d": "M4 12h16" } - path { "d": "M4 18h16" } - path { "d": "M4 6h16" } + path { "d": "M4 19h16" } } } } diff --git a/packages/dioxus/src/message_square_quote.rs b/packages/dioxus/src/message_square_quote.rs index e907a51..dcfa43e 100644 --- a/packages/dioxus/src/message_square_quote.rs +++ b/packages/dioxus/src/message_square_quote.rs @@ -34,9 +34,9 @@ pub fn MessageSquareQuote(props: MessageSquareQuoteProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M14 14a2 2 0 0 0 2-2V8h-2" } path { "d": "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" } - path { "d": "M14 13a2 2 0 0 0 2-2V9h-2" } - path { "d": "M8 13a2 2 0 0 0 2-2V9H8" } + path { "d": "M8 14a2 2 0 0 0 2-2V8H8" } } } } diff --git a/packages/dioxus/src/panel_left_right_dashed.rs b/packages/dioxus/src/panel_left_right_dashed.rs index a9101d6..7bb7416 100644 --- a/packages/dioxus/src/panel_left_right_dashed.rs +++ b/packages/dioxus/src/panel_left_right_dashed.rs @@ -34,14 +34,14 @@ pub fn PanelLeftRightDashed(props: PanelLeftRightDashedProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M16 10V9" } - path { "d": "M16 15v-1" } - path { "d": "M16 21v-2" } - path { "d": "M16 5V3" } - path { "d": "M8 10V9" } - path { "d": "M8 15v-1" } - path { "d": "M8 21v-2" } - path { "d": "M8 5V3" } + path { "d": "M15 10V9" } + path { "d": "M15 15v-1" } + path { "d": "M15 21v-2" } + path { "d": "M15 5V3" } + path { "d": "M9 10V9" } + path { "d": "M9 15v-1" } + path { "d": "M9 21v-2" } + path { "d": "M9 5V3" } rect { "x": "3", "y": "3", diff --git a/packages/dioxus/src/panel_top_bottom_dashed.rs b/packages/dioxus/src/panel_top_bottom_dashed.rs index e1a813c..6e262ab 100644 --- a/packages/dioxus/src/panel_top_bottom_dashed.rs +++ b/packages/dioxus/src/panel_top_bottom_dashed.rs @@ -34,14 +34,14 @@ pub fn PanelTopBottomDashed(props: PanelTopBottomDashedProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M14 16h1" } - path { "d": "M14 8h1" } - path { "d": "M19 16h2" } - path { "d": "M19 8h2" } - path { "d": "M3 16h2" } - path { "d": "M3 8h2" } - path { "d": "M9 16h1" } - path { "d": "M9 8h1" } + path { "d": "M14 15h1" } + path { "d": "M14 9h1" } + path { "d": "M19 15h2" } + path { "d": "M19 9h2" } + path { "d": "M3 15h2" } + path { "d": "M3 9h2" } + path { "d": "M9 15h1" } + path { "d": "M9 9h1" } rect { "x": "3", "y": "3", diff --git a/packages/dioxus/src/sliders_horizontal.rs b/packages/dioxus/src/sliders_horizontal.rs index 3de30f6..f941290 100644 --- a/packages/dioxus/src/sliders_horizontal.rs +++ b/packages/dioxus/src/sliders_horizontal.rs @@ -34,60 +34,15 @@ pub fn SlidersHorizontal(props: SlidersHorizontalProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "21", - "x2": "14", - "y1": "4", - "y2": "4", - } - line { - "x1": "10", - "x2": "3", - "y1": "4", - "y2": "4", - } - line { - "x1": "21", - "x2": "12", - "y1": "12", - "y2": "12", - } - line { - "x1": "8", - "x2": "3", - "y1": "12", - "y2": "12", - } - line { - "x1": "21", - "x2": "16", - "y1": "20", - "y2": "20", - } - line { - "x1": "12", - "x2": "3", - "y1": "20", - "y2": "20", - } - line { - "x1": "14", - "x2": "14", - "y1": "2", - "y2": "6", - } - line { - "x1": "8", - "x2": "8", - "y1": "10", - "y2": "14", - } - line { - "x1": "16", - "x2": "16", - "y1": "18", - "y2": "22", - } + path { "d": "M10 5H3" } + path { "d": "M12 19H3" } + path { "d": "M14 3v4" } + path { "d": "M16 17v4" } + path { "d": "M21 12h-9" } + path { "d": "M21 19h-5" } + path { "d": "M21 5h-7" } + path { "d": "M8 10v4" } + path { "d": "M8 12H3" } } } } diff --git a/packages/dioxus/src/sliders_vertical.rs b/packages/dioxus/src/sliders_vertical.rs index f8f48a1..ee3c256 100644 --- a/packages/dioxus/src/sliders_vertical.rs +++ b/packages/dioxus/src/sliders_vertical.rs @@ -34,60 +34,15 @@ pub fn SlidersVertical(props: SlidersVerticalProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "4", - "x2": "4", - "y1": "21", - "y2": "14", - } - line { - "x1": "4", - "x2": "4", - "y1": "10", - "y2": "3", - } - line { - "x1": "12", - "x2": "12", - "y1": "21", - "y2": "12", - } - line { - "x1": "12", - "x2": "12", - "y1": "8", - "y2": "3", - } - line { - "x1": "20", - "x2": "20", - "y1": "21", - "y2": "16", - } - line { - "x1": "20", - "x2": "20", - "y1": "12", - "y2": "3", - } - line { - "x1": "2", - "x2": "6", - "y1": "14", - "y2": "14", - } - line { - "x1": "10", - "x2": "14", - "y1": "8", - "y2": "8", - } - line { - "x1": "18", - "x2": "22", - "y1": "16", - "y2": "16", - } + path { "d": "M10 8h4" } + path { "d": "M12 21v-9" } + path { "d": "M12 8V3" } + path { "d": "M17 16h4" } + path { "d": "M19 12V3" } + path { "d": "M19 21v-5" } + path { "d": "M3 14h4" } + path { "d": "M5 10V3" } + path { "d": "M5 21v-7" } } } } diff --git a/packages/dioxus/src/table_of_contents.rs b/packages/dioxus/src/table_of_contents.rs index 2b546fb..4ae69a1 100644 --- a/packages/dioxus/src/table_of_contents.rs +++ b/packages/dioxus/src/table_of_contents.rs @@ -34,12 +34,12 @@ pub fn TableOfContents(props: TableOfContentsProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M16 5H3" } path { "d": "M16 12H3" } - path { "d": "M16 18H3" } - path { "d": "M16 6H3" } + path { "d": "M16 19H3" } + path { "d": "M21 5h.01" } path { "d": "M21 12h.01" } - path { "d": "M21 18h.01" } - path { "d": "M21 6h.01" } + path { "d": "M21 19h.01" } } } } diff --git a/packages/dioxus/src/text_align_center.rs b/packages/dioxus/src/text_align_center.rs new file mode 100644 index 0000000..f32d411 --- /dev/null +++ b/packages/dioxus/src/text_align_center.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct TextAlignCenterProps { + #[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 TextAlignCenter(props: TextAlignCenterProps) -> 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 5H3" } + path { "d": "M17 12H7" } + path { "d": "M19 19H5" } + } + } +} diff --git a/packages/dioxus/src/text_align_end.rs b/packages/dioxus/src/text_align_end.rs new file mode 100644 index 0000000..a70a54e --- /dev/null +++ b/packages/dioxus/src/text_align_end.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct TextAlignEndProps { + #[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 TextAlignEnd(props: TextAlignEndProps) -> 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 5H3" } + path { "d": "M21 12H9" } + path { "d": "M21 19H7" } + } + } +} diff --git a/packages/dioxus/src/text_align_justify.rs b/packages/dioxus/src/text_align_justify.rs new file mode 100644 index 0000000..476310b --- /dev/null +++ b/packages/dioxus/src/text_align_justify.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct TextAlignJustifyProps { + #[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 TextAlignJustify(props: TextAlignJustifyProps) -> 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 5h18" } + path { "d": "M3 12h18" } + path { "d": "M3 19h18" } + } + } +} diff --git a/packages/dioxus/src/text_align_start.rs b/packages/dioxus/src/text_align_start.rs new file mode 100644 index 0000000..c8d0140 --- /dev/null +++ b/packages/dioxus/src/text_align_start.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct TextAlignStartProps { + #[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 TextAlignStart(props: TextAlignStartProps) -> 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 5H3" } + path { "d": "M15 12H3" } + path { "d": "M17 19H3" } + } + } +} diff --git a/packages/dioxus/src/text_initial.rs b/packages/dioxus/src/text_initial.rs new file mode 100644 index 0000000..2353db6 --- /dev/null +++ b/packages/dioxus/src/text_initial.rs @@ -0,0 +1,44 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct TextInitialProps { + #[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 TextInitial(props: TextInitialProps) -> 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 5h6" } + path { "d": "M15 12h6" } + path { "d": "M3 19h18" } + path { "d": "m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12" } + path { "d": "M3.92 10h6.16" } + } + } +} diff --git a/packages/dioxus/src/text_quote.rs b/packages/dioxus/src/text_quote.rs index 2695215..551cdb0 100644 --- a/packages/dioxus/src/text_quote.rs +++ b/packages/dioxus/src/text_quote.rs @@ -34,10 +34,10 @@ pub fn TextQuote(props: TextQuoteProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M17 6H3" } + path { "d": "M17 5H3" } path { "d": "M21 12H8" } - path { "d": "M21 18H8" } - path { "d": "M3 12v6" } + path { "d": "M21 19H8" } + path { "d": "M3 12v7" } } } } diff --git a/packages/dioxus/src/text_search.rs b/packages/dioxus/src/text_search.rs index 0c62c6d..02eb98d 100644 --- a/packages/dioxus/src/text_search.rs +++ b/packages/dioxus/src/text_search.rs @@ -34,9 +34,9 @@ pub fn TextSearch(props: TextSearchProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M21 6H3" } + path { "d": "M21 5H3" } path { "d": "M10 12H3" } - path { "d": "M10 18H3" } + path { "d": "M10 19H3" } circle { "cx": "17", "cy": "15", "r": "3" } path { "d": "m21 19-1.9-1.9" } } diff --git a/packages/dioxus/src/text_wrap.rs b/packages/dioxus/src/text_wrap.rs new file mode 100644 index 0000000..9893457 --- /dev/null +++ b/packages/dioxus/src/text_wrap.rs @@ -0,0 +1,43 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct TextWrapProps { + #[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 TextWrap(props: TextWrapProps) -> 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 16-3 3 3 3" } + path { "d": "M3 12h14.5a1 1 0 0 1 0 7H13" } + path { "d": "M3 19h6" } + path { "d": "M3 5h18" } + } + } +} diff --git a/packages/leptos/src/bug.rs b/packages/leptos/src/bug.rs index e09b5c5..c678bb3 100644 --- a/packages/leptos/src/bug.rs +++ b/packages/leptos/src/bug.rs @@ -29,17 +29,17 @@ pub fn Bug( stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - + + + + - + + + + + } } diff --git a/packages/leptos/src/bug_off.rs b/packages/leptos/src/bug_off.rs index 4590cea..8fd21dd 100644 --- a/packages/leptos/src/bug_off.rs +++ b/packages/leptos/src/bug_off.rs @@ -29,15 +29,16 @@ pub fn BugOff( stroke-linecap="round" stroke-linejoin="round" > - + - - + + - - + + + - + } } diff --git a/packages/leptos/src/bug_play.rs b/packages/leptos/src/bug_play.rs index 21694b0..bf2002b 100644 --- a/packages/leptos/src/bug_play.rs +++ b/packages/leptos/src/bug_play.rs @@ -32,12 +32,12 @@ pub fn BugPlay( - - + + + - - + } } diff --git a/packages/leptos/src/calendar_cog.rs b/packages/leptos/src/calendar_cog.rs index e123048..175e2be 100644 --- a/packages/leptos/src/calendar_cog.rs +++ b/packages/leptos/src/calendar_cog.rs @@ -38,7 +38,7 @@ pub fn CalendarCog( - + diff --git a/packages/leptos/src/chart_no_axes_column.rs b/packages/leptos/src/chart_no_axes_column.rs index 2c450cd..b07f492 100644 --- a/packages/leptos/src/chart_no_axes_column.rs +++ b/packages/leptos/src/chart_no_axes_column.rs @@ -29,9 +29,9 @@ pub fn ChartNoAxesColumn( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/chart_no_axes_column_decreasing.rs b/packages/leptos/src/chart_no_axes_column_decreasing.rs index c5fc44f..983b840 100644 --- a/packages/leptos/src/chart_no_axes_column_decreasing.rs +++ b/packages/leptos/src/chart_no_axes_column_decreasing.rs @@ -29,9 +29,9 @@ pub fn ChartNoAxesColumnDecreasing( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/chart_no_axes_column_increasing.rs b/packages/leptos/src/chart_no_axes_column_increasing.rs index f3f9228..cfacf87 100644 --- a/packages/leptos/src/chart_no_axes_column_increasing.rs +++ b/packages/leptos/src/chart_no_axes_column_increasing.rs @@ -29,9 +29,9 @@ pub fn ChartNoAxesColumnIncreasing( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/chart_no_axes_gantt.rs b/packages/leptos/src/chart_no_axes_gantt.rs index 297eb0d..27385f5 100644 --- a/packages/leptos/src/chart_no_axes_gantt.rs +++ b/packages/leptos/src/chart_no_axes_gantt.rs @@ -29,9 +29,9 @@ pub fn ChartNoAxesGantt( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/church.rs b/packages/leptos/src/church.rs index e4fd4b0..b7f3b64 100644 --- a/packages/leptos/src/church.rs +++ b/packages/leptos/src/church.rs @@ -31,9 +31,9 @@ pub fn Church( > - - - + + + } } diff --git a/packages/leptos/src/house.rs b/packages/leptos/src/house.rs index 1bd0364..fc22f70 100644 --- a/packages/leptos/src/house.rs +++ b/packages/leptos/src/house.rs @@ -30,7 +30,7 @@ pub fn House( stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/house_heart.rs b/packages/leptos/src/house_heart.rs new file mode 100644 index 0000000..fb31c33 --- /dev/null +++ b/packages/leptos/src/house_heart.rs @@ -0,0 +1,36 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn HouseHeart( + #[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/house_plug.rs b/packages/leptos/src/house_plug.rs index 6d082ff..7623781 100644 --- a/packages/leptos/src/house_plug.rs +++ b/packages/leptos/src/house_plug.rs @@ -32,7 +32,7 @@ pub fn HousePlug( - + } } diff --git a/packages/leptos/src/house_plus.rs b/packages/leptos/src/house_plus.rs index 5bb07fe..7f7b9cd 100644 --- a/packages/leptos/src/house_plus.rs +++ b/packages/leptos/src/house_plus.rs @@ -29,8 +29,8 @@ pub fn HousePlus( stroke-linecap="round" stroke-linejoin="round" > - - + + diff --git a/packages/leptos/src/house_wifi.rs b/packages/leptos/src/house_wifi.rs index 9e83c30..d83bc5a 100644 --- a/packages/leptos/src/house_wifi.rs +++ b/packages/leptos/src/house_wifi.rs @@ -31,7 +31,7 @@ pub fn HouseWifi( > - + } diff --git a/packages/leptos/src/kanban.rs b/packages/leptos/src/kanban.rs index 14becc5..3f56d35 100644 --- a/packages/leptos/src/kanban.rs +++ b/packages/leptos/src/kanban.rs @@ -29,9 +29,9 @@ pub fn Kanban( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/lib.rs b/packages/leptos/src/lib.rs index e8c3431..e7b60c2 100644 --- a/packages/leptos/src/lib.rs +++ b/packages/leptos/src/lib.rs @@ -43,8 +43,6 @@ mod alarm_clock_plus; mod alarm_smoke; #[cfg(any(feature = "photography", feature = "multimedia"))] mod album; -#[cfg(feature = "text")] -mod align_center; #[cfg(feature = "layout")] mod align_center_horizontal; #[cfg(feature = "layout")] @@ -69,12 +67,6 @@ mod align_horizontal_justify_start; mod align_horizontal_space_around; #[cfg(feature = "layout")] mod align_horizontal_space_between; -#[cfg(feature = "text")] -mod align_justify; -#[cfg(feature = "text")] -mod align_left; -#[cfg(feature = "text")] -mod align_right; #[cfg(feature = "layout")] mod align_start_horizontal; #[cfg(feature = "layout")] @@ -1936,6 +1928,8 @@ mod hotel; mod hourglass; #[cfg(any(feature = "buildings", feature = "home"))] mod house; +#[cfg(any(feature = "home", feature = "buildings", feature = "medical"))] +mod house_heart; #[cfg(any(feature = "buildings", feature = "home", feature = "sustainability"))] mod house_plug; #[cfg(any(feature = "buildings", feature = "medical"))] @@ -1997,10 +1991,6 @@ mod images; mod import; #[cfg(any(feature = "account", feature = "mail"))] mod inbox; -#[cfg(any(feature = "text", feature = "development"))] -mod indent_decrease; -#[cfg(any(feature = "text", feature = "development"))] -mod indent_increase; #[cfg(feature = "finance")] mod indian_rupee; #[cfg(feature = "multimedia")] @@ -2104,8 +2094,6 @@ mod leaf; mod leafy_green; #[cfg(any(feature = "communication", feature = "multimedia"))] mod lectern; -#[cfg(feature = "text")] -mod letter_text; #[cfg(any( feature = "text", feature = "photography", @@ -2148,6 +2136,8 @@ mod list_check; mod list_checks; #[cfg(any(feature = "text", feature = "arrows"))] mod list_chevrons_down_up; +#[cfg(any(feature = "text", feature = "arrows"))] +mod list_chevrons_up_down; #[cfg(feature = "text")] mod list_collapse; #[cfg(any(feature = "multimedia", feature = "text"))] @@ -2156,6 +2146,10 @@ mod list_end; mod list_filter; #[cfg(any(feature = "text", feature = "layout"))] mod list_filter_plus; +#[cfg(any(feature = "text", feature = "development"))] +mod list_indent_decrease; +#[cfg(any(feature = "text", feature = "development"))] +mod list_indent_increase; #[cfg(any(feature = "multimedia", feature = "text"))] mod list_minus; #[cfg(feature = "multimedia")] @@ -3715,18 +3709,28 @@ mod test_tube; mod test_tube_diagonal; #[cfg(feature = "science")] mod test_tubes; -#[cfg(any(feature = "text", feature = "files", feature = "cursors"))] -mod text; +#[cfg(feature = "text")] +mod text_align_center; +#[cfg(feature = "text")] +mod text_align_end; +#[cfg(feature = "text")] +mod text_align_justify; +#[cfg(feature = "text")] +mod text_align_start; #[cfg(any(feature = "text", feature = "cursors"))] mod text_cursor; #[cfg(any(feature = "text", feature = "layout"))] mod text_cursor_input; #[cfg(feature = "text")] +mod text_initial; +#[cfg(feature = "text")] mod text_quote; #[cfg(feature = "text")] mod text_search; #[cfg(any(feature = "text", feature = "cursors"))] mod text_select; +#[cfg(any(feature = "text", feature = "arrows"))] +mod text_wrap; #[cfg(any(feature = "buildings", feature = "social"))] mod theater; #[cfg(feature = "weather")] @@ -4120,8 +4124,6 @@ mod wine_off; mod workflow; #[cfg(any(feature = "animals", feature = "security"))] mod worm; -#[cfg(any(feature = "text", feature = "arrows"))] -mod wrap_text; #[cfg(any(feature = "account", feature = "development", feature = "tools"))] mod wrench; #[cfg(any(feature = "notifications", feature = "math"))] @@ -4198,8 +4200,6 @@ pub use alarm_clock_plus::*; pub use alarm_smoke::*; #[cfg(any(feature = "photography", feature = "multimedia"))] pub use album::*; -#[cfg(feature = "text")] -pub use align_center::*; #[cfg(feature = "layout")] pub use align_center_horizontal::*; #[cfg(feature = "layout")] @@ -4224,12 +4224,6 @@ pub use align_horizontal_justify_start::*; pub use align_horizontal_space_around::*; #[cfg(feature = "layout")] pub use align_horizontal_space_between::*; -#[cfg(feature = "text")] -pub use align_justify::*; -#[cfg(feature = "text")] -pub use align_left::*; -#[cfg(feature = "text")] -pub use align_right::*; #[cfg(feature = "layout")] pub use align_start_horizontal::*; #[cfg(feature = "layout")] @@ -6091,6 +6085,8 @@ pub use hotel::*; pub use hourglass::*; #[cfg(any(feature = "buildings", feature = "home"))] pub use house::*; +#[cfg(any(feature = "home", feature = "buildings", feature = "medical"))] +pub use house_heart::*; #[cfg(any(feature = "buildings", feature = "home", feature = "sustainability"))] pub use house_plug::*; #[cfg(any(feature = "buildings", feature = "medical"))] @@ -6152,10 +6148,6 @@ pub use images::*; pub use import::*; #[cfg(any(feature = "account", feature = "mail"))] pub use inbox::*; -#[cfg(any(feature = "text", feature = "development"))] -pub use indent_decrease::*; -#[cfg(any(feature = "text", feature = "development"))] -pub use indent_increase::*; #[cfg(feature = "finance")] pub use indian_rupee::*; #[cfg(feature = "multimedia")] @@ -6259,8 +6251,6 @@ pub use leaf::*; pub use leafy_green::*; #[cfg(any(feature = "communication", feature = "multimedia"))] pub use lectern::*; -#[cfg(feature = "text")] -pub use letter_text::*; #[cfg(any( feature = "text", feature = "photography", @@ -6303,6 +6293,8 @@ pub use list_check::*; pub use list_checks::*; #[cfg(any(feature = "text", feature = "arrows"))] pub use list_chevrons_down_up::*; +#[cfg(any(feature = "text", feature = "arrows"))] +pub use list_chevrons_up_down::*; #[cfg(feature = "text")] pub use list_collapse::*; #[cfg(any(feature = "multimedia", feature = "text"))] @@ -6311,6 +6303,10 @@ pub use list_end::*; pub use list_filter::*; #[cfg(any(feature = "text", feature = "layout"))] pub use list_filter_plus::*; +#[cfg(any(feature = "text", feature = "development"))] +pub use list_indent_decrease::*; +#[cfg(any(feature = "text", feature = "development"))] +pub use list_indent_increase::*; #[cfg(any(feature = "multimedia", feature = "text"))] pub use list_minus::*; #[cfg(feature = "multimedia")] @@ -7870,18 +7866,28 @@ pub use test_tube::*; pub use test_tube_diagonal::*; #[cfg(feature = "science")] pub use test_tubes::*; -#[cfg(any(feature = "text", feature = "files", feature = "cursors"))] -pub use text::*; +#[cfg(feature = "text")] +pub use text_align_center::*; +#[cfg(feature = "text")] +pub use text_align_end::*; +#[cfg(feature = "text")] +pub use text_align_justify::*; +#[cfg(feature = "text")] +pub use text_align_start::*; #[cfg(any(feature = "text", feature = "cursors"))] pub use text_cursor::*; #[cfg(any(feature = "text", feature = "layout"))] pub use text_cursor_input::*; #[cfg(feature = "text")] +pub use text_initial::*; +#[cfg(feature = "text")] pub use text_quote::*; #[cfg(feature = "text")] pub use text_search::*; #[cfg(any(feature = "text", feature = "cursors"))] pub use text_select::*; +#[cfg(any(feature = "text", feature = "arrows"))] +pub use text_wrap::*; #[cfg(any(feature = "buildings", feature = "social"))] pub use theater::*; #[cfg(feature = "weather")] @@ -8275,8 +8281,6 @@ pub use wine_off::*; pub use workflow::*; #[cfg(any(feature = "animals", feature = "security"))] pub use worm::*; -#[cfg(any(feature = "text", feature = "arrows"))] -pub use wrap_text::*; #[cfg(any(feature = "account", feature = "development", feature = "tools"))] pub use wrench::*; #[cfg(any(feature = "notifications", feature = "math"))] diff --git a/packages/leptos/src/list.rs b/packages/leptos/src/list.rs index b023e56..a3afac2 100644 --- a/packages/leptos/src/list.rs +++ b/packages/leptos/src/list.rs @@ -29,12 +29,12 @@ pub fn List( stroke-linecap="round" stroke-linejoin="round" > + - - + + - - + } } diff --git a/packages/leptos/src/list_check.rs b/packages/leptos/src/list_check.rs index df4265f..9710374 100644 --- a/packages/leptos/src/list_check.rs +++ b/packages/leptos/src/list_check.rs @@ -29,10 +29,10 @@ pub fn ListCheck( stroke-linecap="round" stroke-linejoin="round" > - - + - + + } } diff --git a/packages/leptos/src/list_checks.rs b/packages/leptos/src/list_checks.rs index d024665..802178c 100644 --- a/packages/leptos/src/list_checks.rs +++ b/packages/leptos/src/list_checks.rs @@ -29,11 +29,11 @@ pub fn ListChecks( stroke-linecap="round" stroke-linejoin="round" > + + + - - - } } diff --git a/packages/leptos/src/list_chevrons_down_up.rs b/packages/leptos/src/list_chevrons_down_up.rs index bf684ab..391826a 100644 --- a/packages/leptos/src/list_chevrons_down_up.rs +++ b/packages/leptos/src/list_chevrons_down_up.rs @@ -29,11 +29,11 @@ pub fn ListChevronsDownUp( stroke-linecap="round" stroke-linejoin="round" > - - + - - + + + } } diff --git a/packages/leptos/src/list_chevrons_up_down.rs b/packages/leptos/src/list_chevrons_up_down.rs new file mode 100644 index 0000000..351d208 --- /dev/null +++ b/packages/leptos/src/list_chevrons_up_down.rs @@ -0,0 +1,39 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ListChevronsUpDown( + #[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/list_collapse.rs b/packages/leptos/src/list_collapse.rs index 43527ea..a7a8290 100644 --- a/packages/leptos/src/list_collapse.rs +++ b/packages/leptos/src/list_collapse.rs @@ -29,9 +29,9 @@ pub fn ListCollapse( stroke-linecap="round" stroke-linejoin="round" > + - - + diff --git a/packages/leptos/src/list_end.rs b/packages/leptos/src/list_end.rs index 315222f..890ccd9 100644 --- a/packages/leptos/src/list_end.rs +++ b/packages/leptos/src/list_end.rs @@ -29,11 +29,11 @@ pub fn ListEnd( stroke-linecap="round" stroke-linejoin="round" > + - - - - + + + } } diff --git a/packages/leptos/src/list_filter.rs b/packages/leptos/src/list_filter.rs index b26ecba..5bf094a 100644 --- a/packages/leptos/src/list_filter.rs +++ b/packages/leptos/src/list_filter.rs @@ -29,9 +29,9 @@ pub fn ListFilter( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/list_filter_plus.rs b/packages/leptos/src/list_filter_plus.rs index ba748c7..03e9062 100644 --- a/packages/leptos/src/list_filter_plus.rs +++ b/packages/leptos/src/list_filter_plus.rs @@ -29,11 +29,11 @@ pub fn ListFilterPlus( stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/leptos/src/list_indent_decrease.rs b/packages/leptos/src/list_indent_decrease.rs new file mode 100644 index 0000000..6e63652 --- /dev/null +++ b/packages/leptos/src/list_indent_decrease.rs @@ -0,0 +1,38 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ListIndentDecrease( + #[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/list_indent_increase.rs b/packages/leptos/src/list_indent_increase.rs new file mode 100644 index 0000000..46558b0 --- /dev/null +++ b/packages/leptos/src/list_indent_increase.rs @@ -0,0 +1,38 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn ListIndentIncrease( + #[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/list_minus.rs b/packages/leptos/src/list_minus.rs index 06fe58f..7eb94d1 100644 --- a/packages/leptos/src/list_minus.rs +++ b/packages/leptos/src/list_minus.rs @@ -29,9 +29,9 @@ pub fn ListMinus( stroke-linecap="round" stroke-linejoin="round" > + - - + } diff --git a/packages/leptos/src/list_music.rs b/packages/leptos/src/list_music.rs index 0eafd92..11eb205 100644 --- a/packages/leptos/src/list_music.rs +++ b/packages/leptos/src/list_music.rs @@ -29,11 +29,11 @@ pub fn ListMusic( stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/leptos/src/list_ordered.rs b/packages/leptos/src/list_ordered.rs index f3c1cda..48b35a2 100644 --- a/packages/leptos/src/list_ordered.rs +++ b/packages/leptos/src/list_ordered.rs @@ -29,12 +29,12 @@ pub fn ListOrdered( stroke-linecap="round" stroke-linejoin="round" > - - - - - - + + + + + + } } diff --git a/packages/leptos/src/list_plus.rs b/packages/leptos/src/list_plus.rs index 5a517bf..741e417 100644 --- a/packages/leptos/src/list_plus.rs +++ b/packages/leptos/src/list_plus.rs @@ -29,9 +29,9 @@ pub fn ListPlus( stroke-linecap="round" stroke-linejoin="round" > + - - + diff --git a/packages/leptos/src/list_restart.rs b/packages/leptos/src/list_restart.rs index 1f29d86..4fdb666 100644 --- a/packages/leptos/src/list_restart.rs +++ b/packages/leptos/src/list_restart.rs @@ -29,9 +29,9 @@ pub fn ListRestart( stroke-linecap="round" stroke-linejoin="round" > - + - + diff --git a/packages/leptos/src/list_start.rs b/packages/leptos/src/list_start.rs index 8f03bad..bf0145c 100644 --- a/packages/leptos/src/list_start.rs +++ b/packages/leptos/src/list_start.rs @@ -29,11 +29,11 @@ pub fn ListStart( stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/leptos/src/list_todo.rs b/packages/leptos/src/list_todo.rs index 434e31b..a887551 100644 --- a/packages/leptos/src/list_todo.rs +++ b/packages/leptos/src/list_todo.rs @@ -29,11 +29,11 @@ pub fn ListTodo( stroke-linecap="round" stroke-linejoin="round" > - - - + - + + + } } diff --git a/packages/leptos/src/list_tree.rs b/packages/leptos/src/list_tree.rs index 207201a..3373331 100644 --- a/packages/leptos/src/list_tree.rs +++ b/packages/leptos/src/list_tree.rs @@ -29,11 +29,11 @@ pub fn ListTree( stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/leptos/src/list_video.rs b/packages/leptos/src/list_video.rs index 6562186..e1da635 100644 --- a/packages/leptos/src/list_video.rs +++ b/packages/leptos/src/list_video.rs @@ -29,10 +29,10 @@ pub fn ListVideo( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } } diff --git a/packages/leptos/src/list_x.rs b/packages/leptos/src/list_x.rs index ebc21b1..db46ccd 100644 --- a/packages/leptos/src/list_x.rs +++ b/packages/leptos/src/list_x.rs @@ -29,11 +29,11 @@ pub fn ListX( stroke-linecap="round" stroke-linejoin="round" > + - - - - + + + } } diff --git a/packages/leptos/src/logs.rs b/packages/leptos/src/logs.rs index eb448b1..eab796d 100644 --- a/packages/leptos/src/logs.rs +++ b/packages/leptos/src/logs.rs @@ -29,15 +29,15 @@ pub fn Logs( stroke-linecap="round" stroke-linejoin="round" > - - - + - - + + - - + + + + } } diff --git a/packages/leptos/src/menu.rs b/packages/leptos/src/menu.rs index 6cf3e97..ad1b742 100644 --- a/packages/leptos/src/menu.rs +++ b/packages/leptos/src/menu.rs @@ -29,9 +29,9 @@ pub fn Menu( stroke-linecap="round" stroke-linejoin="round" > + - - + } } diff --git a/packages/leptos/src/message_square_quote.rs b/packages/leptos/src/message_square_quote.rs index 5de29da..94e0c57 100644 --- a/packages/leptos/src/message_square_quote.rs +++ b/packages/leptos/src/message_square_quote.rs @@ -29,9 +29,9 @@ pub fn MessageSquareQuote( stroke-linecap="round" stroke-linejoin="round" > + - - + } } diff --git a/packages/leptos/src/panel_left_right_dashed.rs b/packages/leptos/src/panel_left_right_dashed.rs index 52765e8..ea33624 100644 --- a/packages/leptos/src/panel_left_right_dashed.rs +++ b/packages/leptos/src/panel_left_right_dashed.rs @@ -29,14 +29,14 @@ pub fn PanelLeftRightDashed( stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - + + + + + + + + } diff --git a/packages/leptos/src/panel_top_bottom_dashed.rs b/packages/leptos/src/panel_top_bottom_dashed.rs index a7b7d90..1f72279 100644 --- a/packages/leptos/src/panel_top_bottom_dashed.rs +++ b/packages/leptos/src/panel_top_bottom_dashed.rs @@ -29,14 +29,14 @@ pub fn PanelTopBottomDashed( stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - + + + + + + + + } diff --git a/packages/leptos/src/sliders_horizontal.rs b/packages/leptos/src/sliders_horizontal.rs index 6239d68..609fd10 100644 --- a/packages/leptos/src/sliders_horizontal.rs +++ b/packages/leptos/src/sliders_horizontal.rs @@ -29,15 +29,15 @@ pub fn SlidersHorizontal( stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - - + + + + + + + + + } } diff --git a/packages/leptos/src/sliders_vertical.rs b/packages/leptos/src/sliders_vertical.rs index 2bbc06f..c9794e4 100644 --- a/packages/leptos/src/sliders_vertical.rs +++ b/packages/leptos/src/sliders_vertical.rs @@ -29,15 +29,15 @@ pub fn SlidersVertical( stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - - + + + + + + + + + } } diff --git a/packages/leptos/src/table_of_contents.rs b/packages/leptos/src/table_of_contents.rs index 540df83..25ff83b 100644 --- a/packages/leptos/src/table_of_contents.rs +++ b/packages/leptos/src/table_of_contents.rs @@ -29,12 +29,12 @@ pub fn TableOfContents( stroke-linecap="round" stroke-linejoin="round" > + - - + + - - + } } diff --git a/packages/leptos/src/text_align_center.rs b/packages/leptos/src/text_align_center.rs new file mode 100644 index 0000000..ef7a839 --- /dev/null +++ b/packages/leptos/src/text_align_center.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn TextAlignCenter( + #[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/text_align_end.rs b/packages/leptos/src/text_align_end.rs new file mode 100644 index 0000000..557e611 --- /dev/null +++ b/packages/leptos/src/text_align_end.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn TextAlignEnd( + #[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/text_align_justify.rs b/packages/leptos/src/text_align_justify.rs new file mode 100644 index 0000000..e625a60 --- /dev/null +++ b/packages/leptos/src/text_align_justify.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn TextAlignJustify( + #[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/text_align_start.rs b/packages/leptos/src/text_align_start.rs new file mode 100644 index 0000000..f4e5cfc --- /dev/null +++ b/packages/leptos/src/text_align_start.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn TextAlignStart( + #[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/text_initial.rs b/packages/leptos/src/text_initial.rs new file mode 100644 index 0000000..ef352e7 --- /dev/null +++ b/packages/leptos/src/text_initial.rs @@ -0,0 +1,39 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn TextInitial( + #[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/text_quote.rs b/packages/leptos/src/text_quote.rs index 7aabcea..a4fa218 100644 --- a/packages/leptos/src/text_quote.rs +++ b/packages/leptos/src/text_quote.rs @@ -29,10 +29,10 @@ pub fn TextQuote( stroke-linecap="round" stroke-linejoin="round" > - + - - + + } } diff --git a/packages/leptos/src/text_search.rs b/packages/leptos/src/text_search.rs index b480533..586884d 100644 --- a/packages/leptos/src/text_search.rs +++ b/packages/leptos/src/text_search.rs @@ -29,9 +29,9 @@ pub fn TextSearch( stroke-linecap="round" stroke-linejoin="round" > - + - + diff --git a/packages/leptos/src/text_wrap.rs b/packages/leptos/src/text_wrap.rs new file mode 100644 index 0000000..68d8c10 --- /dev/null +++ b/packages/leptos/src/text_wrap.rs @@ -0,0 +1,38 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn TextWrap( + #[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/bug.rs b/packages/yew/src/bug.rs index 9bca58c..abd931c 100644 --- a/packages/yew/src/bug.rs +++ b/packages/yew/src/bug.rs @@ -41,17 +41,17 @@ pub fn Bug(props: &BugProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - + + + + - + + + + + } } diff --git a/packages/yew/src/bug_off.rs b/packages/yew/src/bug_off.rs index 1466987..fa2abdb 100644 --- a/packages/yew/src/bug_off.rs +++ b/packages/yew/src/bug_off.rs @@ -41,15 +41,16 @@ pub fn BugOff(props: &BugOffProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + - - + + - - + + + - + } } diff --git a/packages/yew/src/bug_play.rs b/packages/yew/src/bug_play.rs index 7ba0d1f..0cd3560 100644 --- a/packages/yew/src/bug_play.rs +++ b/packages/yew/src/bug_play.rs @@ -46,12 +46,12 @@ pub fn BugPlay(props: &BugPlayProps) -> Html { d="M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z" /> - - + + + - - + } } diff --git a/packages/yew/src/calendar_cog.rs b/packages/yew/src/calendar_cog.rs index 1f6c734..4a5764b 100644 --- a/packages/yew/src/calendar_cog.rs +++ b/packages/yew/src/calendar_cog.rs @@ -50,7 +50,7 @@ pub fn CalendarCog(props: &CalendarCogProps) -> Html { - + diff --git a/packages/yew/src/chart_no_axes_column.rs b/packages/yew/src/chart_no_axes_column.rs index dd397f6..e155bd4 100644 --- a/packages/yew/src/chart_no_axes_column.rs +++ b/packages/yew/src/chart_no_axes_column.rs @@ -41,9 +41,9 @@ pub fn ChartNoAxesColumn(props: &ChartNoAxesColumnProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/chart_no_axes_column_decreasing.rs b/packages/yew/src/chart_no_axes_column_decreasing.rs index 464a128..8539526 100644 --- a/packages/yew/src/chart_no_axes_column_decreasing.rs +++ b/packages/yew/src/chart_no_axes_column_decreasing.rs @@ -41,9 +41,9 @@ pub fn ChartNoAxesColumnDecreasing(props: &ChartNoAxesColumnDecreasingProps) -> stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/chart_no_axes_column_increasing.rs b/packages/yew/src/chart_no_axes_column_increasing.rs index 20fb7cf..946dddb 100644 --- a/packages/yew/src/chart_no_axes_column_increasing.rs +++ b/packages/yew/src/chart_no_axes_column_increasing.rs @@ -41,9 +41,9 @@ pub fn ChartNoAxesColumnIncreasing(props: &ChartNoAxesColumnIncreasingProps) -> stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/chart_no_axes_gantt.rs b/packages/yew/src/chart_no_axes_gantt.rs index d03a5b0..7c209c1 100644 --- a/packages/yew/src/chart_no_axes_gantt.rs +++ b/packages/yew/src/chart_no_axes_gantt.rs @@ -41,9 +41,9 @@ pub fn ChartNoAxesGantt(props: &ChartNoAxesGanttProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/church.rs b/packages/yew/src/church.rs index 379e54a..a79b256 100644 --- a/packages/yew/src/church.rs +++ b/packages/yew/src/church.rs @@ -43,12 +43,12 @@ pub fn Church(props: &ChurchProps) -> Html { > - + } diff --git a/packages/yew/src/house.rs b/packages/yew/src/house.rs index 886c1b7..4f0143e 100644 --- a/packages/yew/src/house.rs +++ b/packages/yew/src/house.rs @@ -43,7 +43,7 @@ pub fn House(props: &HouseProps) -> Html { > } diff --git a/packages/yew/src/house_heart.rs b/packages/yew/src/house_heart.rs new file mode 100644 index 0000000..1d8e474 --- /dev/null +++ b/packages/yew/src/house_heart.rs @@ -0,0 +1,52 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct HouseHeartProps { + #[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 HouseHeart(props: &HouseHeartProps) -> 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/house_plug.rs b/packages/yew/src/house_plug.rs index 3804314..50e25c0 100644 --- a/packages/yew/src/house_plug.rs +++ b/packages/yew/src/house_plug.rs @@ -45,7 +45,7 @@ pub fn HousePlug(props: &HousePlugProps) -> Html { } diff --git a/packages/yew/src/house_plus.rs b/packages/yew/src/house_plus.rs index 37309ed..761ef6d 100644 --- a/packages/yew/src/house_plus.rs +++ b/packages/yew/src/house_plus.rs @@ -42,9 +42,9 @@ pub fn HousePlus(props: &HousePlusProps) -> Html { stroke-linejoin="round" > - + diff --git a/packages/yew/src/house_wifi.rs b/packages/yew/src/house_wifi.rs index cc1ab62..73e0ee0 100644 --- a/packages/yew/src/house_wifi.rs +++ b/packages/yew/src/house_wifi.rs @@ -44,7 +44,7 @@ pub fn HouseWifi(props: &HouseWifiProps) -> Html { diff --git a/packages/yew/src/kanban.rs b/packages/yew/src/kanban.rs index 3ace373..4206579 100644 --- a/packages/yew/src/kanban.rs +++ b/packages/yew/src/kanban.rs @@ -41,9 +41,9 @@ pub fn Kanban(props: &KanbanProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/lib.rs b/packages/yew/src/lib.rs index 0e6a8d3..896ae85 100644 --- a/packages/yew/src/lib.rs +++ b/packages/yew/src/lib.rs @@ -45,8 +45,6 @@ mod alarm_clock_plus; mod alarm_smoke; #[cfg(any(feature = "photography", feature = "multimedia"))] mod album; -#[cfg(feature = "text")] -mod align_center; #[cfg(feature = "layout")] mod align_center_horizontal; #[cfg(feature = "layout")] @@ -71,12 +69,6 @@ mod align_horizontal_justify_start; mod align_horizontal_space_around; #[cfg(feature = "layout")] mod align_horizontal_space_between; -#[cfg(feature = "text")] -mod align_justify; -#[cfg(feature = "text")] -mod align_left; -#[cfg(feature = "text")] -mod align_right; #[cfg(feature = "layout")] mod align_start_horizontal; #[cfg(feature = "layout")] @@ -1938,6 +1930,8 @@ mod hotel; mod hourglass; #[cfg(any(feature = "buildings", feature = "home"))] mod house; +#[cfg(any(feature = "home", feature = "buildings", feature = "medical"))] +mod house_heart; #[cfg(any(feature = "buildings", feature = "home", feature = "sustainability"))] mod house_plug; #[cfg(any(feature = "buildings", feature = "medical"))] @@ -1999,10 +1993,6 @@ mod images; mod import; #[cfg(any(feature = "account", feature = "mail"))] mod inbox; -#[cfg(any(feature = "text", feature = "development"))] -mod indent_decrease; -#[cfg(any(feature = "text", feature = "development"))] -mod indent_increase; #[cfg(feature = "finance")] mod indian_rupee; #[cfg(feature = "multimedia")] @@ -2106,8 +2096,6 @@ mod leaf; mod leafy_green; #[cfg(any(feature = "communication", feature = "multimedia"))] mod lectern; -#[cfg(feature = "text")] -mod letter_text; #[cfg(any( feature = "text", feature = "photography", @@ -2150,6 +2138,8 @@ mod list_check; mod list_checks; #[cfg(any(feature = "text", feature = "arrows"))] mod list_chevrons_down_up; +#[cfg(any(feature = "text", feature = "arrows"))] +mod list_chevrons_up_down; #[cfg(feature = "text")] mod list_collapse; #[cfg(any(feature = "multimedia", feature = "text"))] @@ -2158,6 +2148,10 @@ mod list_end; mod list_filter; #[cfg(any(feature = "text", feature = "layout"))] mod list_filter_plus; +#[cfg(any(feature = "text", feature = "development"))] +mod list_indent_decrease; +#[cfg(any(feature = "text", feature = "development"))] +mod list_indent_increase; #[cfg(any(feature = "multimedia", feature = "text"))] mod list_minus; #[cfg(feature = "multimedia")] @@ -3717,18 +3711,28 @@ mod test_tube; mod test_tube_diagonal; #[cfg(feature = "science")] mod test_tubes; -#[cfg(any(feature = "text", feature = "files", feature = "cursors"))] -mod text; +#[cfg(feature = "text")] +mod text_align_center; +#[cfg(feature = "text")] +mod text_align_end; +#[cfg(feature = "text")] +mod text_align_justify; +#[cfg(feature = "text")] +mod text_align_start; #[cfg(any(feature = "text", feature = "cursors"))] mod text_cursor; #[cfg(any(feature = "text", feature = "layout"))] mod text_cursor_input; #[cfg(feature = "text")] +mod text_initial; +#[cfg(feature = "text")] mod text_quote; #[cfg(feature = "text")] mod text_search; #[cfg(any(feature = "text", feature = "cursors"))] mod text_select; +#[cfg(any(feature = "text", feature = "arrows"))] +mod text_wrap; #[cfg(any(feature = "buildings", feature = "social"))] mod theater; #[cfg(feature = "weather")] @@ -4122,8 +4126,6 @@ mod wine_off; mod workflow; #[cfg(any(feature = "animals", feature = "security"))] mod worm; -#[cfg(any(feature = "text", feature = "arrows"))] -mod wrap_text; #[cfg(any(feature = "account", feature = "development", feature = "tools"))] mod wrench; #[cfg(any(feature = "notifications", feature = "math"))] @@ -4200,8 +4202,6 @@ pub use alarm_clock_plus::*; pub use alarm_smoke::*; #[cfg(any(feature = "photography", feature = "multimedia"))] pub use album::*; -#[cfg(feature = "text")] -pub use align_center::*; #[cfg(feature = "layout")] pub use align_center_horizontal::*; #[cfg(feature = "layout")] @@ -4226,12 +4226,6 @@ pub use align_horizontal_justify_start::*; pub use align_horizontal_space_around::*; #[cfg(feature = "layout")] pub use align_horizontal_space_between::*; -#[cfg(feature = "text")] -pub use align_justify::*; -#[cfg(feature = "text")] -pub use align_left::*; -#[cfg(feature = "text")] -pub use align_right::*; #[cfg(feature = "layout")] pub use align_start_horizontal::*; #[cfg(feature = "layout")] @@ -6093,6 +6087,8 @@ pub use hotel::*; pub use hourglass::*; #[cfg(any(feature = "buildings", feature = "home"))] pub use house::*; +#[cfg(any(feature = "home", feature = "buildings", feature = "medical"))] +pub use house_heart::*; #[cfg(any(feature = "buildings", feature = "home", feature = "sustainability"))] pub use house_plug::*; #[cfg(any(feature = "buildings", feature = "medical"))] @@ -6154,10 +6150,6 @@ pub use images::*; pub use import::*; #[cfg(any(feature = "account", feature = "mail"))] pub use inbox::*; -#[cfg(any(feature = "text", feature = "development"))] -pub use indent_decrease::*; -#[cfg(any(feature = "text", feature = "development"))] -pub use indent_increase::*; #[cfg(feature = "finance")] pub use indian_rupee::*; #[cfg(feature = "multimedia")] @@ -6261,8 +6253,6 @@ pub use leaf::*; pub use leafy_green::*; #[cfg(any(feature = "communication", feature = "multimedia"))] pub use lectern::*; -#[cfg(feature = "text")] -pub use letter_text::*; #[cfg(any( feature = "text", feature = "photography", @@ -6305,6 +6295,8 @@ pub use list_check::*; pub use list_checks::*; #[cfg(any(feature = "text", feature = "arrows"))] pub use list_chevrons_down_up::*; +#[cfg(any(feature = "text", feature = "arrows"))] +pub use list_chevrons_up_down::*; #[cfg(feature = "text")] pub use list_collapse::*; #[cfg(any(feature = "multimedia", feature = "text"))] @@ -6313,6 +6305,10 @@ pub use list_end::*; pub use list_filter::*; #[cfg(any(feature = "text", feature = "layout"))] pub use list_filter_plus::*; +#[cfg(any(feature = "text", feature = "development"))] +pub use list_indent_decrease::*; +#[cfg(any(feature = "text", feature = "development"))] +pub use list_indent_increase::*; #[cfg(any(feature = "multimedia", feature = "text"))] pub use list_minus::*; #[cfg(feature = "multimedia")] @@ -7872,18 +7868,28 @@ pub use test_tube::*; pub use test_tube_diagonal::*; #[cfg(feature = "science")] pub use test_tubes::*; -#[cfg(any(feature = "text", feature = "files", feature = "cursors"))] -pub use text::*; +#[cfg(feature = "text")] +pub use text_align_center::*; +#[cfg(feature = "text")] +pub use text_align_end::*; +#[cfg(feature = "text")] +pub use text_align_justify::*; +#[cfg(feature = "text")] +pub use text_align_start::*; #[cfg(any(feature = "text", feature = "cursors"))] pub use text_cursor::*; #[cfg(any(feature = "text", feature = "layout"))] pub use text_cursor_input::*; #[cfg(feature = "text")] +pub use text_initial::*; +#[cfg(feature = "text")] pub use text_quote::*; #[cfg(feature = "text")] pub use text_search::*; #[cfg(any(feature = "text", feature = "cursors"))] pub use text_select::*; +#[cfg(any(feature = "text", feature = "arrows"))] +pub use text_wrap::*; #[cfg(any(feature = "buildings", feature = "social"))] pub use theater::*; #[cfg(feature = "weather")] @@ -8277,8 +8283,6 @@ pub use wine_off::*; pub use workflow::*; #[cfg(any(feature = "animals", feature = "security"))] pub use worm::*; -#[cfg(any(feature = "text", feature = "arrows"))] -pub use wrap_text::*; #[cfg(any(feature = "account", feature = "development", feature = "tools"))] pub use wrench::*; #[cfg(any(feature = "notifications", feature = "math"))] diff --git a/packages/yew/src/list.rs b/packages/yew/src/list.rs index 181e6df..1fa82cd 100644 --- a/packages/yew/src/list.rs +++ b/packages/yew/src/list.rs @@ -41,12 +41,12 @@ pub fn List(props: &ListProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - + + - - + } } diff --git a/packages/yew/src/list_check.rs b/packages/yew/src/list_check.rs index 03bd994..1295e0e 100644 --- a/packages/yew/src/list_check.rs +++ b/packages/yew/src/list_check.rs @@ -41,10 +41,10 @@ pub fn ListCheck(props: &ListCheckProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + - + + } } diff --git a/packages/yew/src/list_checks.rs b/packages/yew/src/list_checks.rs index ebcdfce..ca1d90d 100644 --- a/packages/yew/src/list_checks.rs +++ b/packages/yew/src/list_checks.rs @@ -41,11 +41,11 @@ pub fn ListChecks(props: &ListChecksProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + + + - - - } } diff --git a/packages/yew/src/list_chevrons_down_up.rs b/packages/yew/src/list_chevrons_down_up.rs index 67bb014..ff6bad9 100644 --- a/packages/yew/src/list_chevrons_down_up.rs +++ b/packages/yew/src/list_chevrons_down_up.rs @@ -41,11 +41,11 @@ pub fn ListChevronsDownUp(props: &ListChevronsDownUpProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + - - + + + } } diff --git a/packages/yew/src/list_chevrons_up_down.rs b/packages/yew/src/list_chevrons_up_down.rs new file mode 100644 index 0000000..9e86651 --- /dev/null +++ b/packages/yew/src/list_chevrons_up_down.rs @@ -0,0 +1,51 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ListChevronsUpDownProps { + #[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 ListChevronsUpDown(props: &ListChevronsUpDownProps) -> 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/list_collapse.rs b/packages/yew/src/list_collapse.rs index fa8007f..f226c73 100644 --- a/packages/yew/src/list_collapse.rs +++ b/packages/yew/src/list_collapse.rs @@ -41,9 +41,9 @@ pub fn ListCollapse(props: &ListCollapseProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - + diff --git a/packages/yew/src/list_end.rs b/packages/yew/src/list_end.rs index 05c1e49..9449554 100644 --- a/packages/yew/src/list_end.rs +++ b/packages/yew/src/list_end.rs @@ -41,11 +41,11 @@ pub fn ListEnd(props: &ListEndProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - - - + + + } } diff --git a/packages/yew/src/list_filter.rs b/packages/yew/src/list_filter.rs index fe9702a..d9d1585 100644 --- a/packages/yew/src/list_filter.rs +++ b/packages/yew/src/list_filter.rs @@ -41,9 +41,9 @@ pub fn ListFilter(props: &ListFilterProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/yew/src/list_filter_plus.rs b/packages/yew/src/list_filter_plus.rs index 88c9f6a..ebf3886 100644 --- a/packages/yew/src/list_filter_plus.rs +++ b/packages/yew/src/list_filter_plus.rs @@ -41,11 +41,11 @@ pub fn ListFilterPlus(props: &ListFilterPlusProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/yew/src/list_indent_decrease.rs b/packages/yew/src/list_indent_decrease.rs new file mode 100644 index 0000000..3c8171f --- /dev/null +++ b/packages/yew/src/list_indent_decrease.rs @@ -0,0 +1,50 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ListIndentDecreaseProps { + #[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 ListIndentDecrease(props: &ListIndentDecreaseProps) -> 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/list_indent_increase.rs b/packages/yew/src/list_indent_increase.rs new file mode 100644 index 0000000..5159dc1 --- /dev/null +++ b/packages/yew/src/list_indent_increase.rs @@ -0,0 +1,50 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct ListIndentIncreaseProps { + #[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 ListIndentIncrease(props: &ListIndentIncreaseProps) -> 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/list_minus.rs b/packages/yew/src/list_minus.rs index ef8bdd7..3b9a227 100644 --- a/packages/yew/src/list_minus.rs +++ b/packages/yew/src/list_minus.rs @@ -41,9 +41,9 @@ pub fn ListMinus(props: &ListMinusProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - + } diff --git a/packages/yew/src/list_music.rs b/packages/yew/src/list_music.rs index 7572110..5bac394 100644 --- a/packages/yew/src/list_music.rs +++ b/packages/yew/src/list_music.rs @@ -41,11 +41,11 @@ pub fn ListMusic(props: &ListMusicProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/yew/src/list_ordered.rs b/packages/yew/src/list_ordered.rs index 2ec16cb..4f24ccb 100644 --- a/packages/yew/src/list_ordered.rs +++ b/packages/yew/src/list_ordered.rs @@ -41,12 +41,12 @@ pub fn ListOrdered(props: &ListOrderedProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - - + + + + + + } } diff --git a/packages/yew/src/list_plus.rs b/packages/yew/src/list_plus.rs index 4dc9d84..01f98dd 100644 --- a/packages/yew/src/list_plus.rs +++ b/packages/yew/src/list_plus.rs @@ -41,9 +41,9 @@ pub fn ListPlus(props: &ListPlusProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - + diff --git a/packages/yew/src/list_restart.rs b/packages/yew/src/list_restart.rs index 6ac6e57..714222a 100644 --- a/packages/yew/src/list_restart.rs +++ b/packages/yew/src/list_restart.rs @@ -41,9 +41,9 @@ pub fn ListRestart(props: &ListRestartProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + - + diff --git a/packages/yew/src/list_start.rs b/packages/yew/src/list_start.rs index c0f4ca9..f2dbe72 100644 --- a/packages/yew/src/list_start.rs +++ b/packages/yew/src/list_start.rs @@ -41,11 +41,11 @@ pub fn ListStart(props: &ListStartProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/yew/src/list_todo.rs b/packages/yew/src/list_todo.rs index 3624b9f..9dab0b3 100644 --- a/packages/yew/src/list_todo.rs +++ b/packages/yew/src/list_todo.rs @@ -41,11 +41,11 @@ pub fn ListTodo(props: &ListTodoProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + - + + + } } diff --git a/packages/yew/src/list_tree.rs b/packages/yew/src/list_tree.rs index 941a749..67cbb1b 100644 --- a/packages/yew/src/list_tree.rs +++ b/packages/yew/src/list_tree.rs @@ -41,11 +41,11 @@ pub fn ListTree(props: &ListTreeProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/yew/src/list_video.rs b/packages/yew/src/list_video.rs index 3fe4797..fd924b4 100644 --- a/packages/yew/src/list_video.rs +++ b/packages/yew/src/list_video.rs @@ -41,11 +41,11 @@ pub fn ListVideo(props: &ListVideoProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + + } diff --git a/packages/yew/src/list_x.rs b/packages/yew/src/list_x.rs index fd945e4..5e16e44 100644 --- a/packages/yew/src/list_x.rs +++ b/packages/yew/src/list_x.rs @@ -41,11 +41,11 @@ pub fn ListX(props: &ListXProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - - - + + + } } diff --git a/packages/yew/src/logs.rs b/packages/yew/src/logs.rs index 8cddb0c..7224d7b 100644 --- a/packages/yew/src/logs.rs +++ b/packages/yew/src/logs.rs @@ -41,15 +41,15 @@ pub fn Logs(props: &LogsProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + - - + + - - + + + + } } diff --git a/packages/yew/src/menu.rs b/packages/yew/src/menu.rs index dca5e32..e273948 100644 --- a/packages/yew/src/menu.rs +++ b/packages/yew/src/menu.rs @@ -41,9 +41,9 @@ pub fn Menu(props: &MenuProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - + } } diff --git a/packages/yew/src/message_square_quote.rs b/packages/yew/src/message_square_quote.rs index f87b4ac..6eef0ab 100644 --- a/packages/yew/src/message_square_quote.rs +++ b/packages/yew/src/message_square_quote.rs @@ -41,11 +41,11 @@ pub fn MessageSquareQuote(props: &MessageSquareQuoteProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - + } } diff --git a/packages/yew/src/panel_left_right_dashed.rs b/packages/yew/src/panel_left_right_dashed.rs index 7f38011..bd3784a 100644 --- a/packages/yew/src/panel_left_right_dashed.rs +++ b/packages/yew/src/panel_left_right_dashed.rs @@ -41,14 +41,14 @@ pub fn PanelLeftRightDashed(props: &PanelLeftRightDashedProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - + + + + + + + + } diff --git a/packages/yew/src/panel_top_bottom_dashed.rs b/packages/yew/src/panel_top_bottom_dashed.rs index d737e64..6429657 100644 --- a/packages/yew/src/panel_top_bottom_dashed.rs +++ b/packages/yew/src/panel_top_bottom_dashed.rs @@ -41,14 +41,14 @@ pub fn PanelTopBottomDashed(props: &PanelTopBottomDashedProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - + + + + + + + + } diff --git a/packages/yew/src/sliders_horizontal.rs b/packages/yew/src/sliders_horizontal.rs index 001ccf9..a4513e8 100644 --- a/packages/yew/src/sliders_horizontal.rs +++ b/packages/yew/src/sliders_horizontal.rs @@ -41,15 +41,15 @@ pub fn SlidersHorizontal(props: &SlidersHorizontalProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - - + + + + + + + + + } } diff --git a/packages/yew/src/sliders_vertical.rs b/packages/yew/src/sliders_vertical.rs index 7d75dd6..e24c726 100644 --- a/packages/yew/src/sliders_vertical.rs +++ b/packages/yew/src/sliders_vertical.rs @@ -41,15 +41,15 @@ pub fn SlidersVertical(props: &SlidersVerticalProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - - - - - - + + + + + + + + + } } diff --git a/packages/yew/src/table_of_contents.rs b/packages/yew/src/table_of_contents.rs index f58d502..262b59c 100644 --- a/packages/yew/src/table_of_contents.rs +++ b/packages/yew/src/table_of_contents.rs @@ -41,12 +41,12 @@ pub fn TableOfContents(props: &TableOfContentsProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - + + - - + } } diff --git a/packages/yew/src/text_align_center.rs b/packages/yew/src/text_align_center.rs new file mode 100644 index 0000000..c60509f --- /dev/null +++ b/packages/yew/src/text_align_center.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct TextAlignCenterProps { + #[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 TextAlignCenter(props: &TextAlignCenterProps) -> 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/text_align_end.rs b/packages/yew/src/text_align_end.rs new file mode 100644 index 0000000..bca83dc --- /dev/null +++ b/packages/yew/src/text_align_end.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct TextAlignEndProps { + #[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 TextAlignEnd(props: &TextAlignEndProps) -> 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/text_align_justify.rs b/packages/yew/src/text_align_justify.rs new file mode 100644 index 0000000..03204a1 --- /dev/null +++ b/packages/yew/src/text_align_justify.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct TextAlignJustifyProps { + #[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 TextAlignJustify(props: &TextAlignJustifyProps) -> 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/text_align_start.rs b/packages/yew/src/text_align_start.rs new file mode 100644 index 0000000..7ae3a99 --- /dev/null +++ b/packages/yew/src/text_align_start.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct TextAlignStartProps { + #[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 TextAlignStart(props: &TextAlignStartProps) -> 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/text_initial.rs b/packages/yew/src/text_initial.rs new file mode 100644 index 0000000..7a32ede --- /dev/null +++ b/packages/yew/src/text_initial.rs @@ -0,0 +1,51 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct TextInitialProps { + #[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 TextInitial(props: &TextInitialProps) -> 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/text_quote.rs b/packages/yew/src/text_quote.rs index 8974e82..c2c9961 100644 --- a/packages/yew/src/text_quote.rs +++ b/packages/yew/src/text_quote.rs @@ -41,10 +41,10 @@ pub fn TextQuote(props: &TextQuoteProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + - - + + } } diff --git a/packages/yew/src/text_search.rs b/packages/yew/src/text_search.rs index 5cdfd12..3e04e93 100644 --- a/packages/yew/src/text_search.rs +++ b/packages/yew/src/text_search.rs @@ -41,9 +41,9 @@ pub fn TextSearch(props: &TextSearchProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + - + diff --git a/packages/yew/src/text_wrap.rs b/packages/yew/src/text_wrap.rs new file mode 100644 index 0000000..3db938f --- /dev/null +++ b/packages/yew/src/text_wrap.rs @@ -0,0 +1,50 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct TextWrapProps { + #[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 TextWrap(props: &TextWrapProps) -> 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 0da1a30..52f71a0 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.542.0"; +pub const UPSTREAM_GIT_REF: &str = "0.543.0"; pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";