Code Monkey home page Code Monkey logo

wired-elements's People

Contributors

apennamen avatar binbalenci avatar elingerojo avatar irustm avatar jean avatar lauthieb avatar naereen avatar pshihn avatar ralucanicola avatar simonsiefke avatar studioteatwo avatar tomasolander 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  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

wired-elements's Issues

how to support the table elements

an interesting UI framework, I want to know how to support a table elements in my web page, I'm not good at HTML/CSS/JS and can't find any introduce to a table emement.

Crashes react SSR

Wired Elements accesses window object which makes it unsuitable with server-side rendering, which just crash.

Well, I know, but still… :p

New control: file picker

Again, don't know if this kinda thing is in scope, but I'm almost always building a control that allows one to pick a file or files from the desktop or a URL.

CodePen friendly packages would be great

Just like LitElement's official demo at CodePen, it would be great to try it out out of the box, this great wired-elements, without downloading packages, setting up local development environments, etc..

LitElements provides its built assets within its repository so I can just use them from CodePen with unpkg.com CDN.

it would be great if wired-elements also provides the same way :D

How to resize buttons

After using the wired-button, I realized the button width and height is a fixed path.
How can I change the width of the button?

wired-card doesn't respect max-width

I have some wired-card elements inside a CSS grid. They are not respecting the width of the columns they are inside of.

wired-card {
    max-width: 100%;
}

screen shot 2018-08-11 at 16 51 11

The grid code is:

.card-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, 1fr);
}

Support Typescript + React

This doesn't appear to work in a Typescript project using React. If I use the lower case <wired-button>, Typescript gives the error, Property 'wired-button' does not exist on type 'JSX.IntrinsicElements'. If I use <WiredButton> as if it were a React component, I get a runtime error, TypeError: Class constructor WiredButton cannot be invoked without 'new'. Is there any way to fix one/both of these errors, or modify the library so it can be used in Typescript + React projects?

why no support vue.js

I really want to use the wired.js component in the vue.js project. Can I support it?

Using with React

I tried importing a wired element but React throws an error:

NotSupportedError
Failed to construct 'CustomElement': The result must not have attributes

https://codesandbox.io/s/pp4q7kw9q7

Do I need to do something else to make it compatible with react? thanks!

New control: Header Navigation bar

I think a navigation header, with a few dropdowns on the right and something on the left, with the option to colapse into a menu dropdown as you see on mobile, would be nice control to have.

Again, I don't know if this is appropriate for a self-contained control, but I sure wish it was because I always seem to spend time on these in the past.

Adopt monorepo structure

The current setup is each component has its own standalone package.
We should think about adopting monorepo structure where we would have to maintain only one repo. This makes maintenance and debugging better and easier.

I would love to contribute adopting monorepo or yarn workspaces for the project.

Suggestion: make button backgrounds look "colored in"πŸ–Œ

It'd be cool if there were an option for wired-button and similar elements with solid background colors to render the background as an svg path that looks like a thick pen/brush stroke, rather than a solid rectangle. I think this would help it feel a lot "sketchier."

Thanks for making these awesome components! πŸ˜„

Accessibility for components

Would a PR be accepted that added accessible outlines, tab navigation and screen readability to these components?

wired-card calls non-existing this._requestRender()

<wired-card> calls this._requestRender() when the slotchange event is fired. However, that method does not exist on the elemnt.

https://github.com/wiredjs/wired-elements/blob/da4f150c04a336df41e228b794f14663f54b6d6f/packages/wired-card/wired-card.js#L55

<wired-card> depends on Lit Element ^0.5.1. I've checked the source code of Lit Element, and it looks like they renamed it to this.requestRender():

https://github.com/Polymer/lit-element/blob/fb90e7640777cab01c9eac2006cde558c34b041d/src/lit-element.ts#L261

(I did a quick search and noticed a few more places that call _requestRender().

I was using <wired-card> by importing it form unpkg:

<script type='module' src='https://unpkg.com/[email protected]/wired-card.js?module'></script>

Changing to wired breaks Joomla

I am using this in a custom Joomla template but changing "input" to "wired-input" breaks Joomla form. Joomla expects < input >. Is there a way I can achieve the wired effect by using a css class instead of changing them to "wired-***" ?

New control: Date/Time dropdown

This is the critical control and almost always needed. It's a date control, and usually has a dropdown calendar to pick a date or date range (most of the time just a signle date).

in Firefox: TypeError: Error resolving module specifier: @polymer/lit-element/lit-element.js

I am trying to use the wired-checkbox-Element, but ran into a few problems. Would love to use those, because I think wired-elements look pretty neat :)

1. Version -> TypeError

Installed with npm i wired-checkbox and copied the tag. Btw, I think it would be nicer if the path would include the node-modules directory, so you don't have work it out yourself ...

The HTML looks like this:

<html` lang="en">
<head>
  <meta charset="UTF-8">
  <script type="module" src="node_modules/wired-checkbox/wired-checkbox.js"></script>
</head>
<body>
  <wired-checkbox text="Checkbox One"></wired-checkbox>
</body>
</html>

When I open it up in the Browser the console logs TypeError: Error resolving module specifier: @polymer/lit-element/lit-element.js

2. Version -> ReferenceError

I looked for known Issues and stumbled upon this one.
After copying <script type="module" src="https://unpkg.com/wired-button@latest/wired-button.js?module"></script> from the jsfiddle sample (which works) and changing it to be wired-checkbox it throws Reference Error: customElements is not defined

responsive resizing on card?

When I resize my page, the card doesn't resize dynamically. Can I trigger it somehow?

	<body>
		<main>
			<wired-card elevation="2">Here's my content</wired-card>
		</main>
	</body>	

and some css to show responsiveness

	body,html { height:100vh;}
	body{display:flex;}
	main{flex:1;position:relative}
	wired-card{position:absolute;top:10px;left:10px;width:calc(100%-20px);height:calc(100%-20px)}

I didn't see any particular handlers for observing or responding to resize events on these components - perhaps I'm missing something?

Hello how to ?

Hello idk if this is the right place, but how to use this ? :S I'm pretty confused I thought it was as simple as the readme x))

Thanks and have a nice day

Production Build Error

Failed to modify the code from this file

./node_modules/@polymer/lit-element/lit-elelment.js:12

wired-slider cut off in Chrome

Tested in Firefox/Safari/Chrome on Mac and could only see it in Chrome (67.0.3396.87).

Slider circle seems to be cut in half randomly at its left-most position. Doesn't seem to happen at its right-most position.

kapture 2018-06-13 at 16 49 15

can't get value from wired-input work with v-model

something wrong when it work with Vue
I can't get value when I uesd v-model combine wired-input
but if I use input I can get the value from input

<template>
<wired-input placeholder="Hero name" type="text" v-model="name"></wired-input>
<wired-button @click="print">Click Me</wired-button>
</template>

<script>
import { WiredButton, WiredInput } from "wired-elements";
export default{
data(){
return {
name:''
}
}


methods:{
print(){
alert(this.score);
}
}
</script>

Anyone aware of a similar library/fork that uses React SFC's and doesn't use webcomponents?

Firstly - I love love love this library and have already pulled it into be part of our key work flow with clients.

However I also love React SFC's and would love it if i could use a wired-elements sfc library.

If I had the time I would consider making a fork honorary this library as the root and mirror improvements into it.

Is anyone aware of someone that is already doing this?

New control: Navigation sidebar

I think a navigation sidebard, with a tree view option would be nice control to have. I don't know if this is appropriate for a self-contained control, but I sure wish it was because I always seem to spend time on these in the past.

Error: customElements is not defined

when I type this to import WiredCard:
import { WiredCard } from "wired-card";
there are a error in FF:
ReferenceError: customElements is not defined
but totally normal operation in chrome.

I am sure the error is caused by wired-js:
customElements.define('wired-card', WiredCard);

what can I do to solve it?thanks!

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.