2.0.5 • Published 3 years ago

@tealink/ui v2.0.5

Weekly downloads
79
License
-
Repository
-
Last release
3 years ago

@tealink/ui

React UI components implementing global design system with Material UI

NPM JavaScript Style Guide

Demo

https://tealink-ui.netlify.app/

Install dependencies

Make sure the following dependencies are installed

  "dependencies": {
    "styled-components": "^5.1.0",
    "@material-ui/core": "^4.9.9",
    "@material-ui/icons": "^4.9.1",
    "react-router-dom": "^5.1.2"
  },

Install lib package

npm install --save @tealink/ui

Install ui-generator package

npm install --save-dev @tealink/ui-generators

Add Theme to app.js

import { ThemeProvider } from '@tealink/ui'
import theme from './defaultTheme'

const App = () => {
  return (
    <ThemeProvider theme={theme}>
      <Routes />
    </ThemeProvider>
  )
}

Add Layout as child to BrowserRouter and provide content

import { SidebarBottomContent, SidebarTopContent } from './components';
import { Layout } from '@tealink/ui'

function Routes() {
  return (
    <BrowserRouter>
      <Layout
        sidebarBottomContent={<SidebarBottomContent />}
        sidebarTopContent={<SidebarTopContent />}
        logoPath={`${process.env.PUBLIC_URL}/assets/img/default/logo.svg`}
      >
        <Switch>
          ...
        </Switch>
      </Layout>
    </BrowserRouter>
  );
}

Use generators for code scaffolding!

Generators are defined in https://gitlab.eu-1.deranged.dk/tealink/ui-generators and is a great way to create files faster in a consistent manner.

npm run g c

Development & Example

Run the dev enviroment:

npm install
npm start

cd example
npm install
npm start

The example targets the library source files automatically without needing to publish to see changes

Publish

By versioning the library, it will automatically be pushed to your remote branch. The library is published automatically to npm when merged to master.

npm version patch
2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.6

3 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.23

4 years ago

1.1.22

4 years ago

1.1.21

4 years ago

1.1.20

4 years ago

1.1.19

4 years ago

1.1.18

4 years ago

1.1.17

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.13

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.41

4 years ago

1.0.39

4 years ago

1.0.40

4 years ago

1.0.38

4 years ago

1.0.37

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.0

4 years ago