1.1.13 • Published 2 years ago

@visibly/vui v1.1.13

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

Visibly UI Library

VUI is a frontend component library used for building pages and components in Visibly apps. The components are built using TypeScript, React, and Vanilla Extract. It's compiled into tree-shakable ESM, with TypeScript definitions and source maps in the distribution.

Installation

Access Token

VUI is a private repo in npm and requires an access token to access. In any repo that uses VUI, you need to create an .npmrc file

@visibly:registry=https://registry.npmjs.org/
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}

In your .env file, make a NPM_TOKEN key and give it your npm token generated from npm.

NPM_TOKEN=ABC123

Now when you install the package, it will use your token to authenticate that you have access.

Install

npm:

npm install @visibly/vui

Usage

Here's an example of the basic usage of a VUI button component

import * as React from 'react';
import { Button } from '@visibly/vui';

const App = () => (
  <Button 
    variant="primary"
    onClick={() => window.alert("Primary button clicked")}
    >
    Primary
  </Button>
)

export default App

How to run Storybook

Make sure all the dependencies are installed. From the vui directory, run npm run storybook A window should open up running Storybook locally in your browser

Structure

vui
├── .storybook
│   ├── main.js # storybook build file
│   ├── preview-head.html # storybook file for applying custom styles
│   ├── preview.js # storybook file
│   ├── ts-paths.js # webpack config for typescript paths with webpack
│   ├── vanilla-extract.js # webpack config for VE
├── dist # the package
├── pages # used to develop pages in isolation
├── src
│   ├── components # uses atomic design structure
│   │   └── atoms # smallest components used as building blocks for UI elements
│   │   └── molecules # groups of atoms that work together to perform a certain action
│   │   └── organisms # the most complex, making up distinct sections of a UI
│   │   └── pages # what the user will see and interact with, made up of atoms, molecules, and organisms
│   ├── types
│   │── utils
│   │── variables
│   ├── index.ts # Entrypoint. Exports all modules. Can be tree-shaken.
│   ├── base.css # Base CSS, includes a reset (modern-css-reset).
├── tests # folder for all tests
├── assetTransformer.js
├── bable.config.js
├── colors.ts # makes colors accessible within the package
├── package.json
├── rollup.config.js # config for using rollup as our module bundler
├── tsconfig.json # TypeScript configuration, only emits declaration files
1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.13

2 years ago

1.0.2

2 years ago

0.1.52

2 years ago

1.0.1

2 years ago

1.0.17

2 years ago

1.0.0

2 years ago

0.1.54

2 years ago

1.0.16

2 years ago

0.1.55

2 years ago

0.1.56

2 years ago

0.1.57

2 years ago

0.1.58

2 years ago

0.1.59

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

0.1.50

2 years ago

1.0.3

2 years ago

0.1.51

2 years ago

0.1.49

2 years ago

0.1.46

2 years ago

0.1.47

2 years ago

0.1.48

2 years ago

1.1.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

0.1.63

2 years ago

0.1.64

2 years ago

0.1.60

2 years ago

0.1.61

2 years ago

0.1.62

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

0.1.30

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.34

2 years ago

0.1.35

2 years ago

0.1.36

2 years ago

0.1.37

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.41

2 years ago

0.1.42

2 years ago

0.1.20

2 years ago

0.1.43

2 years ago

0.1.21

2 years ago

0.1.44

2 years ago

0.1.22

2 years ago

0.1.45

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.40

2 years ago

0.1.38

2 years ago

0.1.39

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago