mirror of
https://github.com/danbulant/lucide
synced 2026-06-24 01:01:53 +00:00
feat: update to upstream v0.529.0 (#122)
Co-authored-by: rust-for-web[bot] <191031261+rust-for-web[bot]@users.noreply.github.com>
This commit is contained in:
parent
3defd50ea4
commit
7cefd141ca
19 changed files with 353 additions and 69 deletions
|
|
@ -5612,12 +5612,6 @@ pub fn IconsL1() -> Element {
|
|||
},
|
||||
"Locate Off",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
LocationEdit {}
|
||||
},
|
||||
"Location Edit",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
Lock {}
|
||||
|
|
@ -5765,6 +5759,12 @@ pub fn IconsM1() -> Element {
|
|||
},
|
||||
"Map",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
MapMinus {}
|
||||
},
|
||||
"Map Minus",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
MapPin {}
|
||||
|
|
@ -5807,6 +5807,12 @@ pub fn IconsM1() -> Element {
|
|||
},
|
||||
"Map Pin Off",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
MapPinPen {}
|
||||
},
|
||||
"Map Pin Pen",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
MapPinPlus {}
|
||||
|
|
@ -6275,18 +6281,6 @@ pub fn IconsM1() -> Element {
|
|||
},
|
||||
"Mouse Pointer",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
MousePointer2 {}
|
||||
},
|
||||
"Mouse Pointer 2",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
MousePointerBan {}
|
||||
},
|
||||
"Mouse Pointer Ban",
|
||||
),
|
||||
];
|
||||
rsx! {
|
||||
for (icon , name) in icons {
|
||||
|
|
@ -6302,6 +6296,18 @@ pub fn IconsM1() -> Element {
|
|||
#[component]
|
||||
pub fn IconsM2() -> Element {
|
||||
let icons = [
|
||||
(
|
||||
rsx! {
|
||||
MousePointer2 {}
|
||||
},
|
||||
"Mouse Pointer 2",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
MousePointerBan {}
|
||||
},
|
||||
"Mouse Pointer Ban",
|
||||
),
|
||||
(
|
||||
rsx! {
|
||||
MousePointerClick {}
|
||||
|
|
|
|||
|
|
@ -1170,7 +1170,6 @@ pub fn IconsL() -> impl IntoView {
|
|||
(view! { <Locate /> }.into_any(), "Locate"),
|
||||
(view! { <LocateFixed /> }.into_any(), "Locate Fixed"),
|
||||
(view! { <LocateOff /> }.into_any(), "Locate Off"),
|
||||
(view! { <LocationEdit /> }.into_any(), "Location Edit"),
|
||||
(view! { <Lock /> }.into_any(), "Lock"),
|
||||
(view! { <LockKeyhole /> }.into_any(), "Lock Keyhole"),
|
||||
(view! { <LockKeyholeOpen /> }.into_any(), "Lock Keyhole Open"),
|
||||
|
|
@ -1210,6 +1209,7 @@ pub fn IconsM() -> impl IntoView {
|
|||
(view! { <Mailbox /> }.into_any(), "Mailbox"),
|
||||
(view! { <Mails /> }.into_any(), "Mails"),
|
||||
(view! { <Map /> }.into_any(), "Map"),
|
||||
(view! { <MapMinus /> }.into_any(), "Map Minus"),
|
||||
(view! { <MapPin /> }.into_any(), "Map Pin"),
|
||||
(view! { <MapPinCheck /> }.into_any(), "Map Pin Check"),
|
||||
(view! { <MapPinCheckInside /> }.into_any(), "Map Pin Check Inside"),
|
||||
|
|
@ -1217,6 +1217,7 @@ pub fn IconsM() -> impl IntoView {
|
|||
(view! { <MapPinMinus /> }.into_any(), "Map Pin Minus"),
|
||||
(view! { <MapPinMinusInside /> }.into_any(), "Map Pin Minus Inside"),
|
||||
(view! { <MapPinOff /> }.into_any(), "Map Pin Off"),
|
||||
(view! { <MapPinPen /> }.into_any(), "Map Pin Pen"),
|
||||
(view! { <MapPinPlus /> }.into_any(), "Map Pin Plus"),
|
||||
(view! { <MapPinPlusInside /> }.into_any(), "Map Pin Plus Inside"),
|
||||
(view! { <MapPinX /> }.into_any(), "Map Pin X"),
|
||||
|
|
|
|||
|
|
@ -1196,7 +1196,6 @@ pub fn IconsL() -> Html {
|
|||
(html! { <Locate /> }, "Locate"),
|
||||
(html! { <LocateFixed /> }, "Locate Fixed"),
|
||||
(html! { <LocateOff /> }, "Locate Off"),
|
||||
(html! { <LocationEdit /> }, "Location Edit"),
|
||||
(html! { <Lock /> }, "Lock"),
|
||||
(html! { <LockKeyhole /> }, "Lock Keyhole"),
|
||||
(html! { <LockKeyholeOpen /> }, "Lock Keyhole Open"),
|
||||
|
|
@ -1235,6 +1234,7 @@ pub fn IconsM() -> Html {
|
|||
(html! { <Mailbox /> }, "Mailbox"),
|
||||
(html! { <Mails /> }, "Mails"),
|
||||
(html! { <Map /> }, "Map"),
|
||||
(html! { <MapMinus /> }, "Map Minus"),
|
||||
(html! { <MapPin /> }, "Map Pin"),
|
||||
(html! { <MapPinCheck /> }, "Map Pin Check"),
|
||||
(html! { <MapPinCheckInside /> }, "Map Pin Check Inside"),
|
||||
|
|
@ -1242,6 +1242,7 @@ pub fn IconsM() -> Html {
|
|||
(html! { <MapPinMinus /> }, "Map Pin Minus"),
|
||||
(html! { <MapPinMinusInside /> }, "Map Pin Minus Inside"),
|
||||
(html! { <MapPinOff /> }, "Map Pin Off"),
|
||||
(html! { <MapPinPen /> }, "Map Pin Pen"),
|
||||
(html! { <MapPinPlus /> }, "Map Pin Plus"),
|
||||
(html! { <MapPinPlusInside /> }, "Map Pin Plus Inside"),
|
||||
(html! { <MapPinX /> }, "Map Pin X"),
|
||||
|
|
|
|||
|
|
@ -34,15 +34,14 @@ pub fn Castle(props: CastleProps) -> Element {
|
|||
"stroke-width": "{stroke_width}",
|
||||
"stroke-linecap": "round",
|
||||
"stroke-linejoin": "round",
|
||||
path { "d": "M22 20v-9H2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2Z" }
|
||||
path { "d": "M18 11V4H6v7" }
|
||||
path { "d": "M15 22v-4a3 3 0 0 0-3-3a3 3 0 0 0-3 3v4" }
|
||||
path { "d": "M22 11V9" }
|
||||
path { "d": "M2 11V9" }
|
||||
path { "d": "M6 4V2" }
|
||||
path { "d": "M18 4V2" }
|
||||
path { "d": "M10 4V2" }
|
||||
path { "d": "M14 4V2" }
|
||||
path { "d": "M10 5V3" }
|
||||
path { "d": "M14 5V3" }
|
||||
path { "d": "M15 21v-3a3 3 0 0 0-6 0v3" }
|
||||
path { "d": "M18 3v8" }
|
||||
path { "d": "M18 5H6" }
|
||||
path { "d": "M22 11H2" }
|
||||
path { "d": "M22 9v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9" }
|
||||
path { "d": "M6 3v8" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2172,8 +2172,6 @@ mod locate;
|
|||
mod locate_fixed;
|
||||
#[cfg(feature = "navigation")]
|
||||
mod locate_off;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod location_edit;
|
||||
#[cfg(feature = "security")]
|
||||
mod lock;
|
||||
#[cfg(feature = "security")]
|
||||
|
|
@ -2218,6 +2216,8 @@ mod mailbox;
|
|||
mod mails;
|
||||
#[cfg(any(feature = "text", feature = "navigation"))]
|
||||
mod map;
|
||||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
mod map_minus;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
|
|
@ -2233,6 +2233,8 @@ mod map_pin_minus_inside;
|
|||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
mod map_pin_off;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin_pen;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin_plus;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin_plus_inside;
|
||||
|
|
@ -6286,8 +6288,6 @@ pub use locate::*;
|
|||
pub use locate_fixed::*;
|
||||
#[cfg(feature = "navigation")]
|
||||
pub use locate_off::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use location_edit::*;
|
||||
#[cfg(feature = "security")]
|
||||
pub use lock::*;
|
||||
#[cfg(feature = "security")]
|
||||
|
|
@ -6332,6 +6332,8 @@ pub use mailbox::*;
|
|||
pub use mails::*;
|
||||
#[cfg(any(feature = "text", feature = "navigation"))]
|
||||
pub use map::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
pub use map_minus::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
|
|
@ -6347,6 +6349,8 @@ pub use map_pin_minus_inside::*;
|
|||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
pub use map_pin_off::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin_pen::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin_plus::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin_plus_inside::*;
|
||||
|
|
|
|||
43
packages/dioxus/src/map_minus.rs
Normal file
43
packages/dioxus/src/map_minus.rs
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
use dioxus::prelude::*;
|
||||
#[derive(Clone, PartialEq, Props)]
|
||||
pub struct MapMinusProps {
|
||||
#[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 MapMinus(props: MapMinusProps) -> 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": "m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V14" }
|
||||
path { "d": "M15 5.764V14" }
|
||||
path { "d": "M21 18h-6" }
|
||||
path { "d": "M9 3.236v15" }
|
||||
}
|
||||
}
|
||||
}
|
||||
42
packages/dioxus/src/map_pin_pen.rs
Normal file
42
packages/dioxus/src/map_pin_pen.rs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
use dioxus::prelude::*;
|
||||
#[derive(Clone, PartialEq, Props)]
|
||||
pub struct MapPinPenProps {
|
||||
#[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 MapPinPen(props: MapPinPenProps) -> 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": "M17.97 9.304A8 8 0 0 0 2 10c0 4.69 4.887 9.562 7.022 11.468" }
|
||||
path { "d": "M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z" }
|
||||
circle { "cx": "10", "cy": "10", "r": "3" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -34,9 +34,9 @@ pub fn Shovel(props: ShovelProps) -> Element {
|
|||
"stroke-width": "{stroke_width}",
|
||||
"stroke-linecap": "round",
|
||||
"stroke-linejoin": "round",
|
||||
path { "d": "M2 22v-5l5-5 5 5-5 5z" }
|
||||
path { "d": "M9.5 14.5 16 8" }
|
||||
path { "d": "m17 2 5 5-.5.5a3.53 3.53 0 0 1-5 0s0 0 0 0a3.53 3.53 0 0 1 0-5L17 2" }
|
||||
path { "d": "M21.56 4.56a1.5 1.5 0 0 1 0 2.122l-.47.47a3 3 0 0 1-4.212-.03 3 3 0 0 1 0-4.243l.44-.44a1.5 1.5 0 0 1 2.121 0z" }
|
||||
path { "d": "M3 22a1 1 0 0 1-1-1v-3.586a1 1 0 0 1 .293-.707l3.355-3.355a1.205 1.205 0 0 1 1.704 0l3.296 3.296a1.205 1.205 0 0 1 0 1.704l-3.355 3.355a1 1 0 0 1-.707.293z" }
|
||||
path { "d": "m9 15 7.879-7.878" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,15 +29,14 @@ pub fn Castle(
|
|||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M22 20v-9H2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2Z" />
|
||||
<path d="M18 11V4H6v7" />
|
||||
<path d="M15 22v-4a3 3 0 0 0-3-3a3 3 0 0 0-3 3v4" />
|
||||
<path d="M22 11V9" />
|
||||
<path d="M2 11V9" />
|
||||
<path d="M6 4V2" />
|
||||
<path d="M18 4V2" />
|
||||
<path d="M10 4V2" />
|
||||
<path d="M14 4V2" />
|
||||
<path d="M10 5V3" />
|
||||
<path d="M14 5V3" />
|
||||
<path d="M15 21v-3a3 3 0 0 0-6 0v3" />
|
||||
<path d="M18 3v8" />
|
||||
<path d="M18 5H6" />
|
||||
<path d="M22 11H2" />
|
||||
<path d="M22 9v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9" />
|
||||
<path d="M6 3v8" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2172,8 +2172,6 @@ mod locate;
|
|||
mod locate_fixed;
|
||||
#[cfg(feature = "navigation")]
|
||||
mod locate_off;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod location_edit;
|
||||
#[cfg(feature = "security")]
|
||||
mod lock;
|
||||
#[cfg(feature = "security")]
|
||||
|
|
@ -2218,6 +2216,8 @@ mod mailbox;
|
|||
mod mails;
|
||||
#[cfg(any(feature = "text", feature = "navigation"))]
|
||||
mod map;
|
||||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
mod map_minus;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
|
|
@ -2233,6 +2233,8 @@ mod map_pin_minus_inside;
|
|||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
mod map_pin_off;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin_pen;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin_plus;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin_plus_inside;
|
||||
|
|
@ -6286,8 +6288,6 @@ pub use locate::*;
|
|||
pub use locate_fixed::*;
|
||||
#[cfg(feature = "navigation")]
|
||||
pub use locate_off::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use location_edit::*;
|
||||
#[cfg(feature = "security")]
|
||||
pub use lock::*;
|
||||
#[cfg(feature = "security")]
|
||||
|
|
@ -6332,6 +6332,8 @@ pub use mailbox::*;
|
|||
pub use mails::*;
|
||||
#[cfg(any(feature = "text", feature = "navigation"))]
|
||||
pub use map::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
pub use map_minus::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
|
|
@ -6347,6 +6349,8 @@ pub use map_pin_minus_inside::*;
|
|||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
pub use map_pin_off::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin_pen::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin_plus::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin_plus_inside::*;
|
||||
|
|
|
|||
38
packages/leptos/src/map_minus.rs
Normal file
38
packages/leptos/src/map_minus.rs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
use leptos::{prelude::*, svg::Svg};
|
||||
#[component]
|
||||
pub fn MapMinus(
|
||||
#[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="m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V14" />
|
||||
<path d="M15 5.764V14" />
|
||||
<path d="M21 18h-6" />
|
||||
<path d="M9 3.236v15" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
37
packages/leptos/src/map_pin_pen.rs
Normal file
37
packages/leptos/src/map_pin_pen.rs
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
use leptos::{prelude::*, svg::Svg};
|
||||
#[component]
|
||||
pub fn MapPinPen(
|
||||
#[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="M17.97 9.304A8 8 0 0 0 2 10c0 4.69 4.887 9.562 7.022 11.468" />
|
||||
<path d="M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z" />
|
||||
<circle cx="10" cy="10" r="3" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
@ -29,9 +29,9 @@ pub fn Shovel(
|
|||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M2 22v-5l5-5 5 5-5 5z" />
|
||||
<path d="M9.5 14.5 16 8" />
|
||||
<path d="m17 2 5 5-.5.5a3.53 3.53 0 0 1-5 0s0 0 0 0a3.53 3.53 0 0 1 0-5L17 2" />
|
||||
<path d="M21.56 4.56a1.5 1.5 0 0 1 0 2.122l-.47.47a3 3 0 0 1-4.212-.03 3 3 0 0 1 0-4.243l.44-.44a1.5 1.5 0 0 1 2.121 0z" />
|
||||
<path d="M3 22a1 1 0 0 1-1-1v-3.586a1 1 0 0 1 .293-.707l3.355-3.355a1.205 1.205 0 0 1 1.704 0l3.296 3.296a1.205 1.205 0 0 1 0 1.704l-3.355 3.355a1 1 0 0 1-.707.293z" />
|
||||
<path d="m9 15 7.879-7.878" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,15 +41,14 @@ pub fn Castle(props: &CastleProps) -> Html {
|
|||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M22 20v-9H2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2Z" />
|
||||
<path d="M18 11V4H6v7" />
|
||||
<path d="M15 22v-4a3 3 0 0 0-3-3a3 3 0 0 0-3 3v4" />
|
||||
<path d="M22 11V9" />
|
||||
<path d="M2 11V9" />
|
||||
<path d="M6 4V2" />
|
||||
<path d="M18 4V2" />
|
||||
<path d="M10 4V2" />
|
||||
<path d="M14 4V2" />
|
||||
<path d="M10 5V3" />
|
||||
<path d="M14 5V3" />
|
||||
<path d="M15 21v-3a3 3 0 0 0-6 0v3" />
|
||||
<path d="M18 3v8" />
|
||||
<path d="M18 5H6" />
|
||||
<path d="M22 11H2" />
|
||||
<path d="M22 9v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9" />
|
||||
<path d="M6 3v8" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2174,8 +2174,6 @@ mod locate;
|
|||
mod locate_fixed;
|
||||
#[cfg(feature = "navigation")]
|
||||
mod locate_off;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod location_edit;
|
||||
#[cfg(feature = "security")]
|
||||
mod lock;
|
||||
#[cfg(feature = "security")]
|
||||
|
|
@ -2220,6 +2218,8 @@ mod mailbox;
|
|||
mod mails;
|
||||
#[cfg(any(feature = "text", feature = "navigation"))]
|
||||
mod map;
|
||||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
mod map_minus;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
|
|
@ -2235,6 +2235,8 @@ mod map_pin_minus_inside;
|
|||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
mod map_pin_off;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin_pen;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin_plus;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
mod map_pin_plus_inside;
|
||||
|
|
@ -6288,8 +6290,6 @@ pub use locate::*;
|
|||
pub use locate_fixed::*;
|
||||
#[cfg(feature = "navigation")]
|
||||
pub use locate_off::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use location_edit::*;
|
||||
#[cfg(feature = "security")]
|
||||
pub use lock::*;
|
||||
#[cfg(feature = "security")]
|
||||
|
|
@ -6334,6 +6334,8 @@ pub use mailbox::*;
|
|||
pub use mails::*;
|
||||
#[cfg(any(feature = "text", feature = "navigation"))]
|
||||
pub use map::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
pub use map_minus::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
|
|
@ -6349,6 +6351,8 @@ pub use map_pin_minus_inside::*;
|
|||
#[cfg(any(feature = "navigation", feature = "travel"))]
|
||||
pub use map_pin_off::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin_pen::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin_plus::*;
|
||||
#[cfg(any(feature = "navigation", feature = "travel", feature = "account"))]
|
||||
pub use map_pin_plus_inside::*;
|
||||
|
|
|
|||
52
packages/yew/src/map_minus.rs
Normal file
52
packages/yew/src/map_minus.rs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
use yew::prelude::*;
|
||||
#[derive(PartialEq, Properties)]
|
||||
pub struct MapMinusProps {
|
||||
#[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 MapMinus(props: &MapMinusProps) -> 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="m11 19-1.106-.552a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0l4.212 2.106a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619V14"
|
||||
/>
|
||||
<path d="M15 5.764V14" />
|
||||
<path d="M21 18h-6" />
|
||||
<path d="M9 3.236v15" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
51
packages/yew/src/map_pin_pen.rs
Normal file
51
packages/yew/src/map_pin_pen.rs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
use yew::prelude::*;
|
||||
#[derive(PartialEq, Properties)]
|
||||
pub struct MapPinPenProps {
|
||||
#[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 MapPinPen(props: &MapPinPenProps) -> 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="M17.97 9.304A8 8 0 0 0 2 10c0 4.69 4.887 9.562 7.022 11.468" />
|
||||
<path
|
||||
d="M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"
|
||||
/>
|
||||
<circle cx="10" cy="10" r="3" />
|
||||
</svg>
|
||||
}
|
||||
}
|
||||
|
|
@ -41,9 +41,13 @@ pub fn Shovel(props: &ShovelProps) -> Html {
|
|||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
>
|
||||
<path d="M2 22v-5l5-5 5 5-5 5z" />
|
||||
<path d="M9.5 14.5 16 8" />
|
||||
<path d="m17 2 5 5-.5.5a3.53 3.53 0 0 1-5 0s0 0 0 0a3.53 3.53 0 0 1 0-5L17 2" />
|
||||
<path
|
||||
d="M21.56 4.56a1.5 1.5 0 0 1 0 2.122l-.47.47a3 3 0 0 1-4.212-.03 3 3 0 0 1 0-4.243l.44-.44a1.5 1.5 0 0 1 2.121 0z"
|
||||
/>
|
||||
<path
|
||||
d="M3 22a1 1 0 0 1-1-1v-3.586a1 1 0 0 1 .293-.707l3.355-3.355a1.205 1.205 0 0 1 1.704 0l3.296 3.296a1.205 1.205 0 0 1 0 1.704l-3.355 3.355a1 1 0 0 1-.707.293z"
|
||||
/>
|
||||
<path d="m9 15 7.879-7.878" />
|
||||
</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.528.0";
|
||||
pub const UPSTREAM_GIT_REF: &str = "0.529.0";
|
||||
pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";
|
||||
|
|
|
|||
Loading…
Reference in a new issue