1.14.2 • Published 4 years ago

@invisible/ui v1.14.2

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
4 years ago

UI Design System

This package contains all the reusable components for Invisible web apps. It also contains prototypes for documentation of upcoming features. Find the latest version of the documentation at https://ui.invisible-tech.now.sh/

Guidelines

Use typed functional components:

interface IComponent {
  active?: boolean
}

const Component: React.FC<IComponent> = ({ active, ...props }) => {}
// or, if using styled-components:
const Component = styled.div<IComponent>

Propagate properties:

const Component: React.FC<IComponent> = ({ active, ...props }) => <div {...props}></div>

UI Local Dev

When you need to make changes to the underlying UI package and see them locally:

There are you two methods to it, try the second method if the first doesn't work for you

First Method

  1. in the packages/ui/ directory run yarn link
  2. delete react and react-dom from the packages/ui/node_modules/
  3. in the midgard/asgard directory run yarn link @invisible/ui
  4. in the packages/ui directory run yarn build --watch

Second Method

  1. in the packages/ui/ directory run yarn link
  2. cd into packages/ui/node_modules/react and run yarn link
  3. cd into packages/ui/node_modules/react-dom and run yarn link
  4. in the midgard/asgard directory run yarn link @invisible/ui react react-dom
  5. in the packages/ui directory run yarn build --watch

This creates a symlink in midgard/asgard node modules to our local ui package directory. Any changes you make here will trigger a re-build in midgard/asgard dev server.

Changes to the UI package should be committed and merged in separate pull requests so that later commits can rely on the newly published package version on NPM.

1.14.1

4 years ago

1.14.2

4 years ago

1.10.1

4 years ago

1.14.0

4 years ago

1.9.11

4 years ago

1.9.10

4 years ago

1.13.0

4 years ago

1.9.9

4 years ago

1.12.0

4 years ago

1.11.0

4 years ago

1.9.8

4 years ago

1.9.0

4 years ago

1.10.0

4 years ago

1.9.7

4 years ago

1.9.6

4 years ago

1.9.5

4 years ago

1.9.4

4 years ago

1.9.3

4 years ago

1.9.2

4 years ago

1.9.1

4 years ago

1.8.1

4 years ago

1.7.3

4 years ago

1.7.5

4 years ago

1.7.4

4 years ago

1.8.0

4 years ago

1.7.2

4 years ago

1.5.4

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago