diff --git a/book-examples/dioxus/src/icons.rs b/book-examples/dioxus/src/icons.rs index 15c2e83..52132a7 100644 --- a/book-examples/dioxus/src/icons.rs +++ b/book-examples/dioxus/src/icons.rs @@ -3797,6 +3797,12 @@ pub fn IconsF1() -> Element { }, "File Pen Line", ), + ( + rsx! { + FilePlay {} + }, + "File Play", + ), ( rsx! { FilePlus {} @@ -3895,15 +3901,9 @@ pub fn IconsF1() -> Element { ), ( rsx! { - FileVideo {} + FileVideoCamera {} }, - "File Video", - ), - ( - rsx! { - FileVideo2 {} - }, - "File Video 2", + "File Video Camera", ), ( rsx! { @@ -4784,6 +4784,12 @@ pub fn IconsH1() -> Element { }, "Hash", ), + ( + rsx! { + HatGlasses {} + }, + "Hat Glasses", + ), ( rsx! { Haze {} @@ -8627,6 +8633,12 @@ pub fn IconsS2() -> Element { }, "Square Parking Off", ), + ( + rsx! { + SquarePause {} + }, + "Square Pause", + ), ( rsx! { SquarePen {} @@ -8723,6 +8735,12 @@ pub fn IconsS2() -> Element { }, "Square Stack", ), + ( + rsx! { + SquareStop {} + }, + "Square Stop", + ), ( rsx! { SquareTerminal {} @@ -8855,18 +8873,6 @@ pub fn IconsS2() -> Element { }, "Stretch Horizontal", ), - ( - rsx! { - StretchVertical {} - }, - "Stretch Vertical", - ), - ( - rsx! { - Strikethrough {} - }, - "Strikethrough", - ), ]; rsx! { for (icon , name) in icons { @@ -8882,6 +8888,18 @@ pub fn IconsS2() -> Element { #[component] pub fn IconsS3() -> Element { let icons = [ + ( + rsx! { + StretchVertical {} + }, + "Stretch Vertical", + ), + ( + rsx! { + Strikethrough {} + }, + "Strikethrough", + ), ( rsx! { Subscript {} diff --git a/book-examples/leptos/src/icons.rs b/book-examples/leptos/src/icons.rs index cd748b4..dcb0772 100644 --- a/book-examples/leptos/src/icons.rs +++ b/book-examples/leptos/src/icons.rs @@ -780,6 +780,7 @@ pub fn IconsF() -> impl IntoView { (view! { }.into_any(), "File Output"), (view! { }.into_any(), "File Pen"), (view! { }.into_any(), "File Pen Line"), + (view! { }.into_any(), "File Play"), (view! { }.into_any(), "File Plus"), (view! { }.into_any(), "File Plus 2"), (view! { }.into_any(), "File Question Mark"), @@ -796,8 +797,7 @@ pub fn IconsF() -> impl IntoView { (view! { }.into_any(), "File Type 2"), (view! { }.into_any(), "File Up"), (view! { }.into_any(), "File User"), - (view! { }.into_any(), "File Video"), - (view! { }.into_any(), "File Video 2"), + (view! { }.into_any(), "File Video Camera"), (view! { }.into_any(), "File Volume"), (view! { }.into_any(), "File Volume 2"), (view! { }.into_any(), "File Warning"), @@ -974,6 +974,7 @@ pub fn IconsH() -> impl IntoView { (view! { }.into_any(), "Hard Drive Upload"), (view! { }.into_any(), "Hard Hat"), (view! { }.into_any(), "Hash"), + (view! { }.into_any(), "Hat Glasses"), (view! { }.into_any(), "Haze"), (view! { }.into_any(), "Hdmi Port"), (view! { }.into_any(), "Heading"), @@ -1775,6 +1776,7 @@ pub fn IconsS() -> impl IntoView { (view! { }.into_any(), "Square Mouse Pointer"), (view! { }.into_any(), "Square Parking"), (view! { }.into_any(), "Square Parking Off"), + (view! { }.into_any(), "Square Pause"), (view! { }.into_any(), "Square Pen"), (view! { }.into_any(), "Square Percent"), (view! { }.into_any(), "Square Pi"), @@ -1791,6 +1793,7 @@ pub fn IconsS() -> impl IntoView { (view! { }.into_any(), "Square Split Vertical"), (view! { }.into_any(), "Square Square"), (view! { }.into_any(), "Square Stack"), + (view! { }.into_any(), "Square Stop"), (view! { }.into_any(), "Square Terminal"), (view! { }.into_any(), "Square User"), (view! { }.into_any(), "Square User Round"), diff --git a/book-examples/yew/src/icons.rs b/book-examples/yew/src/icons.rs index b400a98..10ea3bf 100644 --- a/book-examples/yew/src/icons.rs +++ b/book-examples/yew/src/icons.rs @@ -806,6 +806,7 @@ pub fn IconsF() -> Html { (html! { }, "File Output"), (html! { }, "File Pen"), (html! { }, "File Pen Line"), + (html! { }, "File Play"), (html! { }, "File Plus"), (html! { }, "File Plus 2"), (html! { }, "File Question Mark"), @@ -822,8 +823,7 @@ pub fn IconsF() -> Html { (html! { }, "File Type 2"), (html! { }, "File Up"), (html! { }, "File User"), - (html! { }, "File Video"), - (html! { }, "File Video 2"), + (html! { }, "File Video Camera"), (html! { }, "File Volume"), (html! { }, "File Volume 2"), (html! { }, "File Warning"), @@ -1004,6 +1004,7 @@ pub fn IconsH() -> Html { (html! { }, "Hard Drive Upload"), (html! { }, "Hard Hat"), (html! { }, "Hash"), + (html! { }, "Hat Glasses"), (html! { }, "Haze"), (html! { }, "Hdmi Port"), (html! { }, "Heading"), @@ -1818,6 +1819,7 @@ pub fn IconsS() -> Html { (html! { }, "Square Mouse Pointer"), (html! { }, "Square Parking"), (html! { }, "Square Parking Off"), + (html! { }, "Square Pause"), (html! { }, "Square Pen"), (html! { }, "Square Percent"), (html! { }, "Square Pi"), @@ -1837,6 +1839,7 @@ pub fn IconsS() -> Html { (html! { }, "Square Split Vertical"), (html! { }, "Square Square"), (html! { }, "Square Stack"), + (html! { }, "Square Stop"), (html! { }, "Square Terminal"), (html! { }, "Square User"), (html! { }, "Square User Round"), diff --git a/packages/dioxus/src/arrow_big_down.rs b/packages/dioxus/src/arrow_big_down.rs index 8f82231..407bbbc 100644 --- a/packages/dioxus/src/arrow_big_down.rs +++ b/packages/dioxus/src/arrow_big_down.rs @@ -34,7 +34,7 @@ pub fn ArrowBigDown(props: ArrowBigDownProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M15 6v6h4l-7 7-7-7h4V6h6z" } + path { "d": "M15 11a1 1 0 0 0 1 1h2.939a1 1 0 0 1 .75 1.811l-6.835 6.836a1.207 1.207 0 0 1-1.707 0L4.31 13.81a1 1 0 0 1 .75-1.811H8a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1z" } } } } diff --git a/packages/dioxus/src/arrow_big_down_dash.rs b/packages/dioxus/src/arrow_big_down_dash.rs index cf731d3..8b9ddb1 100644 --- a/packages/dioxus/src/arrow_big_down_dash.rs +++ b/packages/dioxus/src/arrow_big_down_dash.rs @@ -34,8 +34,8 @@ pub fn ArrowBigDownDash(props: ArrowBigDownDashProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M15 5H9" } - path { "d": "M15 9v3h4l-7 7-7-7h4V9z" } + path { "d": "M15 11a1 1 0 0 0 1 1h2.939a1 1 0 0 1 .75 1.811l-6.835 6.836a1.207 1.207 0 0 1-1.707 0L4.31 13.81a1 1 0 0 1 .75-1.811H8a1 1 0 0 0 1-1V9a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1z" } + path { "d": "M9 4h6" } } } } diff --git a/packages/dioxus/src/arrow_big_left.rs b/packages/dioxus/src/arrow_big_left.rs index 0deb95f..9346e3b 100644 --- a/packages/dioxus/src/arrow_big_left.rs +++ b/packages/dioxus/src/arrow_big_left.rs @@ -34,7 +34,7 @@ pub fn ArrowBigLeft(props: ArrowBigLeftProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M18 15h-6v4l-7-7 7-7v4h6v6z" } + path { "d": "M13 9a1 1 0 0 1-1-1V5.061a1 1 0 0 0-1.811-.75l-6.835 6.836a1.207 1.207 0 0 0 0 1.707l6.835 6.835a1 1 0 0 0 1.811-.75V16a1 1 0 0 1 1-1h6a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z" } } } } diff --git a/packages/dioxus/src/arrow_big_left_dash.rs b/packages/dioxus/src/arrow_big_left_dash.rs index a61c2b6..be12b46 100644 --- a/packages/dioxus/src/arrow_big_left_dash.rs +++ b/packages/dioxus/src/arrow_big_left_dash.rs @@ -34,8 +34,8 @@ pub fn ArrowBigLeftDash(props: ArrowBigLeftDashProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M19 15V9" } - path { "d": "M15 15h-3v4l-7-7 7-7v4h3v6z" } + path { "d": "M13 9a1 1 0 0 1-1-1V5.061a1 1 0 0 0-1.811-.75l-6.835 6.836a1.207 1.207 0 0 0 0 1.707l6.835 6.835a1 1 0 0 0 1.811-.75V16a1 1 0 0 1 1-1h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1z" } + path { "d": "M20 9v6" } } } } diff --git a/packages/dioxus/src/arrow_big_right.rs b/packages/dioxus/src/arrow_big_right.rs index b6210df..92c1c88 100644 --- a/packages/dioxus/src/arrow_big_right.rs +++ b/packages/dioxus/src/arrow_big_right.rs @@ -34,7 +34,7 @@ pub fn ArrowBigRight(props: ArrowBigRightProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M6 9h6V5l7 7-7 7v-4H6V9z" } + path { "d": "M11 9a1 1 0 0 0 1-1V5.061a1 1 0 0 1 1.811-.75l6.836 6.836a1.207 1.207 0 0 1 0 1.707l-6.836 6.835a1 1 0 0 1-1.811-.75V16a1 1 0 0 0-1-1H5a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z" } } } } diff --git a/packages/dioxus/src/arrow_big_right_dash.rs b/packages/dioxus/src/arrow_big_right_dash.rs index c8b06bc..88834f8 100644 --- a/packages/dioxus/src/arrow_big_right_dash.rs +++ b/packages/dioxus/src/arrow_big_right_dash.rs @@ -34,8 +34,8 @@ pub fn ArrowBigRightDash(props: ArrowBigRightDashProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M5 9v6" } - path { "d": "M9 9h3V5l7 7-7 7v-4H9V9z" } + path { "d": "M11 9a1 1 0 0 0 1-1V5.061a1 1 0 0 1 1.811-.75l6.836 6.836a1.207 1.207 0 0 1 0 1.707l-6.836 6.835a1 1 0 0 1-1.811-.75V16a1 1 0 0 0-1-1H9a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1z" } + path { "d": "M4 9v6" } } } } diff --git a/packages/dioxus/src/arrow_big_up.rs b/packages/dioxus/src/arrow_big_up.rs index 1621642..5cb92fb 100644 --- a/packages/dioxus/src/arrow_big_up.rs +++ b/packages/dioxus/src/arrow_big_up.rs @@ -34,7 +34,7 @@ pub fn ArrowBigUp(props: ArrowBigUpProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M9 18v-6H5l7-7 7 7h-4v6H9z" } + path { "d": "M9 13a1 1 0 0 0-1-1H5.061a1 1 0 0 1-.75-1.811l6.836-6.835a1.207 1.207 0 0 1 1.707 0l6.835 6.835a1 1 0 0 1-.75 1.811H16a1 1 0 0 0-1 1v6a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z" } } } } diff --git a/packages/dioxus/src/arrow_big_up_dash.rs b/packages/dioxus/src/arrow_big_up_dash.rs index e872f8c..71277db 100644 --- a/packages/dioxus/src/arrow_big_up_dash.rs +++ b/packages/dioxus/src/arrow_big_up_dash.rs @@ -34,8 +34,8 @@ pub fn ArrowBigUpDash(props: ArrowBigUpDashProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M9 19h6" } - path { "d": "M9 15v-3H5l7-7 7 7h-4v3H9z" } + path { "d": "M9 13a1 1 0 0 0-1-1H5.061a1 1 0 0 1-.75-1.811l6.836-6.835a1.207 1.207 0 0 1 1.707 0l6.835 6.835a1 1 0 0 1-.75 1.811H16a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z" } + path { "d": "M9 20h6" } } } } diff --git a/packages/dioxus/src/bug_play.rs b/packages/dioxus/src/bug_play.rs index a3c4963..fa3736c 100644 --- a/packages/dioxus/src/bug_play.rs +++ b/packages/dioxus/src/bug_play.rs @@ -34,15 +34,15 @@ pub fn BugPlay(props: BugPlayProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M12.765 21.522a.5.5 0 0 1-.765-.424v-8.196a.5.5 0 0 1 .765-.424l5.878 3.674a1 1 0 0 1 0 1.696z" } + path { "d": "M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97" } + path { "d": "M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z" } path { "d": "M14.12 3.88 16 2" } - path { "d": "M18 11a4 4 0 0 0-4-4h-4a4 4 0 0 0-4 4v3a6.1 6.1 0 0 0 2 4.5" } path { "d": "M20.97 5c0 2.1-1.6 3.8-3.5 4" } path { "d": "M3 21c0-2.1 1.7-3.9 3.8-4" } path { "d": "M6 13H2" } path { "d": "M6.53 9C4.6 8.8 3 7.1 3 5" } path { "d": "m8 2 1.88 1.88" } - path { "d": "M9 7.13v-1a3.003 3.003 0 1 1 6 0v1" } + path { "d": "M9 7.13v-1a3 3 0 0 1 4.18-2.895 3 3 0 0 1 1.821 2.896v1" } } } } diff --git a/packages/dioxus/src/circle_play.rs b/packages/dioxus/src/circle_play.rs index aba84f3..5a365f0 100644 --- a/packages/dioxus/src/circle_play.rs +++ b/packages/dioxus/src/circle_play.rs @@ -34,8 +34,8 @@ pub fn CirclePlay(props: CirclePlayProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", + path { "d": "M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z" } circle { "cx": "12", "cy": "12", "r": "10" } - polygon { "points": "10 8 16 12 10 16 10 8" } } } } diff --git a/packages/dioxus/src/croissant.rs b/packages/dioxus/src/croissant.rs index dbdd339..eaf60bc 100644 --- a/packages/dioxus/src/croissant.rs +++ b/packages/dioxus/src/croissant.rs @@ -34,11 +34,11 @@ pub fn Croissant(props: CroissantProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "m4.6 13.11 5.79-3.21c1.89-1.05 4.79 1.78 3.71 3.71l-3.22 5.81C8.8 23.16.79 15.23 4.6 13.11Z" } - path { "d": "m10.5 9.5-1-2.29C9.2 6.48 8.8 6 8 6H4.5C2.79 6 2 6.5 2 8.5a7.71 7.71 0 0 0 2 4.83" } - path { "d": "M8 6c0-1.55.24-4-2-4-2 0-2.5 2.17-2.5 4" } - path { "d": "m14.5 13.5 2.29 1c.73.3 1.21.7 1.21 1.5v3.5c0 1.71-.5 2.5-2.5 2.5a7.71 7.71 0 0 1-4.83-2" } - path { "d": "M18 16c1.55 0 4-.24 4 2 0 2-2.17 2.5-4 2.5" } + path { "d": "M10.2 18H4.774a1.5 1.5 0 0 1-1.352-.97 11 11 0 0 1 .132-6.487" } + path { "d": "M18 10.2V4.774a1.5 1.5 0 0 0-.97-1.352 11 11 0 0 0-6.486.132" } + path { "d": "M18 5a4 3 0 0 1 4 3 2 2 0 0 1-2 2 10 10 0 0 0-5.139 1.42" } + path { "d": "M5 18a3 4 0 0 0 3 4 2 2 0 0 0 2-2 10 10 0 0 1 1.42-5.14" } + path { "d": "M8.709 2.554a10 10 0 0 0-6.155 6.155 1.5 1.5 0 0 0 .676 1.626l9.807 5.42a2 2 0 0 0 2.718-2.718l-5.42-9.807a1.5 1.5 0 0 0-1.626-.676" } } } } diff --git a/packages/dioxus/src/fast_forward.rs b/packages/dioxus/src/fast_forward.rs index b942edc..881b4b6 100644 --- a/packages/dioxus/src/fast_forward.rs +++ b/packages/dioxus/src/fast_forward.rs @@ -34,8 +34,8 @@ pub fn FastForward(props: FastForwardProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polygon { "points": "13 19 22 12 13 5 13 19" } - polygon { "points": "2 19 11 12 2 5 2 19" } + path { "d": "M12 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 12 18z" } + path { "d": "M2 6a2 2 0 0 1 3.414-1.414l6 6a2 2 0 0 1 0 2.828l-6 6A2 2 0 0 1 2 18z" } } } } diff --git a/packages/dioxus/src/file_play.rs b/packages/dioxus/src/file_play.rs new file mode 100644 index 0000000..426b873 --- /dev/null +++ b/packages/dioxus/src/file_play.rs @@ -0,0 +1,42 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct FilePlayProps { + #[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, + pub style: Option, +} +#[component] +pub fn FilePlay(props: FilePlayProps) -> 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": "M14 2v4a2 2 0 0 0 2 2h4" } + path { "d": "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z" } + path { "d": "M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z" } + } + } +} diff --git a/packages/dioxus/src/file_video_camera.rs b/packages/dioxus/src/file_video_camera.rs new file mode 100644 index 0000000..ea6396a --- /dev/null +++ b/packages/dioxus/src/file_video_camera.rs @@ -0,0 +1,49 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct FileVideoCameraProps { + #[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, + pub style: Option, +} +#[component] +pub fn FileVideoCamera(props: FileVideoCameraProps) -> 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": "M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4" } + path { "d": "M14 2v4a2 2 0 0 0 2 2h4" } + rect { + "width": "8", + "height": "6", + "x": "2", + "y": "12", + "rx": "1", + } + path { "d": "m10 13.843 3.033-1.755a.645.645 0 0 1 .967.56v4.704a.645.645 0 0 1-.967.56L10 16.157" } + } + } +} diff --git a/packages/dioxus/src/gem.rs b/packages/dioxus/src/gem.rs index 23545eb..0d4c7fb 100644 --- a/packages/dioxus/src/gem.rs +++ b/packages/dioxus/src/gem.rs @@ -34,8 +34,8 @@ pub fn Gem(props: GemProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M6 3h12l4 6-10 13L2 9Z" } - path { "d": "M11 3 8 9l4 13 4-13-3-6" } + path { "d": "M10.5 3 8 9l4 13 4-13-2.5-6" } + path { "d": "M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z" } path { "d": "M2 9h20" } } } diff --git a/packages/dioxus/src/hat_glasses.rs b/packages/dioxus/src/hat_glasses.rs new file mode 100644 index 0000000..76eff71 --- /dev/null +++ b/packages/dioxus/src/hat_glasses.rs @@ -0,0 +1,44 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct HatGlassesProps { + #[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, + pub style: Option, +} +#[component] +pub fn HatGlasses(props: HatGlassesProps) -> 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": "M14 18a2 2 0 0 0-4 0" } + path { "d": "m19 11-2.11-6.657a2 2 0 0 0-2.752-1.148l-1.276.61A2 2 0 0 1 12 4H8.5a2 2 0 0 0-1.925 1.456L5 11" } + path { "d": "M2 11h20" } + circle { "cx": "17", "cy": "18", "r": "3" } + circle { "cx": "7", "cy": "18", "r": "3" } + } + } +} diff --git a/packages/dioxus/src/image_play.rs b/packages/dioxus/src/image_play.rs index 1457f3e..0f060d5 100644 --- a/packages/dioxus/src/image_play.rs +++ b/packages/dioxus/src/image_play.rs @@ -34,9 +34,9 @@ pub fn ImagePlay(props: ImagePlayProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "m11 16-5 5" } - path { "d": "M11 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6.5" } - path { "d": "M15.765 22a.5.5 0 0 1-.765-.424V13.38a.5.5 0 0 1 .765-.424l5.878 3.674a1 1 0 0 1 0 1.696z" } + path { "d": "M15 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z" } + path { "d": "M21 12.17V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6" } + path { "d": "m6 21 5-5" } circle { "cx": "9", "cy": "9", "r": "2" } } } diff --git a/packages/dioxus/src/lasso.rs b/packages/dioxus/src/lasso.rs index e4a07f4..fb26d4a 100644 --- a/packages/dioxus/src/lasso.rs +++ b/packages/dioxus/src/lasso.rs @@ -34,9 +34,9 @@ pub fn Lasso(props: LassoProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M7 22a5 5 0 0 1-2-4" } - path { "d": "M3.3 14A6.8 6.8 0 0 1 2 10c0-4.4 4.5-8 10-8s10 3.6 10 8-4.5 8-10 8a12 12 0 0 1-5-1" } - path { "d": "M5 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" } + path { "d": "M3.704 14.467A10 8 0 0 1 2 10a10 8 0 0 1 20 0 10 8 0 0 1-10 8 10 8 0 0 1-5.181-1.158" } + path { "d": "M7 22a5 5 0 0 1-2-3.994" } + circle { "cx": "5", "cy": "16", "r": "2" } } } } diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs index 659ed1b..d22bb6c 100644 --- a/packages/dioxus/src/lib.rs +++ b/packages/dioxus/src/lib.rs @@ -1431,6 +1431,8 @@ mod file_pen; #[cfg(feature = "files")] mod file_pen_line; #[cfg(feature = "files")] +mod file_play; +#[cfg(feature = "files")] mod file_plus; #[cfg(feature = "files")] mod file_plus_2; @@ -1463,9 +1465,7 @@ mod file_up; #[cfg(any(feature = "account", feature = "files"))] mod file_user; #[cfg(feature = "files")] -mod file_video; -#[cfg(feature = "files")] -mod file_video_2; +mod file_video_camera; #[cfg(feature = "files")] mod file_volume; #[cfg(feature = "files")] @@ -1817,6 +1817,8 @@ mod hard_drive_upload; mod hard_hat; #[cfg(any(feature = "text", feature = "social"))] mod hash; +#[cfg(any(feature = "social", feature = "account", feature = "security"))] +mod hat_glasses; #[cfg(feature = "weather")] mod haze; #[cfg(any(feature = "devices", feature = "multimedia", feature = "gaming"))] @@ -3342,7 +3344,7 @@ mod spotlight; mod spray_can; #[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))] mod sprout; -#[cfg(feature = "shapes")] +#[cfg(any(feature = "shapes", feature = "multimedia"))] mod square; #[cfg(any( feature = "medical", @@ -3469,6 +3471,8 @@ mod square_mouse_pointer; mod square_parking; #[cfg(any(feature = "transportation", feature = "navigation"))] mod square_parking_off; +#[cfg(feature = "multimedia")] +mod square_pause; #[cfg(feature = "text")] mod square_pen; #[cfg(any( @@ -3517,6 +3521,8 @@ mod square_split_vertical; mod square_square; #[cfg(any(feature = "text", feature = "files", feature = "development"))] mod square_stack; +#[cfg(feature = "multimedia")] +mod square_stop; #[cfg(feature = "development")] mod square_terminal; #[cfg(feature = "account")] @@ -5539,6 +5545,8 @@ pub use file_pen::*; #[cfg(feature = "files")] pub use file_pen_line::*; #[cfg(feature = "files")] +pub use file_play::*; +#[cfg(feature = "files")] pub use file_plus::*; #[cfg(feature = "files")] pub use file_plus_2::*; @@ -5571,9 +5579,7 @@ pub use file_up::*; #[cfg(any(feature = "account", feature = "files"))] pub use file_user::*; #[cfg(feature = "files")] -pub use file_video::*; -#[cfg(feature = "files")] -pub use file_video_2::*; +pub use file_video_camera::*; #[cfg(feature = "files")] pub use file_volume::*; #[cfg(feature = "files")] @@ -5925,6 +5931,8 @@ pub use hard_drive_upload::*; pub use hard_hat::*; #[cfg(any(feature = "text", feature = "social"))] pub use hash::*; +#[cfg(any(feature = "social", feature = "account", feature = "security"))] +pub use hat_glasses::*; #[cfg(feature = "weather")] pub use haze::*; #[cfg(any(feature = "devices", feature = "multimedia", feature = "gaming"))] @@ -7450,7 +7458,7 @@ pub use spotlight::*; pub use spray_can::*; #[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))] pub use sprout::*; -#[cfg(feature = "shapes")] +#[cfg(any(feature = "shapes", feature = "multimedia"))] pub use square::*; #[cfg(any( feature = "medical", @@ -7577,6 +7585,8 @@ pub use square_mouse_pointer::*; pub use square_parking::*; #[cfg(any(feature = "transportation", feature = "navigation"))] pub use square_parking_off::*; +#[cfg(feature = "multimedia")] +pub use square_pause::*; #[cfg(feature = "text")] pub use square_pen::*; #[cfg(any( @@ -7625,6 +7635,8 @@ pub use square_split_vertical::*; pub use square_square::*; #[cfg(any(feature = "text", feature = "files", feature = "development"))] pub use square_stack::*; +#[cfg(feature = "multimedia")] +pub use square_stop::*; #[cfg(feature = "development")] pub use square_terminal::*; #[cfg(feature = "account")] diff --git a/packages/dioxus/src/list_video.rs b/packages/dioxus/src/list_video.rs index 9895c1b..55a53a2 100644 --- a/packages/dioxus/src/list_video.rs +++ b/packages/dioxus/src/list_video.rs @@ -35,9 +35,9 @@ pub fn ListVideo(props: ListVideoProps) -> Element { "stroke-linecap": "round", "stroke-linejoin": "round", path { "d": "M12 12H3" } - path { "d": "M16 6H3" } path { "d": "M12 18H3" } - path { "d": "m16 12 5 3-5 3v-6Z" } + path { "d": "M16 6H3" } + path { "d": "M21.033 14.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .968-.56z" } } } } diff --git a/packages/dioxus/src/monitor_play.rs b/packages/dioxus/src/monitor_play.rs index bf26e35..d2c4655 100644 --- a/packages/dioxus/src/monitor_play.rs +++ b/packages/dioxus/src/monitor_play.rs @@ -34,7 +34,7 @@ pub fn MonitorPlay(props: MonitorPlayProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z" } + path { "d": "M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z" } path { "d": "M12 17v4" } path { "d": "M8 21h8" } rect { diff --git a/packages/dioxus/src/pause.rs b/packages/dioxus/src/pause.rs index bebf7b2..d162fc0 100644 --- a/packages/dioxus/src/pause.rs +++ b/packages/dioxus/src/pause.rs @@ -36,16 +36,16 @@ pub fn Pause(props: PauseProps) -> Element { "stroke-linejoin": "round", rect { "x": "14", - "y": "4", - "width": "4", - "height": "16", + "y": "3", + "width": "5", + "height": "18", "rx": "1", } rect { - "x": "6", - "y": "4", - "width": "4", - "height": "16", + "x": "5", + "y": "3", + "width": "5", + "height": "18", "rx": "1", } } diff --git a/packages/dioxus/src/play.rs b/packages/dioxus/src/play.rs index 00f6869..6d0e4f6 100644 --- a/packages/dioxus/src/play.rs +++ b/packages/dioxus/src/play.rs @@ -34,7 +34,7 @@ pub fn Play(props: PlayProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polygon { "points": "6 3 20 12 6 21 6 3" } + path { "d": "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" } } } } diff --git a/packages/dioxus/src/refresh_ccw_dot.rs b/packages/dioxus/src/refresh_ccw_dot.rs index 0742ff9..168504d 100644 --- a/packages/dioxus/src/refresh_ccw_dot.rs +++ b/packages/dioxus/src/refresh_ccw_dot.rs @@ -34,10 +34,10 @@ pub fn RefreshCcwDot(props: RefreshCcwDotProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M3 2v6h6" } - path { "d": "M21 12A9 9 0 0 0 6 5.3L3 8" } - path { "d": "M21 22v-6h-6" } - path { "d": "M3 12a9 9 0 0 0 15 6.7l3-2.7" } + path { "d": "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" } + path { "d": "M3 3v5h5" } + path { "d": "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16" } + path { "d": "M16 16h5v5" } circle { "cx": "12", "cy": "12", "r": "1" } } } diff --git a/packages/dioxus/src/rewind.rs b/packages/dioxus/src/rewind.rs index 18c617d..24c0714 100644 --- a/packages/dioxus/src/rewind.rs +++ b/packages/dioxus/src/rewind.rs @@ -34,8 +34,8 @@ pub fn Rewind(props: RewindProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polygon { "points": "11 19 2 12 11 5 11 19" } - polygon { "points": "22 19 13 12 22 5 22 19" } + path { "d": "M12 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 12 18z" } + path { "d": "M22 6a2 2 0 0 0-3.414-1.414l-6 6a2 2 0 0 0 0 2.828l6 6A2 2 0 0 0 22 18z" } } } } diff --git a/packages/dioxus/src/skip_back.rs b/packages/dioxus/src/skip_back.rs index a88baa2..97608ba 100644 --- a/packages/dioxus/src/skip_back.rs +++ b/packages/dioxus/src/skip_back.rs @@ -34,13 +34,8 @@ pub fn SkipBack(props: SkipBackProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polygon { "points": "19 20 9 12 19 4 19 20" } - line { - "x1": "5", - "x2": "5", - "y1": "19", - "y2": "5", - } + path { "d": "M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z" } + path { "d": "M3 20V4" } } } } diff --git a/packages/dioxus/src/skip_forward.rs b/packages/dioxus/src/skip_forward.rs index ef9efc7..5705bef 100644 --- a/packages/dioxus/src/skip_forward.rs +++ b/packages/dioxus/src/skip_forward.rs @@ -34,13 +34,8 @@ pub fn SkipForward(props: SkipForwardProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - polygon { "points": "5 4 15 12 5 20 5 4" } - line { - "x1": "19", - "x2": "19", - "y1": "5", - "y2": "19", - } + path { "d": "M21 4v16" } + path { "d": "M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z" } } } } diff --git a/packages/dioxus/src/sparkle.rs b/packages/dioxus/src/sparkle.rs index 670f055..be7b855 100644 --- a/packages/dioxus/src/sparkle.rs +++ b/packages/dioxus/src/sparkle.rs @@ -34,7 +34,7 @@ pub fn Sparkle(props: SparkleProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" } + path { "d": "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" } } } } diff --git a/packages/dioxus/src/sparkles.rs b/packages/dioxus/src/sparkles.rs index ffaf50d..a2e094b 100644 --- a/packages/dioxus/src/sparkles.rs +++ b/packages/dioxus/src/sparkles.rs @@ -34,11 +34,10 @@ pub fn Sparkles(props: SparklesProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" } - path { "d": "M20 3v4" } - path { "d": "M22 5h-4" } - path { "d": "M4 17v2" } - path { "d": "M5 18H3" } + path { "d": "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" } + path { "d": "M20 2v4" } + path { "d": "M22 4h-4" } + circle { "cx": "4", "cy": "20", "r": "2" } } } } diff --git a/packages/dioxus/src/sprout.rs b/packages/dioxus/src/sprout.rs index a7fb254..eefe40d 100644 --- a/packages/dioxus/src/sprout.rs +++ b/packages/dioxus/src/sprout.rs @@ -34,10 +34,9 @@ pub fn Sprout(props: SproutProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M7 20h10" } - path { "d": "M10 20c5.5-2.5.8-6.4 3-10" } - path { "d": "M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z" } - path { "d": "M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z" } + path { "d": "M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3" } + path { "d": "M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4" } + path { "d": "M5 21h14" } } } } diff --git a/packages/dioxus/src/square_pause.rs b/packages/dioxus/src/square_pause.rs new file mode 100644 index 0000000..ab000c6 --- /dev/null +++ b/packages/dioxus/src/square_pause.rs @@ -0,0 +1,58 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct SquarePauseProps { + #[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, + pub style: Option, +} +#[component] +pub fn SquarePause(props: SquarePauseProps) -> 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", + rect { + "width": "18", + "height": "18", + "x": "3", + "y": "3", + "rx": "2", + } + line { + "x1": "10", + "x2": "10", + "y1": "15", + "y2": "9", + } + line { + "x1": "14", + "x2": "14", + "y1": "15", + "y2": "9", + } + } + } +} diff --git a/packages/dioxus/src/square_play.rs b/packages/dioxus/src/square_play.rs index 8851132..84d04c3 100644 --- a/packages/dioxus/src/square_play.rs +++ b/packages/dioxus/src/square_play.rs @@ -35,13 +35,13 @@ pub fn SquarePlay(props: SquarePlayProps) -> Element { "stroke-linecap": "round", "stroke-linejoin": "round", rect { - "width": "18", - "height": "18", "x": "3", "y": "3", + "width": "18", + "height": "18", "rx": "2", } - path { "d": "m9 8 6 4-6 4Z" } + path { "d": "M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z" } } } } diff --git a/packages/dioxus/src/square_stop.rs b/packages/dioxus/src/square_stop.rs new file mode 100644 index 0000000..334ca64 --- /dev/null +++ b/packages/dioxus/src/square_stop.rs @@ -0,0 +1,53 @@ +use dioxus::prelude::*; +#[derive(Clone, PartialEq, Props)] +pub struct SquareStopProps { + #[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, + pub style: Option, +} +#[component] +pub fn SquareStop(props: SquareStopProps) -> 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", + rect { + "width": "18", + "height": "18", + "x": "3", + "y": "3", + "rx": "2", + } + rect { + "x": "9", + "y": "9", + "width": "6", + "height": "6", + "rx": "1", + } + } + } +} diff --git a/packages/dioxus/src/step_back.rs b/packages/dioxus/src/step_back.rs index 29808db..bbf4aae 100644 --- a/packages/dioxus/src/step_back.rs +++ b/packages/dioxus/src/step_back.rs @@ -34,13 +34,8 @@ pub fn StepBack(props: StepBackProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "18", - "x2": "18", - "y1": "20", - "y2": "4", - } - polygon { "points": "14,20 4,12 14,4" } + path { "d": "M13.971 4.285A2 2 0 0 1 17 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z" } + path { "d": "M21 20V4" } } } } diff --git a/packages/dioxus/src/step_forward.rs b/packages/dioxus/src/step_forward.rs index 6c4ec41..7bd8400 100644 --- a/packages/dioxus/src/step_forward.rs +++ b/packages/dioxus/src/step_forward.rs @@ -34,13 +34,8 @@ pub fn StepForward(props: StepForwardProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - line { - "x1": "6", - "x2": "6", - "y1": "4", - "y2": "20", - } - polygon { "points": "10,4 20,12 10,20" } + path { "d": "M10.029 4.285A2 2 0 0 0 7 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z" } + path { "d": "M3 4v16" } } } } diff --git a/packages/dioxus/src/tv_minimal_play.rs b/packages/dioxus/src/tv_minimal_play.rs index bc4efb1..1a27f42 100644 --- a/packages/dioxus/src/tv_minimal_play.rs +++ b/packages/dioxus/src/tv_minimal_play.rs @@ -34,7 +34,7 @@ pub fn TvMinimalPlay(props: TvMinimalPlayProps) -> Element { "stroke-width": "{stroke_width}", "stroke-linecap": "round", "stroke-linejoin": "round", - path { "d": "M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z" } + path { "d": "M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z" } path { "d": "M7 21h10" } rect { "width": "20", diff --git a/packages/leptos/src/arrow_big_down.rs b/packages/leptos/src/arrow_big_down.rs index c327a2e..cd19cca 100644 --- a/packages/leptos/src/arrow_big_down.rs +++ b/packages/leptos/src/arrow_big_down.rs @@ -29,7 +29,7 @@ pub fn ArrowBigDown( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/arrow_big_down_dash.rs b/packages/leptos/src/arrow_big_down_dash.rs index db18102..993cb09 100644 --- a/packages/leptos/src/arrow_big_down_dash.rs +++ b/packages/leptos/src/arrow_big_down_dash.rs @@ -29,8 +29,8 @@ pub fn ArrowBigDownDash( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/arrow_big_left.rs b/packages/leptos/src/arrow_big_left.rs index e465ab0..0baf8c3 100644 --- a/packages/leptos/src/arrow_big_left.rs +++ b/packages/leptos/src/arrow_big_left.rs @@ -29,7 +29,7 @@ pub fn ArrowBigLeft( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/arrow_big_left_dash.rs b/packages/leptos/src/arrow_big_left_dash.rs index 63c55c5..c3f891e 100644 --- a/packages/leptos/src/arrow_big_left_dash.rs +++ b/packages/leptos/src/arrow_big_left_dash.rs @@ -29,8 +29,8 @@ pub fn ArrowBigLeftDash( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/arrow_big_right.rs b/packages/leptos/src/arrow_big_right.rs index 66cf28e..4785171 100644 --- a/packages/leptos/src/arrow_big_right.rs +++ b/packages/leptos/src/arrow_big_right.rs @@ -29,7 +29,7 @@ pub fn ArrowBigRight( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/arrow_big_right_dash.rs b/packages/leptos/src/arrow_big_right_dash.rs index cf08f26..2c1d2c3 100644 --- a/packages/leptos/src/arrow_big_right_dash.rs +++ b/packages/leptos/src/arrow_big_right_dash.rs @@ -29,8 +29,8 @@ pub fn ArrowBigRightDash( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/arrow_big_up.rs b/packages/leptos/src/arrow_big_up.rs index 7537051..bf6bdda 100644 --- a/packages/leptos/src/arrow_big_up.rs +++ b/packages/leptos/src/arrow_big_up.rs @@ -29,7 +29,7 @@ pub fn ArrowBigUp( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/arrow_big_up_dash.rs b/packages/leptos/src/arrow_big_up_dash.rs index ff5b52e..6d4aec2 100644 --- a/packages/leptos/src/arrow_big_up_dash.rs +++ b/packages/leptos/src/arrow_big_up_dash.rs @@ -29,8 +29,8 @@ pub fn ArrowBigUpDash( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/bug_play.rs b/packages/leptos/src/bug_play.rs index d6daeef..21694b0 100644 --- a/packages/leptos/src/bug_play.rs +++ b/packages/leptos/src/bug_play.rs @@ -29,15 +29,15 @@ pub fn BugPlay( stroke-linecap="round" stroke-linejoin="round" > - + + - - + } } diff --git a/packages/leptos/src/circle_play.rs b/packages/leptos/src/circle_play.rs index adae20d..01fff79 100644 --- a/packages/leptos/src/circle_play.rs +++ b/packages/leptos/src/circle_play.rs @@ -29,8 +29,8 @@ pub fn CirclePlay( stroke-linecap="round" stroke-linejoin="round" > + - } } diff --git a/packages/leptos/src/croissant.rs b/packages/leptos/src/croissant.rs index e94e9f4..aa7a4d2 100644 --- a/packages/leptos/src/croissant.rs +++ b/packages/leptos/src/croissant.rs @@ -29,11 +29,11 @@ pub fn Croissant( stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + + } } diff --git a/packages/leptos/src/fast_forward.rs b/packages/leptos/src/fast_forward.rs index cfdb100..764de01 100644 --- a/packages/leptos/src/fast_forward.rs +++ b/packages/leptos/src/fast_forward.rs @@ -29,8 +29,8 @@ pub fn FastForward( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/file_play.rs b/packages/leptos/src/file_play.rs new file mode 100644 index 0000000..0fe9d74 --- /dev/null +++ b/packages/leptos/src/file_play.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn FilePlay( + #[prop(default = 24.into(), into)] size: Signal, + #[prop(default = "currentColor".into(), into)] color: Signal, + #[prop(default = "none".into(), into)] fill: Signal, + #[prop(default = 2.into(), into)] stroke_width: Signal, + #[prop(default = false.into(), into)] absolute_stroke_width: Signal, + #[prop(optional)] node_ref: NodeRef, +) -> impl IntoView { + let stroke_width = Signal::derive(move || { + if absolute_stroke_width.get() { + stroke_width.get() * 24 / size.get() + } else { + stroke_width.get() + } + }); + view! { + + + + + + } +} diff --git a/packages/leptos/src/file_video_camera.rs b/packages/leptos/src/file_video_camera.rs new file mode 100644 index 0000000..9f781b3 --- /dev/null +++ b/packages/leptos/src/file_video_camera.rs @@ -0,0 +1,38 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn FileVideoCamera( + #[prop(default = 24.into(), into)] size: Signal, + #[prop(default = "currentColor".into(), into)] color: Signal, + #[prop(default = "none".into(), into)] fill: Signal, + #[prop(default = 2.into(), into)] stroke_width: Signal, + #[prop(default = false.into(), into)] absolute_stroke_width: Signal, + #[prop(optional)] node_ref: NodeRef, +) -> impl IntoView { + let stroke_width = Signal::derive(move || { + if absolute_stroke_width.get() { + stroke_width.get() * 24 / size.get() + } else { + stroke_width.get() + } + }); + view! { + + + + + + + } +} diff --git a/packages/leptos/src/gem.rs b/packages/leptos/src/gem.rs index fa7bd2f..bc7d63f 100644 --- a/packages/leptos/src/gem.rs +++ b/packages/leptos/src/gem.rs @@ -29,8 +29,8 @@ pub fn Gem( stroke-linecap="round" stroke-linejoin="round" > - - + + } diff --git a/packages/leptos/src/hat_glasses.rs b/packages/leptos/src/hat_glasses.rs new file mode 100644 index 0000000..938f687 --- /dev/null +++ b/packages/leptos/src/hat_glasses.rs @@ -0,0 +1,39 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn HatGlasses( + #[prop(default = 24.into(), into)] size: Signal, + #[prop(default = "currentColor".into(), into)] color: Signal, + #[prop(default = "none".into(), into)] fill: Signal, + #[prop(default = 2.into(), into)] stroke_width: Signal, + #[prop(default = false.into(), into)] absolute_stroke_width: Signal, + #[prop(optional)] node_ref: NodeRef, +) -> impl IntoView { + let stroke_width = Signal::derive(move || { + if absolute_stroke_width.get() { + stroke_width.get() * 24 / size.get() + } else { + stroke_width.get() + } + }); + view! { + + + + + + + + } +} diff --git a/packages/leptos/src/image_play.rs b/packages/leptos/src/image_play.rs index d65a861..e851c03 100644 --- a/packages/leptos/src/image_play.rs +++ b/packages/leptos/src/image_play.rs @@ -29,9 +29,9 @@ pub fn ImagePlay( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } diff --git a/packages/leptos/src/lasso.rs b/packages/leptos/src/lasso.rs index 3d7401e..2a2eeb9 100644 --- a/packages/leptos/src/lasso.rs +++ b/packages/leptos/src/lasso.rs @@ -29,9 +29,9 @@ pub fn Lasso( stroke-linecap="round" stroke-linejoin="round" > - - - + + + } } diff --git a/packages/leptos/src/lib.rs b/packages/leptos/src/lib.rs index a07f8b7..08e91a6 100644 --- a/packages/leptos/src/lib.rs +++ b/packages/leptos/src/lib.rs @@ -1431,6 +1431,8 @@ mod file_pen; #[cfg(feature = "files")] mod file_pen_line; #[cfg(feature = "files")] +mod file_play; +#[cfg(feature = "files")] mod file_plus; #[cfg(feature = "files")] mod file_plus_2; @@ -1463,9 +1465,7 @@ mod file_up; #[cfg(any(feature = "account", feature = "files"))] mod file_user; #[cfg(feature = "files")] -mod file_video; -#[cfg(feature = "files")] -mod file_video_2; +mod file_video_camera; #[cfg(feature = "files")] mod file_volume; #[cfg(feature = "files")] @@ -1817,6 +1817,8 @@ mod hard_drive_upload; mod hard_hat; #[cfg(any(feature = "text", feature = "social"))] mod hash; +#[cfg(any(feature = "social", feature = "account", feature = "security"))] +mod hat_glasses; #[cfg(feature = "weather")] mod haze; #[cfg(any(feature = "devices", feature = "multimedia", feature = "gaming"))] @@ -3342,7 +3344,7 @@ mod spotlight; mod spray_can; #[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))] mod sprout; -#[cfg(feature = "shapes")] +#[cfg(any(feature = "shapes", feature = "multimedia"))] mod square; #[cfg(any( feature = "medical", @@ -3469,6 +3471,8 @@ mod square_mouse_pointer; mod square_parking; #[cfg(any(feature = "transportation", feature = "navigation"))] mod square_parking_off; +#[cfg(feature = "multimedia")] +mod square_pause; #[cfg(feature = "text")] mod square_pen; #[cfg(any( @@ -3517,6 +3521,8 @@ mod square_split_vertical; mod square_square; #[cfg(any(feature = "text", feature = "files", feature = "development"))] mod square_stack; +#[cfg(feature = "multimedia")] +mod square_stop; #[cfg(feature = "development")] mod square_terminal; #[cfg(feature = "account")] @@ -5539,6 +5545,8 @@ pub use file_pen::*; #[cfg(feature = "files")] pub use file_pen_line::*; #[cfg(feature = "files")] +pub use file_play::*; +#[cfg(feature = "files")] pub use file_plus::*; #[cfg(feature = "files")] pub use file_plus_2::*; @@ -5571,9 +5579,7 @@ pub use file_up::*; #[cfg(any(feature = "account", feature = "files"))] pub use file_user::*; #[cfg(feature = "files")] -pub use file_video::*; -#[cfg(feature = "files")] -pub use file_video_2::*; +pub use file_video_camera::*; #[cfg(feature = "files")] pub use file_volume::*; #[cfg(feature = "files")] @@ -5925,6 +5931,8 @@ pub use hard_drive_upload::*; pub use hard_hat::*; #[cfg(any(feature = "text", feature = "social"))] pub use hash::*; +#[cfg(any(feature = "social", feature = "account", feature = "security"))] +pub use hat_glasses::*; #[cfg(feature = "weather")] pub use haze::*; #[cfg(any(feature = "devices", feature = "multimedia", feature = "gaming"))] @@ -7450,7 +7458,7 @@ pub use spotlight::*; pub use spray_can::*; #[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))] pub use sprout::*; -#[cfg(feature = "shapes")] +#[cfg(any(feature = "shapes", feature = "multimedia"))] pub use square::*; #[cfg(any( feature = "medical", @@ -7577,6 +7585,8 @@ pub use square_mouse_pointer::*; pub use square_parking::*; #[cfg(any(feature = "transportation", feature = "navigation"))] pub use square_parking_off::*; +#[cfg(feature = "multimedia")] +pub use square_pause::*; #[cfg(feature = "text")] pub use square_pen::*; #[cfg(any( @@ -7625,6 +7635,8 @@ pub use square_split_vertical::*; pub use square_square::*; #[cfg(any(feature = "text", feature = "files", feature = "development"))] pub use square_stack::*; +#[cfg(feature = "multimedia")] +pub use square_stop::*; #[cfg(feature = "development")] pub use square_terminal::*; #[cfg(feature = "account")] diff --git a/packages/leptos/src/list_video.rs b/packages/leptos/src/list_video.rs index 612a106..6562186 100644 --- a/packages/leptos/src/list_video.rs +++ b/packages/leptos/src/list_video.rs @@ -30,9 +30,9 @@ pub fn ListVideo( stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/monitor_play.rs b/packages/leptos/src/monitor_play.rs index d916573..b9dd998 100644 --- a/packages/leptos/src/monitor_play.rs +++ b/packages/leptos/src/monitor_play.rs @@ -29,7 +29,7 @@ pub fn MonitorPlay( stroke-linecap="round" stroke-linejoin="round" > - + diff --git a/packages/leptos/src/pause.rs b/packages/leptos/src/pause.rs index 567f5a8..9da58d5 100644 --- a/packages/leptos/src/pause.rs +++ b/packages/leptos/src/pause.rs @@ -29,8 +29,8 @@ pub fn Pause( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/play.rs b/packages/leptos/src/play.rs index 9b96744..3157a7e 100644 --- a/packages/leptos/src/play.rs +++ b/packages/leptos/src/play.rs @@ -29,7 +29,7 @@ pub fn Play( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/refresh_ccw_dot.rs b/packages/leptos/src/refresh_ccw_dot.rs index 0707c0e..197f436 100644 --- a/packages/leptos/src/refresh_ccw_dot.rs +++ b/packages/leptos/src/refresh_ccw_dot.rs @@ -29,10 +29,10 @@ pub fn RefreshCcwDot( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } diff --git a/packages/leptos/src/rewind.rs b/packages/leptos/src/rewind.rs index ebef1fc..199df27 100644 --- a/packages/leptos/src/rewind.rs +++ b/packages/leptos/src/rewind.rs @@ -29,8 +29,8 @@ pub fn Rewind( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/skip_back.rs b/packages/leptos/src/skip_back.rs index 070eb82..0443e54 100644 --- a/packages/leptos/src/skip_back.rs +++ b/packages/leptos/src/skip_back.rs @@ -29,8 +29,8 @@ pub fn SkipBack( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/skip_forward.rs b/packages/leptos/src/skip_forward.rs index 381ca7d..03521ac 100644 --- a/packages/leptos/src/skip_forward.rs +++ b/packages/leptos/src/skip_forward.rs @@ -29,8 +29,8 @@ pub fn SkipForward( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/sparkle.rs b/packages/leptos/src/sparkle.rs index 724a741..75e75ab 100644 --- a/packages/leptos/src/sparkle.rs +++ b/packages/leptos/src/sparkle.rs @@ -29,7 +29,7 @@ pub fn Sparkle( stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/leptos/src/sparkles.rs b/packages/leptos/src/sparkles.rs index a58e858..c5ba7b8 100644 --- a/packages/leptos/src/sparkles.rs +++ b/packages/leptos/src/sparkles.rs @@ -29,11 +29,10 @@ pub fn Sparkles( stroke-linecap="round" stroke-linejoin="round" > - - - - - + + + + } } diff --git a/packages/leptos/src/sprout.rs b/packages/leptos/src/sprout.rs index f3c3b49..1fb281c 100644 --- a/packages/leptos/src/sprout.rs +++ b/packages/leptos/src/sprout.rs @@ -29,10 +29,9 @@ pub fn Sprout( stroke-linecap="round" stroke-linejoin="round" > - - - - + + + } } diff --git a/packages/leptos/src/square_pause.rs b/packages/leptos/src/square_pause.rs new file mode 100644 index 0000000..6c2f24a --- /dev/null +++ b/packages/leptos/src/square_pause.rs @@ -0,0 +1,37 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn SquarePause( + #[prop(default = 24.into(), into)] size: Signal, + #[prop(default = "currentColor".into(), into)] color: Signal, + #[prop(default = "none".into(), into)] fill: Signal, + #[prop(default = 2.into(), into)] stroke_width: Signal, + #[prop(default = false.into(), into)] absolute_stroke_width: Signal, + #[prop(optional)] node_ref: NodeRef, +) -> impl IntoView { + let stroke_width = Signal::derive(move || { + if absolute_stroke_width.get() { + stroke_width.get() * 24 / size.get() + } else { + stroke_width.get() + } + }); + view! { + + + + + + } +} diff --git a/packages/leptos/src/square_play.rs b/packages/leptos/src/square_play.rs index 4dad026..97591d9 100644 --- a/packages/leptos/src/square_play.rs +++ b/packages/leptos/src/square_play.rs @@ -29,8 +29,8 @@ pub fn SquarePlay( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/square_stop.rs b/packages/leptos/src/square_stop.rs new file mode 100644 index 0000000..69e84e2 --- /dev/null +++ b/packages/leptos/src/square_stop.rs @@ -0,0 +1,36 @@ +use leptos::{prelude::*, svg::Svg}; +#[component] +pub fn SquareStop( + #[prop(default = 24.into(), into)] size: Signal, + #[prop(default = "currentColor".into(), into)] color: Signal, + #[prop(default = "none".into(), into)] fill: Signal, + #[prop(default = 2.into(), into)] stroke_width: Signal, + #[prop(default = false.into(), into)] absolute_stroke_width: Signal, + #[prop(optional)] node_ref: NodeRef, +) -> impl IntoView { + let stroke_width = Signal::derive(move || { + if absolute_stroke_width.get() { + stroke_width.get() * 24 / size.get() + } else { + stroke_width.get() + } + }); + view! { + + + + + } +} diff --git a/packages/leptos/src/step_back.rs b/packages/leptos/src/step_back.rs index de4efe3..071d4b7 100644 --- a/packages/leptos/src/step_back.rs +++ b/packages/leptos/src/step_back.rs @@ -29,8 +29,8 @@ pub fn StepBack( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/step_forward.rs b/packages/leptos/src/step_forward.rs index 8561d17..2bb0abf 100644 --- a/packages/leptos/src/step_forward.rs +++ b/packages/leptos/src/step_forward.rs @@ -29,8 +29,8 @@ pub fn StepForward( stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/leptos/src/tv_minimal_play.rs b/packages/leptos/src/tv_minimal_play.rs index 54ca258..0f6d06f 100644 --- a/packages/leptos/src/tv_minimal_play.rs +++ b/packages/leptos/src/tv_minimal_play.rs @@ -29,7 +29,7 @@ pub fn TvMinimalPlay( stroke-linecap="round" stroke-linejoin="round" > - + diff --git a/packages/yew/src/arrow_big_down.rs b/packages/yew/src/arrow_big_down.rs index 0253af7..09298e6 100644 --- a/packages/yew/src/arrow_big_down.rs +++ b/packages/yew/src/arrow_big_down.rs @@ -41,7 +41,9 @@ pub fn ArrowBigDown(props: &ArrowBigDownProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/arrow_big_down_dash.rs b/packages/yew/src/arrow_big_down_dash.rs index 6fca4ae..288e73f 100644 --- a/packages/yew/src/arrow_big_down_dash.rs +++ b/packages/yew/src/arrow_big_down_dash.rs @@ -41,8 +41,10 @@ pub fn ArrowBigDownDash(props: &ArrowBigDownDashProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/arrow_big_left.rs b/packages/yew/src/arrow_big_left.rs index 29e3b7d..c4a8dea 100644 --- a/packages/yew/src/arrow_big_left.rs +++ b/packages/yew/src/arrow_big_left.rs @@ -41,7 +41,9 @@ pub fn ArrowBigLeft(props: &ArrowBigLeftProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/arrow_big_left_dash.rs b/packages/yew/src/arrow_big_left_dash.rs index 934cac5..9db4519 100644 --- a/packages/yew/src/arrow_big_left_dash.rs +++ b/packages/yew/src/arrow_big_left_dash.rs @@ -41,8 +41,10 @@ pub fn ArrowBigLeftDash(props: &ArrowBigLeftDashProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/arrow_big_right.rs b/packages/yew/src/arrow_big_right.rs index b99caa8..c133bab 100644 --- a/packages/yew/src/arrow_big_right.rs +++ b/packages/yew/src/arrow_big_right.rs @@ -41,7 +41,9 @@ pub fn ArrowBigRight(props: &ArrowBigRightProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/arrow_big_right_dash.rs b/packages/yew/src/arrow_big_right_dash.rs index 9a32293..db2ba3f 100644 --- a/packages/yew/src/arrow_big_right_dash.rs +++ b/packages/yew/src/arrow_big_right_dash.rs @@ -41,8 +41,10 @@ pub fn ArrowBigRightDash(props: &ArrowBigRightDashProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/arrow_big_up.rs b/packages/yew/src/arrow_big_up.rs index b24fba7..f5fc4e1 100644 --- a/packages/yew/src/arrow_big_up.rs +++ b/packages/yew/src/arrow_big_up.rs @@ -41,7 +41,9 @@ pub fn ArrowBigUp(props: &ArrowBigUpProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/arrow_big_up_dash.rs b/packages/yew/src/arrow_big_up_dash.rs index 785947e..11f795d 100644 --- a/packages/yew/src/arrow_big_up_dash.rs +++ b/packages/yew/src/arrow_big_up_dash.rs @@ -41,8 +41,10 @@ pub fn ArrowBigUpDash(props: &ArrowBigUpDashProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/bug_play.rs b/packages/yew/src/bug_play.rs index a93e16c..7ba0d1f 100644 --- a/packages/yew/src/bug_play.rs +++ b/packages/yew/src/bug_play.rs @@ -41,17 +41,17 @@ pub fn BugPlay(props: &BugPlayProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - - + } } diff --git a/packages/yew/src/circle_play.rs b/packages/yew/src/circle_play.rs index be73e83..67969af 100644 --- a/packages/yew/src/circle_play.rs +++ b/packages/yew/src/circle_play.rs @@ -41,8 +41,10 @@ pub fn CirclePlay(props: &CirclePlayProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + - } } diff --git a/packages/yew/src/croissant.rs b/packages/yew/src/croissant.rs index b25764b..384a097 100644 --- a/packages/yew/src/croissant.rs +++ b/packages/yew/src/croissant.rs @@ -41,17 +41,13 @@ pub fn Croissant(props: &CroissantProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > + + + + - - - - } } diff --git a/packages/yew/src/fast_forward.rs b/packages/yew/src/fast_forward.rs index 38bd795..d5fbd65 100644 --- a/packages/yew/src/fast_forward.rs +++ b/packages/yew/src/fast_forward.rs @@ -41,8 +41,8 @@ pub fn FastForward(props: &FastForwardProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/file_play.rs b/packages/yew/src/file_play.rs new file mode 100644 index 0000000..d20aa6a --- /dev/null +++ b/packages/yew/src/file_play.rs @@ -0,0 +1,51 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct FilePlayProps { + #[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, + #[prop_or_default] + pub node_ref: NodeRef, +} +#[function_component] +pub fn FilePlay(props: &FilePlayProps) -> Html { + let stroke_width = if props.absolute_stroke_width { + props.stroke_width * 24 / props.size + } else { + props.stroke_width + }; + html! { + + + + + + } +} diff --git a/packages/yew/src/file_video_camera.rs b/packages/yew/src/file_video_camera.rs new file mode 100644 index 0000000..6e7c046 --- /dev/null +++ b/packages/yew/src/file_video_camera.rs @@ -0,0 +1,52 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct FileVideoCameraProps { + #[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, + #[prop_or_default] + pub node_ref: NodeRef, +} +#[function_component] +pub fn FileVideoCamera(props: &FileVideoCameraProps) -> Html { + let stroke_width = if props.absolute_stroke_width { + props.stroke_width * 24 / props.size + } else { + props.stroke_width + }; + html! { + + + + + + + } +} diff --git a/packages/yew/src/gem.rs b/packages/yew/src/gem.rs index 3017b9e..9bd632e 100644 --- a/packages/yew/src/gem.rs +++ b/packages/yew/src/gem.rs @@ -41,8 +41,10 @@ pub fn Gem(props: &GemProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } diff --git a/packages/yew/src/hat_glasses.rs b/packages/yew/src/hat_glasses.rs new file mode 100644 index 0000000..e3328da --- /dev/null +++ b/packages/yew/src/hat_glasses.rs @@ -0,0 +1,53 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct HatGlassesProps { + #[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, + #[prop_or_default] + pub node_ref: NodeRef, +} +#[function_component] +pub fn HatGlasses(props: &HatGlassesProps) -> Html { + let stroke_width = if props.absolute_stroke_width { + props.stroke_width * 24 / props.size + } else { + props.stroke_width + }; + html! { + + + + + + + + } +} diff --git a/packages/yew/src/image_play.rs b/packages/yew/src/image_play.rs index 99ee613..931858b 100644 --- a/packages/yew/src/image_play.rs +++ b/packages/yew/src/image_play.rs @@ -41,11 +41,11 @@ pub fn ImagePlay(props: &ImagePlayProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } diff --git a/packages/yew/src/lasso.rs b/packages/yew/src/lasso.rs index e9a2b78..5142eed 100644 --- a/packages/yew/src/lasso.rs +++ b/packages/yew/src/lasso.rs @@ -41,11 +41,11 @@ pub fn Lasso(props: &LassoProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/lib.rs b/packages/yew/src/lib.rs index 4f5f434..5474e76 100644 --- a/packages/yew/src/lib.rs +++ b/packages/yew/src/lib.rs @@ -1433,6 +1433,8 @@ mod file_pen; #[cfg(feature = "files")] mod file_pen_line; #[cfg(feature = "files")] +mod file_play; +#[cfg(feature = "files")] mod file_plus; #[cfg(feature = "files")] mod file_plus_2; @@ -1465,9 +1467,7 @@ mod file_up; #[cfg(any(feature = "account", feature = "files"))] mod file_user; #[cfg(feature = "files")] -mod file_video; -#[cfg(feature = "files")] -mod file_video_2; +mod file_video_camera; #[cfg(feature = "files")] mod file_volume; #[cfg(feature = "files")] @@ -1819,6 +1819,8 @@ mod hard_drive_upload; mod hard_hat; #[cfg(any(feature = "text", feature = "social"))] mod hash; +#[cfg(any(feature = "social", feature = "account", feature = "security"))] +mod hat_glasses; #[cfg(feature = "weather")] mod haze; #[cfg(any(feature = "devices", feature = "multimedia", feature = "gaming"))] @@ -3344,7 +3346,7 @@ mod spotlight; mod spray_can; #[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))] mod sprout; -#[cfg(feature = "shapes")] +#[cfg(any(feature = "shapes", feature = "multimedia"))] mod square; #[cfg(any( feature = "medical", @@ -3471,6 +3473,8 @@ mod square_mouse_pointer; mod square_parking; #[cfg(any(feature = "transportation", feature = "navigation"))] mod square_parking_off; +#[cfg(feature = "multimedia")] +mod square_pause; #[cfg(feature = "text")] mod square_pen; #[cfg(any( @@ -3519,6 +3523,8 @@ mod square_split_vertical; mod square_square; #[cfg(any(feature = "text", feature = "files", feature = "development"))] mod square_stack; +#[cfg(feature = "multimedia")] +mod square_stop; #[cfg(feature = "development")] mod square_terminal; #[cfg(feature = "account")] @@ -5541,6 +5547,8 @@ pub use file_pen::*; #[cfg(feature = "files")] pub use file_pen_line::*; #[cfg(feature = "files")] +pub use file_play::*; +#[cfg(feature = "files")] pub use file_plus::*; #[cfg(feature = "files")] pub use file_plus_2::*; @@ -5573,9 +5581,7 @@ pub use file_up::*; #[cfg(any(feature = "account", feature = "files"))] pub use file_user::*; #[cfg(feature = "files")] -pub use file_video::*; -#[cfg(feature = "files")] -pub use file_video_2::*; +pub use file_video_camera::*; #[cfg(feature = "files")] pub use file_volume::*; #[cfg(feature = "files")] @@ -5927,6 +5933,8 @@ pub use hard_drive_upload::*; pub use hard_hat::*; #[cfg(any(feature = "text", feature = "social"))] pub use hash::*; +#[cfg(any(feature = "social", feature = "account", feature = "security"))] +pub use hat_glasses::*; #[cfg(feature = "weather")] pub use haze::*; #[cfg(any(feature = "devices", feature = "multimedia", feature = "gaming"))] @@ -7452,7 +7460,7 @@ pub use spotlight::*; pub use spray_can::*; #[cfg(any(feature = "nature", feature = "gaming", feature = "sustainability"))] pub use sprout::*; -#[cfg(feature = "shapes")] +#[cfg(any(feature = "shapes", feature = "multimedia"))] pub use square::*; #[cfg(any( feature = "medical", @@ -7579,6 +7587,8 @@ pub use square_mouse_pointer::*; pub use square_parking::*; #[cfg(any(feature = "transportation", feature = "navigation"))] pub use square_parking_off::*; +#[cfg(feature = "multimedia")] +pub use square_pause::*; #[cfg(feature = "text")] pub use square_pen::*; #[cfg(any( @@ -7627,6 +7637,8 @@ pub use square_split_vertical::*; pub use square_square::*; #[cfg(any(feature = "text", feature = "files", feature = "development"))] pub use square_stack::*; +#[cfg(feature = "multimedia")] +pub use square_stop::*; #[cfg(feature = "development")] pub use square_terminal::*; #[cfg(feature = "account")] diff --git a/packages/yew/src/list_video.rs b/packages/yew/src/list_video.rs index 0428df1..3fe4797 100644 --- a/packages/yew/src/list_video.rs +++ b/packages/yew/src/list_video.rs @@ -42,9 +42,11 @@ pub fn ListVideo(props: &ListVideoProps) -> Html { stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/monitor_play.rs b/packages/yew/src/monitor_play.rs index 635c6fd..da44877 100644 --- a/packages/yew/src/monitor_play.rs +++ b/packages/yew/src/monitor_play.rs @@ -42,7 +42,7 @@ pub fn MonitorPlay(props: &MonitorPlayProps) -> Html { stroke-linejoin="round" > diff --git a/packages/yew/src/pause.rs b/packages/yew/src/pause.rs index 4184541..46cce17 100644 --- a/packages/yew/src/pause.rs +++ b/packages/yew/src/pause.rs @@ -41,8 +41,8 @@ pub fn Pause(props: &PauseProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/play.rs b/packages/yew/src/play.rs index b9d822b..b17d59d 100644 --- a/packages/yew/src/play.rs +++ b/packages/yew/src/play.rs @@ -41,7 +41,9 @@ pub fn Play(props: &PlayProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - + } } diff --git a/packages/yew/src/refresh_ccw_dot.rs b/packages/yew/src/refresh_ccw_dot.rs index 62c83f7..89d979f 100644 --- a/packages/yew/src/refresh_ccw_dot.rs +++ b/packages/yew/src/refresh_ccw_dot.rs @@ -41,10 +41,10 @@ pub fn RefreshCcwDot(props: &RefreshCcwDotProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + } diff --git a/packages/yew/src/rewind.rs b/packages/yew/src/rewind.rs index ff1e7f8..97b3289 100644 --- a/packages/yew/src/rewind.rs +++ b/packages/yew/src/rewind.rs @@ -41,8 +41,8 @@ pub fn Rewind(props: &RewindProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/skip_back.rs b/packages/yew/src/skip_back.rs index 1b8b0cc..67f461c 100644 --- a/packages/yew/src/skip_back.rs +++ b/packages/yew/src/skip_back.rs @@ -41,8 +41,10 @@ pub fn SkipBack(props: &SkipBackProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/skip_forward.rs b/packages/yew/src/skip_forward.rs index 5d20ae4..41f711a 100644 --- a/packages/yew/src/skip_forward.rs +++ b/packages/yew/src/skip_forward.rs @@ -41,8 +41,10 @@ pub fn SkipForward(props: &SkipForwardProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/sparkle.rs b/packages/yew/src/sparkle.rs index 52bdc6e..d410f11 100644 --- a/packages/yew/src/sparkle.rs +++ b/packages/yew/src/sparkle.rs @@ -42,7 +42,7 @@ pub fn Sparkle(props: &SparkleProps) -> Html { stroke-linejoin="round" > } diff --git a/packages/yew/src/sparkles.rs b/packages/yew/src/sparkles.rs index c3a3f90..41faa19 100644 --- a/packages/yew/src/sparkles.rs +++ b/packages/yew/src/sparkles.rs @@ -42,12 +42,11 @@ pub fn Sparkles(props: &SparklesProps) -> Html { stroke-linejoin="round" > - - - - + + + } } diff --git a/packages/yew/src/sprout.rs b/packages/yew/src/sprout.rs index 7d480f6..f8dcef1 100644 --- a/packages/yew/src/sprout.rs +++ b/packages/yew/src/sprout.rs @@ -41,14 +41,11 @@ pub fn Sprout(props: &SproutProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - - + + } } diff --git a/packages/yew/src/square_pause.rs b/packages/yew/src/square_pause.rs new file mode 100644 index 0000000..3302a00 --- /dev/null +++ b/packages/yew/src/square_pause.rs @@ -0,0 +1,49 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct SquarePauseProps { + #[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, + #[prop_or_default] + pub node_ref: NodeRef, +} +#[function_component] +pub fn SquarePause(props: &SquarePauseProps) -> Html { + let stroke_width = if props.absolute_stroke_width { + props.stroke_width * 24 / props.size + } else { + props.stroke_width + }; + html! { + + + + + + } +} diff --git a/packages/yew/src/square_play.rs b/packages/yew/src/square_play.rs index 733533c..031406c 100644 --- a/packages/yew/src/square_play.rs +++ b/packages/yew/src/square_play.rs @@ -41,8 +41,10 @@ pub fn SquarePlay(props: &SquarePlayProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/square_stop.rs b/packages/yew/src/square_stop.rs new file mode 100644 index 0000000..ee44a36 --- /dev/null +++ b/packages/yew/src/square_stop.rs @@ -0,0 +1,48 @@ +use yew::prelude::*; +#[derive(PartialEq, Properties)] +pub struct SquareStopProps { + #[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, + #[prop_or_default] + pub node_ref: NodeRef, +} +#[function_component] +pub fn SquareStop(props: &SquareStopProps) -> Html { + let stroke_width = if props.absolute_stroke_width { + props.stroke_width * 24 / props.size + } else { + props.stroke_width + }; + html! { + + + + + } +} diff --git a/packages/yew/src/step_back.rs b/packages/yew/src/step_back.rs index 97e8c4b..ae91ff5 100644 --- a/packages/yew/src/step_back.rs +++ b/packages/yew/src/step_back.rs @@ -41,8 +41,10 @@ pub fn StepBack(props: &StepBackProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/step_forward.rs b/packages/yew/src/step_forward.rs index fd6480d..2cd2cbe 100644 --- a/packages/yew/src/step_forward.rs +++ b/packages/yew/src/step_forward.rs @@ -41,8 +41,10 @@ pub fn StepForward(props: &StepForwardProps) -> Html { stroke-linecap="round" stroke-linejoin="round" > - - + + } } diff --git a/packages/yew/src/tv_minimal_play.rs b/packages/yew/src/tv_minimal_play.rs index d6fc64e..f5694eb 100644 --- a/packages/yew/src/tv_minimal_play.rs +++ b/packages/yew/src/tv_minimal_play.rs @@ -42,7 +42,7 @@ pub fn TvMinimalPlay(props: &TvMinimalPlayProps) -> Html { stroke-linejoin="round" > diff --git a/scripts/src/lib.rs b/scripts/src/lib.rs index ebbda5e..b89e4bc 100644 --- a/scripts/src/lib.rs +++ b/scripts/src/lib.rs @@ -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.527.0"; +pub const UPSTREAM_GIT_REF: &str = "0.528.0"; pub const UPSTREAM_GITHUB_URL: &str = "https://github.com/lucide-icons/lucide";