1.1.13 • Published 11 months ago

@visibly/vui v1.1.13

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months 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

11 months ago

1.1.8

11 months ago

1.1.7

11 months ago

1.1.6

11 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.12

11 months ago

1.1.11

11 months ago

1.1.10

11 months ago

1.1.13

11 months ago

1.0.2

1 year ago

0.1.52

1 year ago

1.0.1

1 year ago

1.0.17

1 year ago

1.0.0

1 year ago

0.1.54

1 year ago

1.0.16

1 year ago

0.1.55

1 year ago

0.1.56

1 year ago

0.1.57

1 year ago

0.1.58

1 year ago

0.1.59

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

0.1.50

1 year ago

1.0.3

1 year ago

0.1.51

1 year ago

0.1.49

1 year ago

0.1.46

1 year ago

0.1.47

1 year ago

0.1.48

1 year ago

1.1.0

1 year ago

1.1.3

12 months ago

1.1.2

12 months ago

0.1.63

1 year ago

0.1.64

1 year ago

0.1.60

1 year ago

0.1.61

1 year ago

0.1.62

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

0.1.30

1 year ago

0.1.31

1 year ago

0.1.32

1 year ago

0.1.33

1 year ago

0.1.34

1 year ago

0.1.35

1 year ago

0.1.36

1 year ago

0.1.37

1 year ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.29

1 year ago

0.1.41

1 year ago

0.1.42

1 year ago

0.1.20

1 year ago

0.1.43

1 year ago

0.1.21

1 year ago

0.1.44

1 year ago

0.1.22

1 year ago

0.1.45

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.1.40

1 year ago

0.1.38

1 year ago

0.1.39

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.19

1 year ago

0.1.16

1 year ago

0.1.15

1 year ago

0.1.14

1 year ago

0.1.13

1 year ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago