Giter VIP home page Giter VIP logo

yew_styles's People

Contributors

ajstrand avatar bandsberg avatar dancespiele avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar fitzgen avatar iamcodemaker avatar mappum avatar philip-peterson avatar sendilkumarn avatar walfie avatar xtuc avatar zoechi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yew_styles's Issues

Button - Size enum is private

Hi

Wanted to try out your style framework, so started with button, but rather quickly hit a snag:
I Added:

use yew_styles::{
    button::{Button, Size},
    styles::{Palette, Style},
};

tried to compile and got the following error:

error[E0603]: enum `Size` is private
 --> src/components.rs:4:22
  |
4 |     button::{Button, Size},
  |                      ^^^^ this enum is private
  |
note: the enum `Size` is defined here
 --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/yew_styles-0.5.0/src/components/button.rs:1:64
  |
1 | use crate::styles::{get_pallete, get_size, get_style, Palette, Size, Style};
  |                    

Am I doing something wrong or is this a bug?

Disclaimer: New to Rust, Yew and Github :D

Br. Bandsberg

Picker dev tool feature

I have a lot of blabbering I can contribute to the styling community that wouldn't fit very well in github issues, so I'd love to spend time in Discussions if you can enable it for this repo - or a discord.

But... for now my biggest thoughts are:
Given stylist-rs supports "runtime" styling, what do you think about the idea of making a dev tool picker that lets you select a component just like in chromium or webkit devtools and interactively change css at runtime? That way the development experience is lickity-split and one step closer to WYSIWYG! You would of course disable this picker in production once you are satisfied with the styling achieved. Or does this already exist for WASM in another form?

Fix typo in README

Hi,
I noticed there was a typo in the README.
It's located in the first sentence.

provide a style framework for yew that doesn't require any Javascrit

the fix should be as simple as changing Javascrit to JavaScript.

According Wikipedia, the "S" in script should also be capitalized.

Would I be able to work on that change?

Thanks,
Alex

Navbar in mobile layouts doesn't hide the menu if I click outside of it

Current behaviour:
In a mobile layout the navbar menu is a dropdown which show a list of menus when I click in the menu icon however I need to click again that if I want to hide the menu list, without the possibility to do when I click outside of the dropdown making a poor UX.

Expected behaviour:
The menu list of the navbar in mobile layouts should give the possibility to the developers to access to an event when is clicked outside of the navbar

Path of the component: crate/yew_styles/src/components/navbar
Possible solution:
In modal component (crate/yew_styles/src/components/modals.rs) there is a similar implementation:

Msg::Clicked(mouse_event) => {
                let target_event = mouse_event
                    .target()
                    .unwrap()
                    .dyn_into::<Element>()
                    .unwrap()
                    .class_list();

                if target_event.value().starts_with("modal container") {
                    self.props.onclick_signal.emit(mouse_event);
                }
            }

however the conditional should be that the target_event doesn't start with navbar, something like this:

 if !target_event.value().starts_with("navbar-mobile") {
     self.props.onclick_signal.emit(mouse_event);
}

Rich text component?

I know this one might be a toughy, but I didn't see it listed in your readme as a pending component to support: Rich Text Editor

For instance, would something akin to prosemirror or tiptap (built on top of prosemirror) be a possibility? Any cheap workarounds for the time being? Even a text entry supporting bold/underline/italic text, list items and highlighting would be enough for many use cases.

Update Docs please

iam tottaly new today in your project, but i think i has, what i was lf.

For me today, i can not open your website docs!

image

Add screenshots of components

Currently, the only way to know the styles look is to grab this crate and try it out. It'd be great if there were some examples of how each component looked like how Angular Material does.

It would be great if there were demos like that too but that would require having a website built with these styles which is a lot of work, especially considering that this project in its early stages. So including screenshots in docs on docs.rs or in this repo would be a welcome improvement.

`value` prop for inputs

Hi there, I was interested in creating a controlled input, but it seems there's no way to set a value. Does the framework have an opinion about this? Or maybe it's just a feature yet to be implemented?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.