mirror of
https://github.com/danbulant/lucide
synced 2026-09-20 15:04:16 +00:00
feat: update to upstream v0.523.0 (#103)
Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com>
This commit is contained in:
parent
25c4530e72
commit
baa7efdf9d
10 changed files with 148 additions and 1 deletions
|
|
@ -1397,6 +1397,12 @@ pub fn IconsB2() -> Element {
|
||||||
},
|
},
|
||||||
"Bot Off",
|
"Bot Off",
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
rsx! {
|
||||||
|
BottleWine {}
|
||||||
|
},
|
||||||
|
"Bottle Wine",
|
||||||
|
),
|
||||||
(
|
(
|
||||||
rsx! {
|
rsx! {
|
||||||
BowArrow {}
|
BowArrow {}
|
||||||
|
|
|
||||||
|
|
@ -315,6 +315,7 @@ pub fn IconsB() -> impl IntoView {
|
||||||
(view! { <Bot /> }.into_any(), "Bot"),
|
(view! { <Bot /> }.into_any(), "Bot"),
|
||||||
(view! { <BotMessageSquare /> }.into_any(), "Bot Message Square"),
|
(view! { <BotMessageSquare /> }.into_any(), "Bot Message Square"),
|
||||||
(view! { <BotOff /> }.into_any(), "Bot Off"),
|
(view! { <BotOff /> }.into_any(), "Bot Off"),
|
||||||
|
(view! { <BottleWine /> }.into_any(), "Bottle Wine"),
|
||||||
(view! { <BowArrow /> }.into_any(), "Bow Arrow"),
|
(view! { <BowArrow /> }.into_any(), "Bow Arrow"),
|
||||||
(view! { <Box /> }.into_any(), "Box"),
|
(view! { <Box /> }.into_any(), "Box"),
|
||||||
(view! { <Boxes /> }.into_any(), "Boxes"),
|
(view! { <Boxes /> }.into_any(), "Boxes"),
|
||||||
|
|
|
||||||
|
|
@ -324,6 +324,7 @@ pub fn IconsB() -> Html {
|
||||||
(html! { <Bot /> }, "Bot"),
|
(html! { <Bot /> }, "Bot"),
|
||||||
(html! { <BotMessageSquare /> }, "Bot Message Square"),
|
(html! { <BotMessageSquare /> }, "Bot Message Square"),
|
||||||
(html! { <BotOff /> }, "Bot Off"),
|
(html! { <BotOff /> }, "Bot Off"),
|
||||||
|
(html! { <BottleWine /> }, "Bottle Wine"),
|
||||||
(html! { <BowArrow /> }, "Bow Arrow"),
|
(html! { <BowArrow /> }, "Bow Arrow"),
|
||||||
(html! { <Box /> }, "Box"),
|
(html! { <Box /> }, "Box"),
|
||||||
(html! { <Boxes /> }, "Boxes"),
|
(html! { <Boxes /> }, "Boxes"),
|
||||||
|
|
|
||||||
41
packages/dioxus/src/bottle_wine.rs
Normal file
41
packages/dioxus/src/bottle_wine.rs
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
use dioxus::prelude::*;
|
||||||
|
#[derive(Clone, PartialEq, Props)]
|
||||||
|
pub struct BottleWineProps {
|
||||||
|
#[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 BottleWine(props: BottleWineProps) -> 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 3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a6 6 0 0 0 1.2 3.6l.6.8A6 6 0 0 1 17 13v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a6 6 0 0 1 1.2-3.6l.6-.8A6 6 0 0 0 10 5z" }
|
||||||
|
path { "d": "M17 13h-4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -518,6 +518,8 @@ mod bot;
|
||||||
mod bot_message_square;
|
mod bot_message_square;
|
||||||
#[cfg(any(feature = "development", feature = "social"))]
|
#[cfg(any(feature = "development", feature = "social"))]
|
||||||
mod bot_off;
|
mod bot_off;
|
||||||
|
#[cfg(feature = "food-beverage")]
|
||||||
|
mod bottle_wine;
|
||||||
#[cfg(any(feature = "gaming", feature = "tools"))]
|
#[cfg(any(feature = "gaming", feature = "tools"))]
|
||||||
mod bow_arrow;
|
mod bow_arrow;
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
|
@ -4600,6 +4602,8 @@ pub use bot::*;
|
||||||
pub use bot_message_square::*;
|
pub use bot_message_square::*;
|
||||||
#[cfg(any(feature = "development", feature = "social"))]
|
#[cfg(any(feature = "development", feature = "social"))]
|
||||||
pub use bot_off::*;
|
pub use bot_off::*;
|
||||||
|
#[cfg(feature = "food-beverage")]
|
||||||
|
pub use bottle_wine::*;
|
||||||
#[cfg(any(feature = "gaming", feature = "tools"))]
|
#[cfg(any(feature = "gaming", feature = "tools"))]
|
||||||
pub use bow_arrow::*;
|
pub use bow_arrow::*;
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
|
|
||||||
36
packages/leptos/src/bottle_wine.rs
Normal file
36
packages/leptos/src/bottle_wine.rs
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
use leptos::{prelude::*, svg::Svg};
|
||||||
|
#[component]
|
||||||
|
pub fn BottleWine(
|
||||||
|
#[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 3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a6 6 0 0 0 1.2 3.6l.6.8A6 6 0 0 1 17 13v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a6 6 0 0 1 1.2-3.6l.6-.8A6 6 0 0 0 10 5z" />
|
||||||
|
<path d="M17 13h-4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4" />
|
||||||
|
</svg>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -518,6 +518,8 @@ mod bot;
|
||||||
mod bot_message_square;
|
mod bot_message_square;
|
||||||
#[cfg(any(feature = "development", feature = "social"))]
|
#[cfg(any(feature = "development", feature = "social"))]
|
||||||
mod bot_off;
|
mod bot_off;
|
||||||
|
#[cfg(feature = "food-beverage")]
|
||||||
|
mod bottle_wine;
|
||||||
#[cfg(any(feature = "gaming", feature = "tools"))]
|
#[cfg(any(feature = "gaming", feature = "tools"))]
|
||||||
mod bow_arrow;
|
mod bow_arrow;
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
|
@ -4600,6 +4602,8 @@ pub use bot::*;
|
||||||
pub use bot_message_square::*;
|
pub use bot_message_square::*;
|
||||||
#[cfg(any(feature = "development", feature = "social"))]
|
#[cfg(any(feature = "development", feature = "social"))]
|
||||||
pub use bot_off::*;
|
pub use bot_off::*;
|
||||||
|
#[cfg(feature = "food-beverage")]
|
||||||
|
pub use bottle_wine::*;
|
||||||
#[cfg(any(feature = "gaming", feature = "tools"))]
|
#[cfg(any(feature = "gaming", feature = "tools"))]
|
||||||
pub use bow_arrow::*;
|
pub use bow_arrow::*;
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
|
|
||||||
50
packages/yew/src/bottle_wine.rs
Normal file
50
packages/yew/src/bottle_wine.rs
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
use yew::prelude::*;
|
||||||
|
#[derive(PartialEq, Properties)]
|
||||||
|
pub struct BottleWineProps {
|
||||||
|
#[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 BottleWine(props: &BottleWineProps) -> 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 3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a6 6 0 0 0 1.2 3.6l.6.8A6 6 0 0 1 17 13v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a6 6 0 0 1 1.2-3.6l.6-.8A6 6 0 0 0 10 5z"
|
||||||
|
/>
|
||||||
|
<path d="M17 13h-4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4" />
|
||||||
|
</svg>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -520,6 +520,8 @@ mod bot;
|
||||||
mod bot_message_square;
|
mod bot_message_square;
|
||||||
#[cfg(any(feature = "development", feature = "social"))]
|
#[cfg(any(feature = "development", feature = "social"))]
|
||||||
mod bot_off;
|
mod bot_off;
|
||||||
|
#[cfg(feature = "food-beverage")]
|
||||||
|
mod bottle_wine;
|
||||||
#[cfg(any(feature = "gaming", feature = "tools"))]
|
#[cfg(any(feature = "gaming", feature = "tools"))]
|
||||||
mod bow_arrow;
|
mod bow_arrow;
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
|
@ -4602,6 +4604,8 @@ pub use bot::*;
|
||||||
pub use bot_message_square::*;
|
pub use bot_message_square::*;
|
||||||
#[cfg(any(feature = "development", feature = "social"))]
|
#[cfg(any(feature = "development", feature = "social"))]
|
||||||
pub use bot_off::*;
|
pub use bot_off::*;
|
||||||
|
#[cfg(feature = "food-beverage")]
|
||||||
|
pub use bottle_wine::*;
|
||||||
#[cfg(any(feature = "gaming", feature = "tools"))]
|
#[cfg(any(feature = "gaming", feature = "tools"))]
|
||||||
pub use bow_arrow::*;
|
pub use bow_arrow::*;
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
|
|
||||||
|
|
@ -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.522.0";
|
pub const UPSTREAM_GIT_REF: &str = "0.523.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