Skip to content

Commit 6edeb70

Browse files
feat: update to upstream v0.576.0 (#283)
Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com>
1 parent 9075ee1 commit 6edeb70

95 files changed

Lines changed: 2275 additions & 193 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

book-examples/dioxus/src/icons.rs

Lines changed: 90 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4063,6 +4063,12 @@ pub fn IconsF1() -> Element {
40634063
},
40644064
"Fishing Hook",
40654065
),
4066+
(
4067+
rsx! {
4068+
FishingRod {}
4069+
},
4070+
"Fishing Rod",
4071+
),
40664072
(
40674073
rsx! {
40684074
Flag {}
@@ -4231,12 +4237,6 @@ pub fn IconsF1() -> Element {
42314237
},
42324238
"Folder Git",
42334239
),
4234-
(
4235-
rsx! {
4236-
FolderGit2 {}
4237-
},
4238-
"Folder Git 2",
4239-
),
42404240
];
42414241
rsx! {
42424242
for (icon , name) in icons {
@@ -4252,6 +4252,12 @@ pub fn IconsF1() -> Element {
42524252
#[component]
42534253
pub fn IconsF2() -> Element {
42544254
let icons = [
4255+
(
4256+
rsx! {
4257+
FolderGit2 {}
4258+
},
4259+
"Folder Git 2",
4260+
),
42554261
(
42564262
rsx! {
42574263
FolderHeart {}
@@ -10685,6 +10691,84 @@ pub fn IconsZ1() -> Element {
1068510691
},
1068610692
"Zap Off",
1068710693
),
10694+
(
10695+
rsx! {
10696+
ZodiacAquarius {}
10697+
},
10698+
"Zodiac Aquarius",
10699+
),
10700+
(
10701+
rsx! {
10702+
ZodiacAries {}
10703+
},
10704+
"Zodiac Aries",
10705+
),
10706+
(
10707+
rsx! {
10708+
ZodiacCancer {}
10709+
},
10710+
"Zodiac Cancer",
10711+
),
10712+
(
10713+
rsx! {
10714+
ZodiacCapricorn {}
10715+
},
10716+
"Zodiac Capricorn",
10717+
),
10718+
(
10719+
rsx! {
10720+
ZodiacGemini {}
10721+
},
10722+
"Zodiac Gemini",
10723+
),
10724+
(
10725+
rsx! {
10726+
ZodiacLeo {}
10727+
},
10728+
"Zodiac Leo",
10729+
),
10730+
(
10731+
rsx! {
10732+
ZodiacLibra {}
10733+
},
10734+
"Zodiac Libra",
10735+
),
10736+
(
10737+
rsx! {
10738+
ZodiacOphiuchus {}
10739+
},
10740+
"Zodiac Ophiuchus",
10741+
),
10742+
(
10743+
rsx! {
10744+
ZodiacPisces {}
10745+
},
10746+
"Zodiac Pisces",
10747+
),
10748+
(
10749+
rsx! {
10750+
ZodiacSagittarius {}
10751+
},
10752+
"Zodiac Sagittarius",
10753+
),
10754+
(
10755+
rsx! {
10756+
ZodiacScorpio {}
10757+
},
10758+
"Zodiac Scorpio",
10759+
),
10760+
(
10761+
rsx! {
10762+
ZodiacTaurus {}
10763+
},
10764+
"Zodiac Taurus",
10765+
),
10766+
(
10767+
rsx! {
10768+
ZodiacVirgo {}
10769+
},
10770+
"Zodiac Virgo",
10771+
),
1068810772
(
1068910773
rsx! {
1069010774
ZoomIn {}

book-examples/leptos/src/icons.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,7 @@ pub fn IconsF1() -> impl IntoView {
902902
(view! { <FishOff /> }.into_any(), "Fish Off"),
903903
(view! { <FishSymbol /> }.into_any(), "Fish Symbol"),
904904
(view! { <FishingHook /> }.into_any(), "Fishing Hook"),
905+
(view! { <FishingRod /> }.into_any(), "Fishing Rod"),
905906
(view! { <Flag /> }.into_any(), "Flag"),
906907
(view! { <FlagOff /> }.into_any(), "Flag Off"),
907908
(view! { <FlagTriangleLeft /> }.into_any(), "Flag Triangle Left"),
@@ -930,7 +931,6 @@ pub fn IconsF1() -> impl IntoView {
930931
(view! { <FolderDot /> }.into_any(), "Folder Dot"),
931932
(view! { <FolderDown /> }.into_any(), "Folder Down"),
932933
(view! { <FolderGit /> }.into_any(), "Folder Git"),
933-
(view! { <FolderGit2 /> }.into_any(), "Folder Git 2"),
934934
]
935935
key=|icon| icon.1
936936
children=move |(icon, name)| {
@@ -948,6 +948,7 @@ pub fn IconsF2() -> impl IntoView {
948948
view! {
949949
<For
950950
each=move || [
951+
(view! { <FolderGit2 /> }.into_any(), "Folder Git 2"),
951952
(view! { <FolderHeart /> }.into_any(), "Folder Heart"),
952953
(view! { <FolderInput /> }.into_any(), "Folder Input"),
953954
(view! { <FolderKanban /> }.into_any(), "Folder Kanban"),
@@ -2396,6 +2397,19 @@ pub fn IconsZ1() -> impl IntoView {
23962397
each=move || [
23972398
(view! { <Zap /> }.into_any(), "Zap"),
23982399
(view! { <ZapOff /> }.into_any(), "Zap Off"),
2400+
(view! { <ZodiacAquarius /> }.into_any(), "Zodiac Aquarius"),
2401+
(view! { <ZodiacAries /> }.into_any(), "Zodiac Aries"),
2402+
(view! { <ZodiacCancer /> }.into_any(), "Zodiac Cancer"),
2403+
(view! { <ZodiacCapricorn /> }.into_any(), "Zodiac Capricorn"),
2404+
(view! { <ZodiacGemini /> }.into_any(), "Zodiac Gemini"),
2405+
(view! { <ZodiacLeo /> }.into_any(), "Zodiac Leo"),
2406+
(view! { <ZodiacLibra /> }.into_any(), "Zodiac Libra"),
2407+
(view! { <ZodiacOphiuchus /> }.into_any(), "Zodiac Ophiuchus"),
2408+
(view! { <ZodiacPisces /> }.into_any(), "Zodiac Pisces"),
2409+
(view! { <ZodiacSagittarius /> }.into_any(), "Zodiac Sagittarius"),
2410+
(view! { <ZodiacScorpio /> }.into_any(), "Zodiac Scorpio"),
2411+
(view! { <ZodiacTaurus /> }.into_any(), "Zodiac Taurus"),
2412+
(view! { <ZodiacVirgo /> }.into_any(), "Zodiac Virgo"),
23992413
(view! { <ZoomIn /> }.into_any(), "Zoom In"),
24002414
(view! { <ZoomOut /> }.into_any(), "Zoom Out"),
24012415
]

book-examples/yew/src/icons.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ pub fn IconsF() -> Html {
850850
(html! { <FishOff /> }, "Fish Off"),
851851
(html! { <FishSymbol /> }, "Fish Symbol"),
852852
(html! { <FishingHook /> }, "Fishing Hook"),
853+
(html! { <FishingRod /> }, "Fishing Rod"),
853854
(html! { <Flag /> }, "Flag"),
854855
(html! { <FlagOff /> }, "Flag Off"),
855856
(html! { <FlagTriangleLeft /> }, "Flag Triangle Left"),
@@ -2270,6 +2271,19 @@ pub fn IconsZ() -> Html {
22702271
let icons = [
22712272
(html! { <Zap /> }, "Zap"),
22722273
(html! { <ZapOff /> }, "Zap Off"),
2274+
(html! { <ZodiacAquarius /> }, "Zodiac Aquarius"),
2275+
(html! { <ZodiacAries /> }, "Zodiac Aries"),
2276+
(html! { <ZodiacCancer /> }, "Zodiac Cancer"),
2277+
(html! { <ZodiacCapricorn /> }, "Zodiac Capricorn"),
2278+
(html! { <ZodiacGemini /> }, "Zodiac Gemini"),
2279+
(html! { <ZodiacLeo /> }, "Zodiac Leo"),
2280+
(html! { <ZodiacLibra /> }, "Zodiac Libra"),
2281+
(html! { <ZodiacOphiuchus /> }, "Zodiac Ophiuchus"),
2282+
(html! { <ZodiacPisces /> }, "Zodiac Pisces"),
2283+
(html! { <ZodiacSagittarius /> }, "Zodiac Sagittarius"),
2284+
(html! { <ZodiacScorpio /> }, "Zodiac Scorpio"),
2285+
(html! { <ZodiacTaurus /> }, "Zodiac Taurus"),
2286+
(html! { <ZodiacVirgo /> }, "Zodiac Virgo"),
22732287
(html! { <ZoomIn /> }, "Zoom In"),
22742288
(html! { <ZoomOut /> }, "Zoom Out"),
22752289
];

packages/dioxus/src/cuboid.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ pub fn Cuboid(props: CuboidProps) -> Element {
3434
"stroke-width": "{stroke_width}",
3535
"stroke-linecap": "round",
3636
"stroke-linejoin": "round",
37-
path { "d": "m21.12 6.4-6.05-4.06a2 2 0 0 0-2.17-.05L2.95 8.41a2 2 0 0 0-.95 1.7v5.82a2 2 0 0 0 .88 1.66l6.05 4.07a2 2 0 0 0 2.17.05l9.95-6.12a2 2 0 0 0 .95-1.7V8.06a2 2 0 0 0-.88-1.66Z" }
38-
path { "d": "M10 22v-8L2.25 9.15" }
39-
path { "d": "m10 14 11.77-6.87" }
37+
path { "d": "M10 22v-8" }
38+
path { "d": "M2.336 8.89 10 14l11.715-7.029" }
39+
path { "d": "M22 14a2 2 0 0 1-.971 1.715l-10 6a2 2 0 0 1-2.138-.05l-6-4A2 2 0 0 1 2 16v-6a2 2 0 0 1 .971-1.715l10-6a2 2 0 0 1 2.138.05l6 4A2 2 0 0 1 22 8z" }
4040
}
4141
}
4242
}

packages/dioxus/src/fishing_rod.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 FishingRodProps {
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 FishingRod(props: FishingRodProps) -> 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": "M4 11h1" }
38+
path { "d": "M8 15a2 2 0 0 1-4 0V3a1 1 0 0 1 1-1h.5C14 2 20 9 20 18v4" }
39+
circle { "cx": "18", "cy": "18", "r": "2" }
40+
}
41+
}
42+
}

packages/dioxus/src/lib.rs

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ mod cross;
11371137
mod crosshair;
11381138
#[cfg(feature = "gaming")]
11391139
mod crown;
1140-
#[cfg(any(feature = "shapes", feature = "math", feature = "buildings"))]
1140+
#[cfg(any(feature = "shapes", feature = "math", feature = "food-beverage"))]
11411141
mod cuboid;
11421142
#[cfg(feature = "food-beverage")]
11431143
mod cup_soda;
@@ -1505,6 +1505,8 @@ mod fish_off;
15051505
mod fish_symbol;
15061506
#[cfg(any(feature = "sports", feature = "travel"))]
15071507
mod fishing_hook;
1508+
#[cfg(any(feature = "sports", feature = "travel"))]
1509+
mod fishing_rod;
15081510
#[cfg(any(feature = "account", feature = "social"))]
15091511
mod flag;
15101512
#[cfg(any(feature = "account", feature = "social"))]
@@ -4247,6 +4249,32 @@ mod zap;
42474249
feature = "weather"
42484250
))]
42494251
mod zap_off;
4252+
#[cfg(any(feature = "social", feature = "emoji"))]
4253+
mod zodiac_aquarius;
4254+
#[cfg(any(feature = "social", feature = "emoji"))]
4255+
mod zodiac_aries;
4256+
#[cfg(any(feature = "social", feature = "emoji"))]
4257+
mod zodiac_cancer;
4258+
#[cfg(any(feature = "social", feature = "emoji"))]
4259+
mod zodiac_capricorn;
4260+
#[cfg(any(feature = "social", feature = "emoji"))]
4261+
mod zodiac_gemini;
4262+
#[cfg(any(feature = "social", feature = "emoji"))]
4263+
mod zodiac_leo;
4264+
#[cfg(any(feature = "social", feature = "emoji"))]
4265+
mod zodiac_libra;
4266+
#[cfg(any(feature = "social", feature = "emoji"))]
4267+
mod zodiac_ophiuchus;
4268+
#[cfg(any(feature = "social", feature = "emoji"))]
4269+
mod zodiac_pisces;
4270+
#[cfg(any(feature = "social", feature = "emoji"))]
4271+
mod zodiac_sagittarius;
4272+
#[cfg(any(feature = "social", feature = "emoji"))]
4273+
mod zodiac_scorpio;
4274+
#[cfg(any(feature = "social", feature = "emoji"))]
4275+
mod zodiac_taurus;
4276+
#[cfg(any(feature = "social", feature = "emoji"))]
4277+
mod zodiac_virgo;
42504278
#[cfg(any(
42514279
feature = "accessibility",
42524280
feature = "layout",
@@ -5397,7 +5425,7 @@ pub use cross::*;
53975425
pub use crosshair::*;
53985426
#[cfg(feature = "gaming")]
53995427
pub use crown::*;
5400-
#[cfg(any(feature = "shapes", feature = "math", feature = "buildings"))]
5428+
#[cfg(any(feature = "shapes", feature = "math", feature = "food-beverage"))]
54015429
pub use cuboid::*;
54025430
#[cfg(feature = "food-beverage")]
54035431
pub use cup_soda::*;
@@ -5765,6 +5793,8 @@ pub use fish_off::*;
57655793
pub use fish_symbol::*;
57665794
#[cfg(any(feature = "sports", feature = "travel"))]
57675795
pub use fishing_hook::*;
5796+
#[cfg(any(feature = "sports", feature = "travel"))]
5797+
pub use fishing_rod::*;
57685798
#[cfg(any(feature = "account", feature = "social"))]
57695799
pub use flag::*;
57705800
#[cfg(any(feature = "account", feature = "social"))]
@@ -8507,6 +8537,32 @@ pub use zap::*;
85078537
feature = "weather"
85088538
))]
85098539
pub use zap_off::*;
8540+
#[cfg(any(feature = "social", feature = "emoji"))]
8541+
pub use zodiac_aquarius::*;
8542+
#[cfg(any(feature = "social", feature = "emoji"))]
8543+
pub use zodiac_aries::*;
8544+
#[cfg(any(feature = "social", feature = "emoji"))]
8545+
pub use zodiac_cancer::*;
8546+
#[cfg(any(feature = "social", feature = "emoji"))]
8547+
pub use zodiac_capricorn::*;
8548+
#[cfg(any(feature = "social", feature = "emoji"))]
8549+
pub use zodiac_gemini::*;
8550+
#[cfg(any(feature = "social", feature = "emoji"))]
8551+
pub use zodiac_leo::*;
8552+
#[cfg(any(feature = "social", feature = "emoji"))]
8553+
pub use zodiac_libra::*;
8554+
#[cfg(any(feature = "social", feature = "emoji"))]
8555+
pub use zodiac_ophiuchus::*;
8556+
#[cfg(any(feature = "social", feature = "emoji"))]
8557+
pub use zodiac_pisces::*;
8558+
#[cfg(any(feature = "social", feature = "emoji"))]
8559+
pub use zodiac_sagittarius::*;
8560+
#[cfg(any(feature = "social", feature = "emoji"))]
8561+
pub use zodiac_scorpio::*;
8562+
#[cfg(any(feature = "social", feature = "emoji"))]
8563+
pub use zodiac_taurus::*;
8564+
#[cfg(any(feature = "social", feature = "emoji"))]
8565+
pub use zodiac_virgo::*;
85108566
#[cfg(any(
85118567
feature = "accessibility",
85128568
feature = "layout",

packages/dioxus/src/package_check.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,11 @@ pub fn PackageCheck(props: PackageCheckProps) -> Element {
3434
"stroke-width": "{stroke_width}",
3535
"stroke-linecap": "round",
3636
"stroke-linejoin": "round",
37-
path { "d": "m16 16 2 2 4-4" }
38-
path { "d": "M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14" }
39-
path { "d": "m7.5 4.27 9 5.15" }
40-
polyline { "points": "3.29 7 12 12 20.71 7" }
41-
line {
42-
"x1": "12",
43-
"x2": "12",
44-
"y1": "22",
45-
"y2": "12",
46-
}
37+
path { "d": "M12 22V12" }
38+
path { "d": "m16 17 2 2 4-4" }
39+
path { "d": "M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753" }
40+
path { "d": "M3.29 7 12 12l8.71-5" }
41+
path { "d": "m7.5 4.27 8.997 5.148" }
4742
}
4843
}
4944
}

packages/dioxus/src/package_minus.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,11 @@ pub fn PackageMinus(props: PackageMinusProps) -> Element {
3434
"stroke-width": "{stroke_width}",
3535
"stroke-linecap": "round",
3636
"stroke-linejoin": "round",
37-
path { "d": "M16 16h6" }
38-
path { "d": "M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14" }
39-
path { "d": "m7.5 4.27 9 5.15" }
40-
polyline { "points": "3.29 7 12 12 20.71 7" }
41-
line {
42-
"x1": "12",
43-
"x2": "12",
44-
"y1": "22",
45-
"y2": "12",
46-
}
37+
path { "d": "M12 22V12" }
38+
path { "d": "M16 17h6" }
39+
path { "d": "M21 13V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.675-.955" }
40+
path { "d": "M3.29 7 12 12l8.71-5" }
41+
path { "d": "m7.5 4.27 8.997 5.148" }
4742
}
4843
}
4944
}

0 commit comments

Comments
 (0)