Skip to content

Commit 5ca2365

Browse files
feat: update to upstream v0.532.0 (#125)
Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com>
1 parent 1f05ef6 commit 5ca2365

22 files changed

Lines changed: 175 additions & 28 deletions

File tree

book-examples/dioxus/src/icons.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4754,6 +4754,12 @@ pub fn IconsH1() -> Element {
47544754
},
47554755
"Hand Platter",
47564756
),
4757+
(
4758+
rsx! {
4759+
Handbag {}
4760+
},
4761+
"Handbag",
4762+
),
47574763
(
47584764
rsx! {
47594765
Handshake {}

book-examples/leptos/src/icons.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,7 @@ pub fn IconsH() -> impl IntoView {
969969
(view! { <HandHelping /> }.into_any(), "Hand Helping"),
970970
(view! { <HandMetal /> }.into_any(), "Hand Metal"),
971971
(view! { <HandPlatter /> }.into_any(), "Hand Platter"),
972+
(view! { <Handbag /> }.into_any(), "Handbag"),
972973
(view! { <Handshake /> }.into_any(), "Handshake"),
973974
(view! { <HardDrive /> }.into_any(), "Hard Drive"),
974975
(view! { <HardDriveDownload /> }.into_any(), "Hard Drive Download"),

book-examples/yew/src/icons.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ pub fn IconsH() -> Html {
999999
(html! { <HandHelping /> }, "Hand Helping"),
10001000
(html! { <HandMetal /> }, "Hand Metal"),
10011001
(html! { <HandPlatter /> }, "Hand Platter"),
1002+
(html! { <Handbag /> }, "Handbag"),
10021003
(html! { <Handshake /> }, "Handshake"),
10031004
(html! { <HardDrive /> }, "Hard Drive"),
10041005
(html! { <HardDriveDownload /> }, "Hard Drive Download"),

packages/dioxus/src/gavel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ pub fn Gavel(props: GavelProps) -> Element {
3434
"stroke-width": "{stroke_width}",
3535
"stroke-linecap": "round",
3636
"stroke-linejoin": "round",
37-
path { "d": "m14.5 12.5-8 8a2.119 2.119 0 1 1-3-3l8-8" }
37+
path { "d": "m14.499 12.501-8.88 8.879a1 1 0 0 1-3.001-3L11.5 9.5" }
3838
path { "d": "m16 16 6-6" }
39+
path { "d": "m21 11-8-8" }
3940
path { "d": "m8 8 6-6" }
4041
path { "d": "m9 7 8 8" }
41-
path { "d": "m21 11-8-8" }
4242
}
4343
}
4444
}

packages/dioxus/src/hammer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ pub fn Hammer(props: HammerProps) -> Element {
3434
"stroke-width": "{stroke_width}",
3535
"stroke-linecap": "round",
3636
"stroke-linejoin": "round",
37-
path { "d": "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9" }
37+
path { "d": "m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9" }
3838
path { "d": "m18 15 4-4" }
39-
path { "d": "m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" }
39+
path { "d": "m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" }
4040
}
4141
}
4242
}

packages/dioxus/src/handbag.rs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
use dioxus::prelude::*;
2+
#[derive(Clone, PartialEq, Props)]
3+
pub struct HandbagProps {
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 Handbag(props: HandbagProps) -> 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": "M2.048 18.566A2 2 0 0 0 4 21h16a2 2 0 0 0 1.952-2.434l-2-9A2 2 0 0 0 18 8H6a2 2 0 0 0-1.952 1.566z" }
38+
path { "d": "M8 11V6a4 4 0 0 1 8 0v5" }
39+
}
40+
}
41+
}

packages/dioxus/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,6 +1791,8 @@ mod hand_helping;
17911791
mod hand_metal;
17921792
#[cfg(any(feature = "food-beverage", feature = "people"))]
17931793
mod hand_platter;
1794+
#[cfg(any(feature = "shopping", feature = "transportation"))]
1795+
mod handbag;
17941796
#[cfg(any(
17951797
feature = "account",
17961798
feature = "social",
@@ -5911,6 +5913,8 @@ pub use hand_helping::*;
59115913
pub use hand_metal::*;
59125914
#[cfg(any(feature = "food-beverage", feature = "people"))]
59135915
pub use hand_platter::*;
5916+
#[cfg(any(feature = "shopping", feature = "transportation"))]
5917+
pub use handbag::*;
59145918
#[cfg(any(
59155919
feature = "account",
59165920
feature = "social",

packages/dioxus/src/pickaxe.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ pub fn Pickaxe(props: PickaxeProps) -> Element {
3434
"stroke-width": "{stroke_width}",
3535
"stroke-linecap": "round",
3636
"stroke-linejoin": "round",
37-
path { "d": "M14.531 12.469 6.619 20.38a1 1 0 1 1-3-3l7.912-7.912" }
38-
path { "d": "M15.686 4.314A12.5 12.5 0 0 0 5.461 2.958 1 1 0 0 0 5.58 4.71a22 22 0 0 1 6.318 3.393" }
39-
path { "d": "M17.7 3.7a1 1 0 0 0-1.4 0l-4.6 4.6a1 1 0 0 0 0 1.4l2.6 2.6a1 1 0 0 0 1.4 0l4.6-4.6a1 1 0 0 0 0-1.4z" }
40-
path { "d": "M19.686 8.314a12.501 12.501 0 0 1 1.356 10.225 1 1 0 0 1-1.751-.119 22 22 0 0 0-3.393-6.319" }
37+
path { "d": "m14 13-8.381 8.38a1 1 0 0 1-3.001-3L11 9.999" }
38+
path { "d": "M15.973 4.027A13 13 0 0 0 5.902 2.373c-1.398.342-1.092 2.158.277 2.601a19.9 19.9 0 0 1 5.822 3.024" }
39+
path { "d": "M16.001 11.999a19.9 19.9 0 0 1 3.024 5.824c.444 1.369 2.26 1.676 2.603.278A13 13 0 0 0 20 8.069" }
40+
path { "d": "M18.352 3.352a1.205 1.205 0 0 0-1.704 0l-5.296 5.296a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l5.296-5.296a1.205 1.205 0 0 0 0-1.704z" }
4141
}
4242
}
4343
}

packages/dioxus/src/wrench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn Wrench(props: WrenchProps) -> Element {
3434
"stroke-width": "{stroke_width}",
3535
"stroke-linecap": "round",
3636
"stroke-linejoin": "round",
37-
path { "d": "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" }
37+
path { "d": "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" }
3838
}
3939
}
4040
}

packages/leptos/src/gavel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ pub fn Gavel(
2929
stroke-linecap="round"
3030
stroke-linejoin="round"
3131
>
32-
<path d="m14.5 12.5-8 8a2.119 2.119 0 1 1-3-3l8-8" />
32+
<path d="m14.499 12.501-8.88 8.879a1 1 0 0 1-3.001-3L11.5 9.5" />
3333
<path d="m16 16 6-6" />
34+
<path d="m21 11-8-8" />
3435
<path d="m8 8 6-6" />
3536
<path d="m9 7 8 8" />
36-
<path d="m21 11-8-8" />
3737
</svg>
3838
}
3939
}

0 commit comments

Comments
 (0)