diff --git a/README.md b/README.md index 2d4f2a9..481e7c1 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ however, it is not necessary to worry about the sass module only it needs to be 1. Install the sass module: `npm install yew-styles` 2. Add the yew_style crate with the features needed for your project in Cargo.toml file: ```toml -yew_styles = { version="0.6.0", features=["button", "navbar", "layouts"] } +yew_styles = { version="0.6.1", features=["button", "navbar", "layouts"] } ``` 3. Import the main.css file in you main javascript/typescript file project: ```typescript diff --git a/crate/Cargo.lock b/crate/Cargo.lock index 3e178b6..844d4ec 100644 --- a/crate/Cargo.lock +++ b/crate/Cargo.lock @@ -906,7 +906,7 @@ dependencies = [ [[package]] name = "yew_style_page" -version = "0.6.0" +version = "0.6.1" dependencies = [ "Inflector 0.11.4 (registry+https://github.com/rust-lang/crates.io-index)", "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", @@ -922,12 +922,12 @@ dependencies = [ "yew 0.16.2 (registry+https://github.com/rust-lang/crates.io-index)", "yew-router 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)", "yew_prism 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", - "yew_styles 0.6.0", + "yew_styles 0.6.1", ] [[package]] name = "yew_styles" -version = "0.6.0" +version = "0.6.1" dependencies = [ "getrandom 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/crate/Cargo.toml b/crate/Cargo.toml index a0a0589..3b9e068 100644 --- a/crate/Cargo.toml +++ b/crate/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT/Apache-2.0" name = "yew_style_page" readme = "./README.md" repository = "https://github.com/spielrs/yew-styles-page.git" -version = "0.6.0" +version = "0.6.1" [lib] crate-type = ["cdylib"] diff --git a/crate/yew_styles/Cargo.lock b/crate/yew_styles/Cargo.lock index 5d4ee44..24c7211 100644 --- a/crate/yew_styles/Cargo.lock +++ b/crate/yew_styles/Cargo.lock @@ -554,7 +554,7 @@ dependencies = [ [[package]] name = "yew_styles" -version = "0.6.0" +version = "0.6.1" dependencies = [ "getrandom 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/crate/yew_styles/Cargo.toml b/crate/yew_styles/Cargo.toml index ae6d92e..25701b2 100644 --- a/crate/yew_styles/Cargo.toml +++ b/crate/yew_styles/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yew_styles" -version = "0.6.0" +version = "0.6.1" description = "Framework styles for yew" documentation = "https://docs.rs/crate/yew_styles" authors = ["Francisco Jesus Navarro Cortes "] diff --git a/crate/yew_styles/README.md b/crate/yew_styles/README.md index 79a5036..2d32eea 100644 --- a/crate/yew_styles/README.md +++ b/crate/yew_styles/README.md @@ -16,7 +16,7 @@ however, it is not necessary to worry about the sass module only it needs to be 1. Install the sass module: `npm install yew-styles` 2. Add the yew_style crate with the features needed for your project in Cargo.toml file: ```toml -yew_styles = { version="0.6.0", features=["button", "navbar", "layouts"] } +yew_styles = { version="0.6.1", features=["button", "navbar", "layouts"] } ``` 3. Import the main.css file in you main javascript/typescript file project: ```typescript diff --git a/crate/yew_styles/src/components/modal.rs b/crate/yew_styles/src/components/modal.rs index 6abc992..1f4352a 100644 --- a/crate/yew_styles/src/components/modal.rs +++ b/crate/yew_styles/src/components/modal.rs @@ -3,7 +3,6 @@ use wasm_bindgen::JsCast; use wasm_bindgen_test::*; use web_sys::{Element, HtmlElement}; use yew::prelude::*; -use yew::services::ConsoleService; use yew::{utils, App}; /// # Modal component @@ -59,13 +58,13 @@ use yew::{utils, App}; /// body_style.set_property("overflow", "auto").unwrap(); /// self.show_modal = false; /// } -/// Msg::CloseModalByKb(keyboard_event, index) => { +/// Msg::CloseModalByKb(keyboard_event) => { /// if keyboard_event.key_code() == 27 { /// body_style.set_property("overflow", "auto").unwrap(); /// self.show_modal = false; /// } /// } -/// Msg::OpenModal(index) => { +/// Msg::OpenModal => { /// body_style.set_property("overflow", "hidden").unwrap(); /// /// self.show_modal = true; @@ -189,8 +188,6 @@ impl Component for Modal { } } Msg::Pressed(keyboard_event) => { - let mut console = ConsoleService::new(); - console.log("Pressed"); self.props.onkeydown_signal.emit(keyboard_event); } }; diff --git a/crate/yew_styles/src/lib.rs b/crate/yew_styles/src/lib.rs index 0342f49..b5fe5ac 100644 --- a/crate/yew_styles/src/lib.rs +++ b/crate/yew_styles/src/lib.rs @@ -20,7 +20,7 @@ //! 1. Install the sass module: `npm install yew-styles` //! 2. Add the yew_style crate with the features needed for your project in Cargo.toml file: //! ```toml -//! yew_styles = { version="0.6.0", features=["button", "navbar", "layouts"]} +//! yew_styles = { version="0.6.1", features=["button", "navbar", "layouts"]} //! ``` //! 3. Import the main.css file in you main javascript/typescript file project: //! ```typescript