mirror of
https://github.com/danbulant/lucide
synced 2026-06-24 17:22:00 +00:00
feat: update to upstream v0.510.0 (#80)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
303c67c904
commit
c29ff0a38e
13 changed files with 167 additions and 19 deletions
|
|
@ -1982,6 +1982,12 @@ pub fn IconsC1() -> Element {
|
|||
},
|
||||
"Check Check",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
CheckLine {}
|
||||
},
|
||||
"Check Line",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
ChefHat {}
|
||||
|
|
@ -2144,12 +2150,6 @@ pub fn IconsC1() -> Element {
|
|||
},
|
||||
"Circle Arrow Out Down Right",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
CircleArrowOutUpLeft {}
|
||||
},
|
||||
"Circle Arrow Out Up Left",
|
||||
),
|
||||
];
|
||||
rsx! {
|
||||
for (icon , name) in icons {
|
||||
|
|
@ -2165,6 +2165,12 @@ pub fn IconsC1() -> Element {
|
|||
#[component]
|
||||
pub fn IconsC2() -> Element {
|
||||
let icons = [
|
||||
(
|
||||
rsx! {
|
||||
CircleArrowOutUpLeft {}
|
||||
},
|
||||
"Circle Arrow Out Up Left",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
CircleArrowOutUpRight {}
|
||||
|
|
@ -2759,12 +2765,6 @@ pub fn IconsC2() -> Element {
|
|||
},
|
||||
"Columns 4",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
Combine {}
|
||||
},
|
||||
"Combine",
|
||||
),
|
||||
];
|
||||
rsx! {
|
||||
for (icon , name) in icons {
|
||||
|
|
@ -2780,6 +2780,12 @@ pub fn IconsC2() -> Element {
|
|||
#[component]
|
||||
pub fn IconsC3() -> Element {
|
||||
let icons = [
|
||||
(
|
||||
rsx! {
|
||||
Combine {}
|
||||
},
|
||||
"Combine",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
Command {}
|
||||
|
|
|
|||
|
|
@ -433,6 +433,7 @@ pub fn IconsC() -> impl IntoView {
|
|||
(view! { <ChartSpline /> }.into_any(), "Chart Spline"),
|
||||
(view! { <Check /> }.into_any(), "Check"),
|
||||
(view! { <CheckCheck /> }.into_any(), "Check Check"),
|
||||
(view! { <CheckLine /> }.into_any(), "Check Line"),
|
||||
(view! { <ChefHat /> }.into_any(), "Chef Hat"),
|
||||
(view! { <Cherry /> }.into_any(), "Cherry"),
|
||||
(view! { <ChevronDown /> }.into_any(), "Chevron Down"),
|
||||
|
|
|
|||
|
|
@ -450,6 +450,7 @@ pub fn IconsC() -> Html {
|
|||
(html! { <ChartSpline /> }, "Chart Spline"),
|
||||
(html! { <Check /> }, "Check"),
|
||||
(html! { <CheckCheck /> }, "Check Check"),
|
||||
(html! { <CheckLine /> }, "Check Line"),
|
||||
(html! { <ChefHat /> }, "Chef Hat"),
|
||||
(html! { <Cherry /> }, "Cherry"),
|
||||
(html! { <ChevronDown /> }, "Chevron Down"),
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ pub fn Brackets(props: BracketsProps) -> Element {
|
|||
"stroke-width": "{stroke_width}",
|
||||
"stroke-linecap": "round",
|
||||
"stroke-linejoin": "round",
|
||||
path { "d": "M16 3h2a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-2" }
|
||||
path { "d": "M8 21H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h2" }
|
||||
path { "d": "M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3" }
|
||||
path { "d": "M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
42
packages/dioxus/src/check_line.rs
Normal file
42
packages/dioxus/src/check_line.rs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
use dioxus::prelude::*;
|
||||
#[derive(Clone, PartialEq, Props)]
|
||||
pub struct CheckLineProps {
|
||||
#[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 CheckLine(props: CheckLineProps) -> 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": "M20 4L9 15" }
|
||||
path { "d": "M21 19L3 19" }
|
||||
path { "d": "M9 15L4 10" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -738,6 +738,8 @@ mod chart_spline;
|
|||
mod check;
|
||||
#[cfg(feature = "notifications")]
|
||||
mod check_check;
|
||||
#[cfg(feature = "notifications")]
|
||||
mod check_line;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
mod chef_hat;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
|
|
@ -4778,6 +4780,8 @@ pub use chart_spline::*;
|
|||
pub use check::*;
|
||||
#[cfg(feature = "notifications")]
|
||||
pub use check_check::*;
|
||||
#[cfg(feature = "notifications")]
|
||||
pub use check_line::*;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
pub use chef_hat::*;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@ pub fn Brackets(
|
|||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M16 3h2a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-2" />
|
||||
<path d="M8 21H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h2" />
|
||||
<path d="M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3" />
|
||||
<path d="M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
37
packages/leptos/src/check_line.rs
Normal file
37
packages/leptos/src/check_line.rs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
use leptos::{prelude::*, svg::Svg};
|
||||
#[component]
|
||||
pub fn CheckLine(
|
||||
#[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="M20 4L9 15" />
|
||||
<path d="M21 19L3 19" />
|
||||
<path d="M9 15L4 10" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
@ -738,6 +738,8 @@ mod chart_spline;
|
|||
mod check;
|
||||
#[cfg(feature = "notifications")]
|
||||
mod check_check;
|
||||
#[cfg(feature = "notifications")]
|
||||
mod check_line;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
mod chef_hat;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
|
|
@ -4778,6 +4780,8 @@ pub use chart_spline::*;
|
|||
pub use check::*;
|
||||
#[cfg(feature = "notifications")]
|
||||
pub use check_check::*;
|
||||
#[cfg(feature = "notifications")]
|
||||
pub use check_line::*;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
pub use chef_hat::*;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
|
|
|
|||
|
|
@ -41,8 +41,8 @@ pub fn Brackets(props: &BracketsProps) -> Html {
|
|||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M16 3h2a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-2" />
|
||||
<path d="M8 21H6a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h2" />
|
||||
<path d="M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3" />
|
||||
<path d="M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
49
packages/yew/src/check_line.rs
Normal file
49
packages/yew/src/check_line.rs
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
use yew::prelude::*;
|
||||
#[derive(PartialEq, Properties)]
|
||||
pub struct CheckLineProps {
|
||||
#[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 CheckLine(props: &CheckLineProps) -> 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="M20 4L9 15" />
|
||||
<path d="M21 19L3 19" />
|
||||
<path d="M9 15L4 10" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
@ -740,6 +740,8 @@ mod chart_spline;
|
|||
mod check;
|
||||
#[cfg(feature = "notifications")]
|
||||
mod check_check;
|
||||
#[cfg(feature = "notifications")]
|
||||
mod check_line;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
mod chef_hat;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
|
|
@ -4780,6 +4782,8 @@ pub use chart_spline::*;
|
|||
pub use check::*;
|
||||
#[cfg(feature = "notifications")]
|
||||
pub use check_check::*;
|
||||
#[cfg(feature = "notifications")]
|
||||
pub use check_line::*;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
pub use chef_hat::*;
|
||||
#[cfg(feature = "food-beverage")]
|
||||
|
|
|
|||
|
|
@ -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.509.0";
|
||||
pub const UPSTREAM_GIT_REF: &str = "0.510.0";
|
||||
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";
|
||||
|
|
|
|||
Loading…
Reference in a new issue