mirror of
https://github.com/danbulant/lucide
synced 2026-07-07 20:20:35 +00:00
feat: update to upstream v0.517.0 (#94)
Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com>
This commit is contained in:
parent
3be50de454
commit
388a529a6c
10 changed files with 163 additions and 7 deletions
|
|
@ -890,6 +890,12 @@ pub fn IconsB1() -> Element {
|
||||||
},
|
},
|
||||||
"Barcode",
|
"Barcode",
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
rsx! {
|
||||||
|
Barrel {}
|
||||||
|
},
|
||||||
|
"Barrel",
|
||||||
|
),
|
||||||
(
|
(
|
||||||
rsx! {
|
rsx! {
|
||||||
Baseline {}
|
Baseline {}
|
||||||
|
|
@ -1316,12 +1322,6 @@ pub fn IconsB1() -> Element {
|
||||||
},
|
},
|
||||||
"Book User",
|
"Book User",
|
||||||
),
|
),
|
||||||
(
|
|
||||||
rsx! {
|
|
||||||
BookX {}
|
|
||||||
},
|
|
||||||
"Book X",
|
|
||||||
),
|
|
||||||
];
|
];
|
||||||
rsx! {
|
rsx! {
|
||||||
for (icon , name) in icons {
|
for (icon , name) in icons {
|
||||||
|
|
@ -1337,6 +1337,12 @@ pub fn IconsB1() -> Element {
|
||||||
#[component]
|
#[component]
|
||||||
pub fn IconsB2() -> Element {
|
pub fn IconsB2() -> Element {
|
||||||
let icons = [
|
let icons = [
|
||||||
|
(
|
||||||
|
rsx! {
|
||||||
|
BookX {}
|
||||||
|
},
|
||||||
|
"Book X",
|
||||||
|
),
|
||||||
(
|
(
|
||||||
rsx! {
|
rsx! {
|
||||||
Bookmark {}
|
Bookmark {}
|
||||||
|
|
|
||||||
|
|
@ -233,6 +233,7 @@ pub fn IconsB() -> impl IntoView {
|
||||||
(view! { <BanknoteArrowUp /> }.into_any(), "Banknote Arrow Up"),
|
(view! { <BanknoteArrowUp /> }.into_any(), "Banknote Arrow Up"),
|
||||||
(view! { <BanknoteX /> }.into_any(), "Banknote X"),
|
(view! { <BanknoteX /> }.into_any(), "Banknote X"),
|
||||||
(view! { <Barcode /> }.into_any(), "Barcode"),
|
(view! { <Barcode /> }.into_any(), "Barcode"),
|
||||||
|
(view! { <Barrel /> }.into_any(), "Barrel"),
|
||||||
(view! { <Baseline /> }.into_any(), "Baseline"),
|
(view! { <Baseline /> }.into_any(), "Baseline"),
|
||||||
(view! { <Bath /> }.into_any(), "Bath"),
|
(view! { <Bath /> }.into_any(), "Bath"),
|
||||||
(view! { <Battery /> }.into_any(), "Battery"),
|
(view! { <Battery /> }.into_any(), "Battery"),
|
||||||
|
|
|
||||||
|
|
@ -239,6 +239,7 @@ pub fn IconsB() -> Html {
|
||||||
(html! { <BanknoteArrowUp /> }, "Banknote Arrow Up"),
|
(html! { <BanknoteArrowUp /> }, "Banknote Arrow Up"),
|
||||||
(html! { <BanknoteX /> }, "Banknote X"),
|
(html! { <BanknoteX /> }, "Banknote X"),
|
||||||
(html! { <Barcode /> }, "Barcode"),
|
(html! { <Barcode /> }, "Barcode"),
|
||||||
|
(html! { <Barrel /> }, "Barrel"),
|
||||||
(html! { <Baseline /> }, "Baseline"),
|
(html! { <Baseline /> }, "Baseline"),
|
||||||
(html! { <Bath /> }, "Bath"),
|
(html! { <Bath /> }, "Bath"),
|
||||||
(html! { <Battery /> }, "Battery"),
|
(html! { <Battery /> }, "Battery"),
|
||||||
|
|
|
||||||
44
packages/dioxus/src/barrel.rs
Normal file
44
packages/dioxus/src/barrel.rs
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
use dioxus::prelude::*;
|
||||||
|
#[derive(Clone, PartialEq, Props)]
|
||||||
|
pub struct BarrelProps {
|
||||||
|
#[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 Barrel(props: BarrelProps) -> 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": "M10 3a41 41 0 0 0 0 18" }
|
||||||
|
path { "d": "M14 3a41 41 0 0 1 0 18" }
|
||||||
|
path { "d": "M17 3a2 2 0 0 1 1.68.92 15.25 15.25 0 0 1 0 16.16A2 2 0 0 1 17 21H7a2 2 0 0 1-1.68-.92 15.25 15.25 0 0 1 0-16.16A2 2 0 0 1 7 3z" }
|
||||||
|
path { "d": "M3.84 17h16.32" }
|
||||||
|
path { "d": "M3.84 7h16.32" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -329,6 +329,8 @@ mod banknote_arrow_up;
|
||||||
mod banknote_x;
|
mod banknote_x;
|
||||||
#[cfg(feature = "shopping")]
|
#[cfg(feature = "shopping")]
|
||||||
mod barcode;
|
mod barcode;
|
||||||
|
#[cfg(any(feature = "food-beverage", feature = "navigation"))]
|
||||||
|
mod barrel;
|
||||||
#[cfg(feature = "text")]
|
#[cfg(feature = "text")]
|
||||||
mod baseline;
|
mod baseline;
|
||||||
#[cfg(feature = "travel")]
|
#[cfg(feature = "travel")]
|
||||||
|
|
@ -4399,6 +4401,8 @@ pub use banknote_arrow_up::*;
|
||||||
pub use banknote_x::*;
|
pub use banknote_x::*;
|
||||||
#[cfg(feature = "shopping")]
|
#[cfg(feature = "shopping")]
|
||||||
pub use barcode::*;
|
pub use barcode::*;
|
||||||
|
#[cfg(any(feature = "food-beverage", feature = "navigation"))]
|
||||||
|
pub use barrel::*;
|
||||||
#[cfg(feature = "text")]
|
#[cfg(feature = "text")]
|
||||||
pub use baseline::*;
|
pub use baseline::*;
|
||||||
#[cfg(feature = "travel")]
|
#[cfg(feature = "travel")]
|
||||||
|
|
|
||||||
39
packages/leptos/src/barrel.rs
Normal file
39
packages/leptos/src/barrel.rs
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
use leptos::{prelude::*, svg::Svg};
|
||||||
|
#[component]
|
||||||
|
pub fn Barrel(
|
||||||
|
#[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="M10 3a41 41 0 0 0 0 18" />
|
||||||
|
<path d="M14 3a41 41 0 0 1 0 18" />
|
||||||
|
<path d="M17 3a2 2 0 0 1 1.68.92 15.25 15.25 0 0 1 0 16.16A2 2 0 0 1 17 21H7a2 2 0 0 1-1.68-.92 15.25 15.25 0 0 1 0-16.16A2 2 0 0 1 7 3z" />
|
||||||
|
<path d="M3.84 17h16.32" />
|
||||||
|
<path d="M3.84 7h16.32" />
|
||||||
|
</svg>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -329,6 +329,8 @@ mod banknote_arrow_up;
|
||||||
mod banknote_x;
|
mod banknote_x;
|
||||||
#[cfg(feature = "shopping")]
|
#[cfg(feature = "shopping")]
|
||||||
mod barcode;
|
mod barcode;
|
||||||
|
#[cfg(any(feature = "food-beverage", feature = "navigation"))]
|
||||||
|
mod barrel;
|
||||||
#[cfg(feature = "text")]
|
#[cfg(feature = "text")]
|
||||||
mod baseline;
|
mod baseline;
|
||||||
#[cfg(feature = "travel")]
|
#[cfg(feature = "travel")]
|
||||||
|
|
@ -4399,6 +4401,8 @@ pub use banknote_arrow_up::*;
|
||||||
pub use banknote_x::*;
|
pub use banknote_x::*;
|
||||||
#[cfg(feature = "shopping")]
|
#[cfg(feature = "shopping")]
|
||||||
pub use barcode::*;
|
pub use barcode::*;
|
||||||
|
#[cfg(any(feature = "food-beverage", feature = "navigation"))]
|
||||||
|
pub use barrel::*;
|
||||||
#[cfg(feature = "text")]
|
#[cfg(feature = "text")]
|
||||||
pub use baseline::*;
|
pub use baseline::*;
|
||||||
#[cfg(feature = "travel")]
|
#[cfg(feature = "travel")]
|
||||||
|
|
|
||||||
53
packages/yew/src/barrel.rs
Normal file
53
packages/yew/src/barrel.rs
Normal file
|
|
@ -0,0 +1,53 @@
|
||||||
|
use yew::prelude::*;
|
||||||
|
#[derive(PartialEq, Properties)]
|
||||||
|
pub struct BarrelProps {
|
||||||
|
#[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 Barrel(props: &BarrelProps) -> 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="M10 3a41 41 0 0 0 0 18" />
|
||||||
|
<path d="M14 3a41 41 0 0 1 0 18" />
|
||||||
|
<path
|
||||||
|
d="M17 3a2 2 0 0 1 1.68.92 15.25 15.25 0 0 1 0 16.16A2 2 0 0 1 17 21H7a2 2 0 0 1-1.68-.92 15.25 15.25 0 0 1 0-16.16A2 2 0 0 1 7 3z"
|
||||||
|
/>
|
||||||
|
<path d="M3.84 17h16.32" />
|
||||||
|
<path d="M3.84 7h16.32" />
|
||||||
|
</svg>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -331,6 +331,8 @@ mod banknote_arrow_up;
|
||||||
mod banknote_x;
|
mod banknote_x;
|
||||||
#[cfg(feature = "shopping")]
|
#[cfg(feature = "shopping")]
|
||||||
mod barcode;
|
mod barcode;
|
||||||
|
#[cfg(any(feature = "food-beverage", feature = "navigation"))]
|
||||||
|
mod barrel;
|
||||||
#[cfg(feature = "text")]
|
#[cfg(feature = "text")]
|
||||||
mod baseline;
|
mod baseline;
|
||||||
#[cfg(feature = "travel")]
|
#[cfg(feature = "travel")]
|
||||||
|
|
@ -4401,6 +4403,8 @@ pub use banknote_arrow_up::*;
|
||||||
pub use banknote_x::*;
|
pub use banknote_x::*;
|
||||||
#[cfg(feature = "shopping")]
|
#[cfg(feature = "shopping")]
|
||||||
pub use barcode::*;
|
pub use barcode::*;
|
||||||
|
#[cfg(any(feature = "food-beverage", feature = "navigation"))]
|
||||||
|
pub use barrel::*;
|
||||||
#[cfg(feature = "text")]
|
#[cfg(feature = "text")]
|
||||||
pub use baseline::*;
|
pub use baseline::*;
|
||||||
#[cfg(feature = "travel")]
|
#[cfg(feature = "travel")]
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,5 @@ pub const GITHUB_OWNER: &str = "RustForWeb";
|
||||||
pub const GITHUB_REPO: &str = "lucide";
|
pub const GITHUB_REPO: &str = "lucide";
|
||||||
|
|
||||||
pub const UPSTREAM_GIT_URL: &str = "https://github.com/lucide-icons/lucide.git";
|
pub const UPSTREAM_GIT_URL: &str = "https://github.com/lucide-icons/lucide.git";
|
||||||
pub const UPSTREAM_GIT_REF: &str = "0.516.0";
|
pub const UPSTREAM_GIT_REF: &str = "0.517.0";
|
||||||
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";
|
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue