Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 54 additions & 12 deletions book-examples/dioxus/src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,12 @@ pub fn IconsA2() -> Element {
},
"Audio Lines",
),
(
rsx! {
AudioLinesOff {}
},
"Audio Lines Off",
),
(
rsx! {
AudioLinesX {}
Expand Down Expand Up @@ -5829,6 +5835,12 @@ pub fn IconsL1() -> Element {
},
"List Chevrons Up Down",
),
(
rsx! {
ListClock {}
},
"List Clock",
),
(
rsx! {
ListCollapse {}
Expand Down Expand Up @@ -6522,6 +6534,12 @@ pub fn IconsM1() -> Element {
},
"Microwave",
),
(
rsx! {
MidiPort {}
},
"Midi Port",
),
(
rsx! {
Milestone {}
Expand Down Expand Up @@ -6636,12 +6654,6 @@ pub fn IconsM1() -> Element {
},
"Monitor Speaker",
),
(
rsx! {
MonitorStop {}
},
"Monitor Stop",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -6657,6 +6669,12 @@ pub fn IconsM1() -> Element {
#[component]
pub fn IconsM2() -> Element {
let icons = [
(
rsx! {
MonitorStop {}
},
"Monitor Stop",
),
(
rsx! {
MonitorUp {}
Expand All @@ -6681,6 +6699,18 @@ pub fn IconsM2() -> Element {
},
"Moon Star",
),
(
rsx! {
Mop {}
},
"Mop",
),
(
rsx! {
MopSparkles {}
},
"Mop Sparkles",
),
(
rsx! {
Mosque {}
Expand Down Expand Up @@ -9201,6 +9231,12 @@ pub fn IconsS2() -> Element {
},
"Square Dashed Top Solid",
),
(
rsx! {
SquareDimensions {}
},
"Square Dimensions",
),
(
rsx! {
SquareDivide {}
Expand Down Expand Up @@ -9405,12 +9441,6 @@ pub fn IconsS2() -> Element {
},
"Square Text",
),
(
rsx! {
SquareUser {}
},
"Square User",
),
];
rsx! {
for (icon, name) in icons {
Expand All @@ -9426,6 +9456,12 @@ pub fn IconsS2() -> Element {
#[component]
pub fn IconsS3() -> Element {
let icons = [
(
rsx! {
SquareUser {}
},
"Square User",
),
(
rsx! {
SquareUserRound {}
Expand Down Expand Up @@ -10459,6 +10495,12 @@ pub fn IconsU1() -> Element {
},
"Usb",
),
(
rsx! {
UsbCPort {}
},
"Usb C Port",
),
(
rsx! {
User {}
Expand Down
11 changes: 9 additions & 2 deletions book-examples/leptos/src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ pub fn IconsA2() -> impl IntoView {
<For
each=move || [
(view! { <AudioLines /> }.into_any(), "Audio Lines"),
(view! { <AudioLinesOff /> }.into_any(), "Audio Lines Off"),
(view! { <AudioLinesX /> }.into_any(), "Audio Lines X"),
(view! { <AudioWaveform /> }.into_any(), "Audio Waveform"),
(view! { <Award /> }.into_any(), "Award"),
Expand Down Expand Up @@ -1300,6 +1301,7 @@ pub fn IconsL1() -> impl IntoView {
(view! { <ListChecks /> }.into_any(), "List Checks"),
(view! { <ListChevronsDownUp /> }.into_any(), "List Chevrons Down Up"),
(view! { <ListChevronsUpDown /> }.into_any(), "List Chevrons Up Down"),
(view! { <ListClock /> }.into_any(), "List Clock"),
(view! { <ListCollapse /> }.into_any(), "List Collapse"),
(view! { <ListEnd /> }.into_any(), "List End"),
(view! { <ListFilter /> }.into_any(), "List Filter"),
Expand Down Expand Up @@ -1433,6 +1435,7 @@ pub fn IconsM1() -> impl IntoView {
(view! { <Microchip /> }.into_any(), "Microchip"),
(view! { <Microscope /> }.into_any(), "Microscope"),
(view! { <Microwave /> }.into_any(), "Microwave"),
(view! { <MidiPort /> }.into_any(), "Midi Port"),
(view! { <Milestone /> }.into_any(), "Milestone"),
(view! { <Milk /> }.into_any(), "Milk"),
(view! { <MilkOff /> }.into_any(), "Milk Off"),
Expand All @@ -1452,7 +1455,6 @@ pub fn IconsM1() -> impl IntoView {
(view! { <MonitorPlay /> }.into_any(), "Monitor Play"),
(view! { <MonitorSmartphone /> }.into_any(), "Monitor Smartphone"),
(view! { <MonitorSpeaker /> }.into_any(), "Monitor Speaker"),
(view! { <MonitorStop /> }.into_any(), "Monitor Stop"),
]
key=|icon| icon.1
children=move |(icon, name)| {
Expand All @@ -1470,10 +1472,13 @@ pub fn IconsM2() -> impl IntoView {
view! {
<For
each=move || [
(view! { <MonitorStop /> }.into_any(), "Monitor Stop"),
(view! { <MonitorUp /> }.into_any(), "Monitor Up"),
(view! { <MonitorX /> }.into_any(), "Monitor X"),
(view! { <Moon /> }.into_any(), "Moon"),
(view! { <MoonStar /> }.into_any(), "Moon Star"),
(view! { <Mop /> }.into_any(), "Mop"),
(view! { <MopSparkles /> }.into_any(), "Mop Sparkles"),
(view! { <Mosque /> }.into_any(), "Mosque"),
(view! { <Motorbike /> }.into_any(), "Motorbike"),
(view! { <Mountain /> }.into_any(), "Mountain"),
Expand Down Expand Up @@ -2019,6 +2024,7 @@ pub fn IconsS2() -> impl IntoView {
(view! { <SquareDashedMousePointer /> }.into_any(), "Square Dashed Mouse Pointer"),
(view! { <SquareDashedText /> }.into_any(), "Square Dashed Text"),
(view! { <SquareDashedTopSolid /> }.into_any(), "Square Dashed Top Solid"),
(view! { <SquareDimensions /> }.into_any(), "Square Dimensions"),
(view! { <SquareDivide /> }.into_any(), "Square Divide"),
(view! { <SquareDot /> }.into_any(), "Square Dot"),
(view! { <SquareEqual /> }.into_any(), "Square Equal"),
Expand Down Expand Up @@ -2053,7 +2059,6 @@ pub fn IconsS2() -> impl IntoView {
(view! { <SquareStop /> }.into_any(), "Square Stop"),
(view! { <SquareTerminal /> }.into_any(), "Square Terminal"),
(view! { <SquareText /> }.into_any(), "Square Text"),
(view! { <SquareUser /> }.into_any(), "Square User"),
]
key=|icon| icon.1
children=move |(icon, name)| {
Expand All @@ -2071,6 +2076,7 @@ pub fn IconsS3() -> impl IntoView {
view! {
<For
each=move || [
(view! { <SquareUser /> }.into_any(), "Square User"),
(view! { <SquareUserRound /> }.into_any(), "Square User Round"),
(view! { <SquareX /> }.into_any(), "Square X"),
(view! { <SquaresExclude /> }.into_any(), "Squares Exclude"),
Expand Down Expand Up @@ -2285,6 +2291,7 @@ pub fn IconsU1() -> impl IntoView {
(view! { <Unplug /> }.into_any(), "Unplug"),
(view! { <Upload /> }.into_any(), "Upload"),
(view! { <Usb /> }.into_any(), "Usb"),
(view! { <UsbCPort /> }.into_any(), "Usb C Port"),
(view! { <User /> }.into_any(), "User"),
(view! { <UserCheck /> }.into_any(), "User Check"),
(view! { <UserCog /> }.into_any(), "User Cog"),
Expand Down
7 changes: 7 additions & 0 deletions book-examples/yew/src/icons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ pub fn IconsA() -> Html {
(html! { <AtSign /> }, "At Sign"),
(html! { <Atom /> }, "Atom"),
(html! { <AudioLines /> }, "Audio Lines"),
(html! { <AudioLinesOff /> }, "Audio Lines Off"),
(html! { <AudioLinesX /> }, "Audio Lines X"),
(html! { <AudioWaveform /> }, "Audio Waveform"),
(html! { <Award /> }, "Award"),
Expand Down Expand Up @@ -1237,6 +1238,7 @@ pub fn IconsL() -> Html {
(html! { <ListChecks /> }, "List Checks"),
(html! { <ListChevronsDownUp /> }, "List Chevrons Down Up"),
(html! { <ListChevronsUpDown /> }, "List Chevrons Up Down"),
(html! { <ListClock /> }, "List Clock"),
(html! { <ListCollapse /> }, "List Collapse"),
(html! { <ListEnd /> }, "List End"),
(html! { <ListFilter /> }, "List Filter"),
Expand Down Expand Up @@ -1369,6 +1371,7 @@ pub fn IconsM() -> Html {
(html! { <Microchip /> }, "Microchip"),
(html! { <Microscope /> }, "Microscope"),
(html! { <Microwave /> }, "Microwave"),
(html! { <MidiPort /> }, "Midi Port"),
(html! { <Milestone /> }, "Milestone"),
(html! { <Milk /> }, "Milk"),
(html! { <MilkOff /> }, "Milk Off"),
Expand All @@ -1393,6 +1396,8 @@ pub fn IconsM() -> Html {
(html! { <MonitorX /> }, "Monitor X"),
(html! { <Moon /> }, "Moon"),
(html! { <MoonStar /> }, "Moon Star"),
(html! { <Mop /> }, "Mop"),
(html! { <MopSparkles /> }, "Mop Sparkles"),
(html! { <Mosque /> }, "Mosque"),
(html! { <Motorbike /> }, "Motorbike"),
(html! { <Mountain /> }, "Mountain"),
Expand Down Expand Up @@ -1934,6 +1939,7 @@ pub fn IconsS() -> Html {
html! { <SquareDashedTopSolid /> },
"Square Dashed Top Solid",
),
(html! { <SquareDimensions /> }, "Square Dimensions"),
(html! { <SquareDivide /> }, "Square Divide"),
(html! { <SquareDot /> }, "Square Dot"),
(html! { <SquareEqual /> }, "Square Equal"),
Expand Down Expand Up @@ -2169,6 +2175,7 @@ pub fn IconsU() -> Html {
(html! { <Unplug /> }, "Unplug"),
(html! { <Upload /> }, "Upload"),
(html! { <Usb /> }, "Usb"),
(html! { <UsbCPort /> }, "Usb C Port"),
(html! { <User /> }, "User"),
(html! { <UserCheck /> }, "User Check"),
(html! { <UserCog /> }, "User Cog"),
Expand Down
48 changes: 48 additions & 0 deletions packages/dioxus/src/audio_lines_off.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
use dioxus::prelude::*;
#[derive(Clone, PartialEq, Props)]
pub struct AudioLinesOffProps {
#[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<String>,
pub style: Option<String>,
}
#[component]
pub fn AudioLinesOff(props: AudioLinesOffProps) -> Element {
let stroke_width = if props.absolute_stroke_width {
props.stroke_width * 24 / props.size
} else {
props.stroke_width
};
rsx! {
svg {
"xmlns": "http://www.w3.org/2000/svg",
"class": if let Some(class) = props.class { class },
"style": if let Some(style) = props.style { style },
"width": "{props.size}",
"height": "{props.size}",
"viewBox": "0 0 24 24",
"fill": "{props.fill}",
"stroke": "{props.color}",
"stroke-width": "{stroke_width}",
"stroke-linecap": "round",
"stroke-linejoin": "round",
path { "d": "M10 10v11" }
path { "d": "M10 3v1.35" }
path { "d": "M14 14v1" }
path { "d": "M14 8v.35" }
path { "d": "M18 5v7.35" }
path { "d": "M2 10v3" }
path { "d": "m2 2 20 20" }
path { "d": "M22 10v3" }
path { "d": "M6 6v11" }
}
}
}
Loading