Skip to content

Commit d736326

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 654eb7f + 6dad933 commit d736326

30 files changed

+177
-61
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
matrix='["js/react", "js/vue", "styles", "crates/core", "crates/leptos"]'
3232
else
3333
CHANGED=$(git diff --name-only origin/main HEAD)
34-
declare -a packages
34+
packages=()
3535
3636
while read -r file; do
3737
[[ "$file" == js/react/* ]] && packages+=("js/react")
@@ -41,11 +41,12 @@ jobs:
4141
[[ "$file" == crates/leptos/* ]] && packages+=("crates/leptos")
4242
done <<< "$CHANGED"
4343
44-
unique=($(echo "${packages[@]}" | tr ' ' '\n' | sort -u | jq -R . | jq -s .))
45-
matrix=$(jq -c . <<< "$unique")
46-
fi
44+
matrix=$(printf "%s\n" "${packages[@]}" \
45+
| sort -u \
46+
| jq -R . \
47+
| jq -s -c .)
4748
48-
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
49+
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
4950
5051
publish:
5152
name: Publish Changed Projects

crates/leptos/src/icons.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ mod search;
2121
mod share;
2222
mod star_bold;
2323
mod sun_line;
24+
mod sun_moon;
2425
mod telegram;
2526
mod twitter;
2627
mod youtube;
@@ -48,6 +49,7 @@ pub use search::Search;
4849
pub use share::Share;
4950
pub use star_bold::StarBold;
5051
pub use sun_line::SunLine;
52+
pub use sun_moon::SunMoon;
5153
pub use telegram::Telegram;
5254
pub use twitter::Twitter;
5355
pub use youtube::Youtube;

crates/leptos/src/icons/alert.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
use leptos::prelude::*;
22

33
#[component]
4-
pub fn Alert(#[prop(into, optional, default = 24)] size: u32) -> impl IntoView {
4+
pub fn Alert(
5+
#[prop(into, optional, default = 24)] size: i32,
6+
#[prop(into, default = "".to_string())] class: String,
7+
) -> impl IntoView {
58
view! {
69
<svg
710
width={size}
811
height={size}
912
viewBox="0 0 24 24"
10-
fill="none"
13+
class=class
1114
xmlns="http://www.w3.org/2000/svg"
1215
>
1316
<path

crates/leptos/src/icons/arrow_down.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
use leptos::prelude::*;
22

33
#[component]
4-
pub fn ArrowDown(#[prop(into, optional, default = 24)] size: u32) -> impl IntoView {
4+
pub fn ArrowDown(
5+
#[prop(into, optional, default = 24)] size: i32,
6+
#[prop(into, default = "".to_string())] class: String,
7+
) -> impl IntoView {
58
view! {
69
<svg
710
width={size}
811
height={size}
912
viewBox="0 0 24 24"
10-
fill="none"
13+
class=class
1114
xmlns="http://www.w3.org/2000/svg"
1215
>
1316
<path

crates/leptos/src/icons/arrow_left.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
use leptos::prelude::*;
22

33
#[component]
4-
pub fn ArrowLeft(#[prop(into, optional, default = 24)] size: u32) -> impl IntoView {
4+
pub fn ArrowLeft(
5+
#[prop(into, optional, default = 24)] size: i32,
6+
#[prop(into, default = "".to_string())] class: String,
7+
) -> impl IntoView {
58
view! {
69
<svg
710
width={size}
811
height={size}
912
viewBox="0 0 24 24"
10-
fill="none"
13+
class=class
1114
xmlns="http://www.w3.org/2000/svg"
1215
>
1316
<path

crates/leptos/src/icons/arrow_right.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
use leptos::prelude::*;
22

33
#[component]
4-
pub fn ArrowRight(#[prop(into, optional, default = 24)] size: u32) -> impl IntoView {
4+
pub fn ArrowRight(
5+
#[prop(into, optional, default = 24)] size: i32,
6+
#[prop(into, default = "".to_string())] class: String,
7+
) -> impl IntoView {
58
view! {
69
<svg
710
width={size}
811
height={size}
912
viewBox="0 0 24 24"
10-
fill="none"
13+
class=class
1114
xmlns="http://www.w3.org/2000/svg"
1215
>
1316
<path

crates/leptos/src/icons/arrow_up.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
use leptos::prelude::*;
22

33
#[component]
4-
pub fn ArrowUp(#[prop(into, optional, default = 24)] size: u32) -> impl IntoView {
4+
pub fn ArrowUp(
5+
#[prop(into, optional, default = 24)] size: i32,
6+
#[prop(into, default = "".to_string())] class: String,
7+
) -> impl IntoView {
58
view! {
69
<svg
710
width={size}
811
height={size}
912
viewBox="0 0 24 24"
10-
fill="none"
13+
class=class
1114
xmlns="http://www.w3.org/2000/svg"
1215
>
1316
<path

crates/leptos/src/icons/book.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
use leptos::prelude::*;
22

33
#[component]
4-
pub fn Book(#[prop(into, optional, default = 24)] size: u32) -> impl IntoView {
4+
pub fn Book(
5+
#[prop(into, optional, default = 24)] size: i32,
6+
#[prop(into, default = "".to_string())] class: String,
7+
) -> impl IntoView {
58
view! {
69
<svg
710
width={size}
811
height={size}
912
viewBox="0 0 24 24"
10-
fill="none"
13+
class=class
1114
xmlns="http://www.w3.org/2000/svg"
1215
>
1316
<path

crates/leptos/src/icons/close.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
use leptos::prelude::*;
22

33
#[component]
4-
pub fn Close(#[prop(into, optional, default = 24)] size: u32) -> impl IntoView {
4+
pub fn Close(
5+
#[prop(into, optional, default = 24)] size: i32,
6+
#[prop(into, default = "".to_string())] class: String,
7+
) -> impl IntoView {
58
view! {
69
<svg
710
width={size}
811
height={size}
912
viewBox="0 0 24 24"
10-
fill="none"
13+
class=class
1114
xmlns="http://www.w3.org/2000/svg"
1215
>
1316
<path

crates/leptos/src/icons/discord.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
use leptos::prelude::*;
22

33
#[component]
4-
pub fn Discord(#[prop(into, optional, default = 24)] size: u32) -> impl IntoView {
4+
pub fn Discord(
5+
#[prop(into, optional, default = 24)] size: i32,
6+
#[prop(into, default = "".to_string())] class: String,
7+
) -> impl IntoView {
58
view! {
69
<svg
710
width={size}
811
height={size}
912
viewBox="0 0 24 24"
10-
fill="none"
13+
class=class
1114
xmlns="http://www.w3.org/2000/svg"
1215
>
1316
<path

0 commit comments

Comments
 (0)