mirror of
https://github.com/danbulant/lucide
synced 2026-05-19 04:18:41 +00:00
feat: update to upstream v0.509.0 (#79)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
3c1827b752
commit
303c67c904
13 changed files with 163 additions and 7 deletions
|
|
@ -4529,6 +4529,12 @@ pub fn IconsG1() -> Element {
|
|||
},
|
||||
"Goal",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
Gpu {}
|
||||
},
|
||||
"Gpu",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
Grab {}
|
||||
|
|
|
|||
|
|
@ -917,6 +917,7 @@ pub fn IconsG() -> impl IntoView {
|
|||
(view! { <Globe /> }.into_any(), "Globe"),
|
||||
(view! { <GlobeLock /> }.into_any(), "Globe Lock"),
|
||||
(view! { <Goal /> }.into_any(), "Goal"),
|
||||
(view! { <Gpu /> }.into_any(), "Gpu"),
|
||||
(view! { <Grab /> }.into_any(), "Grab"),
|
||||
(view! { <GraduationCap /> }.into_any(), "Graduation Cap"),
|
||||
(view! { <Grape /> }.into_any(), "Grape"),
|
||||
|
|
|
|||
|
|
@ -948,6 +948,7 @@ pub fn IconsG() -> Html {
|
|||
(html! { <Globe /> }, "Globe"),
|
||||
(html! { <GlobeLock /> }, "Globe Lock"),
|
||||
(html! { <Goal /> }, "Goal"),
|
||||
(html! { <Gpu /> }, "Gpu"),
|
||||
(html! { <Grab /> }, "Grab"),
|
||||
(html! { <GraduationCap /> }, "Graduation Cap"),
|
||||
(html! { <Grape /> }, "Grape"),
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ pub fn Axe(props: AxeProps) -> Element {
|
|||
"stroke-width": "{stroke_width}",
|
||||
"stroke-linecap": "round",
|
||||
"stroke-linejoin": "round",
|
||||
path { "d": "m14 12-8.5 8.5a2.12 2.12 0 1 1-3-3L11 9" }
|
||||
path { "d": "M15 13 9 7l4-4 6 6h3a8 8 0 0 1-7 7z" }
|
||||
path { "d": "m14 12-8.381 8.38a1 1 0 0 1-3.001-3L11 9" }
|
||||
path { "d": "M15 15.5a.5.5 0 0 0 .5.5A6.5 6.5 0 0 0 22 9.5a.5.5 0 0 0-.5-.5h-1.672a2 2 0 0 1-1.414-.586l-5.062-5.062a1.205 1.205 0 0 0-1.704 0L9.352 5.648a1.205 1.205 0 0 0 0 1.704l5.062 5.062A2 2 0 0 1 15 13.828z" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
44
packages/dioxus/src/gpu.rs
Normal file
44
packages/dioxus/src/gpu.rs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
use dioxus::prelude::*;
|
||||
#[derive(Clone, PartialEq, Props)]
|
||||
pub struct GpuProps {
|
||||
#[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 Gpu(props: GpuProps) -> 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": "M2 21V3" }
|
||||
path { "d": "M2 5h18a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2.26" }
|
||||
path { "d": "M7 17v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3" }
|
||||
circle { "cx": "16", "cy": "11", "r": "2" }
|
||||
circle { "cx": "8", "cy": "11", "r": "2" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1706,6 +1706,8 @@ mod globe;
|
|||
mod globe_lock;
|
||||
#[cfg(feature = "gaming")]
|
||||
mod goal;
|
||||
#[cfg(any(feature = "devices", feature = "gaming"))]
|
||||
mod gpu;
|
||||
#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))]
|
||||
mod grab;
|
||||
#[cfg(feature = "buildings")]
|
||||
|
|
@ -5744,6 +5746,8 @@ pub use globe::*;
|
|||
pub use globe_lock::*;
|
||||
#[cfg(feature = "gaming")]
|
||||
pub use goal::*;
|
||||
#[cfg(any(feature = "devices", feature = "gaming"))]
|
||||
pub use gpu::*;
|
||||
#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))]
|
||||
pub use grab::*;
|
||||
#[cfg(feature = "buildings")]
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ pub fn Axe(
|
|||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="m14 12-8.5 8.5a2.12 2.12 0 1 1-3-3L11 9" />
|
||||
<path d="M15 13 9 7l4-4 6 6h3a8 8 0 0 1-7 7z" />
|
||||
<path d="m14 12-8.381 8.38a1 1 0 0 1-3.001-3L11 9" />
|
||||
<path d="M15 15.5a.5.5 0 0 0 .5.5A6.5 6.5 0 0 0 22 9.5a.5.5 0 0 0-.5-.5h-1.672a2 2 0 0 1-1.414-.586l-5.062-5.062a1.205 1.205 0 0 0-1.704 0L9.352 5.648a1.205 1.205 0 0 0 0 1.704l5.062 5.062A2 2 0 0 1 15 13.828z" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
39
packages/leptos/src/gpu.rs
Normal file
39
packages/leptos/src/gpu.rs
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
use leptos::{prelude::*, svg::Svg};
|
||||
#[component]
|
||||
pub fn Gpu(
|
||||
#[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="M2 21V3" />
|
||||
<path d="M2 5h18a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2.26" />
|
||||
<path d="M7 17v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3" />
|
||||
<circle cx="16" cy="11" r="2" />
|
||||
<circle cx="8" cy="11" r="2" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
@ -1706,6 +1706,8 @@ mod globe;
|
|||
mod globe_lock;
|
||||
#[cfg(feature = "gaming")]
|
||||
mod goal;
|
||||
#[cfg(any(feature = "devices", feature = "gaming"))]
|
||||
mod gpu;
|
||||
#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))]
|
||||
mod grab;
|
||||
#[cfg(feature = "buildings")]
|
||||
|
|
@ -5744,6 +5746,8 @@ pub use globe::*;
|
|||
pub use globe_lock::*;
|
||||
#[cfg(feature = "gaming")]
|
||||
pub use goal::*;
|
||||
#[cfg(any(feature = "devices", feature = "gaming"))]
|
||||
pub use gpu::*;
|
||||
#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))]
|
||||
pub use grab::*;
|
||||
#[cfg(feature = "buildings")]
|
||||
|
|
|
|||
|
|
@ -41,8 +41,10 @@ pub fn Axe(props: &AxeProps) -> Html {
|
|||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="m14 12-8.5 8.5a2.12 2.12 0 1 1-3-3L11 9" />
|
||||
<path d="M15 13 9 7l4-4 6 6h3a8 8 0 0 1-7 7z" />
|
||||
<path d="m14 12-8.381 8.38a1 1 0 0 1-3.001-3L11 9" />
|
||||
<path
|
||||
d="M15 15.5a.5.5 0 0 0 .5.5A6.5 6.5 0 0 0 22 9.5a.5.5 0 0 0-.5-.5h-1.672a2 2 0 0 1-1.414-.586l-5.062-5.062a1.205 1.205 0 0 0-1.704 0L9.352 5.648a1.205 1.205 0 0 0 0 1.704l5.062 5.062A2 2 0 0 1 15 13.828z"
|
||||
/>
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
51
packages/yew/src/gpu.rs
Normal file
51
packages/yew/src/gpu.rs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
use yew::prelude::*;
|
||||
#[derive(PartialEq, Properties)]
|
||||
pub struct GpuProps {
|
||||
#[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 Gpu(props: &GpuProps) -> 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="M2 21V3" />
|
||||
<path d="M2 5h18a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2.26" />
|
||||
<path d="M7 17v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3" />
|
||||
<circle cx="16" cy="11" r="2" />
|
||||
<circle cx="8" cy="11" r="2" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
@ -1708,6 +1708,8 @@ mod globe;
|
|||
mod globe_lock;
|
||||
#[cfg(feature = "gaming")]
|
||||
mod goal;
|
||||
#[cfg(any(feature = "devices", feature = "gaming"))]
|
||||
mod gpu;
|
||||
#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))]
|
||||
mod grab;
|
||||
#[cfg(feature = "buildings")]
|
||||
|
|
@ -5746,6 +5748,8 @@ pub use globe::*;
|
|||
pub use globe_lock::*;
|
||||
#[cfg(feature = "gaming")]
|
||||
pub use goal::*;
|
||||
#[cfg(any(feature = "devices", feature = "gaming"))]
|
||||
pub use gpu::*;
|
||||
#[cfg(any(feature = "cursors", feature = "design", feature = "layout"))]
|
||||
pub use grab::*;
|
||||
#[cfg(feature = "buildings")]
|
||||
|
|
|
|||
|
|
@ -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.508.0";
|
||||
pub const UPSTREAM_GIT_REF: &str = "0.509.0";
|
||||
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";
|
||||
|
|
|
|||
Loading…
Reference in a new issue