2.1.8 • Published 2 years ago

wads v2.1.8

Weekly downloads
24
License
MIT
Repository
-
Last release
2 years ago

WADS Library

npm version Built With Stencil Downloads

WADS is a Design System built entirely with StencilJS and crafted from the ground up to be Easy to Integrate, Easy to Use and Easy to Extend

What is Easy to Integrate?

With this, we mean that the library must be accessible and easy to install on as many frameworks/libraries as possible, providing detailed guidelines for developers and providing them with the best approach.

Easy to use?

Every component is simple to use and fits well on different environments.

Easy to extend?

The Open-Closed principle tells us that a good software architecture must be open to extension, but not for modification. With that in mind, we always ensure that every approach we follows meets this requirement, allowing developers to change how the components look and behave in different scenarios.

Getting started

For using wads the first step is to add the library as a project dependency

npm install wads --save

Now you are ready for starting the setup process!

Seting up WADS on an Angular Project

For using the WADS Library within an Angular CLI project follow these steps:

  1. Include the CUSTOM_ELEMENTS_SCHEMA constant in any module that renders wads components
// app.module.ts
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule],
  bootstrap: [AppComponent],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppModule {}
  1. Call the defineCustomElements() function from the main.ts file.
// main.ts
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

import { defineCustomElements } from 'wads/loader';

if (environment.production) {
    enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
  catch(err => console.log(err));
defineCustomElements();
  1. Include the WADS Library global styles on your styles.scss file
# styles.scss
@import url('wads/dist/wads/wads.css');

That's it! You should now be able to use wads components inside your app!

Seting up WADS on a React Project

With an application built using the create-react-app script the easiest way to include the component library is to call defineCustomElements() from the index.js file. Note that in this scenario applyPolyfills is needed if you are targeting Edge or IE11.

// index.js
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';

import { applyPolyfills, defineCustomElements } from 'wads/loader';

ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();

applyPolyfills().then(() => {
  defineCustomElements();
});

Then include the global styles

# index.css
@import url('wads/dist/wads/wads.css');

No frameworks/libraries setup

No complex JS setups? We got you covered! Integrating WADS to a project without a JavaScript framework is straight forward. If you're using a simple HTML page, you can add your component via a script tag. For example, adding the CDN reference like this:

<html>
  <head>
    <script src="https://unpkg.com/wads/dist/wads/wads.esm.js"></script>
    <link rel="stylesheet" href="https://unpkg.com/wads/dist/wads/wads.css" />
  </head>
  <body>
    <wads-typography>I'm a Web Componet</wads-typography>
  </body>
</html>

Thanks for using our Design System!

WADS Dev Team

Development guideline

In this team we adhere to very strict coding standards and practices in order to make our code base maintainable in the long run.

for more details you can read our coding guiduiles file: CODING_GUIDELINES.md

2.1.8

2 years ago

2.1.7

2 years ago

1.6.3

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

2.0.5

2 years ago

2.0.0-alpha.0

2 years ago

2.0.2-alpha.0

2 years ago

1.7.5

2 years ago

1.7.4

2 years ago

1.7.3

2 years ago

1.7.2

2 years ago

1.7.1

2 years ago

1.7.0

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

2.1.4

2 years ago

2.0.13

2 years ago

2.0.1-alpha.0

2 years ago

2.1.3

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.0

2 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.1

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.14

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago