Skip to content

Commit 996c3dd

Browse files
feat: update to upstream v0.573.0 (#280)
Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com>
1 parent befb1de commit 996c3dd

23 files changed

Lines changed: 487 additions & 44 deletions

File tree

book-examples/dioxus/src/icons.rs

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6502,6 +6502,12 @@ pub fn IconsM2() -> Element {
65026502
},
65036503
"Mouse",
65046504
),
6505+
(
6506+
rsx! {
6507+
MouseLeft {}
6508+
},
6509+
"Mouse Left",
6510+
),
65056511
(
65066512
rsx! {
65076513
MouseOff {}
@@ -6538,6 +6544,12 @@ pub fn IconsM2() -> Element {
65386544
},
65396545
"Mouse Pointer Click",
65406546
),
6547+
(
6548+
rsx! {
6549+
MouseRight {}
6550+
},
6551+
"Mouse Right",
6552+
),
65416553
(
65426554
rsx! {
65436555
Move {}
@@ -10590,12 +10602,20 @@ pub fn IconsW1() -> Element {
1059010602
}
1059110603
#[component]
1059210604
pub fn IconsX1() -> Element {
10593-
let icons = [(
10594-
rsx! {
10595-
X {}
10596-
},
10597-
"X",
10598-
)];
10605+
let icons = [
10606+
(
10607+
rsx! {
10608+
X {}
10609+
},
10610+
"X",
10611+
),
10612+
(
10613+
rsx! {
10614+
XLineTop {}
10615+
},
10616+
"X Line Top",
10617+
),
10618+
];
1059910619
rsx! {
1060010620
for (icon , name) in icons {
1060110621
div {

book-examples/leptos/src/icons.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,12 +1445,14 @@ pub fn IconsM2() -> impl IntoView {
14451445
(view! { <Mountain /> }.into_any(), "Mountain"),
14461446
(view! { <MountainSnow /> }.into_any(), "Mountain Snow"),
14471447
(view! { <Mouse /> }.into_any(), "Mouse"),
1448+
(view! { <MouseLeft /> }.into_any(), "Mouse Left"),
14481449
(view! { <MouseOff /> }.into_any(), "Mouse Off"),
14491450
(view! { <MousePointer /> }.into_any(), "Mouse Pointer"),
14501451
(view! { <MousePointer2 /> }.into_any(), "Mouse Pointer 2"),
14511452
(view! { <MousePointer2Off /> }.into_any(), "Mouse Pointer 2 Off"),
14521453
(view! { <MousePointerBan /> }.into_any(), "Mouse Pointer Ban"),
14531454
(view! { <MousePointerClick /> }.into_any(), "Mouse Pointer Click"),
1455+
(view! { <MouseRight /> }.into_any(), "Mouse Right"),
14541456
(view! { <Move /> }.into_any(), "Move"),
14551457
(view! { <Move3D /> }.into_any(), "Move 3 D"),
14561458
(view! { <MoveDiagonal /> }.into_any(), "Move Diagonal"),
@@ -2346,7 +2348,10 @@ pub fn IconsW1() -> impl IntoView {
23462348
pub fn IconsX1() -> impl IntoView {
23472349
view! {
23482350
<For
2349-
each=move || [(view! { <X /> }.into_any(), "X")]
2351+
each=move || [
2352+
(view! { <X /> }.into_any(), "X"),
2353+
(view! { <XLineTop /> }.into_any(), "X Line Top"),
2354+
]
23502355
key=|icon| icon.1
23512356
children=move |(icon, name)| {
23522357
view! {

book-examples/yew/src/icons.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,12 +1361,14 @@ pub fn IconsM() -> Html {
13611361
(html! { <Mountain /> }, "Mountain"),
13621362
(html! { <MountainSnow /> }, "Mountain Snow"),
13631363
(html! { <Mouse /> }, "Mouse"),
1364+
(html! { <MouseLeft /> }, "Mouse Left"),
13641365
(html! { <MouseOff /> }, "Mouse Off"),
13651366
(html! { <MousePointer /> }, "Mouse Pointer"),
13661367
(html! { <MousePointer2 /> }, "Mouse Pointer 2"),
13671368
(html! { <MousePointer2Off /> }, "Mouse Pointer 2 Off"),
13681369
(html! { <MousePointerBan /> }, "Mouse Pointer Ban"),
13691370
(html! { <MousePointerClick /> }, "Mouse Pointer Click"),
1371+
(html! { <MouseRight /> }, "Mouse Right"),
13701372
(html! { <Move /> }, "Move"),
13711373
(html! { <Move3D /> }, "Move 3 D"),
13721374
(html! { <MoveDiagonal /> }, "Move Diagonal"),
@@ -2216,7 +2218,10 @@ pub fn IconsW() -> Html {
22162218
}
22172219
#[component]
22182220
pub fn IconsX() -> Html {
2219-
let icons = [(html! { <X /> }, "X")];
2221+
let icons = [
2222+
(html! { <X /> }, "X"),
2223+
(html! { <XLineTop /> }, "X Line Top"),
2224+
];
22202225
icons
22212226
.into_iter()
22222227
.map(|(icon, name)| {

packages/dioxus/src/coins.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ pub fn Coins(props: CoinsProps) -> Element {
3434
"stroke-width": "{stroke_width}",
3535
"stroke-linecap": "round",
3636
"stroke-linejoin": "round",
37-
circle { "cx": "8", "cy": "8", "r": "6" }
38-
path { "d": "M18.09 10.37A6 6 0 1 1 10.34 18" }
39-
path { "d": "M7 6h1v4" }
40-
path { "d": "m16.71 13.88.7.71-2.82 2.82" }
37+
path { "d": "M13.744 17.736a6 6 0 1 1-7.48-7.48" }
38+
path { "d": "M15 6h1v4" }
39+
path { "d": "m6.134 14.768.866-.5 2 3.464" }
40+
circle { "cx": "16", "cy": "8", "r": "6" }
4141
}
4242
}
4343
}

packages/dioxus/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,6 +2466,8 @@ mod mountain_snow;
24662466
#[cfg(feature = "devices")]
24672467
mod mouse;
24682468
#[cfg(feature = "devices")]
2469+
mod mouse_left;
2470+
#[cfg(feature = "devices")]
24692471
mod mouse_off;
24702472
#[cfg(any(feature = "arrows", feature = "cursors"))]
24712473
mod mouse_pointer;
@@ -2477,6 +2479,8 @@ mod mouse_pointer_2_off;
24772479
mod mouse_pointer_ban;
24782480
#[cfg(any(feature = "arrows", feature = "cursors"))]
24792481
mod mouse_pointer_click;
2482+
#[cfg(feature = "devices")]
2483+
mod mouse_right;
24802484
#[cfg(any(feature = "arrows", feature = "cursors"))]
24812485
mod r#move;
24822486
#[cfg(feature = "design")]
@@ -4207,6 +4211,8 @@ mod worm;
42074211
mod wrench;
42084212
#[cfg(any(feature = "notifications", feature = "math"))]
42094213
mod x;
4214+
#[cfg(any(feature = "notifications", feature = "math"))]
4215+
mod x_line_top;
42104216
#[cfg(any(feature = "multimedia", feature = "social", feature = "brands"))]
42114217
mod youtube;
42124218
#[cfg(any(
@@ -6702,6 +6708,8 @@ pub use mountain_snow::*;
67026708
#[cfg(feature = "devices")]
67036709
pub use mouse::*;
67046710
#[cfg(feature = "devices")]
6711+
pub use mouse_left::*;
6712+
#[cfg(feature = "devices")]
67056713
pub use mouse_off::*;
67066714
#[cfg(any(feature = "arrows", feature = "cursors"))]
67076715
pub use mouse_pointer::*;
@@ -6713,6 +6721,8 @@ pub use mouse_pointer_2_off::*;
67136721
pub use mouse_pointer_ban::*;
67146722
#[cfg(any(feature = "arrows", feature = "cursors"))]
67156723
pub use mouse_pointer_click::*;
6724+
#[cfg(feature = "devices")]
6725+
pub use mouse_right::*;
67166726
#[cfg(any(feature = "arrows", feature = "cursors"))]
67176727
pub use r#move::*;
67186728
#[cfg(feature = "design")]
@@ -8443,6 +8453,8 @@ pub use worm::*;
84438453
pub use wrench::*;
84448454
#[cfg(any(feature = "notifications", feature = "math"))]
84458455
pub use x::*;
8456+
#[cfg(any(feature = "notifications", feature = "math"))]
8457+
pub use x_line_top::*;
84468458
#[cfg(any(feature = "multimedia", feature = "social", feature = "brands"))]
84478459
pub use youtube::*;
84488460
#[cfg(any(

packages/dioxus/src/mouse_left.rs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
use dioxus::prelude::*;
2+
#[derive(Clone, PartialEq, Props)]
3+
pub struct MouseLeftProps {
4+
#[props(default = 24)]
5+
pub size: usize,
6+
#[props(default = "currentColor".to_owned())]
7+
pub color: String,
8+
#[props(default = "none".to_owned())]
9+
pub fill: String,
10+
#[props(default = 2)]
11+
pub stroke_width: usize,
12+
#[props(default = false)]
13+
pub absolute_stroke_width: bool,
14+
pub class: Option<String>,
15+
pub style: Option<String>,
16+
}
17+
#[component]
18+
pub fn MouseLeft(props: MouseLeftProps) -> Element {
19+
let stroke_width = if props.absolute_stroke_width {
20+
props.stroke_width * 24 / props.size
21+
} else {
22+
props.stroke_width
23+
};
24+
rsx! {
25+
svg {
26+
"xmlns": "http://www.w3.org/2000/svg",
27+
"class": if let Some(class) = props.class { "{class}" },
28+
"style": if let Some(style) = props.style { "{style}" },
29+
"width": "{props.size}",
30+
"height": "{props.size}",
31+
"viewBox": "0 0 24 24",
32+
"fill": "{props.fill}",
33+
"stroke": "{props.color}",
34+
"stroke-width": "{stroke_width}",
35+
"stroke-linecap": "round",
36+
"stroke-linejoin": "round",
37+
path { "d": "M12 7.318V10" }
38+
path { "d": "M5 10v5a7 7 0 0 0 14 0V9c0-3.527-2.608-6.515-6-7" }
39+
circle { "cx": "7", "cy": "4", "r": "2" }
40+
}
41+
}
42+
}

packages/dioxus/src/mouse_right.rs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
use dioxus::prelude::*;
2+
#[derive(Clone, PartialEq, Props)]
3+
pub struct MouseRightProps {
4+
#[props(default = 24)]
5+
pub size: usize,
6+
#[props(default = "currentColor".to_owned())]
7+
pub color: String,
8+
#[props(default = "none".to_owned())]
9+
pub fill: String,
10+
#[props(default = 2)]
11+
pub stroke_width: usize,
12+
#[props(default = false)]
13+
pub absolute_stroke_width: bool,
14+
pub class: Option<String>,
15+
pub style: Option<String>,
16+
}
17+
#[component]
18+
pub fn MouseRight(props: MouseRightProps) -> Element {
19+
let stroke_width = if props.absolute_stroke_width {
20+
props.stroke_width * 24 / props.size
21+
} else {
22+
props.stroke_width
23+
};
24+
rsx! {
25+
svg {
26+
"xmlns": "http://www.w3.org/2000/svg",
27+
"class": if let Some(class) = props.class { "{class}" },
28+
"style": if let Some(style) = props.style { "{style}" },
29+
"width": "{props.size}",
30+
"height": "{props.size}",
31+
"viewBox": "0 0 24 24",
32+
"fill": "{props.fill}",
33+
"stroke": "{props.color}",
34+
"stroke-width": "{stroke_width}",
35+
"stroke-linecap": "round",
36+
"stroke-linejoin": "round",
37+
path { "d": "M12 7.318V10" }
38+
path { "d": "M19 10v5a7 7 0 0 1-14 0V9c0-3.527 2.608-6.515 6-7" }
39+
circle { "cx": "17", "cy": "4", "r": "2" }
40+
}
41+
}
42+
}

packages/dioxus/src/rocking_chair.rs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,10 @@ pub fn RockingChair(props: RockingChairProps) -> Element {
3434
"stroke-width": "{stroke_width}",
3535
"stroke-linecap": "round",
3636
"stroke-linejoin": "round",
37-
polyline { "points": "3.5 2 6.5 12.5 18 12.5" }
38-
line {
39-
"x1": "9.5",
40-
"x2": "5.5",
41-
"y1": "12.5",
42-
"y2": "20",
43-
}
44-
line {
45-
"x1": "15",
46-
"x2": "18.5",
47-
"y1": "12.5",
48-
"y2": "20",
49-
}
50-
path { "d": "M2.75 18a13 13 0 0 0 18.5 0" }
37+
path { "d": "m15 13 3.708 7.416" }
38+
path { "d": "M3 19a15 15 0 0 0 18 0" }
39+
path { "d": "m3 2 3.21 9.633A2 2 0 0 0 8.109 13H18" }
40+
path { "d": "m9 13-3.708 7.416" }
5141
}
5242
}
5343
}

packages/dioxus/src/x_line_top.rs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
use dioxus::prelude::*;
2+
#[derive(Clone, PartialEq, Props)]
3+
pub struct XLineTopProps {
4+
#[props(default = 24)]
5+
pub size: usize,
6+
#[props(default = "currentColor".to_owned())]
7+
pub color: String,
8+
#[props(default = "none".to_owned())]
9+
pub fill: String,
10+
#[props(default = 2)]
11+
pub stroke_width: usize,
12+
#[props(default = false)]
13+
pub absolute_stroke_width: bool,
14+
pub class: Option<String>,
15+
pub style: Option<String>,
16+
}
17+
#[component]
18+
pub fn XLineTop(props: XLineTopProps) -> Element {
19+
let stroke_width = if props.absolute_stroke_width {
20+
props.stroke_width * 24 / props.size
21+
} else {
22+
props.stroke_width
23+
};
24+
rsx! {
25+
svg {
26+
"xmlns": "http://www.w3.org/2000/svg",
27+
"class": if let Some(class) = props.class { "{class}" },
28+
"style": if let Some(style) = props.style { "{style}" },
29+
"width": "{props.size}",
30+
"height": "{props.size}",
31+
"viewBox": "0 0 24 24",
32+
"fill": "{props.fill}",
33+
"stroke": "{props.color}",
34+
"stroke-width": "{stroke_width}",
35+
"stroke-linecap": "round",
36+
"stroke-linejoin": "round",
37+
path { "d": "M18 4H6" }
38+
path { "d": "M18 8 6 20" }
39+
path { "d": "m6 8 12 12" }
40+
}
41+
}
42+
}

packages/icon-name/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! See [the Rust Lucide book](https://lucide.rustforweb.org/) for more documenation.
66
77
/// [Lucide](https://lucide.dev/) icon names.
8-
pub static ICON_NAMES: [&str; 1681usize] = [
8+
pub static ICON_NAMES: [&str; 1684usize] = [
99
"a-arrow-down",
1010
"a-arrow-up",
1111
"a-large-small",
@@ -1037,12 +1037,14 @@ pub static ICON_NAMES: [&str; 1681usize] = [
10371037
"mountain",
10381038
"mountain-snow",
10391039
"mouse",
1040+
"mouse-left",
10401041
"mouse-off",
10411042
"mouse-pointer",
10421043
"mouse-pointer-2",
10431044
"mouse-pointer-2-off",
10441045
"mouse-pointer-ban",
10451046
"mouse-pointer-click",
1047+
"mouse-right",
10461048
"move",
10471049
"move-3d",
10481050
"move-diagonal",
@@ -1682,6 +1684,7 @@ pub static ICON_NAMES: [&str; 1681usize] = [
16821684
"worm",
16831685
"wrench",
16841686
"x",
1687+
"x-line-top",
16851688
"youtube",
16861689
"zap",
16871690
"zap-off",

0 commit comments

Comments
 (0)