web-padawan / aybolit Goto Github PK
View Code? Open in Web Editor NEWLightweight web components library built with LitElement.
Home Page: https://web-padawan.github.io/aybolit/
License: MIT License
Lightweight web components library built with LitElement.
Home Page: https://web-padawan.github.io/aybolit/
License: MIT License
Any plans? Or what would be the alternative integration strategy, if we like Lumo's system in general.
This is an "epic" for tabs.
Follow https://github.com/vaadin/vaadin-element-skeleton/pull/192/files or any reason why not?
I think I solved some of the issues in a way that might be suitable for both of us. Would you care to take a look with a new pull request? I just need permissions to push my branch.
This is an "epic" for stepper.
This is an "epic" for badge.
This is an "epic" for text-field.
https://developers.google.com/web/fundamentals/web-components/customelements#prestyle presents a solid strategy that works.
In reality, it seem like 2 rules are needed, for something like a layout component:
vaadin-app-layout:not(:defined) {
/* Pre-style, give layout, replicate app-drawer's eventual styles, etc. */
display: block;
height: 100vh;
opacity: 0;
}
vaadin-app-layout:defined {
transition: opacity 0.1s ease-in-out;
}
Even though the example given is for vaadin-app-layout
, it's a generic web component upgrade issue, which I didn't know until I experienced it and researched. So wondering if we could add a Documentation note here about it, and present this solution option.
Any better options that you know of, @web-padawan?
This is an "epic" for tooltip.
Some @aybolit/core
components are using it, but a few are not. What is the decision criteria?
lit/lit-element#586 may be related on upstream end?
This is an "epic" for textarea.
See https://github.com/jedmao/eclint
This is how we could use it:
"lint-staged": {
"*": [
"eclint fix",
"git add"
],
Looks like many minor updates available, bump world?
aybolit $ [git:master] yarn outdated
yarn outdated v1.15.2
info Color legend :
"<red>" : Major Update backward-incompatible updates
"<yellow>" : Minor Update backward-compatible features
"<green>" : Patch Update backward-compatible bug fixes
Package Current Wanted Latest Workspace Package Type URL
@babel/core 7.4.0 7.4.3 7.4.3 aybolit-workspace devDependencies https://babeljs.io/
@babel/plugin-transform-runtime 7.4.0 7.4.3 7.4.3 aybolit-workspace devDependencies https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime
@babel/preset-env 7.4.2 7.4.3 7.4.3 aybolit-workspace devDependencies https://babeljs.io/
@babel/runtime 7.4.2 7.4.3 7.4.3 aybolit-workspace devDependencies https://github.com/babel/babel/tree/master/packages/babel-runtime
@open-wc/testing-helpers 0.7.25 0.7.25 0.8.6 @aybolit/core devDependencies https://github.com/open-wc/open-wc/
@open-wc/testing-helpers 0.7.25 0.7.25 0.8.6 @aybolit/material devDependencies https://github.com/open-wc/open-wc/
@open-wc/testing-helpers 0.7.25 0.7.25 0.8.6 aybolit-workspace devDependencies https://github.com/open-wc/open-wc/
@open-wc/testing-helpers 0.7.25 0.7.25 0.8.6 @aybolit/bootstrap devDependencies https://github.com/open-wc/open-wc/
@open-wc/testing-helpers 0.7.25 0.7.25 0.8.6 @aybolit/bulma devDependencies https://github.com/open-wc/open-wc/
@pika/pack 0.3.5 0.3.6 0.3.6 @aybolit/bulma devDependencies https://www.pikapkg.com/blog/introducing-pika-pack/
@pika/pack 0.3.5 0.3.6 0.3.6 @aybolit/bootstrap devDependencies https://www.pikapkg.com/blog/introducing-pika-pack/
@pika/pack 0.3.5 0.3.6 0.3.6 @aybolit/core devDependencies https://www.pikapkg.com/blog/introducing-pika-pack/
@pika/pack 0.3.5 0.3.6 0.3.6 @aybolit/material devDependencies https://www.pikapkg.com/blog/introducing-pika-pack/
@pika/pack 0.3.5 0.3.6 0.3.6 @aybolit/white-label devDependencies https://www.pikapkg.com/blog/introducing-pika-pack/
@storybook/addon-knobs 5.0.5 5.0.6 5.0.6 @aybolit/storybook dependencies https://github.com/storybooks/storybook/tree/master/addons/knobs
@storybook/addon-knobs 5.0.5 5.0.6 5.0.6 aybolit-workspace devDependencies https://github.com/storybooks/storybook/tree/master/addons/knobs
@storybook/addons 5.0.5 5.0.6 5.0.6 @aybolit/storybook dependencies https://github.com/storybooks/storybook/tree/master/lib/addons
@storybook/addons 5.0.5 5.0.6 5.0.6 aybolit-workspace devDependencies https://github.com/storybooks/storybook/tree/master/lib/addons
@storybook/core 5.0.5 5.0.6 5.0.6 aybolit-workspace devDependencies https://github.com/storybooks/storybook/tree/master/lib/core
@storybook/polymer 5.0.5 5.0.6 5.0.6 aybolit-workspace devDependencies https://github.com/storybooks/storybook/tree/master/app/polymer
@storybook/polymer 5.0.5 5.0.6 5.0.6 @aybolit/storybook dependencies https://github.com/storybooks/storybook/tree/master/app/polymer
@webcomponents/webcomponentsjs 2.2.7 2.2.8 2.2.8 aybolit-workspace devDependencies https://webcomponents.org/polyfills
command-line-args 5.0.2 5.1.1 5.1.1 @aybolit/sass-render dependencies https://github.com/75lb/command-line-args#readme
eslint 5.15.3 5.16.0 5.16.0 aybolit-workspace devDependencies https://eslint.org
lerna 3.13.1 3.13.2 3.13.2 aybolit-workspace devDependencies https://github.com/lerna/lerna#readme
mocha 6.0.2 6.1.2 6.1.2 aybolit-workspace devDependencies https://mochajs.org/
node-watch 0.6.0 0.6.1 0.6.1 aybolit-workspace dependencies https://github.com/yuanchuan/node-watch#readme
react 16.8.5 16.8.6 16.8.6 aybolit-workspace devDependencies https://reactjs.org/
react-dom 16.8.5 16.8.6 16.8.6 aybolit-workspace devDependencies https://reactjs.org/
sass 1.17.3 1.18.0 1.18.0 @aybolit/sass-render dependencies https://github.com/sass/dart-sass
sinon 7.3.0 7.3.1 7.3.1 aybolit-workspace devDependencies https://sinonjs.org/
Done in 2.88s.
Heya. With https://github.com/postcss/autoprefixer I wonder if a PostCSS build stack would make sense to strive towards, after all.
@web-padawan do you have any objections to Autoprefixer in general?
What about PostCSS? (while still keeping dart-sass
central, as currently is, at least for now)
This is an "epic" for radio-button.
Note: radio-group
is considered as a possible wrapper. The selection-controller from Material Web Components can be used as alternative, though.
Currently, the lit components are compiled with storybook webpack configuration. In case I would like to run webpack-serve from the current lit element project (that I will bring over to packages/my-lit-project), where should I do it? Do you recommend creating custom commands to root level package.json? Also what about production builds. Would you build them in /dist/package/package-name/bundle.js or /packages/package-name/dist/?
Do you have specific recommendations to follow on package file structure. For example my project currently looks something like this like this:
/src/components/component-name.js
/src/components/component-name.scss
/src/theme/vaadin/vaadin-button.js
/src/theme/vaadin/vaadin-button.scss
/src/redux/
/templates/file.html (that put together initial component setups)
webpack-configs.js
netlify.toml
babel.config.js
Currently the npm run watch takes at least 1 second with minimal setup and only on package. So my questions is why custom scripts runner?
yarn run v1.12.3
$ ./scripts/build-styling.sh
Processing packages/core/scss/switch-base.scss
Processing packages/core/scss/button-base.scss
Processing packages/core/scss/range-base.scss
Processing packages/core/scss/progress-base.scss
Processing packages/core/scss/checkbox-base.scss
Done in 1.18s.
watcher build complete!
global.scss:
@import "./global-nav";
_global-nav.scss when edited doesn't create updated global-css.js
With aybolit setup, where should I include scss mixins/variables that are being used throughout multiple packages?
Before I used sass-resources-loader
in webpack to load the mixins to all scss included.
For evaluating / testing component implementation quality across device categories, this addon looks relatively useful.
https://github.com/storybooks/storybook/tree/master/addons/viewport
Your thoughts?
Wanting to dynamically import only a single element not has to deep dive into the dist-src
directory:
import('@aybolit/material/dist-src/components/abm-button').then()
I find this uncommon as well as providing a bundled js file as the default index.
Instead, I propose a simplified build where individual components are imported by default both statically and dynamically.
import '@aybolit/material/button'
// equal dynamic import
import('@aybolit/material/button')
If desired, the bundled build would stay but being the non-default alternative
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.