mirror of
https://github.com/danbulant/lucide
synced 2026-05-19 04:18:41 +00:00
feat: update to upstream v0.521.0 (#101)
Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com>
This commit is contained in:
parent
1683afb3bc
commit
794ad35d9d
16 changed files with 176 additions and 13 deletions
|
|
@ -8747,6 +8747,12 @@ pub fn IconsS2() -> Element {
|
|||
},
|
||||
"Squircle",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
SquircleDashed {}
|
||||
},
|
||||
"Squircle Dashed",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
Squirrel {}
|
||||
|
|
@ -8837,12 +8843,6 @@ pub fn IconsS2() -> Element {
|
|||
},
|
||||
"Subscript",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
Sun {}
|
||||
},
|
||||
"Sun",
|
||||
),
|
||||
];
|
||||
rsx! {
|
||||
for (icon , name) in icons {
|
||||
|
|
@ -8858,6 +8858,12 @@ pub fn IconsS2() -> Element {
|
|||
#[component]
|
||||
pub fn IconsS3() -> Element {
|
||||
let icons = [
|
||||
(
|
||||
rsx! {
|
||||
Sun {}
|
||||
},
|
||||
"Sun",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
SunDim {}
|
||||
|
|
|
|||
|
|
@ -1795,6 +1795,7 @@ pub fn IconsS() -> impl IntoView {
|
|||
(view! { <SquaresSubtract /> }.into_any(), "Squares Subtract"),
|
||||
(view! { <SquaresUnite /> }.into_any(), "Squares Unite"),
|
||||
(view! { <Squircle /> }.into_any(), "Squircle"),
|
||||
(view! { <SquircleDashed /> }.into_any(), "Squircle Dashed"),
|
||||
(view! { <Squirrel /> }.into_any(), "Squirrel"),
|
||||
(view! { <Stamp /> }.into_any(), "Stamp"),
|
||||
(view! { <Star /> }.into_any(), "Star"),
|
||||
|
|
|
|||
|
|
@ -1841,6 +1841,7 @@ pub fn IconsS() -> Html {
|
|||
(html! { <SquaresSubtract /> }, "Squares Subtract"),
|
||||
(html! { <SquaresUnite /> }, "Squares Unite"),
|
||||
(html! { <Squircle /> }, "Squircle"),
|
||||
(html! { <SquircleDashed /> }, "Squircle Dashed"),
|
||||
(html! { <Squirrel /> }, "Squirrel"),
|
||||
(html! { <Stamp /> }, "Stamp"),
|
||||
(html! { <Star /> }, "Star"),
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ pub fn CircleArrowLeft(props: CircleArrowLeftProps) -> Element {
|
|||
"stroke-linecap": "round",
|
||||
"stroke-linejoin": "round",
|
||||
circle { "cx": "12", "cy": "12", "r": "10" }
|
||||
path { "d": "M16 12H8" }
|
||||
path { "d": "m12 8-4 4 4 4" }
|
||||
path { "d": "M16 12H8" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ pub fn CircleArrowRight(props: CircleArrowRightProps) -> Element {
|
|||
"stroke-linecap": "round",
|
||||
"stroke-linejoin": "round",
|
||||
circle { "cx": "12", "cy": "12", "r": "10" }
|
||||
path { "d": "M8 12h8" }
|
||||
path { "d": "m12 16 4-4-4-4" }
|
||||
path { "d": "M8 12h8" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3520,6 +3520,8 @@ mod squares_subtract;
|
|||
mod squares_unite;
|
||||
#[cfg(feature = "shapes")]
|
||||
mod squircle;
|
||||
#[cfg(any(feature = "development", feature = "shapes", feature = "design"))]
|
||||
mod squircle_dashed;
|
||||
#[cfg(feature = "animals")]
|
||||
mod squirrel;
|
||||
#[cfg(any(feature = "design", feature = "cursors", feature = "tools"))]
|
||||
|
|
@ -7598,6 +7600,8 @@ pub use squares_subtract::*;
|
|||
pub use squares_unite::*;
|
||||
#[cfg(feature = "shapes")]
|
||||
pub use squircle::*;
|
||||
#[cfg(any(feature = "development", feature = "shapes", feature = "design"))]
|
||||
pub use squircle_dashed::*;
|
||||
#[cfg(feature = "animals")]
|
||||
pub use squirrel::*;
|
||||
#[cfg(any(feature = "design", feature = "cursors", feature = "tools"))]
|
||||
|
|
|
|||
47
packages/dioxus/src/squircle_dashed.rs
Normal file
47
packages/dioxus/src/squircle_dashed.rs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
use dioxus::prelude::*;
|
||||
#[derive(Clone, PartialEq, Props)]
|
||||
pub struct SquircleDashedProps {
|
||||
#[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 SquircleDashed(props: SquircleDashedProps) -> 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": "M13.77 3.043a34 34 0 0 0-3.54 0" }
|
||||
path { "d": "M13.771 20.956a33 33 0 0 1-3.541.001" }
|
||||
path { "d": "M20.18 17.74c-.51 1.15-1.29 1.93-2.439 2.44" }
|
||||
path { "d": "M20.18 6.259c-.51-1.148-1.291-1.929-2.44-2.438" }
|
||||
path { "d": "M20.957 10.23a33 33 0 0 1 0 3.54" }
|
||||
path { "d": "M3.043 10.23a34 34 0 0 0 .001 3.541" }
|
||||
path { "d": "M6.26 20.179c-1.15-.508-1.93-1.29-2.44-2.438" }
|
||||
path { "d": "M6.26 3.82c-1.149.51-1.93 1.291-2.44 2.44" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -30,8 +30,8 @@ pub fn CircleArrowLeft(
|
|||
stroke-linejoin="round"
|
||||
>
|
||||
<circle cx="12" cy="12" r="10" />
|
||||
<path d="M16 12H8" />
|
||||
<path d="m12 8-4 4 4 4" />
|
||||
<path d="M16 12H8" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ pub fn CircleArrowRight(
|
|||
stroke-linejoin="round"
|
||||
>
|
||||
<circle cx="12" cy="12" r="10" />
|
||||
<path d="M8 12h8" />
|
||||
<path d="m12 16 4-4-4-4" />
|
||||
<path d="M8 12h8" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3520,6 +3520,8 @@ mod squares_subtract;
|
|||
mod squares_unite;
|
||||
#[cfg(feature = "shapes")]
|
||||
mod squircle;
|
||||
#[cfg(any(feature = "development", feature = "shapes", feature = "design"))]
|
||||
mod squircle_dashed;
|
||||
#[cfg(feature = "animals")]
|
||||
mod squirrel;
|
||||
#[cfg(any(feature = "design", feature = "cursors", feature = "tools"))]
|
||||
|
|
@ -7598,6 +7600,8 @@ pub use squares_subtract::*;
|
|||
pub use squares_unite::*;
|
||||
#[cfg(feature = "shapes")]
|
||||
pub use squircle::*;
|
||||
#[cfg(any(feature = "development", feature = "shapes", feature = "design"))]
|
||||
pub use squircle_dashed::*;
|
||||
#[cfg(feature = "animals")]
|
||||
pub use squirrel::*;
|
||||
#[cfg(any(feature = "design", feature = "cursors", feature = "tools"))]
|
||||
|
|
|
|||
42
packages/leptos/src/squircle_dashed.rs
Normal file
42
packages/leptos/src/squircle_dashed.rs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
use leptos::{prelude::*, svg::Svg};
|
||||
#[component]
|
||||
pub fn SquircleDashed(
|
||||
#[prop(default = 24.into(), into)] size: Signal<usize>,
|
||||
#[prop(default = "currentColor".into(), into)] color: Signal<String>,
|
||||
#[prop(default = "none".into(), into)] fill: Signal<String>,
|
||||
#[prop(default = 2.into(), into)] stroke_width: Signal<usize>,
|
||||
#[prop(default = false.into(), into)] absolute_stroke_width: Signal<bool>,
|
||||
#[prop(optional)] node_ref: NodeRef<Svg>,
|
||||
) -> impl IntoView {
|
||||
let stroke_width = Signal::derive(move || {
|
||||
if absolute_stroke_width.get() {
|
||||
stroke_width.get() * 24 / size.get()
|
||||
} else {
|
||||
stroke_width.get()
|
||||
}
|
||||
});
|
||||
view! {
|
||||
<svg
|
||||
node_ref=node_ref
|
||||
class:lucide=true
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width=size
|
||||
height=size
|
||||
viewBox="0 0 24 24"
|
||||
fill=fill
|
||||
stroke=color
|
||||
stroke-width=stroke_width
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M13.77 3.043a34 34 0 0 0-3.54 0" />
|
||||
<path d="M13.771 20.956a33 33 0 0 1-3.541.001" />
|
||||
<path d="M20.18 17.74c-.51 1.15-1.29 1.93-2.439 2.44" />
|
||||
<path d="M20.18 6.259c-.51-1.148-1.291-1.929-2.44-2.438" />
|
||||
<path d="M20.957 10.23a33 33 0 0 1 0 3.54" />
|
||||
<path d="M3.043 10.23a34 34 0 0 0 .001 3.541" />
|
||||
<path d="M6.26 20.179c-1.15-.508-1.93-1.29-2.44-2.438" />
|
||||
<path d="M6.26 3.82c-1.149.51-1.93 1.291-2.44 2.44" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
@ -42,8 +42,8 @@ pub fn CircleArrowLeft(props: &CircleArrowLeftProps) -> Html {
|
|||
stroke-linejoin="round"
|
||||
>
|
||||
<circle cx="12" cy="12" r="10" />
|
||||
<path d="M16 12H8" />
|
||||
<path d="m12 8-4 4 4 4" />
|
||||
<path d="M16 12H8" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ pub fn CircleArrowRight(props: &CircleArrowRightProps) -> Html {
|
|||
stroke-linejoin="round"
|
||||
>
|
||||
<circle cx="12" cy="12" r="10" />
|
||||
<path d="M8 12h8" />
|
||||
<path d="m12 16 4-4-4-4" />
|
||||
<path d="M8 12h8" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3522,6 +3522,8 @@ mod squares_subtract;
|
|||
mod squares_unite;
|
||||
#[cfg(feature = "shapes")]
|
||||
mod squircle;
|
||||
#[cfg(any(feature = "development", feature = "shapes", feature = "design"))]
|
||||
mod squircle_dashed;
|
||||
#[cfg(feature = "animals")]
|
||||
mod squirrel;
|
||||
#[cfg(any(feature = "design", feature = "cursors", feature = "tools"))]
|
||||
|
|
@ -7600,6 +7602,8 @@ pub use squares_subtract::*;
|
|||
pub use squares_unite::*;
|
||||
#[cfg(feature = "shapes")]
|
||||
pub use squircle::*;
|
||||
#[cfg(any(feature = "development", feature = "shapes", feature = "design"))]
|
||||
pub use squircle_dashed::*;
|
||||
#[cfg(feature = "animals")]
|
||||
pub use squirrel::*;
|
||||
#[cfg(any(feature = "design", feature = "cursors", feature = "tools"))]
|
||||
|
|
|
|||
54
packages/yew/src/squircle_dashed.rs
Normal file
54
packages/yew/src/squircle_dashed.rs
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
use yew::prelude::*;
|
||||
#[derive(PartialEq, Properties)]
|
||||
pub struct SquircleDashedProps {
|
||||
#[prop_or(24)]
|
||||
pub size: usize,
|
||||
#[prop_or(AttrValue::from("currentColor"))]
|
||||
pub color: AttrValue,
|
||||
#[prop_or(AttrValue::from("none"))]
|
||||
pub fill: AttrValue,
|
||||
#[prop_or(2)]
|
||||
pub stroke_width: usize,
|
||||
#[prop_or(false)]
|
||||
pub absolute_stroke_width: bool,
|
||||
#[prop_or_default]
|
||||
pub class: Classes,
|
||||
#[prop_or_default]
|
||||
pub style: std::option::Option<AttrValue>,
|
||||
#[prop_or_default]
|
||||
pub node_ref: NodeRef,
|
||||
}
|
||||
#[function_component]
|
||||
pub fn SquircleDashed(props: &SquircleDashedProps) -> Html {
|
||||
let stroke_width = if props.absolute_stroke_width {
|
||||
props.stroke_width * 24 / props.size
|
||||
} else {
|
||||
props.stroke_width
|
||||
};
|
||||
html! {
|
||||
<svg
|
||||
ref={props.node_ref.clone()}
|
||||
class={classes!("lucide", props.class
|
||||
.clone())}
|
||||
style={props.style.clone()}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width={props.size.to_string()}
|
||||
height={props.size.to_string()}
|
||||
viewBox="0 0 24 24"
|
||||
fill={& props.fill}
|
||||
stroke={& props.color}
|
||||
stroke-width={stroke_width.to_string()}
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M13.77 3.043a34 34 0 0 0-3.54 0" />
|
||||
<path d="M13.771 20.956a33 33 0 0 1-3.541.001" />
|
||||
<path d="M20.18 17.74c-.51 1.15-1.29 1.93-2.439 2.44" />
|
||||
<path d="M20.18 6.259c-.51-1.148-1.291-1.929-2.44-2.438" />
|
||||
<path d="M20.957 10.23a33 33 0 0 1 0 3.54" />
|
||||
<path d="M3.043 10.23a34 34 0 0 0 .001 3.541" />
|
||||
<path d="M6.26 20.179c-1.15-.508-1.93-1.29-2.44-2.438" />
|
||||
<path d="M6.26 3.82c-1.149.51-1.93 1.291-2.44 2.44" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
@ -11,5 +11,5 @@ pub const GITHUB_OWNER: &str = "RustForWeb";
|
|||
pub const GITHUB_REPO: &str = "lucide";
|
||||
|
||||
pub const UPSTREAM_GIT_URL: &str = "https://github.com/lucide-icons/lucide.git";
|
||||
pub const UPSTREAM_GIT_REF: &str = "0.520.0";
|
||||
pub const UPSTREAM_GIT_REF: &str = "0.521.0";
|
||||
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";
|
||||
|
|
|
|||
Loading…
Reference in a new issue